adjointBoundaryCondition< Type > Class Template Reference

Base class for solution control classes. More...

Inheritance diagram for adjointBoundaryCondition< Type >:
[legend]
Collaboration diagram for adjointBoundaryCondition< Type >:
[legend]

Public Member Functions

 TypeName ("adjointBoundaryCondition")
 Run-time type information. More...
 
 adjointBoundaryCondition (const fvPatch &p, const DimensionedField< Type, volMesh > &iF, const word &solverName)
 Construct from field and base name. More...
 
 adjointBoundaryCondition (const adjointBoundaryCondition< Type > &)
 Construct as copy. More...
 
virtual ~adjointBoundaryCondition ()=default
 Destructor. More...
 
const wordobjectiveManagerName () const
 Return objectiveManager name. More...
 
const wordadjointSolverName () const
 Return adjointSolverName. More...
 
const wordsimulationType () const
 Return the simulationType. More...
 
void setBoundaryContributionPtr ()
 Set the ptr to the correct boundaryAdjointContribution. More...
 
boundaryAdjointContributiongetBoundaryAdjContribution ()
 Get boundaryContribution. More...
 
const ATCModelgetATC () const
 ATC type might be useful for a number of BCs. Return here. More...
 
virtual tmp< Field< typename Foam::outerProduct< Foam::vector, Type >::type > > dxdbMult () const
 Return contribution to sensitivity derivatives. More...
 

Protected Member Functions

template<class Type2 >
tmp< Field< typename Foam::outerProduct< Foam::vector, Type2 >::type > > computePatchGrad (word name)
 Get gradient of field on a specific boundary. More...
 
bool addATCUaGradUTerm ()
 Whether to add the extra term from the UaGradU formulation. More...
 

Protected Attributes

const fvPatchpatch_
 Reference to patch. More...
 
word managerName_
 objectiveManager name corresponding to field More...
 
word adjointSolverName_
 adjointSolver name corresponding to field More...
 
word simulationType_
 simulationType corresponding to field. More...
 
autoPtr< boundaryAdjointContributionboundaryContrPtr_
 
autoPtr< booladdATCUaGradUTerm_
 Whether to add the extra term from the UaGradU formulation. More...
 

Detailed Description

template<class Type>
class Foam::adjointBoundaryCondition< Type >

Base class for solution control classes.

Definition at line 52 of file adjointBoundaryCondition.H.

Constructor & Destructor Documentation

◆ adjointBoundaryCondition() [1/2]

adjointBoundaryCondition ( const fvPatch p,
const DimensionedField< Type, volMesh > &  iF,
const word solverName 
)

Construct from field and base name.

Definition at line 184 of file adjointBoundaryCondition.C.

◆ adjointBoundaryCondition() [2/2]

adjointBoundaryCondition ( const adjointBoundaryCondition< Type > &  adjointBC)

Construct as copy.

Definition at line 158 of file adjointBoundaryCondition.C.

◆ ~adjointBoundaryCondition()

virtual ~adjointBoundaryCondition ( )
virtualdefault

Destructor.

Member Function Documentation

◆ computePatchGrad()

tmp< Field<typename Foam::outerProduct<Foam::vector, Type2>::type> > computePatchGrad ( word  name)
protected

Get gradient of field on a specific boundary.

◆ addATCUaGradUTerm()

bool addATCUaGradUTerm ( )
protected

Whether to add the extra term from the UaGradU formulation.

Definition at line 144 of file adjointBoundaryCondition.C.

Referenced by adjointOutletPressureFvPatchScalarField::updateCoeffs(), and adjointFarFieldPressureFvPatchScalarField::updateCoeffs().

Here is the caller graph for this function:

◆ TypeName()

TypeName ( "adjointBoundaryCondition< Type >"  )

Run-time type information.

◆ objectiveManagerName()

const word & objectiveManagerName ( ) const

Return objectiveManager name.

Definition at line 205 of file adjointBoundaryCondition.C.

◆ adjointSolverName()

const word & adjointSolverName ( ) const

Return adjointSolverName.

Definition at line 212 of file adjointBoundaryCondition.C.

◆ simulationType()

const word & simulationType ( ) const

Return the simulationType.

Definition at line 219 of file adjointBoundaryCondition.C.

◆ setBoundaryContributionPtr()

void setBoundaryContributionPtr ( )

Set the ptr to the correct boundaryAdjointContribution.

Definition at line 226 of file adjointBoundaryCondition.C.

References polyMesh::boundaryMesh(), Foam::endl(), objectRegistry::foundObject(), polyBoundaryMesh::mesh(), boundaryAdjointContribution::New(), Foam::nl, primitiveMesh::reset(), and WarningInFunction.

Here is the call graph for this function:

◆ getBoundaryAdjContribution()

boundaryAdjointContribution & getBoundaryAdjContribution ( )

Get boundaryContribution.

Definition at line 259 of file adjointBoundaryCondition.C.

◆ getATC()

const ATCModel & getATC ( ) const

ATC type might be useful for a number of BCs. Return here.

Definition at line 266 of file adjointBoundaryCondition.C.

◆ dxdbMult()

virtual tmp< Field<typename Foam::outerProduct<Foam::vector, Type>::type> > dxdbMult ( ) const
virtual

Return contribution to sensitivity derivatives.

For adjoint boundary conditions corresponding to primal boundary conditions that include geometric components (e.g. rotatingWallVelocity)

Reimplemented in adjointRotatingWallVelocityFvPatchVectorField.

Member Data Documentation

◆ patch_

const fvPatch& patch_
protected

Reference to patch.

Definition at line 59 of file adjointBoundaryCondition.H.

◆ managerName_

word managerName_
protected

objectiveManager name corresponding to field

Definition at line 62 of file adjointBoundaryCondition.H.

Referenced by adjointInletNuaTildaFvPatchScalarField::clone().

◆ adjointSolverName_

◆ simulationType_

word simulationType_
protected

simulationType corresponding to field.

A placeholder for now

Definition at line 69 of file adjointBoundaryCondition.H.

◆ boundaryContrPtr_

◆ addATCUaGradUTerm_

autoPtr<bool> addATCUaGradUTerm_
protected

Whether to add the extra term from the UaGradU formulation.

autoPtr since ATCModel has not been allocated at the time adjointBoundaryConditions are constructed

Definition at line 79 of file adjointBoundaryCondition.H.


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