Wave propagation model, extends the
esys.lsm.sim.WavePropagationPy.WavePropagation by providing convenient
methods for saving data, creating partices/bonds and creating
seismographs.
|
__init__(self,
domainBox,
numWorkerProcesses=2,
mpiDimList=[0,0,0],
do2d=False,
timeStepSize=0.05,
dampingViscosity=0.0)
Initialise a wave propagation model. |
|
|
|
|
|
createBonds(self,
connections,
tagBondPrmDict)
Creates elastic bonds between particles. |
|
|
|
addSource(self,
source)
Add a source disturbance to the model. |
|
|
|
createSource(self,
prm)
Creates a propagation source (a WaveSource object) within the model. |
|
|
float
|
getTime(self)
Returns simulation time value (simply number of time steps multiplied
by the time step size). |
|
|
|
createSources(self,
sourcesPrms)
Creates multiple propagation sources. |
|
|
|
createSeismographGroup(self,
posnIteratable,
fileNamePrefix,
sourcePosn)
Creates a group of seismographs (a SeismographGroup obect) from a
specified sequence of spatial locations. |
|
|
|
saveSeismoData(self)
Appends seismograph data to file for the current time step. |
|
|
|
writeReorderedRecordSectionData(self)
Reads time-ordered record-section data from file and writes a
distance-from-source ordered file. |
|
|
|
getParticleDataFileName(self,
idx,
fileNamePrefix)
Returns the name of the file where particle data is saved for the
specifed index. |
|
|
|
writeParticleDataOrig(self,
idList,
index,
fileNamePrefix="particle_")
Pure python-implemented version of saving particle displacement data,
the C++ implementation provided by
esys.lsm.sim.WavePropagation.WavePropagation class is faster. |
|
|
|
writeParticleData(self,
index,
fileNamePrefix="particle_")
Writes particle displacement and velocity data to file. |
|
|