Base class for solution control classes. More...
Public Member Functions | |
TypeName ("adjointBoundaryCondition") | |
Run-time type information. More... | |
template<class Type > | |
adjointBoundaryCondition (const fvPatch &p, const DimensionedField< Type, volMesh > &iF, const word &solverName) | |
Construct from field and base name. More... | |
adjointBoundaryCondition (const adjointBoundaryCondition &) | |
Construct as copy. More... | |
virtual | ~adjointBoundaryCondition ()=default |
Destructor. More... | |
const word & | objectiveManagerName () const |
Return objectiveManager name. More... | |
const word & | adjointSolverName () const |
Return adjointSolverName. More... | |
const word & | simulationType () const |
Return the simulationType. More... | |
void | setBoundaryContributionPtr () |
Set the ptr to the correct boundaryAdjointContribution. More... | |
boundaryAdjointContribution & | getBoundaryAdjContribution () |
Get boundaryContribution. More... | |
const ATCModel & | getATC () const |
ATC type might be useful for a number of BCs. Return here. More... | |
Protected Member Functions | |
template<class Type > | |
tmp< Field< typename Foam::outerProduct< Foam::vector, Type >::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 fvPatch & | patch_ |
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< boundaryAdjointContribution > | boundaryContrPtr_ |
autoPtr< bool > | addATCUaGradUTerm_ |
Whether to add the extra term from the UaGradU formulation. More... | |
adjointBoundaryCondition | ( | const fvPatch & | p, |
const DimensionedField< Type, volMesh > & | iF, | ||
const word & | solverName | ||
) |
Construct from field and base name.
Definition at line 145 of file adjointBoundaryConditionTemplates.C.
adjointBoundaryCondition | ( | const adjointBoundaryCondition & | adjointBC | ) |
Construct as copy.
Definition at line 58 of file adjointBoundaryCondition.C.
|
virtualdefault |
Destructor.
|
protected |
Get gradient of field on a specific boundary.
|
protected |
Whether to add the extra term from the UaGradU formulation.
Definition at line 45 of file adjointBoundaryCondition.C.
References adjointBoundaryCondition::addATCUaGradUTerm_, autoPtr< T >::empty(), adjointBoundaryCondition::getATC(), and autoPtr< T >::reset().
Referenced by adjointOutletPressureFvPatchScalarField::updateCoeffs(), and adjointFarFieldPressureFvPatchScalarField::updateCoeffs().
TypeName | ( | "adjointBoundaryCondition" | ) |
Run-time type information.
const word & objectiveManagerName | ( | ) | const |
Return objectiveManager name.
Definition at line 82 of file adjointBoundaryCondition.C.
References adjointBoundaryCondition::managerName_.
const word & adjointSolverName | ( | ) | const |
Return adjointSolverName.
Definition at line 88 of file adjointBoundaryCondition.C.
References adjointBoundaryCondition::adjointSolverName_.
const word & simulationType | ( | ) | const |
Return the simulationType.
Definition at line 94 of file adjointBoundaryCondition.C.
References adjointBoundaryCondition::simulationType_.
void setBoundaryContributionPtr | ( | ) |
Set the ptr to the correct boundaryAdjointContribution.
Definition at line 100 of file adjointBoundaryCondition.C.
References adjointBoundaryCondition::adjointSolverName_, adjointBoundaryCondition::boundaryContrPtr_, fvPatch::boundaryMesh(), Foam::endl(), objectRegistry::foundObject(), adjointBoundaryCondition::managerName_, fvBoundaryMesh::mesh(), boundaryAdjointContribution::New(), Foam::nl, adjointBoundaryCondition::patch_, adjointBoundaryCondition::simulationType_, and WarningInFunction.
boundaryAdjointContribution & getBoundaryAdjContribution | ( | ) |
Get boundaryContribution.
Definition at line 132 of file adjointBoundaryCondition.C.
References adjointBoundaryCondition::boundaryContrPtr_.
const ATCModel & getATC | ( | ) | const |
ATC type might be useful for a number of BCs. Return here.
Definition at line 138 of file adjointBoundaryCondition.C.
References adjointBoundaryCondition::adjointSolverName_, fvPatch::boundaryMesh(), objectRegistry::lookupObject(), fvBoundaryMesh::mesh(), and adjointBoundaryCondition::patch_.
Referenced by adjointBoundaryCondition::addATCUaGradUTerm().
|
protected |
Reference to patch.
Definition at line 58 of file adjointBoundaryCondition.H.
Referenced by adjointBoundaryCondition::getATC(), and adjointBoundaryCondition::setBoundaryContributionPtr().
|
protected |
objectiveManager name corresponding to field
Definition at line 61 of file adjointBoundaryCondition.H.
Referenced by adjointInletNuaTildaFvPatchScalarField::clone(), adjointBoundaryCondition::objectiveManagerName(), and adjointBoundaryCondition::setBoundaryContributionPtr().
|
protected |
adjointSolver name corresponding to field
Definition at line 64 of file adjointBoundaryCondition.H.
Referenced by adjointBoundaryCondition::adjointSolverName(), adjointBoundaryCondition::getATC(), adjointBoundaryCondition::setBoundaryContributionPtr(), adjointOutletNuaTildaFvPatchScalarField::write(), adjointFarFieldNuaTildaFvPatchScalarField::write(), adjointInletNuaTildaFvPatchScalarField::write(), and adjointOutletNuaTildaFluxFvPatchScalarField::write().
|
protected |
simulationType corresponding to field.
A placeholder for now
Definition at line 68 of file adjointBoundaryCondition.H.
Referenced by adjointBoundaryCondition::setBoundaryContributionPtr(), and adjointBoundaryCondition::simulationType().
|
protected |
Engine to manage contributions of the objective functions to the adjoint boundary conditions
Definition at line 72 of file adjointBoundaryCondition.H.
Referenced by adjointBoundaryCondition::getBoundaryAdjContribution(), adjointBoundaryCondition::setBoundaryContributionPtr(), adjointOutletNuaTildaFvPatchScalarField::updateCoeffs(), adjointFarFieldVelocityFvPatchVectorField::updateCoeffs(), adjointWallVelocityLowReFvPatchVectorField::updateCoeffs(), adjointFarFieldNuaTildaFvPatchScalarField::updateCoeffs(), adjointOutletPressureFvPatchScalarField::updateCoeffs(), adjointInletVelocityFvPatchVectorField::updateCoeffs(), adjointOutletVelocityFluxFvPatchVectorField::updateCoeffs(), adjointWallVelocityFvPatchVectorField::updateCoeffs(), and adjointFarFieldPressureFvPatchScalarField::updateCoeffs().
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 78 of file adjointBoundaryCondition.H.
Referenced by adjointBoundaryCondition::addATCUaGradUTerm().