Contributions of objective function differentiation to adjoint boundary conditions for incompressible flows. More...
Protected Attributes | |
objectiveManager & | objectiveManager_ |
const incompressibleVars & | primalVars_ |
const incompressibleAdjointSolver & | adjointSolver_ |
Note: getting a reference to the adjoint vars in the constructor of boundaryAdjointContributionIncompressible is dangerous since the autoPtr that holds them has not been completed yet. Instead, get a reference to the solver and grab the adjoint vars from there, when necessary. More... | |
Protected Attributes inherited from boundaryAdjointContribution | |
const fvPatch & | patch_ |
Additional Inherited Members | |
Static Public Member Functions inherited from boundaryAdjointContribution | |
static autoPtr< boundaryAdjointContribution > | New (const word &managerName, const word &adjointSolverName, const word &simulationType, const fvPatch &patch) |
Return a reference to the selected turbulence model. More... | |
Protected Member Functions inherited from boundaryAdjointContribution | |
template<class returnType , class sourceType , class castType > | |
tmp< Field< returnType > > | sumContributions (PtrList< sourceType > &sourceList, const fvPatchField< returnType > &(castType::*boundaryFunction)(const label), bool(castType::*hasFunction)() const) |
Contributions of objective function differentiation to adjoint boundary conditions for incompressible flows.
Definition at line 57 of file boundaryAdjointContributionIncompressible.H.
boundaryAdjointContributionIncompressible | ( | const word & | managerName, |
const word & | adjointSolverName, | ||
const word & | simulationType, | ||
const fvPatch & | patch | ||
) |
Construct from components.
Definition at line 47 of file boundaryAdjointContributionIncompressible.C.
|
virtualdefault |
Destructor.
TypeName | ( | "incompressible" | ) |
Runtime type information.
|
virtual |
Implements boundaryAdjointContribution.
Definition at line 103 of file boundaryAdjointContributionIncompressible.C.
References incompressibleAdjointVars::adjointTurbulence(), boundaryAdjointContributionIncompressible::adjointVars(), objectiveIncompressible::boundarydJdvn(), objectiveManager::getObjectiveFunctions(), objectiveIncompressible::hasBoundarydJdvn(), fvPatch::index(), fvPatch::nf(), boundaryAdjointContributionIncompressible::objectiveManager_, boundaryAdjointContribution::patch_, tmp< T >::ref(), and boundaryAdjointContribution::sumContributions().
|
virtual |
Implements boundaryAdjointContribution.
Definition at line 82 of file boundaryAdjointContributionIncompressible.C.
References incompressibleAdjointVars::adjointTurbulence(), boundaryAdjointContributionIncompressible::adjointVars(), objectiveIncompressible::boundarydJdv(), objectiveManager::getObjectiveFunctions(), objectiveIncompressible::hasBoundarydJdv(), fvPatch::index(), boundaryAdjointContributionIncompressible::objectiveManager_, boundaryAdjointContribution::patch_, tmp< T >::ref(), and boundaryAdjointContribution::sumContributions().
|
virtual |
Implements boundaryAdjointContribution.
Definition at line 129 of file boundaryAdjointContributionIncompressible.C.
References incompressibleAdjointVars::adjointTurbulence(), boundaryAdjointContributionIncompressible::adjointVars(), objectiveIncompressible::boundarydJdvt(), objectiveManager::getObjectiveFunctions(), objectiveIncompressible::hasBoundarydJdvt(), fvPatch::index(), fvPatch::nf(), boundaryAdjointContributionIncompressible::objectiveManager_, boundaryAdjointContribution::patch_, tmp< T >::ref(), and boundaryAdjointContribution::sumContributions().
|
virtual |
Implements boundaryAdjointContribution.
Definition at line 158 of file boundaryAdjointContributionIncompressible.C.
References objectiveIncompressible::boundarydJdp(), objectiveManager::getObjectiveFunctions(), objectiveIncompressible::hasBoundarydJdp(), boundaryAdjointContributionIncompressible::objectiveManager_, and boundaryAdjointContribution::sumContributions().
|
virtual |
Implements boundaryAdjointContribution.
Definition at line 171 of file boundaryAdjointContributionIncompressible.C.
References objectiveIncompressible::boundarydJdT(), objectiveManager::getObjectiveFunctions(), objectiveIncompressible::hasBoundarydJdT(), boundaryAdjointContributionIncompressible::objectiveManager_, and boundaryAdjointContribution::sumContributions().
|
virtual |
Reimplemented from boundaryAdjointContribution.
Definition at line 185 of file boundaryAdjointContributionIncompressible.C.
References objectiveIncompressible::boundarydJdTMvar1(), objectiveManager::getObjectiveFunctions(), objectiveIncompressible::hasBoundarydJdTMVar1(), boundaryAdjointContributionIncompressible::objectiveManager_, and boundaryAdjointContribution::sumContributions().
|
virtual |
Reimplemented from boundaryAdjointContribution.
Definition at line 199 of file boundaryAdjointContributionIncompressible.C.
References objectiveIncompressible::boundarydJdTMvar2(), objectiveManager::getObjectiveFunctions(), objectiveIncompressible::hasBoundarydJdTMVar2(), boundaryAdjointContributionIncompressible::objectiveManager_, and boundaryAdjointContribution::sumContributions().
|
virtual |
Reimplemented from boundaryAdjointContribution.
Definition at line 213 of file boundaryAdjointContributionIncompressible.C.
References objectiveIncompressible::boundarydJdnut(), objectiveManager::getObjectiveFunctions(), objectiveIncompressible::hasBoundarydJdnut(), boundaryAdjointContributionIncompressible::objectiveManager_, and boundaryAdjointContribution::sumContributions().
|
virtual |
Reimplemented from boundaryAdjointContribution.
Definition at line 226 of file boundaryAdjointContributionIncompressible.C.
References objectiveIncompressible::boundarydJdGradU(), objectiveManager::getObjectiveFunctions(), objectiveIncompressible::hasBoundarydJdGradU(), boundaryAdjointContributionIncompressible::objectiveManager_, and boundaryAdjointContribution::sumContributions().
|
virtual |
Implements boundaryAdjointContribution.
Definition at line 238 of file boundaryAdjointContributionIncompressible.C.
References incompressibleAdjointVars::adjointTurbulence(), boundaryAdjointContributionIncompressible::adjointVars(), fvPatch::index(), and boundaryAdjointContribution::patch_.
|
virtual |
Implements boundaryAdjointContribution.
Definition at line 245 of file boundaryAdjointContributionIncompressible.C.
References fvPatch::index(), tmp< T >::New(), nu, boundaryAdjointContribution::patch_, boundaryAdjointContributionIncompressible::primalVars_, fvPatch::size(), incompressibleVars::turbulence(), and Foam::Zero.
|
virtual |
Implements boundaryAdjointContribution.
Definition at line 259 of file boundaryAdjointContributionIncompressible.C.
References tmp< T >::New(), boundaryAdjointContribution::patch_, fvPatch::size(), WarningInFunction, and Foam::Zero.
|
virtual |
Implements boundaryAdjointContribution.
Definition at line 275 of file boundaryAdjointContributionIncompressible.C.
References fvPatch::index(), boundaryAdjointContribution::patch_, boundaryAdjointContributionIncompressible::primalVars_, and incompressibleVars::turbulence().
|
virtual |
Reimplemented from boundaryAdjointContribution.
Definition at line 282 of file boundaryAdjointContributionIncompressible.C.
References incompressibleAdjointVars::adjointTurbulence(), boundaryAdjointContributionIncompressible::adjointVars(), fvPatch::index(), and boundaryAdjointContribution::patch_.
|
virtual |
Reimplemented from boundaryAdjointContribution.
Definition at line 291 of file boundaryAdjointContributionIncompressible.C.
References incompressibleAdjointVars::adjointTurbulence(), boundaryAdjointContributionIncompressible::adjointVars(), fvPatch::index(), and boundaryAdjointContribution::patch_.
|
virtual |
Reimplemented from boundaryAdjointContribution.
Definition at line 298 of file boundaryAdjointContributionIncompressible.C.
References fvPatch::index(), boundaryAdjointContribution::patch_, boundaryAdjointContributionIncompressible::primalVars_, and incompressibleVars::RASModelVariables().
|
virtual |
Reimplemented from boundaryAdjointContribution.
Definition at line 306 of file boundaryAdjointContributionIncompressible.C.
References fvPatch::index(), boundaryAdjointContribution::patch_, boundaryAdjointContributionIncompressible::primalVars_, and incompressibleVars::RASModelVariables().
|
virtual |
Implements boundaryAdjointContribution.
Definition at line 314 of file boundaryAdjointContributionIncompressible.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), fvPatch::index(), boundaryAdjointContribution::patch_, boundaryAdjointContributionIncompressible::primalVars_, and incompressibleVars::U().
|
virtual |
Implements boundaryAdjointContribution.
Definition at line 320 of file boundaryAdjointContributionIncompressible.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), fvPatch::index(), incompressibleVars::p(), boundaryAdjointContribution::patch_, and boundaryAdjointContributionIncompressible::primalVars_.
|
virtual |
Implements boundaryAdjointContribution.
Definition at line 327 of file boundaryAdjointContributionIncompressible.C.
References GeometricField< Type, PatchField, GeoMesh >::boundaryField(), fvPatch::index(), boundaryAdjointContribution::patch_, incompressibleVars::phi(), and boundaryAdjointContributionIncompressible::primalVars_.
|
virtual |
Reimplemented from boundaryAdjointContribution.
Definition at line 334 of file boundaryAdjointContributionIncompressible.C.
References fvPatch::index(), boundaryAdjointContribution::patch_, boundaryAdjointContributionIncompressible::primalVars_, and incompressibleVars::RASModelVariables().
|
virtual |
Implements boundaryAdjointContribution.
Definition at line 340 of file boundaryAdjointContributionIncompressible.C.
References boundaryAdjointContributionIncompressible::adjointVars(), GeometricField< Type, PatchField, GeoMesh >::boundaryField(), fvPatch::index(), boundaryAdjointContribution::patch_, and incompressibleAdjointMeanFlowVars::UaInst().
|
virtual |
Implements boundaryAdjointContribution.
Definition at line 346 of file boundaryAdjointContributionIncompressible.C.
References boundaryAdjointContributionIncompressible::adjointVars(), GeometricField< Type, PatchField, GeoMesh >::boundaryField(), fvPatch::index(), incompressibleAdjointMeanFlowVars::paInst(), and boundaryAdjointContribution::patch_.
|
virtual |
Implements boundaryAdjointContribution.
Definition at line 353 of file boundaryAdjointContributionIncompressible.C.
References boundaryAdjointContributionIncompressible::adjointVars(), GeometricField< Type, PatchField, GeoMesh >::boundaryField(), fvPatch::index(), boundaryAdjointContribution::patch_, and incompressibleAdjointMeanFlowVars::phiaInst().
|
virtual |
Implements boundaryAdjointContribution.
Definition at line 359 of file boundaryAdjointContributionIncompressible.C.
References boundaryAdjointContributionIncompressible::primalVars_, and variablesSet::solverName().
|
virtual |
Implements boundaryAdjointContribution.
Definition at line 365 of file boundaryAdjointContributionIncompressible.C.
References boundaryAdjointContributionIncompressible::adjointVars(), and variablesSet::solverName().
const incompressibleVars & primalVars | ( | ) | const |
Definition at line 372 of file boundaryAdjointContributionIncompressible.C.
References boundaryAdjointContributionIncompressible::primalVars_.
const incompressibleAdjointVars & adjointVars | ( | ) | const |
Definition at line 379 of file boundaryAdjointContributionIncompressible.C.
References boundaryAdjointContributionIncompressible::adjointSolver_, and incompressibleAdjointSolver::getAdjointVars().
Referenced by boundaryAdjointContributionIncompressible::adjointSolverName(), boundaryAdjointContributionIncompressible::momentumDiffusion(), boundaryAdjointContributionIncompressible::pab(), boundaryAdjointContributionIncompressible::phiab(), boundaryAdjointContributionIncompressible::pressureSource(), boundaryAdjointContributionIncompressible::tangentVelocitySource(), boundaryAdjointContributionIncompressible::TMVariable1Diffusion(), boundaryAdjointContributionIncompressible::TMVariable2Diffusion(), boundaryAdjointContributionIncompressible::Uab(), and boundaryAdjointContributionIncompressible::velocitySource().
objectiveManager & getObjectiveManager | ( | ) |
Definition at line 386 of file boundaryAdjointContributionIncompressible.C.
References boundaryAdjointContributionIncompressible::objectiveManager_.
|
protected |
Definition at line 86 of file boundaryAdjointContributionIncompressible.H.
Referenced by boundaryAdjointContributionIncompressible::adjointTMVariable1Source(), boundaryAdjointContributionIncompressible::adjointTMVariable2Source(), boundaryAdjointContributionIncompressible::dJdGradU(), boundaryAdjointContributionIncompressible::dJdnut(), boundaryAdjointContributionIncompressible::energySource(), boundaryAdjointContributionIncompressible::getObjectiveManager(), boundaryAdjointContributionIncompressible::normalVelocitySource(), boundaryAdjointContributionIncompressible::pressureSource(), boundaryAdjointContributionIncompressible::tangentVelocitySource(), and boundaryAdjointContributionIncompressible::velocitySource().
|
protected |
Definition at line 88 of file boundaryAdjointContributionIncompressible.H.
Referenced by boundaryAdjointContributionIncompressible::laminarDiffusivity(), boundaryAdjointContributionIncompressible::pb(), boundaryAdjointContributionIncompressible::phib(), boundaryAdjointContributionIncompressible::primalSolverName(), boundaryAdjointContributionIncompressible::primalVars(), boundaryAdjointContributionIncompressible::TMVariable1(), boundaryAdjointContributionIncompressible::TMVariable2(), boundaryAdjointContributionIncompressible::turbulentDiffusivity(), boundaryAdjointContributionIncompressible::Ub(), and boundaryAdjointContributionIncompressible::wallDistance().
|
protected |
Note: getting a reference to the adjoint vars in the constructor of boundaryAdjointContributionIncompressible is dangerous since the autoPtr that holds them has not been completed yet. Instead, get a reference to the solver and grab the adjoint vars from there, when necessary.
Definition at line 97 of file boundaryAdjointContributionIncompressible.H.
Referenced by boundaryAdjointContributionIncompressible::adjointVars().