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

Class MyLinearSineSourcePrms

??-118 --+
         |
        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.10,0])
Initialises trajectory parameters.
Vec3
getPosn(self, t)
Returns the position of the disturbance at the specified time.
Method Details [hide private]

__init__(self, posn, startTime=0.5, freq=0.02, magnitude=[0,0.10,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.

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.