45 template<
class GeoField>
57 if (!geometryFields.found(iter()->
name()))
59 curFields.
set(i++, iter());
68 template<
class GeoField>
80 if (!geometryFields.found(iter()->
name()) && !iter()->isOldTime())
82 curFields.
set(i++, iter());
91 template<
class Type,
template<
class>
class GeoField>
92 void Foam::fvMesh::storeOldTimeFields()
98 curFields[i].storeOldTimes();
103 template<
template<
class>
class GeoField>
104 void Foam::fvMesh::storeOldTimeFields()
106 #define StoreOldTimeFields(Type, nullArg) \
107 storeOldTimeFields<Type, GeoField>();
109 #undef StoreOldTimeFields
113 template<
class Type,
template<
class>
class GeoField>
114 void Foam::fvMesh::nullOldestTimeFields()
116 UPtrList<GeoField<Type>> curFields(this->curFields<GeoField<Type>>());
120 curFields[i].nullOldestTime();
125 template<
template<
class>
class GeoField>
126 void Foam::fvMesh::nullOldestTimeFields()
128 #define nullOldestTimeFields(Type, nullArg) \
129 nullOldestTimeFields<Type, GeoField>();
131 #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.
An STL-conforming hash 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 > fields(const bool strict=false) const
Return the list of fields of type GeoField.
UPtrList< GeoField > curFields() const
Return the list of current 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.
word name(const bool)
Return a word representation of a bool.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
FOR_ALL_FIELD_TYPES(makeFieldSourceTypedef)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.