By default, the bindings will install into the
dist directory, along with a number of examples
that are stored in the $NEKDIR/library/Demos/Python directory. To test your installation,
you can for example run one of these (e.g.
python Basis.py) or launch an interactive
A number of examples of the wrappers can be found in the $NEKDIR/library/Demos/Python
directory, along with a sample mesh
SessionReader.pyis the simplest example and shows how to construct a session reader object. Run it as
python SessionReader.py mesh.xml.
Basis.pyshows functionality of basic
LibUtilitiespoints and basis classes. Run this as
StdProject.pyshows how to use some of the
StdRegionswrappers and duplicates the functionality of
StdExpansionclass. Run this as
MeshGraph.pyloads a mesh and prints out some basic properties of its quadrilateral elements. Run it as
python MeshGraph.py newsquare_2x2.xml.
If you want to modify the source files, it’s advisable to edit them in the
$NEKDIR/library/Demos/Python directory and re-run
make install, otherwise local changes
will be overwritten by the next