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. |
|
|
|
Inherited from WavePropagationPy.WavePropagation:
getParticleDataIdList,
setParticleDataIdList,
writeParticleDataToFile
Inherited from LsmPy.LsmMpi:
__reduce__,
addPostTimeStepRunnable,
addPreTimeStepRunnable,
applyForceToWall,
createCheckPointer,
createCheckPointerWriteThroughMaster,
createConnections,
createDamping,
createExclusion,
createFieldSaver,
createGravity,
createInteractionGroup,
createInteractionGroupTagged,
createParticle,
createRestartCheckPointer,
createTriMesh,
createWall,
exit,
findClosestParticle,
force2dComputations,
getLsmVersion,
getNumParticles,
getNumTimeSteps,
getNumWorkerProcesses,
getParticleList,
getParticlePosn,
getParticleType,
getTimeStep,
getTimeStepSize,
getWallForce,
getWallPosition,
getWorkerSpawnCmd,
initNeighbourSearch,
initVerletModel,
loadCheckPoint,
moveParticleTo,
moveSingleMeshNodeBy,
moveTaggedParticlesBy,
moveWallBy,
readGeometry,
readMesh,
readMesh2D,
removeInteractionGroup,
run,
runTimeStep,
setNumTimeSteps,
setParticleAngularVelocity,
setParticleDensity,
setParticleNonDynamic,
setParticleNonRotational,
setParticleVelocity,
setSlaveTimingFileName,
setSpatialDomain,
setTaggedParticleVelocity,
setTimeStepSize,
setTimingFileName,
setVelocityOfWall,
setVerbosity,
setWallNormal,
tagParticleNearestTo,
translateMeshBy,
visitNodeRefs2d,
visitParticlesWithId,
visitRefStressPairs2d
Inherited from unreachable.instance:
__new__
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|