Skip to main content

Tools and helpers for simplex meshes

Project description

meshplex

CircleCI codecov Codacy grade Code style: black PyPi Version GitHub stars

Compute Voronoi tesselations and everything else you need for finite-volume discretizations. Do it fast, too.

Usage

Given a triangular or tetrahedral mesh, meshplex computes

  • covolumes,
  • control volumes,
  • cell circumcenters,
  • the surface areas,
  • control volume circumcenters,

and much more.

To use meshplex, simple read a mesh (e.g., this pacman):

mesh = meshplex.read('pacman.msh')

print(mesh.node_coords)
print(mesh.control_volumes)

mesh.show()

(For mesh creation, check out pygmsh, mshr, pygalmesh, meshzoo, optimesh or any other tool.)

Installation

meshplex is available from the Python Package Index, so simply type

pip install -U meshplex

to install or upgrade.

Testing

To run the meshplex unit tests, check out this repository and type

pytest

Distribution

To create a new release

  1. bump the __version__ number,

  2. publish to PyPi and GitHub:

    make publish
    

License

meshplex is published under the MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for meshplex, version 0.6.1
Filename, size File type Python version Upload date Hashes
Filename, size meshplex-0.6.1-py2.py3-none-any.whl (26.2 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size meshplex-0.6.1.tar.gz (23.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page