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 Distribution

seissolxdmfwriter-0.2.0.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file seissolxdmfwriter-0.2.0.tar.gz.

File metadata

  • Download URL: seissolxdmfwriter-0.2.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for seissolxdmfwriter-0.2.0.tar.gz
Algorithm Hash digest
SHA256 fe1203d2f6bf7befb8d37117c9d5ac6c54406ac5ccea30b7878a949593340678
MD5 15bfe4dca958f127ae8b6ccd6bdee468
BLAKE2b-256 e735da9c894f0584bb7270dd8a07db52ec573d818318ebc775200d85cc5e1d61

See more details on using hashes here.

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