68 Info<<
"Allocating Mean Adjoint Fields" <<
endl;
122incompressibleAdjointMeanFlowVars::incompressibleAdjointMeanFlowVars
125 solverControl& SolverControl,
126 incompressibleVars& primalVars
129 variablesSet(
mesh, SolverControl.solverDict()),
130 solverControl_(SolverControl),
131 primalVars_(primalVars),
137 phiaMeanPtr_(nullptr)
@ REGISTER
Request registration (bool: true).
@ READ_IF_PRESENT
Reading is optional [identical to LAZY_READ].
@ AUTO_WRITE
Automatically write from objectRegistry::writeObject().
Defines the attributes of an object for which implicit objectRegistry management is supported,...
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.
Mesh data needed to do the Finite Volume discretisation.
const Time & time() const
Return the top-level database.
Manages the adjoint mean flow fields and their mean values.
solverControl & solverControl_
Reference to the solverControl of the solver allocating the fields.
const volScalarField & pa() const
Return const reference to pressure.
autoPtr< volVectorField > UaMeanPtr_
const volVectorField & Ua() const
Return const reference to velocity.
const volVectorField & UaInst() const
Return const reference to velocity.
const surfaceScalarField & phia() const
Return const reference to volume flux.
const solverControl & getSolverControl() const
Return const reference to solverControl.
virtual void nullify()
Nullify all adjoint fields.
autoPtr< volScalarField > paMeanPtr_
Mean Adjoint Fields. Actual averaging is done in the incompressibleAdjointVars class to take care of ...
autoPtr< surfaceScalarField > phiaPtr_
void setFields()
Read fields and set turbulence.
autoPtr< volVectorField > UaPtr_
autoPtr< volScalarField > paPtr_
Fields involved in the solution of the incompressible adjoint NS equations.
const surfaceScalarField & phiaInst() const
Return const reference to volume flux.
bool computeMeanFields() const
Return computeMeanFields bool.
const volScalarField & paInst() const
Return const reference to pressure.
const incompressibleVars & primalVars() const
autoPtr< surfaceScalarField > phiaMeanPtr_
void setMeanFields()
Read mean fields, if necessary.
incompressibleVars & primalVars_
Reference to primal variables.
Base class for solution control classes.
Base class for solver control classes.
bool useAveragedFields() const
Use averaged fields? For solving the adjoint equations or computing sensitivities based on averaged f...
bool average() const
Whether averaging is enabled or not.
bool useSolverNameForFields_
Append the solver name to the variables names?
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.
fvMesh & mesh_
Reference to the mesh database.
static void setFluxField(autoPtr< surfaceScalarField > &fieldPtr, const fvMesh &mesh, const volVectorField &velocity, const word &baseName, const word &solverName, const bool useSolverNameForFields)
Set flux field.
static void nullifyField(GeometricField< Type, PatchField, GeoMesh > &fieldPtr)
Nullify field and old times, if present.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
GeometricField< vector, fvPatchField, volMesh > volVectorField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
messageStream Info
Information stream (stdout output on master, null elsewhere).
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
Ostream & endl(Ostream &os)
Add newline and flush stream.