Convert Salomé-Meca MED meshes and Code_Aster .comm files into NumPy-ready Python data.
Project description
SalomeToPython
CLI that converts a Salomé-Meca MED mesh plus its matching Code_Aster .comm file into NumPy-friendly Python arrays (node, elem, mater, pdof, nodf, etc.).
Installation
python -m pip install --user --break-system-packages .
This installs the console script SalomeToPython. (In constrained environments you can also run it via python main.py ... without installing.)
Usage
SalomeToPython [-m] [-b] [-o output.py] path/to/case.med path/to/case.comm
-m,--mater— include the material matrix parsed fromDEFI_MATERIAU(AFFE_MATERIAUmust map groups to materials).-b,--boundary— include prescribed DOFs (pdof) and nodal loads (nodf) derived fromDDL_IMPO/FORCE_FACE.-o,--output— optional destination file (defaults to<case_folder>.py).
Without -m or -b, the generator writes only node, elem, eltp, and bc_method, skipping the more expensive parsing steps automatically.
Development
Install deps once (if you are not using the packaged CLI):
python -m pip install --break-system-packages meshio h5py
Then run the tool directly:
python main.py -m -b Input/DoubleCubeCase.med Input/DoubleCubeCase.comm
Project details
Release history Release notifications | RSS feed
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 salome_to_python-0.1.0.tar.gz.
File metadata
- Download URL: salome_to_python-0.1.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ab2e52d197752f4eec8ae9336b3acc841c0f61dfb5627f4df3936adf9a4e0f5
|
|
| MD5 |
86ed13045de25e10c28085f0748c8750
|
|
| BLAKE2b-256 |
0f5ef16fa4a26d1576565def28a754130ec6557c36bc39da48f2957a343bfb44
|
File details
Details for the file salome_to_python-0.1.0-py3-none-any.whl.
File metadata
- Download URL: salome_to_python-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3da80f0ef782b550b89c205eecdab466be7e10b333c9f4e7516631efcad676af
|
|
| MD5 |
995e300653c560d239bf2ca0195e5198
|
|
| BLAKE2b-256 |
f51870750f41c97841a3647802131003663f38694145102e970e0c61ef027482
|