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;
Mesh data needed to do the Finite Volume discretisation.
Manages the adjoint mean flow fields and their mean values.
solverControl & solverControl_
Reference to the solverControl of the solver allocating the fields.
autoPtr< volVectorField > UaMeanPtr_
virtual void nullify()
Nullify all adjoint fields.
autoPtr< volScalarField > paMeanPtr_
autoPtr< surfaceScalarField > phiaPtr_
autoPtr< volVectorField > UaPtr_
autoPtr< volScalarField > paPtr_
autoPtr< surfaceScalarField > phiaMeanPtr_
Class including all adjoint fields for incompressible flows.
virtual void nullify()
Nullify all adjoint fields.
virtual void updatePrimalBasedQuantities()
Update primal based quantities of the adjoint boundary.
void computeMeanFields()
Compute mean fields on the fly.
void resetMeanFields()
Reset mean fields to zero.
autoPtr< incompressibleAdjoint::adjointRASModel > adjointTurbulence_
Adjoint to the turbulence model.
Base class for solution control classes.
class for managing incompressible objective functions.
Base class for solver control classes.
bool doAverageIter() const
label & averageIter()
Return average iteration index reference.
bool average() const
Whether averaging is enabled or not.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
static constexpr const zero Zero
Global zero (0)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.