54 objectiveManager_(objManager),
58 incompressibleAdjoint::adjointRASModel::
New 74 Info<<
"Resetting adjoint mean fields to zero" <<
endl;
92 Info<<
"Averaging adjoint fields" <<
endl;
94 scalar avIter(iAverageIter);
95 scalar oneOverItP1 = 1./(avIter+1);
96 scalar mult = avIter*oneOverItP1;
virtual void nullify()
Nullify all adjoint fields.
class for managing incompressible 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_
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.
solverControl & solverControl_
Reference to the solverControl of the solver allocating the fields.
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.
incompressibleAdjointVars(const incompressibleAdjointVars &)
No copy construct.
messageStream Info
Information stream (stdout output on master, null elsewhere)
label & averageIter()
Return average iteration index reference.
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.