Add your description here
Project description
Meshgen v0.2.10
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
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file meshgen-0.2.10.tar.gz.
File metadata
- Download URL: meshgen-0.2.10.tar.gz
- Upload date:
- Size: 156.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f57fdda1741b65136c6683a42ae3f906dba57bcd3aaf4951e126afc25fc549fc
|
|
| MD5 |
e60c6b87367f476e8070289b64861a02
|
|
| BLAKE2b-256 |
b07047a8ac36c9cc57be549e6bf3f3c67cf5d44e19b23c22d6c57e95873f4aeb
|
Provenance
The following attestation bundles were made for meshgen-0.2.10.tar.gz:
Publisher:
release.yml on tfp-photonics/meshgen
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
meshgen-0.2.10.tar.gz -
Subject digest:
f57fdda1741b65136c6683a42ae3f906dba57bcd3aaf4951e126afc25fc549fc - Sigstore transparency entry: 945079492
- Sigstore integration time:
-
Permalink:
tfp-photonics/meshgen@96de76fcbef59e75f4b5acdbcdc84bec73a98506 -
Branch / Tag:
refs/tags/v0.2.10 - Owner: https://github.com/tfp-photonics
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@96de76fcbef59e75f4b5acdbcdc84bec73a98506 -
Trigger Event:
push
-
Statement type:
File details
Details for the file meshgen-0.2.10-py3-none-any.whl.
File metadata
- Download URL: meshgen-0.2.10-py3-none-any.whl
- Upload date:
- Size: 18.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09a8e10e29af305c09b5c383754dd33ffd4393bfa60cbd62d6fd7c0e3c1220e4
|
|
| MD5 |
948b9b3c99be1776943a0d950979caa5
|
|
| BLAKE2b-256 |
fcb7a3ab6559e27e3786833e913dfd286f931934728a73eb8194f83af0676eb2
|
Provenance
The following attestation bundles were made for meshgen-0.2.10-py3-none-any.whl:
Publisher:
release.yml on tfp-photonics/meshgen
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
meshgen-0.2.10-py3-none-any.whl -
Subject digest:
09a8e10e29af305c09b5c383754dd33ffd4393bfa60cbd62d6fd7c0e3c1220e4 - Sigstore transparency entry: 945079547
- Sigstore integration time:
-
Permalink:
tfp-photonics/meshgen@96de76fcbef59e75f4b5acdbcdc84bec73a98506 -
Branch / Tag:
refs/tags/v0.2.10 - Owner: https://github.com/tfp-photonics
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@96de76fcbef59e75f4b5acdbcdc84bec73a98506 -
Trigger Event:
push
-
Statement type: