ibfoamrig.io.read_field#
- ibfoamrig.io.read_field(path)[source]#
Reads the internal field of an OpenFOAM field file.
- Parameters:
path (StrPath) – Path to the field file, e.g.
case/3000/U.- Returns:
The parsed internal field.
- Raises:
FileNotFoundError – If the file does not exists.
FoamParseError – If the file is not a valid OpenFOAM field file or its internal field holds an unsupported type.
- Return type: