A python reader for SeisSol xdmf output
Project description
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 as sx
fn = 'test-fault.xdmf'
# Number of cells
nElements = sx.ReadNElements(fn)
# Read time step
dt = sx.ReadTimeStep(fn)
# Read number of time steps
ndt = sx.ReadNElements(fn)
# load geometry array as a numpy array of shape ((nodes, 3))
geom = sx.ReadGeometry(fn)
# 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(fn)
# load SRs as a numpy array of shape ((ndt, nElements))
SRs = sx.ReadData(fn, 'SRs')
# load the 8th time ste of the SRs array as a numpy array of shape (nElements)
SRs = sx.ReadData(fn, 'SRs', 8)
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for seissolxdmf-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16832df1696af6e3bf3f64bd857065f826bd65e18c47fffc28ccc784ffc2ae0f |
|
MD5 | 6d7a300791d4fde5e0a549031f8b7d36 |
|
BLAKE2b-256 | 41bd4d908c15a2d89061e90470d1e5a715ed8a3f9e1875af10aebd03e1712d97 |