No project description provided
Project description
gmshparser is a lightweight and well-tested package that aims to reliably parse the Gmsh ascii file format (.msh). The package does not introduce any external dependencies and thus fits well with the needs of your own FEM research code.
Home-page: https://github.com/ahojukka5/gmshparser Author: Jukka Aho Author-email: ahojukka5@gmail.com License: UNKNOWN Description: # gmshparser - parse Gmsh .msh file format
[![Build Status][travis-img]][travis-url] [![Coverate Status][coveralls-img]][coveralls-url] [![Documentation Status][documentation-img]][documentation-url]
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/](https://gmshparser.readthedocs.io/)
## Installing package
Using pip:
`bash pip install gmshparser `
## Usage
To read mesh into Mesh object, use command parse:
`python >>> 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](https://gmshparser.readthedocs.io/).
## 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][issues] or contact me (ahojukka5 at gmail.com) directly.
[travis-img]: https://travis-ci.com/ahojukka5/gmshparser.svg?branch=master [travis-url]: https://travis-ci.com/ahojukka5/gmshparser [coveralls-img]: https://coveralls.io/repos/github/ahojukka5/gmshparser/badge.svg?branch=master [coveralls-url]: https://coveralls.io/github/ahojukka5/gmshparser?branch=master [documentation-img]: https://readthedocs.org/projects/gmshparser/badge/?version=latest [documentation-url]: https://gmshparser.readthedocs.io/en/latest/?badge=latest [issues]: https://github.com/ahojukka5/gmshparser/issues [gmsh]: https://gmsh.info/
Platform: UNKNOWN Classifier: Programming Language :: Python :: 3 Classifier: License :: OSI Approved :: MIT License Classifier: Operating System :: OS Independent Description-Content-Type: text/markdown Provides-Extra: test
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
Built Distribution
File details
Details for the file gmshparser-0.1.1.tar.gz
.
File metadata
- Download URL: gmshparser-0.1.1.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 11a10c0823be0fb073e963733771b5def905af1b5b04fbf05086d4737c583a17 |
|
MD5 | d72e37f15f81bfa3e87c9e56cc25530e |
|
BLAKE2b-256 | b438dfa20492b86da2cf8a35aeeadc483372ec43a08a81520950c3e545b56d33 |
File details
Details for the file gmshparser-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: gmshparser-0.1.1-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | af3de2473ca8b93a2a6baa69a194fe9367b1b428d27968428107df7bf393c6fd |
|
MD5 | 7aca521ea4274d5845775674ef2ae53d |
|
BLAKE2b-256 | 679346637e718879350653a493042625c310ef48a203237f1c8bf463ffb0868b |