38 #ifndef ensight_readFields_H 39 #define ensight_readFields_H 51 template<
class GeoField>
55 const typename GeoField::Mesh&
mesh 63 template<
class GeoField>
67 const typename GeoField::Mesh&
mesh 80 template<
class GeoField>
83 const typename GeoField::Mesh&
mesh,
98 const tmp<VolumeInternalField<Type>>& tdf
103 auto& df = tdf.ref();
110 std::move(df.field()),
114 tfield.ref().oriented() = df.oriented();
115 tfield.ref().correctBoundaryConditions();
132 const tmp<VolumeField<Type>>& tdf
137 auto& df = tdf.ref();
144 std::move(df.primitiveFieldRef(
false)),
148 tfield.ref().oriented() = df.oriented();
149 tfield.ref().correctBoundaryConditions();
167 const objectRegistry& obr,
static const word & zeroGradientType() noexcept
The type name for zeroGradient patch fields.
List of IOobjects with searching and retrieving facilities. Implemented as a HashTable, so the various sorted methods should be used if traversing in parallel.
static const fileName null
An empty fileName.
A class for handling words, derived from Foam::string.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
const IOobject * findObject(const word &objName) const
Return const pointer to the object found by name.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const word &patchFieldType=PatchField< Type >::calculatedType())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensions and patch type. [Takes current timeN...
tmp< GeoField > getField(const IOobject &io, const typename GeoField::Mesh &mesh)
Get the field or FatalError.
tmp< VolumeField< Type > > makeZeroGradientField(const tmp< VolumeInternalField< Type >> &tdf)
Convert an internal field to zero-gradient volume field.
List< word > wordList
List of word.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, IOobject::NO_REGISTER)
A class for managing temporary objects.
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)
Defines the attributes of an object for which implicit objectRegistry management is supported...