API reference#

ibfoamrig.core

Cases, data containers, time directories and sampling.

ibfoamrig.io

Readers that turn OpenFOAM output files into arrays and polars frames.

ibfoamrig.plot

Plotting functions for ibfoamrig data.

ibfoamrig.exceptions

Exceptions raised by ibfoamrig.

Type aliases#

Type aliases used in the ibfoamrig API.

type ibfoamrig.typing.Distribution = Literal['org', 'com']#

OpenFOAM distribution, "org" (Foundation, e.g. v8) or "com" (ESI, e.g. v2312).

type ibfoamrig.typing.Method = Literal['linear', 'nearest', 'delaunay']#

Interpolation method accepted by the sampling methods.

type ibfoamrig.typing.Point = tuple[float, float, float]#

Spatial coordinates of a cell.

type ibfoamrig.typing.Points = Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str] | DataFrame#

Sample points given as an (m, 3) array, a single point, or a frame with x, y, z columns.

type ibfoamrig.typing.StrPath = str | PathLike[str]#

A filesystem path given either as a string or a path-like object.

type ibfoamrig.typing.TimeSpec = str | float#

Time directory given as "latest", a directory name such as "3000", or a time value such as 0.5.