37 #ifndef adjointBoundaryCondition_H 38 #define adjointBoundaryCondition_H 101 TypeName(
"adjointBoundaryCondition");
111 const word& solverName
176 #define makeAdjointBoundaryCondition(adjointTypeBoundaryCondition) \ 177 defineNamedTemplateTypeNameAndDebug(adjointTypeBoundaryCondition, 0); word simulationType_
simulationType corresponding to field.
tmp< Field< typename Foam::outerProduct< Foam::vector, Type2 >::type > > computePatchGrad(word name)
Get gradient of field on a specific boundary.
adjointBoundaryCondition(const fvPatch &p, const DimensionedField< Type, volMesh > &iF, const word &solverName)
Construct from field and base name.
word managerName_
objectiveManager name corresponding to field
virtual void updatePrimalBasedQuantities()
Update the primal based quantities related to the adjoint boundary conditions.
const word & simulationType() const
Return the simulationType.
const word & adjointSolverName() const
Return adjointSolverName.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, any/none. Also accepts 0/1 as a string and shortcuts t/f, y/n.
void setBoundaryContributionPtr()
Set the ptr to the correct boundaryAdjointContribution.
bool addATCUaGradUTerm()
Whether to add the extra term from the UaGradU formulation.
virtual tmp< Field< typename Foam::outerProduct< Foam::vector, Type >::type > > dxdbMult() const
Return contribution to sensitivity derivatives.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
autoPtr< boundaryAdjointContribution > boundaryContrPtr_
Engine to manage contributions of the objective functions to the adjoint boundary conditions...
Generic templated field type.
const ATCModel & getATC() const
ATC type might be useful for a number of BCs. Return here.
A class for handling words, derived from Foam::string.
Base class for selecting the adjoint transpose convection model. Inherits from regIOobject to add loo...
Abstract base class for computing contributions of the objective functions to the adjoint boundary co...
boundaryAdjointContribution & getBoundaryAdjContribution()
Get boundaryContribution.
virtual ~adjointBoundaryCondition()=default
Destructor.
const fvPatch & patch_
Reference to patch.
Base class for solution control classes.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Switch addATCUaGradUTerm_
Whether to add the extra term from the UaGradU formulation.
A class for managing temporary objects.
TypeName("adjointBoundaryCondition")
Run-time type information.
const word & objectiveManagerName() const
Return objectiveManager name.
word adjointSolverName_
adjointSolver name corresponding to field