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... | |
virtual tmp< fvPatchVectorField > | clone () const |
Construct and return a clone. More... | |
adjointOutletVelocityFvPatchVectorField (const adjointOutletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchVectorField > | clone (const DimensionedField< vector, volMesh > &iF) const |
Construct and return a clone setting 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::blocking) |
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... | |
virtual tmp< fvPatchVectorField > | clone () const |
Construct and return a clone. More... | |
adjointOutletVelocityFvPatchVectorField (const adjointOutletVelocityFvPatchVectorField &, const DimensionedField< vector, volMesh > &) | |
Construct as copy setting internal field reference. More... | |
virtual tmp< fvPatchVectorField > | clone (const DimensionedField< vector, volMesh > &iF) const |
Construct and return a clone setting internal field reference. More... | |
virtual void | updateCoeffs () |
Update the coefficients associated with the patch field. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
![]() | |
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 | |
![]() | |
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... | |
![]() | |
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.
Referenced by adjointOutletVelocityFvPatchVectorField::clone().
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 |
Construct and return a clone.
Definition at line 109 of file adjointOutletVelocityFvPatchVectorField.H.
References adjointOutletVelocityFvPatchVectorField::adjointOutletVelocityFvPatchVectorField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 130 of file adjointOutletVelocityFvPatchVectorField.H.
References adjointOutletVelocityFvPatchVectorField::adjointOutletVelocityFvPatchVectorField().
|
inlinevirtual |
Return true: Allow adjoint solvers to obtain the outlet phia.
value through HbyA
Definition at line 149 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 |
Construct and return a clone.
Definition at line 95 of file adjointOutletVelocityFvPatchVectorField.H.
References adjointOutletVelocityFvPatchVectorField::adjointOutletVelocityFvPatchVectorField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 116 of file adjointOutletVelocityFvPatchVectorField.H.
References adjointOutletVelocityFvPatchVectorField::adjointOutletVelocityFvPatchVectorField().
|
virtual |
Update the coefficients associated with the patch field.
|
virtual |
Write.