Wrapper class for 2D and 3D wave propagation simulation.
|
__init__(self,
options=None)
Initialises simulation parameters. |
|
|
|
is3d(self)
Returns True if this is a 3D simulation (ie whether
(self.particlesPerDim[2] > 1). |
|
|
|
is2d(self)
Returns True if this is a 3D simulation (ie (not self.is3d()). |
|
|
|
|
|
getParticleBlock(self)
Returns the collection/sequence of particles which represent an
elastic block. |
|
|
BoundingBox
|
getParticleBBox(self)
Returns bounding box of the elastic block of particles. |
|
|
|
tagBoundaryParticles(self)
Tags outer boundary particles so they can be bonded to fixed walls. |
|
|
|
createLsmWaveSim(self)
Create the uninitialised wave propagation model ie the WavePropagation object. |
|
|
|
|
|
createParticles(self)
Create initial configuration of particles in the model |
|
|
|
createBonds(self)
Creates linear elastic bonds between particles. |
|
|
|
createSource(self)
Create the source disturbance which generates the wave. |
|
|
|
createBoundaryWalls(self)
Create the walls and the elastic bonds between walls and the tagged
particles, leave the maximum y side as a free surface (no elastic
wall). |
|
|
|
createLineOfSeismos(self,
pt1,
pt2,
srcPt,
numSeismos,
fileNamePrefix)
Create a line of seismographs through the particle block, between two
specified points. |
|
|
|
createSeismographs(self)
Creates lines of seismographs through the particle block |
|
|
list of particle ids
|
getOutputParticleIdList(self)
Returns a list of particle ids, particles with id in this list have
their position and displacement data written to file. |
|
|
|
runTimeSteps(self)
Runs the model for self.maxNumTimeSteps time steps. |
|
|
|
runSim(self)
Sets up wave propagation model and executes simulation. |
|
|