xdmf_dolfin_fix
There is an xdmf import issue in FEniCS/DOLFIN. Quadratic triangles and tetrahedrons
are imported incorrectly. The CLI tool xdmf-dolfin-fix fixes this issue by reordering element numbers.
Example usage
xdmf-dolfin-fix old.xdmf # fix old.xdmf
xdmf-dolfin-fix old.xdmf new.xdmf # create fixed new.xdmf
xdmf-dolfin-fix old.geo -d3 # create fixed old.xdmf from gmsh
xdmf-dolfin-fix old.msh new.xdmf # create fixed new.xdmf from gmsh
Problem
At some point of the simulation FEniCS/DOLFIN orders the vertices of all elements in numerically accending order. Nodes on the edges of elements -- as present in quadratic triangles and quadratic tetrahedrons -- are not swapped.
So internally, the node numbers of an arbitrary quadratic tetrahedron
[ vertices | edges ]
[ 51 74 12 | 14 72 1003 ]
would be reordered to
[ 12 51 74 | 14 72 1003 ]
Now, the vertex nodes [12 51 74] are sorted, but the edge nodes [14 72 1003]
are left unchanged. This results in a twisted geometry.
Fix
xdmf-dolfin-fix sorts the vertex nodes and reorders the edge nodes accordingly. This
will result in
[ 12 51 74 | 1003 14 74 ]
A further sorting within DOLFIN has no effect and, thus, will not mess up this ordering.
Metadata
Release files for xdmf-dolfin-fix 0.6.2
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 |
|---|---|---|---|---|
| xdmf-dolfin-fix-0.6.2.tar.gz | 6.1 kB | Without provenance | Details for xdmf-dolfin-fix-0.6.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xdmf_dolfin_fix-0.6.2-py3-none-any.whl | Python 3 | none | any | Details for xdmf_dolfin_fix-0.6.2-py3-none-any.whl |
Total release size: 15.5 kB
Release files / xdmf-dolfin-fix-0.6.2.tar.gz
| Download URL | xdmf-dolfin-fix-0.6.2.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1dda5a4216fa45af859d14668cb57be74168fd38ba3b95bd1bd534f3f37ac928
|
|
BLAKE2b-256 checksum How to use checksums |
f781be8f722d5d313168fbbadae48c5d246ec8b5ac6d7c239211a2711e7ab7f8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.7.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2
|
Release files / xdmf_dolfin_fix-0.6.2-py3-none-any.whl
| Download URL | xdmf_dolfin_fix-0.6.2-py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e6f347f4cbaee42d94d10c6f19b0f80a53f0896c6afff9bc4697edc8d87394c2
|
|
BLAKE2b-256 checksum How to use checksums |
1ef42c11a4d564e306154645cff55630e70b0126a52dcd85ad2c96784d0a85ef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.20.0 setuptools/40.7.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2
|
Security for xdmf-dolfin-fix 0.6.2
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.