Provides the adjoint outlet velocity values (i.e. adjoint velocity in case of a zeroGradient U boundary condition). Can have stability issues in cases of backflow of the primal velocity. The adjointOutletVelocityFlux should preferably be used. More...
Public Member Functions | |
TypeName ("adjointOutletVelocity") | |
Runtime type information. More... | |
adjointOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
Construct from patch and internal field. More... | |
adjointOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
adjointOutletVelocityFvPatchVectorField (const adjointOutletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given adjointOutletVelocityFvPatchVectorField onto a new patch. More... | |
adjointOutletVelocityFvPatchVectorField (const adjointOutletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchField< vector > > | clone () const |
Return a clone. More... | |
virtual tmp< fvPatchField< vector > > | clone (const DimensionedField< vector, volMesh > &iF) const |
Clone with an internal field reference. More... | |
virtual bool | assignable () const |
Return true: Allow adjoint solvers to obtain the outlet phia. More... | |
virtual void | evaluate (const Pstream::commsTypes commsType=Pstream::commsTypes::buffered) |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
virtual void | operator= (const fvPatchField< vector > &pvf) |
TypeName ("adjointOutletVelocity") | |
Runtime type information. More... | |
adjointOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &) | |
Construct from patch and internal field. More... | |
adjointOutletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &) | |
Construct from patch, internal field and dictionary. More... | |
adjointOutletVelocityFvPatchVectorField (const adjointOutletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &) | |
Construct by mapping given adjointOutletVelocityFvPatchVectorField. More... | |
adjointOutletVelocityFvPatchVectorField (const adjointOutletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchField< vector > > | clone () const |
Return a clone. More... | |
virtual tmp< fvPatchField< vector > > | clone (const DimensionedField< vector, volMesh > &iF) const |
Clone with an internal field reference. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
Public Member Functions inherited from adjointBoundaryCondition< Type > | |
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 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... | |
virtual tmp< Field< typename Foam::outerProduct< Foam::vector, Type >::type > > | dxdbMult () const |
Return contribution to sensitivity derivatives. More... | |
virtual void | updatePrimalBasedQuantities () |
Update the primal based quantities related to the adjoint boundary conditions. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from adjointBoundaryCondition< Type > | |
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 inherited from adjointBoundaryCondition< Type > | |
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_ |
Engine to manage contributions of the objective functions to the adjoint boundary conditions. More... | |
Switch | addATCUaGradUTerm_ |
Whether to add the extra term from the UaGradU formulation. More... | |
Provides the adjoint outlet velocity values (i.e. adjoint velocity in case of a zeroGradient U boundary condition). Can have stability issues in cases of backflow of the primal velocity. The adjointOutletVelocityFlux should preferably be used.
Definition at line 55 of file adjointOutletVelocityFvPatchVectorField.H.
adjointOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 92 of file adjointOutletVelocityFvPatchVectorField.C.
adjointOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF, | ||
const dictionary & | dict | ||
) |
Construct from patch, internal field and dictionary.
Definition at line 118 of file adjointOutletVelocityFvPatchVectorField.C.
References dict, and IOobjectOption::MUST_READ.
adjointOutletVelocityFvPatchVectorField | ( | const adjointOutletVelocityFvPatchVectorField & | ptf, |
const fvPatch & | p, | ||
const DimensionedField< vector, volMesh > & | iF, | ||
const fvPatchFieldMapper & | mapper | ||
) |
Construct by mapping given adjointOutletVelocityFvPatchVectorField onto a new patch.
Definition at line 104 of file adjointOutletVelocityFvPatchVectorField.C.
adjointOutletVelocityFvPatchVectorField | ( | const adjointOutletVelocityFvPatchVectorField & | pivpvf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 133 of file adjointOutletVelocityFvPatchVectorField.C.
adjointOutletVelocityFvPatchVectorField | ( | const fvPatch & | , |
const DimensionedField< vector, volMesh > & | |||
) |
Construct from patch and internal field.
adjointOutletVelocityFvPatchVectorField | ( | const fvPatch & | , |
const DimensionedField< vector, volMesh > & | , | ||
const dictionary & | |||
) |
Construct from patch, internal field and dictionary.
adjointOutletVelocityFvPatchVectorField | ( | const adjointOutletVelocityFvPatchVectorField & | , |
const fvPatch & | , | ||
const DimensionedField< vector, volMesh > & | , | ||
const fvPatchFieldMapper & | |||
) |
Construct by mapping given adjointOutletVelocityFvPatchVectorField.
onto a new patch
adjointOutletVelocityFvPatchVectorField | ( | const adjointOutletVelocityFvPatchVectorField & | , |
const DimensionedField< vector, volMesh > & | |||
) |
Construct as copy setting internal field reference.
TypeName | ( | "adjointOutletVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Return a clone.
Definition at line 118 of file adjointOutletVelocityFvPatchVectorField.H.
References fvPatchField< Type >::Clone().
|
inlinevirtual |
Clone with an internal field reference.
Definition at line 127 of file adjointOutletVelocityFvPatchVectorField.H.
References fvPatchField< Type >::Clone().
|
inlinevirtual |
Return true: Allow adjoint solvers to obtain the outlet phia.
value through HbyA
Definition at line 142 of file adjointOutletVelocityFvPatchVectorField.H.
|
virtual |
Update the coefficients associated with the patch field.
Apply adjoint BCs through evaluate rather than updateCoeffs in order to have the correct Ua boundaryField when computing the adjoint pressure BC
Definition at line 146 of file adjointOutletVelocityFvPatchVectorField.C.
References fvPatchField< vector >::evaluate().
|
virtual |
Write.
Definition at line 155 of file adjointOutletVelocityFvPatchVectorField.C.
References os(), fvPatchField< Type >::write(), Ostream::writeEntry(), and fvPatchField< Type >::writeValueEntry().
|
virtual |
Definition at line 166 of file adjointOutletVelocityFvPatchVectorField.C.
References fvPatchField< Type >::operator=(), and Foam::foamVersion::patch.
TypeName | ( | "adjointOutletVelocity" | ) |
Runtime type information.
|
inlinevirtual |
Return a clone.
Definition at line 104 of file adjointOutletVelocityFvPatchVectorField.H.
References fvPatchField< Type >::Clone().
|
inlinevirtual |
Clone with an internal field reference.
Definition at line 113 of file adjointOutletVelocityFvPatchVectorField.H.
References fvPatchField< Type >::Clone().
|
virtual |
Update the coefficients associated with the patch field.
|
virtual |
Write.