Skip to content

Latest commit

 

History

History
80 lines (58 loc) · 2.28 KB

README.md

File metadata and controls

80 lines (58 loc) · 2.28 KB

meshzoo

Build Status codecov Code Health PyPi Version GitHub stars

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

Showcase

Installation

Python Package Index

meshzoo is available from the Python Package Index, so to install/upgrade simply type

pip install meshzoo -U

Manual installation

Download meshzoo from PyPi or GitHub and install it with

python setup.py install

Testing

To run the Mesh Zoo unit tests, check out this repository and run

pytest

Distribution

To create a new release

  1. bump the __version__ number,

  2. create Git tag and upload to PyPi:

    make publish
    

License

Mesh Zoo is published under the MIT license.