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());
99 template<
class Type,
template<
class>
class GeoField>
100 void Foam::fvMesh::storeOldTimeFields()
106 curFields[i].storeOldTimes();
111 template<
template<
class>
class GeoField>
112 void Foam::fvMesh::storeOldTimeFields()
114 #define StoreOldTimeFields(Type, nullArg) \
115 storeOldTimeFields<Type, GeoField>();
117 #undef StoreOldTimeFields
121 template<
class Type,
template<
class>
class GeoField>
122 void Foam::fvMesh::nullOldestTimeFields()
124 UPtrList<GeoField<Type>> curFields(this->curFields<GeoField<Type>>());
128 curFields[i].nullOldestTime();
133 template<
template<
class>
class GeoField>
134 void Foam::fvMesh::nullOldestTimeFields()
136 #define nullOldestTimeFields(Type, nullArg) \
137 nullOldestTimeFields<Type, GeoField>();
139 #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.
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.
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 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.
void pow(LagrangianPatchField< typename powProduct< Type, r >::type > &f, const LagrangianPatchField< Type > &f1)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
FOR_ALL_FIELD_TYPES(makeFieldSourceTypedef)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.