54 objectiveManager_(objManager),
58 incompressibleAdjoint::adjointRASModel::
New 74 Info<<
"Restoring adjoint field to initial ones" <<
endl;
87 Info<<
"Resetting adjoint mean fields to zero" <<
endl;
105 Info<<
"Averaging adjoint fields" <<
endl;
107 scalar avIter(iAverageIter);
108 scalar oneOverItP1 = 1./(avIter+1);
109 scalar mult = avIter*oneOverItP1;
virtual void nullify()
Nullify all adjoint fields.
const volScalarField & paInst() const
Return const reference to pressure.
Class for managing objective functions.
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
Ostream & endl(Ostream &os)
Add newline and flush stream.
autoPtr< volScalarField > paPtr_
Fields involved in the solution of the incompressible adjoint NS equations.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
autoPtr< surfaceScalarField > phiaMeanPtr_
incompressibleAdjointVars(const incompressibleAdjointVars &)=delete
No copy construct.
autoPtr< volVectorField > UaPtr_
Class including all adjoint fields for incompressible flows.
virtual void nullify()
Nullify all adjoint fields.
Base class for solution control classes.
Base class for solver control classes.
autoPtr< volScalarField > paMeanPtr_
Mean Adjoint Fields. Actual averaging is done in the incompressibleAdjointVars class to take care of ...
autoPtr< volVectorField > UaMeanPtr_
defineTypeNameAndDebug(combustionModel, 0)
bool doAverageIter() const
Whether or not to add fields of the current iteration to the average fields.
Manages the adjoint mean flow fields and their mean values.
const volVectorField & UaInst() const
Return const reference to velocity.
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.
void computeMeanFields()
Compute mean fields on the fly.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
Mesh data needed to do the Finite Volume discretisation.
virtual void updatePrimalBasedQuantities()
Update primal based quantities of the adjoint boundary.
messageStream Info
Information stream (stdout output on master, null elsewhere)
label & averageIter()
Return average iteration index reference.
bool storeInitValues() const
Re-initialize.
void restoreInitValues()
Restore field values to the initial ones.
void resetMeanFields()
Reset mean fields to zero.
autoPtr< surfaceScalarField > phiaPtr_
static constexpr const zero Zero
Global zero (0)
autoPtr< incompressibleAdjoint::adjointRASModel > adjointTurbulence_
Adjoint to the turbulence model.