Collection of python scripts for interfacing with ParaView and/or VTK. Written for the Chair for Electromagnetic Theory at Saarland University.
Some up-to-date Python 3 version. Tested with Python 3.6.
All scripts need the numpy
package. Those creating VTK files also need the vtk
package.
-
node_ordering.py
generates a list of cartesian coordinates for the nodes of a single, right-angled Lagrange element at the origin in the right order (like the examples in this Kitware blogpost). Types: triangle, quadrilateral, tetrahedron, hexahedron, wedge. Order: 1 to 10. -
sample_lagrange_element.py
generates a VTK unstructured-grid XMLvtu
file containing a sample higher-order Lagrange element. Type and order must be specified in the script, see indicated lines. Usesnode_ordering.py
to get the coordinates.