Go to the documentation of this file.
67 Info<<
"Allocating Mean Adjoint Fields" <<
endl;
118 incompressibleAdjointMeanFlowVars::incompressibleAdjointMeanFlowVars
126 solverControl_(SolverControl),
127 primalVars_(primalVars),
133 phiaMeanPtr_(
nullptr)
void setFields()
Read fields and set turbulence.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
void setMeanFields()
Read mean fields, if necessary.
virtual void nullify()
Nullify all adjoint fields.
autoPtr< surfaceScalarField > phiaMeanPtr_
static word timeName(const scalar t, const int precision=precision_)
const surfaceScalarField & phiaInst() const
Return const reference to volume flux.
static void setFluxField(autoPtr< surfaceScalarField > &fieldPtr, const fvMesh &mesh, const volVectorField &velocity, const word &baseName, const word &solverName, const bool useSolverNameForFields)
Set flux field.
Base class for solver control classes.
Ostream & endl(Ostream &os)
Add newline and flush stream.
autoPtr< volVectorField > UaPtr_
autoPtr< volScalarField > paPtr_
const incompressibleVars & primalVars() const
Base class for creating a set of variables.
static void nullifyField(GeometricField< Type, PatchField, GeoMesh > &fieldPtr)
Nullify field and old times, if present.
incompressibleVars & primalVars_
Reference to primal variables.
void setFluxRequired(const word &name) const
messageStream Info
Information stream (uses stdout - output is on the master only)
word name(const complex &c)
Return string representation of complex.
const volScalarField & paInst() const
Return const reference to pressure.
bool useAveragedFields() const
const volScalarField & pa() const
Return const reference to pressure.
const volVectorField & Ua() const
Return const reference to velocity.
autoPtr< volVectorField > UaMeanPtr_
word solverName_
Solver name owning the variables set.
static void setField(autoPtr< GeometricField< Type, fvPatchField, volMesh >> &fieldPtr, const fvMesh &mesh, const word &baseName, const word &solverName, const bool useSolverNameForFields)
Read vol fields.
fvMesh & mesh_
Reference to the mesh database.
autoPtr< volScalarField > paMeanPtr_
Mesh data needed to do the Finite Volume discretisation.
const solverControl & getSolverControl() const
Return const reference to solverControl.
bool computeMeanFields() const
Return computeMeanFields bool.
solverControl & solverControl_
Reference to the solverControl of the solver allocating the fields.
virtual const dictionary solverDict() const
Read controls from optimisationDict.
const Time & time() const
Return the top-level database.
autoPtr< surfaceScalarField > phiaPtr_
bool useSolverNameForFields_
Append the solver name to the variables names?
defineTypeNameAndDebug(combustionModel, 0)
const surfaceScalarField & phia() const
Return const reference to volume flux.
bool average() const
Whether averaging is enabled or not.
const volVectorField & UaInst() const
Return const reference to velocity.
Base class for solution control classes.