seissolxdmf
A python reader for SeisSol xdmf output (posix or hdf5) and hdf5 meshes. Below is an simple example, illustrating the use of the module:
import seissolxdmf
fn = 'test-fault.xdmf'
# initiate class
sx = seissolxdmf.seissolxdmf(fn)
# Number of cells
nElements = sx.ReadNElements()
# Number of vertices
nNodes = sx.ReadNNodes()
# Number of nodes per elements
nodesPerElement = sx.ReadNodesPerElement()
# Read time step
dt = sx.ReadTimeStep()
# Read number of time steps
ndt = sx.ReadNdt()
# Returns a list of the output time values
outputTimes = sx.ReadTimes()
# load geometry array as a numpy array of shape ((nodes, 3))
geom = sx.ReadGeometry()
# load connectivity array as a numpy array of shape ((nElements, 3 or 4))
# The connectivity array gives for each cell a list of vertex ids.
connect = sx.ReadConnect()
# Check, whether variable "SRs" exists in the SeisSol output
assert "SRs" in sx.ReadAvailableDataFields()
# load SRs as a numpy array of shape ((ndt, nElements))
SRs = sx.ReadData('SRs')
# load the 9th time step of the SRs array as a numpy array of shape (nElements)
SRs = sx.ReadData('SRs', 8)
Release files for seissolxdmf 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| seissolxdmf-0.1.4.tar.gz | 5.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| seissolxdmf-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.7 kB
Release files / seissolxdmf-0.1.4.tar.gz
| Download URL | seissolxdmf-0.1.4.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9ee8dc7efc03750c4823b15f237611154bdd69696cd2426c6cf96080fefff61c
|
|
BLAKE2b-256 checksum How to use checksums |
e9f582c393c736eb58a8905d5c8229e8d390883362c46780fd412fbb3c4cd864
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.6
|
Release files / seissolxdmf-0.1.4-py3-none-any.whl
| Download URL | seissolxdmf-0.1.4-py3-none-any.whl |
|---|---|
| Size | 6.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
505b2917aa6fd11cd2dac21462e2597d906e31a7be977aae787aad8227f83d14
|
|
BLAKE2b-256 checksum How to use checksums |
fafb354bd9a457297eca1671edae8f18021834633936e04edece1efe501daff2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.6
|