jiangzhongshi / paraview-scripts

Collection of python scripts for interfacing with paraview for the Chair for Electromagnetic Theory at Saarland University

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

paraview-scripts

Collection of python scripts for interfacing with ParaView and/or VTK. Written for the Chair for Electromagnetic Theory at Saarland University.

Requirements

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.

File purposes

  • 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 XML vtu file containing a sample higher-order Lagrange element. Type and order must be specified in the script, see indicated lines. Uses node_ordering.py to get the coordinates.

About

Collection of python scripts for interfacing with paraview for the Chair for Electromagnetic Theory at Saarland University


Languages

Language:Python 100.0%