Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
boundaryAdjointContributionIncompressible Class Reference

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

Inheritance diagram for boundaryAdjointContributionIncompressible:
Inheritance graph
[legend]
Collaboration diagram for boundaryAdjointContributionIncompressible:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("incompressible")
 
 boundaryAdjointContributionIncompressible (const word &managerName, const word &adjointSolverName, const word &simulationType, const fvPatch &patch)
 
virtual ~boundaryAdjointContributionIncompressible ()=default
 
tmp< scalarFieldpressureSource ()
 
tmp< vectorFieldvelocitySource ()
 
tmp< vectorFieldtangentVelocitySource ()
 
tmp< vectorFieldnormalVelocitySource ()
 
tmp< scalarFieldenergySource ()
 
tmp< scalarFieldadjointTMVariable1Source ()
 
tmp< scalarFieldadjointTMVariable2Source ()
 
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
 
const 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 ()
 
template<class returnType , class sourceType , class castType >
Foam::tmp< Foam::Field< returnType > > sumContributions (PtrList< sourceType > &sourceList, const fvPatchField< returnType > &(castType::*boundaryFunction)(const label))
 
- Public Member Functions inherited from boundaryAdjointContribution
 TypeName ("boundaryAdjointContribution")
 
 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)
 
virtual ~boundaryAdjointContribution ()=default
 

Protected Member Functions

template<class returnType , class sourceType , class castType >
tmp< Field< returnType > > sumContributions (PtrList< sourceType > &sourceList, const fvPatchField< returnType > &(castType::*boundaryFunction)(const label))
 

Protected Attributes

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

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 
)

Definition at line 47 of file boundaryAdjointContributionIncompressible.C.

◆ ~boundaryAdjointContributionIncompressible()

virtual ~boundaryAdjointContributionIncompressible ( )
virtualdefault

Member Function Documentation

◆ sumContributions() [1/2]

tmp<Field<returnType> > sumContributions ( PtrList< sourceType > &  sourceList,
const fvPatchField< returnType > &(castType::*)(const label)  boundaryFunction 
)
protected

◆ TypeName()

TypeName ( "incompressible"  )

◆ pressureSource()

tmp< scalarField > pressureSource ( )
virtual

◆ velocitySource()

tmp< vectorField > velocitySource ( )
virtual

◆ tangentVelocitySource()

tmp< vectorField > tangentVelocitySource ( )
virtual

◆ normalVelocitySource()

tmp< vectorField > normalVelocitySource ( )
virtual

◆ energySource()

tmp< scalarField > energySource ( )
virtual

◆ adjointTMVariable1Source()

tmp< scalarField > adjointTMVariable1Source ( )
virtual

◆ adjointTMVariable2Source()

tmp< scalarField > adjointTMVariable2Source ( )
virtual

◆ momentumDiffusion()

tmp< scalarField > momentumDiffusion ( )
virtual

◆ laminarDiffusivity()

tmp< scalarField > laminarDiffusivity ( )
virtual

◆ thermalDiffusion()

tmp< scalarField > thermalDiffusion ( )
virtual

Implements boundaryAdjointContribution.

Definition at line 247 of file boundaryAdjointContributionIncompressible.C.

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

Here is the call graph for this function:

◆ wallDistance()

tmp< scalarField > wallDistance ( )
virtual

◆ TMVariable1Diffusion()

tmp< scalarField > TMVariable1Diffusion ( )
virtual

◆ TMVariable2Diffusion()

tmp< scalarField > TMVariable2Diffusion ( )
virtual

◆ TMVariable1()

tmp< scalarField > TMVariable1 ( )
virtual

◆ TMVariable2()

tmp< scalarField > TMVariable2 ( )
virtual

◆ Ub()

const fvPatchVectorField & Ub ( ) const
virtual

◆ pb()

const fvPatchScalarField & pb ( ) const
virtual

◆ phib()

const fvsPatchScalarField & phib ( ) const
virtual

◆ turbulentDiffusivity()

const fvPatchScalarField & turbulentDiffusivity ( ) const
virtual

◆ Uab()

const fvPatchVectorField & Uab ( ) const
virtual

◆ pab()

const fvPatchScalarField & pab ( ) const
virtual

◆ phiab()

const fvsPatchScalarField & phiab ( ) const
virtual

◆ primalSolverName()

const word primalSolverName ( ) const
virtual

Implements boundaryAdjointContribution.

Definition at line 378 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 384 of file boundaryAdjointContributionIncompressible.C.

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

Here is the call graph for this function:

◆ primalVars()

const incompressibleVars & primalVars ( ) const

◆ adjointVars()

const incompressibleAdjointVars & adjointVars ( ) const

◆ getObjectiveManager()

objectiveManager & getObjectiveManager ( )

◆ sumContributions() [2/2]

Foam::tmp<Foam::Field<returnType> > sumContributions ( PtrList< sourceType > &  sourceList,
const fvPatchField< returnType > &(castType::*)(const label)  boundaryFunction 
)

Definition at line 28 of file boundaryAdjointContributionIncompressibleTemplates.C.

References Foam::New(), and Foam::Zero.

Here is the call graph for this function:

Member Data Documentation

◆ objectiveManager_

objectiveManager& objectiveManager_
protected

◆ primalVars_

const incompressibleVars& primalVars_
protected

◆ adjointSolver_

const incompressibleAdjointSolver& adjointSolver_
protected

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