68 Info<<
"Allocating Mean Adjoint Fields" <<
endl;
122 incompressibleAdjointMeanFlowVars::incompressibleAdjointMeanFlowVars
125 solverControl& SolverControl,
126 incompressibleVars& primalVars
129 variablesSet(
mesh, SolverControl.solverDict()),
130 solverControl_(SolverControl),
131 primalVars_(primalVars),
137 phiaMeanPtr_(nullptr)
void setMeanFields()
Read mean fields, if necessary.
virtual void nullify()
Nullify all adjoint fields.
const volScalarField & paInst() const
Return const reference to pressure.
Ostream & endl(Ostream &os)
Add newline and flush stream.
autoPtr< volScalarField > paPtr_
Fields involved in the solution of the incompressible adjoint NS equations.
autoPtr< surfaceScalarField > phiaMeanPtr_
static void nullifyField(GeometricField< Type, PatchField, GeoMesh > &fieldPtr)
Nullify field and old times, if present.
const Time & time() const
Return the top-level database.
GeometricField< vector, fvPatchField, volMesh > volVectorField
autoPtr< volVectorField > UaPtr_
const incompressibleVars & primalVars() const
void setFluxRequired(const word &name) const
Set flux-required for given name (mutable)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Base class for solution control classes.
incompressibleVars & primalVars_
Reference to primal variables.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
const volScalarField & pa() const
Return const reference to pressure.
const volVectorField & Ua() const
Return const reference to velocity.
bool useSolverNameForFields_
Append the solver name to the variables names?
Base class for solver control classes.
Reading is optional [identical to LAZY_READ].
autoPtr< volScalarField > paMeanPtr_
Mean Adjoint Fields. Actual averaging is done in the incompressibleAdjointVars class to take care of ...
autoPtr< volVectorField > UaMeanPtr_
bool computeMeanFields() const
Return computeMeanFields bool.
static word timeName(const scalar t, const int precision=precision_)
Return a time name for the given scalar time value formatted with the given precision.
defineTypeNameAndDebug(combustionModel, 0)
const solverControl & getSolverControl() const
Return const reference to solverControl.
Manages the adjoint mean flow fields and their mean values.
const volVectorField & UaInst() const
Return const reference to velocity.
static void setFluxField(autoPtr< surfaceScalarField > &fieldPtr, const fvMesh &mesh, const volVectorField &velocity, const word &baseName, const word &solverName, const bool useSolverNameForFields)
Set flux field.
solverControl & solverControl_
Reference to the solverControl of the solver allocating the fields.
const surfaceScalarField & phiaInst() const
Return const reference to volume flux.
bool average() const
Whether averaging is enabled or not.
Automatically write from objectRegistry::writeObject()
messageStream Info
Information stream (stdout output on master, null elsewhere)
const surfaceScalarField & phia() const
Return const reference to volume flux.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
bool useAveragedFields() const
Use averaged fields? For solving the adjoint equations or computing sensitivities based on averaged f...
Defines the attributes of an object for which implicit objectRegistry management is supported...
Request registration (bool: true)
autoPtr< surfaceScalarField > phiaPtr_
fvMesh & mesh_
Reference to the mesh database.
void setFields()
Read fields and set turbulence.
static void setField(autoPtr< GeometricField< Type, fvPatchField, volMesh >> &fieldPtr, const fvMesh &mesh, const word &baseName, const word &solverName, const bool useSolverNameForFields)
Read vol fields.
word solverName_
Solver name owning the variables set.