lagrangian.Path¶
-
class
lagrangian.Path¶ Bases:
lagrangian.core.IntegrationHandles the movement of a particle using the Runge-Kutta method.
-
__init__(self: lagrangian.core.Path, start_time: lagrangian::DateTime, end_time: lagrangian::DateTime, delta_t: boost::posix_time::time_duration, field: lagrangian.core.Field) → None¶ Default constructor
- Parameters
start_time (datetime.datetime) – Start time of the integration
end_time (datetime.datetime) – End date of the integration
delta_t (datetime.timedelta) – Time interval
field (lagrangian.Field) – Field to use for computing the velocity of a point.
Methods
Path.compute(self, it, x0, y0)Calculate the new position of the particle
Path.fetch(self, date)Perform the tasks before a new time step (eg load grids required)
Path.iterator(self)Return an iterator that describes the integration period
-