lagrangian.Path

class lagrangian.Path

Bases: lagrangian.core.Integration

Handles 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

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