fix-slf-mesh-ot
Fix missing IPOBO (boundary node index) records in SERAFIN (.slf) mesh files generated by q4ts. Patches the binary file in-place by reading boundary node numbers from a .cli file.
Installation
pip install fix-slf-mesh-ot
Usage
fix-slf-mesh-ot mesh.slf boundary.cli
How it works
find_ipobo_offset— Parses the SERAFIN binary format (tries big/little endian) to locate the IPOBO record offset. Walks the header: title → variable count → variable names → params → geometry (NELEM, NPOIN, NDP) → IKLE → IPOBO position.fix_ipobo— Reads the.clifile to build a boundary-node-to-index mapping, then writes the IPOBO array at the found offset via a temp file +os.replace.
The SERAFIN format uses Fortran-style records (4-byte length prefix/suffix around each data block).
License
MIT
Metadata
Release files for fix-slf-mesh-ot 0.1.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 | |
|---|---|---|---|
| fix_slf_mesh_ot-0.1.0.tar.gz | 5.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fix_slf_mesh_ot-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.3 kB
Release files / fix_slf_mesh_ot-0.1.0.tar.gz
| Download URL | fix_slf_mesh_ot-0.1.0.tar.gz |
|---|---|
| Size | 5.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8be79559a6d4486fca589a77db80ad5c06a37d99640bd610ed71895bf9eff8f
|
|
BLAKE2b-256 checksum How to use checksums |
651158399ea33203aeebb8671759c5d4e79da0093917da2b079d8ad6c8e33b9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / fix_slf_mesh_ot-0.1.0-py3-none-any.whl
| Download URL | fix_slf_mesh_ot-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
43df7c9e22ee6af4becdc562a536b94288b4eacc8580ad675fc42b8f8d78da17
|
|
BLAKE2b-256 checksum How to use checksums |
406e2a38da4dd2e8ff58d058c80c0051bbd8bf24dd53bd5678287375747ea96e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|