Skip to content
forked from meshpro/meshzoo

Some examples for mesh generation in Python

License

Notifications You must be signed in to change notification settings

kebitmatf/meshzoo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Some examples for mesh generation in Python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 98.7%
  • Makefile 1.3%