Metadata-Version: 2.1
Name: seissolxdmf
Version: 0.0.9
Summary: A python reader for SeisSol xdmf output
Home-page: https://github.com/SeisSol/Visualization/seissolxmdf
Author: SeisSol Group
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

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:
```python
import seissolxdmf
fn = 'test-fault.xdmf'
# initiate class
sx = seissolxdmf.seissolxdmf(fn)
# Number of cells
nElements = sx.ReadNElements()
# Read time step
dt = sx.ReadTimeStep()
# Read number of time steps
ndt = sx.ReadNdt()
# 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()
# load SRs as a numpy array of shape ((ndt, nElements))
SRs = sx.ReadData('SRs')
# load the 8th time ste of the SRs array as a numpy array of shape (nElements)
SRs = sx.ReadData('SRs', 8)
```


