38#ifndef FoamToEnsight_readFields_H
39#define FoamToEnsight_readFields_H
51template<
class GeoField>
55 const typename GeoField::Mesh&
mesh
63template<
class GeoField>
67 const typename GeoField::Mesh&
mesh
80template<
class GeoField>
83 const typename GeoField::Mesh&
mesh,
103 auto& df = tdf.ref();
110 std::move(df.field()),
114 tfield.ref().oriented() = df.oriented();
115 tfield.ref().correctBoundaryConditions();
137 auto& df = tdf.ref();
144 std::move(df.primitiveFieldRef(
false)),
148 tfield.ref().oriented() = df.oriented();
149 tfield.ref().correctBoundaryConditions();
static tmp< GeometricField< Type, fvPatchField, volMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const word &patchFieldType=fvPatchField< Type >::calculatedType())
List of IOobjects with searching and retrieving facilities. Implemented as a HashTable,...
const IOobject * findObject(const word &objName) const
Return const pointer to the object found by name.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling file names.
static const fileName null
An empty fileName.
static const word & zeroGradientType() noexcept
The type name for zeroGradient patch fields.
Registry of regIOobjects.
A class for managing temporary objects.
void clear() const noexcept
If object pointer points to valid object: delete object and set pointer to nullptr.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
A class for handling words, derived from Foam::string.
List< word > wordList
List of word.
GeometricField< Type, fvPatchField, volMesh > VolumeField
A volume field for a given type.
List< instant > instantList
List of instants.
label checkData(const objectRegistry &obr, const instantList &timeDirs, wordList &objectNames, const fileName &local=fileName::null)
Check if fields are good to use (available at all times).
DimensionedField< Type, volMesh > VolumeInternalField
A volume internal field for a given Type.
tmp< VolumeField< Type > > makeZeroGradientField(const tmp< VolumeInternalField< Type > > &tdf)
Convert an internal field to zero-gradient volume field.
tmp< GeoField > getField(const IOobject &io, const typename GeoField::Mesh &mesh)
Get the field or FatalError.