Go to the documentation of this file.
36 #ifndef variablesSet_H
37 #define variablesSet_H
68 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
77 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
78 static bool readFieldOK
104 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
111 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
164 const word& baseName,
173 const word& baseName,
195 const word& baseName,
204 const word& baseName,
218 template<
class Type,
template<
class>
class PatchField,
class GeoMesh>
bool useSolverNameForFields() const
Append solver name to fields?
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const word & solverName() const
Return solver name.
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
tmp< surfaceScalarField > allocateFluxField(const fvMesh &mesh, const volVectorField &velocity, const word &baseName, const word &solverName, const bool useSolverNameForFields)
tmp< GeometricField< Type, fvPatchField, volMesh > > allocateField(const fvMesh &mesh, const word &baseName, const word &solverName, const bool useSolverNameForFields)
TypeName("variablesSet")
Run-time type information.
static void setFluxField(autoPtr< surfaceScalarField > &fieldPtr, const fvMesh &mesh, const volVectorField &velocity, const word &baseName, const word &solverName, const bool useSolverNameForFields)
Set flux field.
void swapAndRename(autoPtr< GeometricField< Type, PatchField, GeoMesh >> &p1, autoPtr< GeometricField< Type, PatchField, GeoMesh >> &p2)
Swap autoPtrs and rename managed fields.
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
virtual autoPtr< variablesSet > clone() const
Clone the variablesSet.
Base class for creating a set of variables.
static void nullifyField(GeometricField< Type, PatchField, GeoMesh > &fieldPtr)
Nullify field and old times, if present.
virtual void transfer(variablesSet &vars)
Transfer the fields of another variablesSet to this.
static tmp< volVectorField > autoCreateMeshMovementField(const fvMesh &mesh, const word &name, const dimensionSet &dims)
Auto create variable for mesh movement.
word solverName_
Solver name owning the variables set.
static void setField(autoPtr< GeometricField< Type, fvPatchField, volMesh >> &fieldPtr, const fvMesh &mesh, const word &baseName, const word &solverName, const bool useSolverNameForFields)
Read vol fields.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
fvMesh & mesh_
Reference to the mesh database.
Generic mesh wrapper used by volMesh, surfaceMesh, pointMesh etc.
Mesh data needed to do the Finite Volume discretisation.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
autoPtr< GeometricField< Type, PatchField, GeoMesh > > allocateRenamedField(const autoPtr< GeometricField< Type, PatchField, GeoMesh >> &bf)
virtual ~variablesSet()=default
Destructor.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
void renameTurbulenceField(GeometricField< Type, fvPatchField, volMesh > &baseField, const word &solverName)
Generic GeometricField class.
bool useSolverNameForFields_
Append the solver name to the variables names?