meshzoo provides numerous meshes to be used, e.g., in FEM/FVM application.
Example usage:
points, cells = meshzoo.rectangle(
xmin=0.0, xmax=2.0,
ymin=0.0, ymax=1.0,
nx=201, ny=101,
zigzag=True
)
# Process the mesh, e.g., write it to a file using meshio
# meshio.write('rectangle.e', points, {'triangle': cells})
In addition to this, the examples/
directory contains a couple of instructive
examples for other mesh generators like
meshzoo is available from the Python Package Index, so to install/upgrade simply type
pip install meshzoo -U
Download meshzoo from PyPi or GitHub and install it with
python setup.py install
To run the Mesh Zoo unit tests, check out this repository and run
pytest
To create a new release
-
bump the
__version__
number, -
create Git tag and upload to PyPi:
make publish
Mesh Zoo is published under the MIT license.