ibfoamrig.core.InterpolationData#
- class ibfoamrig.core.InterpolationData(frame)[source]#
Bases:
objectIBM interpolation info for each boundary cell.
Built from
interpolationInfo_boundary.datand joined with the cell centres, sox, y, zhold the centre of the boundary cell.- classmethod from_file(path, cells)[source]#
Loads interpolation info and joins the boundary cell centres.
- Parameters:
- Returns:
The interpolation data, one row per boundary cell.
- Raises:
FileNotFoundError – If the file does not exist.
ValueError – If a boundary cell is missing from
cells, or the file lacks required columns.
- Return type:
- points(index)[source]#
Returns one interpolation point of every boundary cell.
- Parameters:
index (int) – Index of the point, 0 being the point on the surface.
- Returns:
A frame with
cellI,x, y, zof the point and, if presentintCell, the cell the solver interpolates from.- Raises:
IndexError – If
indexis out of range.- Return type: