A python writer for SeisSol xdmf output
Project description
seissolxdmfwriter
Functions to write seissol outputs readable by paraview.
import seissolxdmfwriter as sxw
import seissolxdmf as sx
fn = 'test-fault.xdmf'
# Read data from input file using seissolxdmf
sx = sx.seissolxdmf(fn)
geom = sx.ReadGeometry()
connect = sx.ReadConnect()
dt = sx.ReadTimeStep()
SRs = sx.ReadData('SRs')
SRd = sx.ReadData('SRs')
SR = np.sqrt(SRs**2 + SRd**2)
# Write the 0,4 and 8th times steps of array SRs and SR in SRtest-fault.xdmf/SRtest-fault.h5
sxw.write_seissol_output('test-fault', geom, connect, ['SRs', 'SR'], [SRs, SR], dt, [0, 4, 8])
Project details
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 seissolxdmfwriter-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31397e4e8531b8d8589c6625ca4fcfdef6171521e6b4d8a16c9f1fbefbe5eb47 |
|
MD5 | 5ef5c4cdbbfcffab37a15d673308f63a |
|
BLAKE2b-256 | c2b5b0818a8f43cc19781a2692410baca7fb66918920a747c372db04df10623f |