Manages the adjoint mean flow fields and their mean values. More...
Protected Member Functions | |
void | setFields () |
void | setMeanFields () |
![]() | |
template<class Type , template< class > class PatchField, class GeoMesh > | |
autoPtr< GeometricField< Type, PatchField, GeoMesh > > | allocateRenamedField (const autoPtr< GeometricField< Type, PatchField, GeoMesh >> &bf) |
template<class Type , template< class > class PatchField, class GeoMesh > | |
void | swapAndRename (autoPtr< GeometricField< Type, PatchField, GeoMesh >> &p1, autoPtr< GeometricField< Type, PatchField, GeoMesh >> &p2) |
Protected Attributes | |
solverControl & | solverControl_ |
incompressibleVars & | primalVars_ |
autoPtr< volScalarField > | paPtr_ |
autoPtr< volVectorField > | UaPtr_ |
autoPtr< surfaceScalarField > | phiaPtr_ |
autoPtr< volScalarField > | paMeanPtr_ |
autoPtr< volVectorField > | UaMeanPtr_ |
autoPtr< surfaceScalarField > | phiaMeanPtr_ |
![]() | |
fvMesh & | mesh_ |
word | solverName_ |
bool | useSolverNameForFields_ |
Additional Inherited Members | |
![]() | |
template<class Type > | |
static void | setField (autoPtr< GeometricField< Type, fvPatchField, volMesh >> &fieldPtr, const fvMesh &mesh, const word &baseName, const word &solverName, const bool useSolverNameForFields) |
static void | setFluxField (autoPtr< surfaceScalarField > &fieldPtr, const fvMesh &mesh, const volVectorField &velocity, const word &baseName, const word &solverName, const bool useSolverNameForFields) |
static tmp< volVectorField > | autoCreateMeshMovementField (const fvMesh &mesh, const word &name, const dimensionSet &dims) |
template<class Type , template< class > class PatchField, class GeoMesh > | |
static void | nullifyField (GeometricField< Type, PatchField, GeoMesh > &fieldPtr) |
Manages the adjoint mean flow fields and their mean values.
Definition at line 45 of file incompressibleAdjointMeanFlowVars.H.
incompressibleAdjointMeanFlowVars | ( | fvMesh & | mesh, |
solverControl & | SolverControl, | ||
incompressibleVars & | primalVars | ||
) |
Definition at line 112 of file incompressibleAdjointMeanFlowVars.C.
|
virtualdefault |
|
protected |
Definition at line 36 of file incompressibleAdjointMeanFlowVars.C.
References variablesSet::mesh_, incompressibleAdjointMeanFlowVars::paPtr_, incompressibleAdjointMeanFlowVars::phiaPtr_, variablesSet::setField(), variablesSet::setFluxField(), schemesLookup::setFluxRequired(), variablesSet::solverName_, incompressibleAdjointMeanFlowVars::UaInst(), incompressibleAdjointMeanFlowVars::UaPtr_, and variablesSet::useSolverNameForFields_.
|
protected |
Definition at line 53 of file incompressibleAdjointMeanFlowVars.C.
References IOobject::AUTO_WRITE, solverControl::average(), Foam::endl(), Foam::Info, variablesSet::mesh_, Foam::name(), incompressibleAdjointMeanFlowVars::paInst(), incompressibleAdjointMeanFlowVars::paMeanPtr_, incompressibleAdjointMeanFlowVars::phiaInst(), incompressibleAdjointMeanFlowVars::phiaMeanPtr_, IOobject::READ_IF_PRESENT, incompressibleAdjointMeanFlowVars::solverControl_, fvMesh::time(), Time::timeName(), incompressibleAdjointMeanFlowVars::UaInst(), and incompressibleAdjointMeanFlowVars::UaMeanPtr_.
TypeName | ( | "incompressibleAdjointMeanFlowVars" | ) |
const incompressibleVars & primalVars | ( | ) | const |
Definition at line 135 of file incompressibleAdjointMeanFlowVars.C.
References incompressibleAdjointMeanFlowVars::primalVars_.
volScalarField & pa | ( | ) | const |
Definition at line 140 of file incompressibleAdjointMeanFlowVars.C.
References incompressibleAdjointMeanFlowVars::paMeanPtr_, incompressibleAdjointMeanFlowVars::paPtr_, incompressibleAdjointMeanFlowVars::solverControl_, and solverControl::useAveragedFields().
Referenced by sensitivitySurfacePoints::accumulateIntegrand(), sensitivitySurface::accumulateIntegrand(), adjointSensitivity::computeGradDxDbMultiplier(), and shapeSensitivities::dvdbMult().
volScalarField& pa | ( | ) |
volVectorField & Ua | ( | ) | const |
Definition at line 166 of file incompressibleAdjointMeanFlowVars.C.
References incompressibleAdjointMeanFlowVars::solverControl_, incompressibleAdjointMeanFlowVars::UaMeanPtr_, incompressibleAdjointMeanFlowVars::UaPtr_, and solverControl::useAveragedFields().
Referenced by shapeSensitivities::accumulateBCSensitivityIntegrand(), sensitivitySurfacePoints::accumulateIntegrand(), sensitivitySurface::accumulateIntegrand(), adjointSensitivity::computeGradDxDbMultiplier(), adjointLaminar::devReff(), adjointSpalartAllmaras::distanceSensitivities(), shapeSensitivities::dvdbMult(), ATCUaGradU::getFISensitivityTerm(), and ATCstandard::getFISensitivityTerm().
volVectorField& Ua | ( | ) |
surfaceScalarField & phia | ( | ) | const |
Definition at line 192 of file incompressibleAdjointMeanFlowVars.C.
References incompressibleAdjointMeanFlowVars::phiaMeanPtr_, incompressibleAdjointMeanFlowVars::phiaPtr_, incompressibleAdjointMeanFlowVars::solverControl_, and solverControl::useAveragedFields().
surfaceScalarField& phia | ( | ) |
volScalarField & paInst | ( | ) | const |
Definition at line 218 of file incompressibleAdjointMeanFlowVars.C.
References incompressibleAdjointMeanFlowVars::paPtr_.
Referenced by boundaryAdjointContributionIncompressible::pab(), and incompressibleAdjointMeanFlowVars::setMeanFields().
volScalarField& paInst | ( | ) |
volVectorField & UaInst | ( | ) | const |
Definition at line 230 of file incompressibleAdjointMeanFlowVars.C.
References incompressibleAdjointMeanFlowVars::UaPtr_.
Referenced by ATCstandard::addATC(), ATCUaGradU::addATC(), adjointSpalartAllmaras::correct(), adjointSpalartAllmaras::devReff(), incompressibleAdjointMeanFlowVars::setFields(), incompressibleAdjointMeanFlowVars::setMeanFields(), and boundaryAdjointContributionIncompressible::Uab().
volVectorField& UaInst | ( | ) |
surfaceScalarField & phiaInst | ( | ) | const |
Definition at line 242 of file incompressibleAdjointMeanFlowVars.C.
References incompressibleAdjointMeanFlowVars::phiaPtr_.
Referenced by ATCUaGradU::addATC(), boundaryAdjointContributionIncompressible::phiab(), and incompressibleAdjointMeanFlowVars::setMeanFields().
surfaceScalarField& phiaInst | ( | ) |
bool computeMeanFields | ( | ) | const |
Definition at line 254 of file incompressibleAdjointMeanFlowVars.C.
References solverControl::average(), and incompressibleAdjointMeanFlowVars::solverControl_.
const solverControl & getSolverControl | ( | ) | const |
Definition at line 260 of file incompressibleAdjointMeanFlowVars.C.
References incompressibleAdjointMeanFlowVars::solverControl_.
Referenced by adjointRASModel::computeMeanFields(), adjointSpalartAllmaras::correct(), adjointRASModel::getAdjointTMVariable1(), adjointRASModel::getAdjointTMVariable2(), adjointRASModel::resetMeanFields(), and adjointRASModel::setMeanFields().
|
virtual |
Reimplemented in incompressibleAdjointVars.
Definition at line 266 of file incompressibleAdjointMeanFlowVars.C.
References variablesSet::nullifyField(), incompressibleAdjointMeanFlowVars::paPtr_, incompressibleAdjointMeanFlowVars::phiaPtr_, and incompressibleAdjointMeanFlowVars::UaPtr_.
Referenced by incompressibleAdjointVars::nullify().
|
protected |
Definition at line 68 of file incompressibleAdjointMeanFlowVars.H.
Referenced by incompressibleAdjointVars::computeMeanFields(), incompressibleAdjointMeanFlowVars::computeMeanFields(), incompressibleAdjointMeanFlowVars::getSolverControl(), incompressibleAdjointMeanFlowVars::pa(), incompressibleAdjointMeanFlowVars::phia(), incompressibleAdjointVars::resetMeanFields(), incompressibleAdjointMeanFlowVars::setMeanFields(), and incompressibleAdjointMeanFlowVars::Ua().
|
protected |
Definition at line 71 of file incompressibleAdjointMeanFlowVars.H.
Referenced by incompressibleAdjointMeanFlowVars::primalVars().
|
protected |
Definition at line 75 of file incompressibleAdjointMeanFlowVars.H.
Referenced by incompressibleAdjointVars::computeMeanFields(), incompressibleAdjointMeanFlowVars::nullify(), incompressibleAdjointMeanFlowVars::pa(), incompressibleAdjointMeanFlowVars::paInst(), incompressibleAdjointVars::resetMeanFields(), and incompressibleAdjointMeanFlowVars::setFields().
|
protected |
Definition at line 76 of file incompressibleAdjointMeanFlowVars.H.
Referenced by incompressibleAdjointVars::computeMeanFields(), incompressibleAdjointMeanFlowVars::nullify(), incompressibleAdjointVars::resetMeanFields(), incompressibleAdjointMeanFlowVars::setFields(), incompressibleAdjointMeanFlowVars::Ua(), and incompressibleAdjointMeanFlowVars::UaInst().
|
protected |
Definition at line 77 of file incompressibleAdjointMeanFlowVars.H.
Referenced by incompressibleAdjointVars::computeMeanFields(), incompressibleAdjointMeanFlowVars::nullify(), incompressibleAdjointMeanFlowVars::phia(), incompressibleAdjointMeanFlowVars::phiaInst(), incompressibleAdjointVars::resetMeanFields(), and incompressibleAdjointMeanFlowVars::setFields().
|
protected |
Definition at line 82 of file incompressibleAdjointMeanFlowVars.H.
Referenced by incompressibleAdjointVars::computeMeanFields(), incompressibleAdjointMeanFlowVars::pa(), incompressibleAdjointVars::resetMeanFields(), and incompressibleAdjointMeanFlowVars::setMeanFields().
|
protected |
Definition at line 83 of file incompressibleAdjointMeanFlowVars.H.
Referenced by incompressibleAdjointVars::computeMeanFields(), incompressibleAdjointVars::resetMeanFields(), incompressibleAdjointMeanFlowVars::setMeanFields(), and incompressibleAdjointMeanFlowVars::Ua().
|
protected |
Definition at line 84 of file incompressibleAdjointMeanFlowVars.H.
Referenced by incompressibleAdjointVars::computeMeanFields(), incompressibleAdjointMeanFlowVars::phia(), incompressibleAdjointVars::resetMeanFields(), and incompressibleAdjointMeanFlowVars::setMeanFields().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.