sensitivity Class Referenceabstract

Abstract base class for adjoint sensitivities. More...

Inheritance diagram for sensitivity:
Collaboration diagram for sensitivity:

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 63 of file sensitivity.H.

Constructor & Destructor Documentation

◆ sensitivity()

sensitivity ( const fvMesh mesh,
const dictionary dict 

Construct from components.

Definition at line 43 of file sensitivity.C.

◆ ~sensitivity()

virtual ~sensitivity ( )


Member Function Documentation

◆ TypeName()

TypeName ( "sensitivity"  )

Runtime type information.

◆ dict()

◆ readDict()

bool readDict ( const dictionary dict)

Read dictionary if changed.

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

Definition at line 63 of file sensitivity.C.

References dict, and sensitivity::readDict().

Referenced by sensitivity::readDict().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ computeDerivativesSize()

void computeDerivativesSize ( )

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 71 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)

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 adjointSensitivity, sensitivityBezier, sensitivityBezierFI, sensitivityMultiple, sensitivitySurface, sensitivitySurfacePoints, sensitivityVolBSplines, sensitivityVolBSplinesFI, shapeSensitivities, and SIBase.

Definition at line 77 of file sensitivity.C.

Member Data Documentation

◆ mesh_

◆ dict_

dictionary dict_

Definition at line 70 of file sensitivity.H.

Referenced by FIBase::read(), sensitivityBezierFI::read(), and sensitivitySurface::read().

◆ fieldSensPtr_

autoPtr<volScalarField> fieldSensPtr_

Definition at line 74 of file sensitivity.H.

Referenced by adjointSensitivity::clearSensitivities().

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