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 &) | |
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... | |
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... | |
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_ |
autoPtr< bool > | 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 59 of file adjointOutletVelocityFvPatchVectorField.H.
adjointOutletVelocityFvPatchVectorField | ( | const fvPatch & | p, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct from patch and internal field.
Definition at line 99 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 125 of file adjointOutletVelocityFvPatchVectorField.C.
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 111 of file adjointOutletVelocityFvPatchVectorField.C.
adjointOutletVelocityFvPatchVectorField | ( | const adjointOutletVelocityFvPatchVectorField & | pivpvf, |
const DimensionedField< vector, volMesh > & | iF | ||
) |
Construct as copy setting internal field reference.
Definition at line 143 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 103 of file adjointOutletVelocityFvPatchVectorField.H.
References adjointOutletVelocityFvPatchVectorField::adjointOutletVelocityFvPatchVectorField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 120 of file adjointOutletVelocityFvPatchVectorField.H.
References adjointOutletVelocityFvPatchVectorField::adjointOutletVelocityFvPatchVectorField().
|
inlinevirtual |
Return true: Allow adjoint solvers to obtain the outlet phia.
value through HbyA
Definition at line 136 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 156 of file adjointOutletVelocityFvPatchVectorField.C.
References fvPatchField< vector >::evaluate().
|
virtual |
Write.
Definition at line 165 of file adjointOutletVelocityFvPatchVectorField.C.
References fvPatchField< vector >::write(), and Ostream::writeEntry().
|
virtual |
Definition at line 176 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 88 of file adjointOutletVelocityFvPatchVectorField.H.
References adjointOutletVelocityFvPatchVectorField::adjointOutletVelocityFvPatchVectorField().
|
inlinevirtual |
Construct and return a clone setting internal field reference.
Definition at line 105 of file adjointOutletVelocityFvPatchVectorField.H.
References adjointOutletVelocityFvPatchVectorField::adjointOutletVelocityFvPatchVectorField().
|
virtual |
Update the coefficients associated with the patch field.
|
virtual |
Write.