boundaryAdjointContributionIncompressible Class Reference

Contributions of objective function differentiation to adjoint boundary conditions for incompressible flows. More...

Inheritance diagram for boundaryAdjointContributionIncompressible:
Collaboration diagram for boundaryAdjointContributionIncompressible:

Public Member Functions

 TypeName ("incompressible")
 Runtime type information. More...
 
 boundaryAdjointContributionIncompressible (const word &managerName, const word &adjointSolverName, const word &simulationType, const fvPatch &patch)
 Construct from components. More...
 
virtual ~boundaryAdjointContributionIncompressible ()=default
 Destructor. More...
 
tmp< scalarFieldpressureSource ()
 
tmp< vectorFieldvelocitySource ()
 
tmp< vectorFieldtangentVelocitySource ()
 
tmp< vectorFieldnormalVelocitySource ()
 
tmp< scalarFieldenergySource ()
 
tmp< scalarFieldadjointTMVariable1Source ()
 
tmp< scalarFieldadjointTMVariable2Source ()
 
tmp< scalarFielddJdnut ()
 
tmp< tensorFielddJdGradU ()
 
tmp< scalarFieldmomentumDiffusion ()
 
tmp< scalarFieldlaminarDiffusivity ()
 
tmp< scalarFieldthermalDiffusion ()
 
tmp< scalarFieldwallDistance ()
 
tmp< scalarFieldTMVariable1Diffusion ()
 
tmp< scalarFieldTMVariable2Diffusion ()
 
tmp< scalarFieldTMVariable1 ()
 
tmp< scalarFieldTMVariable2 ()
 
const fvPatchVectorFieldUb () const
 
const fvPatchScalarFieldpb () const
 
const fvsPatchScalarFieldphib () const
 
tmp< fvPatchScalarFieldturbulentDiffusivity () const
 
const fvPatchVectorFieldUab () const
 
const fvPatchScalarFieldpab () const
 
const fvsPatchScalarFieldphiab () const
 
const word primalSolverName () const
 
const word adjointSolverName () const
 
const incompressibleVarsprimalVars () const
 
const incompressibleAdjointVarsadjointVars () const
 
objectiveManagergetObjectiveManager ()
 
- Public Member Functions inherited from boundaryAdjointContribution
 TypeName ("boundaryAdjointContribution")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, boundaryAdjointContribution, dictionary,(const word &managerName, const word &adjointSolverName, const word &simulationType, const fvPatch &patch),(managerName, adjointSolverName, simulationType, patch))
 
 boundaryAdjointContribution (const word &managerName, const word &adjointSolverName, const word &simulationType, const fvPatch &patch)
 Construct from components. More...
 
virtual ~boundaryAdjointContribution ()=default
 Destructor. More...
 
template<class returnType , class sourceType , class castType >
Foam::tmp< Foam::Field< returnType > > sumContributions (PtrList< sourceType > &sourceList, const fvPatchField< returnType > &(castType::*boundaryFunction)(const label), bool(castType::*hasFunction)() const)
 

Protected Attributes

objectiveManagerobjectiveManager_
 
const incompressibleVarsprimalVars_
 
const incompressibleAdjointSolveradjointSolver_
 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 fvPatchpatch_
 

Additional Inherited Members

- Static Public Member Functions inherited from boundaryAdjointContribution
static autoPtr< boundaryAdjointContributionNew (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)
 

Detailed Description

Contributions of objective function differentiation to adjoint boundary conditions for incompressible flows.

Source files

Definition at line 57 of file boundaryAdjointContributionIncompressible.H.

Constructor & Destructor Documentation

◆ boundaryAdjointContributionIncompressible()

boundaryAdjointContributionIncompressible ( const word managerName,
const word adjointSolverName,
const word simulationType,
const fvPatch patch 
)

Construct from components.

Definition at line 47 of file boundaryAdjointContributionIncompressible.C.

◆ ~boundaryAdjointContributionIncompressible()

virtual ~boundaryAdjointContributionIncompressible ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "incompressible"  )

Runtime type information.

◆ pressureSource()

◆ velocitySource()

◆ tangentVelocitySource()

◆ normalVelocitySource()

◆ energySource()

◆ adjointTMVariable1Source()

◆ adjointTMVariable2Source()

◆ dJdnut()

◆ dJdGradU()

◆ momentumDiffusion()

◆ laminarDiffusivity()

◆ thermalDiffusion()

tmp< scalarField > thermalDiffusion ( )
virtual

Implements boundaryAdjointContribution.

Definition at line 259 of file boundaryAdjointContributionIncompressible.C.

References boundaryAdjointContribution::patch_, fvPatch::size(), WarningInFunction, and Foam::Zero.

Here is the call graph for this function:

◆ wallDistance()

◆ TMVariable1Diffusion()

◆ TMVariable2Diffusion()

◆ TMVariable1()

◆ TMVariable2()

◆ Ub()

◆ pb()

◆ phib()

◆ turbulentDiffusivity()

tmp< fvPatchScalarField > turbulentDiffusivity ( ) const
virtual

◆ Uab()

◆ pab()

◆ phiab()

◆ primalSolverName()

const word primalSolverName ( ) const
virtual

Implements boundaryAdjointContribution.

Definition at line 362 of file boundaryAdjointContributionIncompressible.C.

References boundaryAdjointContributionIncompressible::primalVars_, and variablesSet::solverName().

Here is the call graph for this function:

◆ adjointSolverName()

const word adjointSolverName ( ) const
virtual

Implements boundaryAdjointContribution.

Definition at line 368 of file boundaryAdjointContributionIncompressible.C.

References boundaryAdjointContributionIncompressible::adjointVars(), and variablesSet::solverName().

Here is the call graph for this function:

◆ primalVars()

◆ adjointVars()

◆ getObjectiveManager()

Member Data Documentation

◆ objectiveManager_

◆ primalVars_

◆ adjointSolver_

const incompressibleAdjointSolver& adjointSolver_
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().


The documentation for this class was generated from the following files: