45 template<
class GeoField>
61 if (!geometryFields.
found(iter()->
name()))
63 curFields.
set(i++, iter());
72 template<
class GeoField>
88 if (!geometryFields.
found(iter()->
name()) && !iter()->isOldTime())
90 curFields.
set(i++, iter());
108 db().template lookupObject
116 template<
class Type,
template<
class>
class GeoField>
117 void Foam::fvMesh::storeOldTimeFields()
123 curFields[i].storeOldTimes();
128 template<
template<
class>
class GeoField>
129 void Foam::fvMesh::storeOldTimeFields()
131 #define StoreOldTimeFields(Type, nullArg) \
132 storeOldTimeFields<Type, GeoField>();
134 #undef StoreOldTimeFields
138 template<
class Type,
template<
class>
class GeoField>
139 void Foam::fvMesh::nullOldestTimeFields()
141 UPtrList<GeoField<Type>> curFields(this->curFields<GeoField<Type>>());
145 curFields[i].nullOldestTime();
150 template<
template<
class>
class GeoField>
151 void Foam::fvMesh::nullOldestTimeFields()
153 #define nullOldestTimeFields(Type, nullArg) \
154 nullOldestTimeFields<Type, GeoField>();
156 #undef nullOldestTimeFields
#define forAll(list, i)
Loop across all elements in list.
#define forAllIter(Container, container, iter)
Iterate across all elements in the container object of type.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
A HashTable with keys but without contents.
An STL-conforming hash table.
bool found(const Key &) const
Return true if hashedEntry is found in table.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
bool set(const label) const
Is element set.
void setSize(const label)
Reset size of UPtrList. This can only be used to set the size.
Mesh data needed to do the Finite Volume discretisation.
pTraits< Type >::labelType validComponents() const
Return a labelType of valid component indicators.
UPtrList< GeoField > curFields(const bool strict=false, const HashSet< word > &geometryFields=fvMesh::geometryFields) const
Return the list of current fields of type GeoField.
UPtrList< GeoField > fields(bool strict=false, const HashSet< word > &geometryFields=fvMesh::geometryFields) const
Return the list of fields of type GeoField.
tmp< DimensionedField< Type, fvMesh > > lookupField(const word &) const
Lookup a dimensioned field for this geometry.
HashTable< const Type * > lookupClass(const bool strict=false) const
Lookup and return all objects of the given Type.
Traits class for primitives.
const Vector< label > & solutionD() const
Return the vector of solved-for directions in mesh.
A class for managing temporary objects.
A class for handling words, derived from string.
A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are kn...
#define StoreOldTimeFields(Type, nullArg)
#define nullOldestTimeFields(Type, nullArg)
Info<< "Calculating turbulent flame speed field St\n"<< endl;volScalarField St(IOobject("St", runTime.name(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), flameWrinkling->Xi() *Su);multivariateSurfaceInterpolationScheme< scalar >::fieldTable fields
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
FOR_ALL_FIELD_TYPES(makeDimensionedPointFieldFunctions)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
tmp< DimensionedField< typename powProduct< Type, r >::type, GeoMesh, Field > > pow(const DimensionedField< Type, GeoMesh, PrimitiveField > &df, typename powProduct< Type, r >::type)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.