60variablesSet::variablesSet
70 dict.getOrDefault<bool>(
"useSolverNameForFields", false)
101 const word& baseName,
102 const word& solverName,
103 const bool useSolverNameForFields
123 word phiName(baseName);
131 mesh.time().timeName(),
152 const word& baseName,
153 const word& solverName,
154 const bool useSolverNameForFields
157 autoPtr<surfaceScalarField> fieldPtr(
nullptr);
175 const word& fieldName,
184 mesh.time().timeName(),
191 fixedValueFvPatchVectorField::typeName
@ READ_IF_PRESENT
Reading is optional [identical to LAZY_READ].
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
@ AUTO_WRITE
Automatically write from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
void reset(T *p=nullptr) noexcept
Delete managed object and set to new given pointer.
T * ptr() noexcept
Same as release().
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Dimension set for the base types, which can be used to implement rigorous dimension checking for alge...
Mesh data needed to do the Finite Volume discretisation.
A class for managing temporary objects.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
Base class for creating a set of variables.
static tmp< volVectorField > autoCreateMeshMovementField(const fvMesh &mesh, const word &name, const dimensionSet &dims)
Auto create variable for mesh movement.
bool useSolverNameForFields_
Append the solver name to the variables names?
tmp< surfaceScalarField > allocateFluxField(const fvMesh &mesh, const volVectorField &velocity, const word &baseName, const word &solverName, const bool useSolverNameForFields)
const word & solverName() const
Return solver name.
bool useSolverNameForFields() const
Append solver name to fields?
word solverName_
Solver name owning the variables set.
virtual void transfer(variablesSet &vars)
Transfer the fields of another variablesSet to this.
fvMesh & mesh_
Reference to the mesh database.
virtual autoPtr< variablesSet > clone() const
Clone the variablesSet.
static void setFluxField(autoPtr< surfaceScalarField > &fieldPtr, const fvMesh &mesh, const volVectorField &velocity, const word &baseName, const word &solverName, const bool useSolverNameForFields)
Set flux field.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
const word dictName("faMeshDefinition")
GeometricField< vector, fvPatchField, volMesh > volVectorField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > linearInterpolate(const GeometricField< Type, fvPatchField, volMesh > &vf)
static constexpr const zero Zero
Global zero (0).
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.