femmreader
Femmreader is a parser to read files from the Finite Element Software femm.
Following files are supported. Model files:
- *.fem (Magnetics problem)
- *.fee (Electrostatics problem)
- *.fec (Current flow problem)
- *.feh (Heat flow problem)
Result files:
- *.ans (Result file of magnetics problem)
- *.anc (Result file of current flow problem)
- *.res (Result file of electrostatics problem)
- *.anh (Result file of heat flow problem)
Installation
femmreader is a pure python package with no dependencies. Install via
pip install femmreader
Usage
Let's have a look on a very basic example.
Read the file with
imoprt femmreader
data = femmreader.read("EI-core.FEM")
print(data.keys())
>>> dict_keys(['Format', 'Frequency', 'Precision', 'MinAngle', 'DoSmartMesh', 'Depth', 'LengthUnits', 'ProblemType', 'Coordinates', 'ACSolver', 'PrevType', 'PrevSoln', 'Comment', 'BdryProps', 'BlockProps', 'CircuitProps', 'NumPoints', 'NumSegments', 'NumArcSegments', 'NumHoles', 'NumBlockLabels'])
print(data['Depth'])
>>> 20
The same for result files:
data = femmreader.read("EI-core.ans")
print(data.keys())
>>> dict_keys(['Format', 'Frequency', 'Precision', 'MinAngle', 'DoSmartMesh', 'Depth', 'LengthUnits', 'ProblemType', 'Coordinates', 'ACSolver', 'PrevType', 'PrevSoln', 'Comment', 'BdryProps', 'BlockProps', 'CircuitProps', 'NumPoints', 'NumSegments', 'NumArcSegments', 'NumHoles', 'NumBlockLabels', 'Solution'])
print(data['Solution'].keys())
>>> dict_keys(['xpos', 'ypos', 'sol_real', 'sol_imag', 'solution', 'elements', 'block_labels'])
Metadata
Release files for femmreader 1.0.0
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 |
|---|---|---|---|---|
| femmreader-1.0.0.tar.gz | 4.7 kB | Without provenance | Details for femmreader-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| femmreader-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for femmreader-1.0.0-py3-none-any.whl |
Total release size: 9.7 kB
Release files / femmreader-1.0.0.tar.gz
| Download URL | femmreader-1.0.0.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f45cecc75096301b7afe66d79a5775201f48c1dcd464b83ba43305a116972a2
|
|
BLAKE2b-256 checksum How to use checksums |
f2ded194eee2c45a49c3b73b07c3fc3ec1ae8a2c021727b4a96fbe6471497420
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / femmreader-1.0.0-py3-none-any.whl
| Download URL | femmreader-1.0.0-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
efababd4e733195ec11fba4b25ab88ad66b5550f1cea63990366ec6acd35cba3
|
|
BLAKE2b-256 checksum How to use checksums |
b71ea02298ff5c1c81ed9a14151d7ae269c95eb0215bd4b360b069f2146618bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for femmreader 1.0.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.