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