Package esys :: Package lsm :: Package examples :: Package waveprop :: Module WaveSim :: Class MyLinearSineSourcePrms
[hide private]
[frames] | no frames]

Class MyLinearSineSourcePrms

sim.WavePropagation.SourcePrms --+
                                 |
                                MyLinearSineSourcePrms

Objects define linear spatial trajectory (sinusoidal time-frequency) for a particle-source-disturbance.

Instance Methods [hide private]
 
__init__(self, posn, startTime=0.5, freq=0.02, magnitude=[0, 0.1, 0])
Initialises trajectory parameters.
Vec3
getPosn(self, t)
Returns the position of the disturbance at the specified time.

Inherited from sim.WavePropagation.SourcePrms: getInitialPosn

Method Details [hide private]

__init__(self, posn, startTime=0.5, freq=0.02, magnitude=[0, 0.1, 0])
(Constructor)

 

Initialises trajectory parameters.

Parameters:
  • posn (Vec3) - The approx location of the source-disturbance.
  • startTime (float) - The time at which the disturbance begins.
  • freq (float) - The: frequency of the sinusoidal disturbance.
  • magnitude (Vec3) - The direction and maximum displacement of the source.
Overrides: sim.WavePropagation.SourcePrms.__init__

getPosn(self, t)

 

Returns the position of the disturbance at the specified time.

Parameters:
  • t (float) - Time for which position is returned.
Returns: Vec3
Position of disturbance at time t.
Overrides: sim.WavePropagation.SourcePrms.getPosn