lagrangian.Triplet¶
-
class
lagrangian.Triplet¶ Bases:
lagrangian.core.PositionDefine the position of 3 points
-
__init__(*args, **kwargs)¶ Overloaded function.
__init__(self: lagrangian.core.Triplet) -> None
__init__(self: lagrangian.core.Triplet, x: float, y: float, delta: float, start_time: lagrangian::DateTime, spherical_equatorial: bool = True) -> None
Construct a new object defining the position of the 3 points
- Parameters
x (float) – Longitude of the initial point
y (float) – Latitude of the initial point
delta (float) – Initial separation in degrees of neighboring
start_time (datetime.datetime) – Advection starting time particles
spherical_equatorial (bool) – True if the coordinates system is Lon/lat otherwise false
Methods
Triplet.compute(self, rk4, it, cell)To move a particle with a velocity field.
Triplet.max_distance(self)Compute the distance max
Triplet.strain_tensor(self)Triplet.xi(self)Returns the x-axis of the point
Triplet.yi(self)Returns the y-axis of the point
Attributes
Test if the integration is over
True if the integration is complete.
Returns the time at the end of the integration
-