Go to the documentation of this file.
37 #ifndef adjointBoundaryCondition_H
38 #define adjointBoundaryCondition_H
101 TypeName(
"adjointBoundaryCondition");
111 const word& solverName
172 #define makeAdjointBoundaryCondition(adjointTypeBoundaryCondition) \
173 defineNamedTemplateTypeNameAndDebug(adjointTypeBoundaryCondition, 0);
boundaryAdjointContribution & getBoundaryAdjContribution()
Get boundaryContribution.
adjointBoundaryCondition(const fvPatch &p, const DimensionedField< Type, volMesh > &iF, const word &solverName)
Construct from field and base name.
A class for handling words, derived from Foam::string.
const fvPatch & patch_
Reference to patch.
const word & simulationType() const
Return the simulationType.
A class for managing temporary objects.
Base class for solution control classes.
autoPtr< boundaryAdjointContribution > boundaryContrPtr_
Base class for selecting the adjoint transpose convection model. Inherits from regIOobject to add loo...
const ATCModel & getATC() const
ATC type might be useful for a number of BCs. Return here.
void setBoundaryContributionPtr()
Set the ptr to the correct boundaryAdjointContribution.
Generic templated field type.
word adjointSolverName_
adjointSolver name corresponding to field
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
word simulationType_
simulationType corresponding to field.
bool addATCUaGradUTerm()
Whether to add the extra term from the UaGradU formulation.
tmp< Field< typename Foam::outerProduct< Foam::vector, Type2 >::type > > computePatchGrad(word name)
Get gradient of field on a specific boundary.
word managerName_
objectiveManager name corresponding to field
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Abstract base class for computing contributions of the objective functions to the adjoint boundary co...
virtual tmp< Field< typename Foam::outerProduct< Foam::vector, Type >::type > > dxdbMult() const
Return contribution to sensitivity derivatives.
const word & objectiveManagerName() const
Return objectiveManager name.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
const word & adjointSolverName() const
Return adjointSolverName.
TypeName("adjointBoundaryCondition")
Run-time type information.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
autoPtr< bool > addATCUaGradUTerm_
Whether to add the extra term from the UaGradU formulation.