Meshgen v0.2.11
This is a small tool to extract meshes from finite element solvers. In particular JCMsuite and COMSOL are supported.
Usage
for example run as
meshgen test/helix.jcm test/helix.msh
the input file is passed as the first argument, the output as the second
help is available
meshgen -h
usage: meshgen [-h] [-m {a,w,x,ab,wb,xb}] [-s] [--version] input output
convert between comsol, jcmsuite, and gmsh meshes
positional arguments:
input with extension jcm, mphtxt, or msh
output with extension jcm, mphtxt, or msh
options:
-h, --help show this help message and exit
-m, --mode {a,w,x,ab,wb,xb}
writing mode (binary only possible for .jcm files)
-s, --skip_1d skip writing 1D elements in 2D COMSOL meshes
--version show program's version number and exit
alternatively the library can also be used from within python
from meshgen import Mesh
meshes = Mesh.read(args.input)
Since we support submeshes this returns a list of meshes. This behavior will likely change in future versions of meshgen
Known limitations
Currently the following JCM features are not supported:
- curvilinear elements
- when using a post process to generate a JCM-ASCII export of the grid the displacement field for the curvilinear elements is placed at the end of the file.
meshgenis simply going to ignore the curvilinearity. - in binary files this doesn't seem to work
- when using a post process to generate a JCM-ASCII export of the grid the displacement field for the curvilinear elements is placed at the end of the file.
- in files that have subgrids we rely on comments in the mesh file to skip extraneous
Vertical Grids- these comments are not present in binary jcm files -> binary files with subgrids that have
Vertical Grids cannot be processed (the processing fails)
- these comments are not present in binary jcm files -> binary files with subgrids that have
Metadata
Release files for meshgen 0.2.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| meshgen-0.2.11.tar.gz | 156.8 kB | With provenance | Details for meshgen-0.2.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| meshgen-0.2.11-py3-none-any.whl | Python 3 | none | any | Details for meshgen-0.2.11-py3-none-any.whl |
Total release size: 176.1 kB
Release files / meshgen-0.2.11.tar.gz
| Download URL | meshgen-0.2.11.tar.gz |
|---|---|
| Size | 156.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
18384c7632f6c23caa18eae68aeec4d204230b6bfa6cf5a5c7b2db31126f6dbf
|
|
BLAKE2b-256 checksum How to use checksums |
57bf52285fad1d94958795426102eb50c547e3f03d1ebe85aa16398003c7c089
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 12, 2026.
Transparency logRelease files / meshgen-0.2.11-py3-none-any.whl
| Download URL | meshgen-0.2.11-py3-none-any.whl |
|---|---|
| Size | 19.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b02c435333169192b8df9c2dabe279879564ebb66e43a32c57d4c20247a41412
|
|
BLAKE2b-256 checksum How to use checksums |
fd35f54bde8af3641f56154dc574fc3287701196fe1560608e468880aad367b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 12, 2026.
Transparency logSecurity for meshgen 0.2.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for meshgen-0.2.11.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 12, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.