67 Info<<
"Allocating Mean Adjoint Fields" <<
endl;
126 solverControl_(SolverControl),
127 primalVars_(primalVars),
133 phiaMeanPtr_(nullptr)
Defines the attributes of an object for which implicit objectRegistry management is supported,...
static word timeName(const scalar t, const int precision=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_
autoPtr< surfaceScalarField > phiaPtr_
void setFields()
Read fields and set turbulence.
autoPtr< volVectorField > UaPtr_
autoPtr< volScalarField > paPtr_
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.
void setFluxRequired(const word &name) const
Get flux-required for given name, or default.
Base class for solver control classes.
bool useAveragedFields() const
bool average() const
Whether averaging is enabled or not.
Base class for creating a set of variables.
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.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.