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")
 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
 
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")
 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...
 

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_
 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...
 

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

◆ sumContributions() [1/2]

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

◆ TypeName()

TypeName ( "incompressible"  )

Runtime type information.

◆ 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

◆ dJdnut()

tmp< scalarField > dJdnut ( )
virtual

◆ dJdGradU()

tmp< tensorField > dJdGradU ( )
virtual

◆ momentumDiffusion()

tmp< scalarField > momentumDiffusion ( )
virtual

◆ laminarDiffusivity()

tmp< scalarField > laminarDiffusivity ( )
virtual

◆ thermalDiffusion()

tmp< scalarField > thermalDiffusion ( )
virtual

Implements boundaryAdjointContribution.

Definition at line 250 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 357 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 363 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

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: