ibfoamrig.io.FoamField#
- class ibfoamrig.io.FoamField(header, dimensions, values, is_uniform)[source]#
Bases:
objectThe internal field of an OpenFOAM volume field.
The
valuesarray is read-only.- Variables:
header (ibfoamrig.io.foam_file.FoamHeader) – Metadata from the
FoamFiledictionary.dimensions (ibfoamrig.io.foam_file.Dimensions) – SI exponents from the
dimensionsentry.values (numpy.ndarray[tuple[Any, ...], numpy.dtype[numpy.float64]]) – Cell values with shape
(n,)for scalar fields or(n, components)otherwise. For a uniform field,nis 1.is_uniform (bool) – True if the file stores a single value for all cells.