adjointInletVelocityFvPatchVectorField Class Reference
Inheritance diagram for adjointInletVelocityFvPatchVectorField:
[legend]
Collaboration diagram for adjointInletVelocityFvPatchVectorField:
[legend]

Public Member Functions

 TypeName ("adjointInletVelocity")
 Runtime type information. More...
 
 adjointInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &)
 Construct from patch and internal field. More...
 
 adjointInletVelocityFvPatchVectorField (const fvPatch &, const DimensionedField< vector, volMesh > &, const dictionary &)
 Construct from patch, internal field and dictionary. More...
 
 adjointInletVelocityFvPatchVectorField (const adjointInletVelocityFvPatchVectorField &, const fvPatch &, const DimensionedField< vector, volMesh > &, const fvPatchFieldMapper &)
 
virtual tmp< fvPatchVectorField > clone () const
 Construct and return a clone. More...
 
 adjointInletVelocityFvPatchVectorField (const adjointInletVelocityFvPatchVectorField &, 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 tmp< Field< vector > > valueInternalCoeffs (const tmp< scalarField > &) const
 
virtual tmp< Field< vector > > valueBoundaryCoeffs (const tmp< scalarField > &) const
 
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...
 

Detailed Description

Constructor & Destructor Documentation

◆ adjointInletVelocityFvPatchVectorField() [1/4]

Construct from patch and internal field.

Definition at line 39 of file adjointInletVelocityFvPatchVectorField.C.

Referenced by adjointInletVelocityFvPatchVectorField::clone().

Here is the caller graph for this function:

◆ adjointInletVelocityFvPatchVectorField() [2/4]

adjointInletVelocityFvPatchVectorField ( const fvPatch &  p,
const DimensionedField< vector, volMesh > &  iF,
const dictionary &  dict 
)

Construct from patch, internal field and dictionary.

Definition at line 65 of file adjointInletVelocityFvPatchVectorField.C.

References dict, and p.

◆ adjointInletVelocityFvPatchVectorField() [3/4]

Construct by mapping given adjointInletVelocityFvPatchVectorField onto a new patch

Definition at line 51 of file adjointInletVelocityFvPatchVectorField.C.

◆ adjointInletVelocityFvPatchVectorField() [4/4]

Construct as copy setting internal field reference.

Definition at line 83 of file adjointInletVelocityFvPatchVectorField.C.

Member Function Documentation

◆ TypeName()

TypeName ( "adjointInletVelocity"  )

Runtime type information.

◆ clone() [1/2]

virtual tmp<fvPatchVectorField> clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 93 of file adjointInletVelocityFvPatchVectorField.H.

References adjointInletVelocityFvPatchVectorField::adjointInletVelocityFvPatchVectorField().

Here is the call graph for this function:

◆ clone() [2/2]

virtual tmp<fvPatchVectorField> clone ( const DimensionedField< vector, volMesh > &  iF) const
inlinevirtual

Construct and return a clone setting internal field reference.

Definition at line 110 of file adjointInletVelocityFvPatchVectorField.H.

References adjointInletVelocityFvPatchVectorField::adjointInletVelocityFvPatchVectorField().

Here is the call graph for this function:

◆ updateCoeffs()

void updateCoeffs ( )
virtual

Update the coefficients associated with the patch field.

Add explicit sink to zero adjoint velocity tangential motion at the cells next to the inlet

virtual void manipulateMatrix(fvMatrix<vector>& matrix);

Definition at line 95 of file adjointInletVelocityFvPatchVectorField.C.

References adjointBoundaryCondition< Type >::boundaryContrPtr_, and Foam::operator==().

Here is the call graph for this function:

◆ valueInternalCoeffs()

Foam::tmp< Foam::Field< Foam::vector > > valueInternalCoeffs ( const tmp< scalarField > &  ) const
virtual

Return the matrix diagonal coefficients corresponding to the evaluation of the value of this patchField with given weights

Definition at line 114 of file adjointInletVelocityFvPatchVectorField.C.

References Foam::New().

Here is the call graph for this function:

◆ valueBoundaryCoeffs()

Foam::tmp< Foam::Field< Foam::vector > > valueBoundaryCoeffs ( const tmp< scalarField > &  ) const
virtual

Return the matrix source coefficients corresponding to the evaluation of the value of this patchField with given weights

Definition at line 124 of file adjointInletVelocityFvPatchVectorField.C.

References Foam::New(), and Foam::Zero.

Here is the call graph for this function:

◆ write()

void write ( Ostream &  os) const
virtual

Write.

Definition at line 132 of file adjointInletVelocityFvPatchVectorField.C.

References fvPatchField< vector >::write(), and Ostream::writeEntry().

Here is the call graph for this function:

The documentation for this class was generated from the following files: