Skip to main content

Package is used to parser Gmsh .msh file format

Project description

gmshparser - parse Gmsh .msh file format

Build Status Coverate Status Documentation Status

Package author: Jukka Aho (@ahojukka5)

Gmshparser is a small Python package which aims to do only one thing: parse Gmsh mesh file format. Package does not have any external dependencies to other packages and it aims to be a simple stand-alone solution for a common problem: how to import mesh to your favourite research FEM code?

Project documentation is located at: https://gmshparser.readthedocs.io/

Installing package

Using pip:

pip install gmshparser

Usage

To read mesh into Mesh object, use command parse:

>>> import gmshparser
>>> mesh = gmshparser.parse("data/testmesh.msh")
>>> print(mesh)

Output is

Mesh name: data/testmesh.msh
Mesh version: 4.1
Number of nodes: 6
Minimum node tag: 1
Maximum node tag: 6
Number of node entities: 1
Number of elements: 2
Minimum element tag: 1
Maximum element tag: 2
Number of element entities: 1

For further information on how to access nodes, elements, physical groups etc. look the documentation.

Contributing to project

Like in other open source projects, contributions are always welcome to this too! If you have some great ideas how to make this package better, feature requests etc., you can open an issue on gmshparser's issue tracker or contact me (ahojukka5 at gmail.com) directly.

Project details


Download files

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

Source Distribution

gmshparser-0.1.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

gmshparser-0.1.0-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file gmshparser-0.1.0.tar.gz.

File metadata

  • Download URL: gmshparser-0.1.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4

File hashes

Hashes for gmshparser-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7203453c3349172118612390bb76459ca2d90039ba60dda7cf950c418c73dc34
MD5 0e8f7a9eefd89e70b3d8c29db6dce927
BLAKE2b-256 5e842ec03c3f164b77228a6ece4104e7494a04b80901c66c76c40e904c55239c

See more details on using hashes here.

File details

Details for the file gmshparser-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gmshparser-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.4

File hashes

Hashes for gmshparser-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8d2529c850dbd308b559d33895b8814c078c07fc335cc988497648bf193a0e2a
MD5 dcfc489df7ee9ce89f6ba889e965bce7
BLAKE2b-256 2f5299ed6d18796ea9716a534ed08b650f8283a9f13f9d5c267ba4665ff78029

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page