ibfoamrig.core#

Cases, data containers, time directories and sampling.

Classes

CaseManager([cases])

A read-only mapping from case labels to cases, in insertion order.

FieldData(frame)

Cell values of one or more fields together with the cell centres.

FieldStats(cells, mean, min, max)

Summary statistics of a field over a subset of cells.

FoamCase(path[, label, distribution])

An OpenFOAM case directory.

InterpolationData(frame)

IBM interpolation info for each boundary cell.

ResidualData(frame)

Solver residuals over the iterations or time steps of a run.

Sampler(centres, values, *[, names, ids, ...])

Evaluates cell-centered values at arbitrary points.

TimeDirectory(name, value, path)

A time directory of an OpenFOAM case.

Functions

find_time(case_path, time)

Finds the time directory for a given time.

latest_time(case_path, *[, no_zero])

Finds the latest time directory of a case.

line_points(start, end, count)

Places evenly spaced points on a line segment.

list_times(case_path, *[, no_zero])

Lists the time directory of a case in ascending order.