Commit 699021f6 authored by Andreas Nüßing's avatar Andreas Nüßing
Browse files

add readme

parent acf94e42
### vistapy
A small python module to read meshes stored in the vista format by vgrid.
It reads nodes, elements, labels and tensors.
Cubes are renumbered to conform to the Dune numbering.
## prerequisites
- libvistaio1.2
## example
```python
import vistapy as vp
m = vp.read_vista_mesh('/path/to/your/vista/file.v')
nodes = np.array(m.nodes, dtype=float)
elements = np.array(m.elements, dtype=int)
tensors = np.array(m.tensors, dtype=float)
labels = np.array(m.matprops, dtype=int)
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment