lagrangian.field.Python

class lagrangian.field.Python

Bases: lagrangian.core.Field

Class to implement a velocity field in Python

__init__(self: lagrangian.core.field.Python, self: object, unit_type: lagrangian.core.UnitType = UnitType.METRIC, coordinates_type: lagrangian.core.CoordinatesType = CoordinatesType.CARTESIAN) → None

Methods

Python.compute(self, t, x, y, cell)

Interpolates the velocity to the wanted spatio temporal position.

Python.fetch(self, first, last)

Loads the grids used to interpolate the velocities in the interval [first, last]

Python.unit(self)

Returns the unit used by this field :returns: unit used by this field :rtype: str

Attributes

Python.coordinate_type

Coordinate type used by this field.

Python.unit_type

Unit type used by this field.