ibfoamrig.io.read_residuals#

ibfoamrig.io.read_residuals(path)[source]#

Reads a residuals file written by the OpenFOAM residuals function object.

Parameters:

path (StrPath) – Path to the residuals.dat file.

Returns:

A frame with a Time column followed by one column per residual, all of type Float64.

Raises:
  • FileNotFoundError – If the file does not exist.

  • FoamParseError – If the header is missing, or a row is longer than the header or holds a value that is not a number.

Return type:

DataFrame