pymech documentation

This is the documentation for pymech, a Python suite of routines for Nek5000 and SIMSON.


eX-Mech Developers (see here)



Pymech can be used for reading, editing and writing Nek5000 and SIMSON meshes and output files. For a detailed tutorial refer to usage.

The data structure is defined by the pymech.exadata.exadata class, found in The functions for manipulating Nek5000 files are in, while the functions for SIMSON are, of course, in


Pymech requires Python version 3.6 and above. For most purposes, we recommend creating a virtual environment and then running:

pip install pymech

Optional dependencies can be installed as follows:

pip install "pymech[full]"