Skip to main content

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

seissolxdmfwriter-0.0.1-py3-none-any.whl (4.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page