Public Member Functions | Protected Attributes | List of all members
sensitivity Class Referenceabstract

Abstract base class for adjoint sensitivities. More...

Inheritance diagram for sensitivity:
Inheritance graph
[legend]
Collaboration diagram for sensitivity:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("sensitivity")
 Runtime type information. More...
 
 sensitivity (const fvMesh &mesh, const dictionary &dict)
 Construct from components. More...
 
virtual ~sensitivity ()=default
 Destructor. More...
 
const dictionarydict () const
 Return the construction dictionary. More...
 
virtual bool readDict (const dictionary &dict)
 Read dictionary if changed. More...
 
virtual void computeDerivativesSize ()
 Compute design variables number. Does nothing in the base. More...
 
virtual const scalarFieldcalculateSensitivities ()=0
 Calculates and returns sensitivity fields. More...
 
virtual void write (const word &baseName=word::null)
 Write sensitivity fields. More...
 

Protected Attributes

const fvMeshmesh_
 
dictionary dict_
 
autoPtr< volScalarFieldfieldSensPtr_
 

Detailed Description

Abstract base class for adjoint sensitivities.

Source files

Definition at line 59 of file sensitivity.H.

Constructor & Destructor Documentation

◆ sensitivity()

sensitivity ( const fvMesh mesh,
const dictionary dict 
)

Construct from components.

Definition at line 37 of file sensitivity.C.

◆ ~sensitivity()

virtual ~sensitivity ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "sensitivity"  )

Runtime type information.

◆ dict()

const Foam::dictionary & dict ( ) const

◆ readDict()

bool readDict ( const dictionary dict)
virtual

Read dictionary if changed.

Reimplemented in sensitivitySurface, sensitivitySurfacePoints, FIBase, SIBase, and sensitivityMultiple.

Definition at line 56 of file sensitivity.C.

References dict.

Referenced by sensitivityMultiple::readDict(), SIBase::readDict(), FIBase::readDict(), sensitivitySurfacePoints::readDict(), and sensitivitySurface::readDict().

Here is the caller graph for this function:

◆ computeDerivativesSize()

void computeDerivativesSize ( )
virtual

Compute design variables number. Does nothing in the base.

Used to get the correct design variables number when setSensitivityPatchIDs are not set in the constructor

Reimplemented in sensitivitySurface.

Definition at line 64 of file sensitivity.C.

◆ calculateSensitivities()

virtual const scalarField& calculateSensitivities ( )
pure virtual

Calculates and returns sensitivity fields.

Used with optimisation libraries

Implemented in adjointSensitivity, and sensitivityMultiple.

◆ write()

void write ( const word baseName = word::null)
virtual

Write sensitivity fields.

If valid, copies boundaryFields to volFields and writes them. Virtual to be reimplemented by control points-based methods (Bezier, RBF) which do not need to write fields

Reimplemented in sensitivitySurface, sensitivitySurfacePoints, adjointSensitivity, sensitivityBezierFI, sensitivityVolBSplinesFI, SIBase, sensitivityVolBSplines, shapeSensitivities, sensitivityBezier, and sensitivityMultiple.

Definition at line 70 of file sensitivity.C.

Referenced by adjointSensitivity::write().

Here is the caller graph for this function:

Member Data Documentation

◆ mesh_

const fvMesh& mesh_
protected

◆ dict_

dictionary dict_
protected

◆ fieldSensPtr_

autoPtr<volScalarField> fieldSensPtr_
protected

Definition at line 70 of file sensitivity.H.

Referenced by adjointSensitivity::clearSensitivities().


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