esys :: lsm :: sim :: WavePropagation :: WaveSource :: Class WaveSource
[hide private]
[frames] | no frames]

Class WaveSource

Runnable --+
           |
          WaveSource

Helper class which moves a source particle during each time step.

Instance Methods [hide private]
 
__init__(self, prms, lsm)
Constructs the source Runnable.
 
getLsm(self)
 
getPrms(self)
 
getParticleId(self)
 
getInitialPosn(self)
 
run(self)
Method Details [hide private]

__init__(self, prms, lsm)
(Constructor)

 

Constructs the source Runnable.

Parameters:
  • prms - object which governs the source particle trajectory. This object is expected to define a getPosn(t) method which returns a relative position for time t, and also define a getInitialPosn() method which returns the location of the source disturbance.
  • lsm (esys.lsm.sim.WavePropagation.WavePropagation) - a WavePropagation lattice solid model object. A source particle in this model is moved according to the trajectory specifed by the prms argument.