Calculation of adjoint based sensitivities of multiple types. More...
#include <sensitivityMultiple.H>


Public Member Functions | |
| TypeName ("multiple") | |
| Runtime type information. | |
| sensitivityMultiple (const fvMesh &mesh, const dictionary &dict, adjointSolver &adjointSolver) | |
| Construct from components. | |
| virtual | ~sensitivityMultiple ()=default |
| Destructor. | |
| virtual bool | readDict (const dictionary &dict) |
| Read dict if changed. | |
| virtual void | accumulateIntegrand (const scalar dt) |
| Accumulate sensitivity integrands. | |
| virtual void | assembleSensitivities (autoPtr< designVariables > &designVars) |
| Assemble sensitivities. | |
| const scalarField & | calculateSensitivities (autoPtr< designVariables > &designVars) |
| Calculates sensitivities at wall surface points. | |
| virtual void | clearSensitivities () |
| Zero sensitivity fields and their constituents. | |
| virtual void | write (const word &baseName=word::null) |
| Write sensitivities to file. | |
| Public Member Functions inherited from adjointSensitivity | |
| TypeName ("adjointSensitivity") | |
| Runtime type information. | |
| declareRunTimeSelectionTable (autoPtr, adjointSensitivity, dictionary,(const fvMesh &mesh, const dictionary &dict, adjointSolver &adjointSolver),(mesh, dict, adjointSolver)) | |
| adjointSensitivity (const fvMesh &mesh, const dictionary &dict, adjointSolver &adjointSolver) | |
| Construct from components. | |
| virtual | ~adjointSensitivity ()=default |
| Destructor. | |
| const adjointSolver & | getAdjointSolver () const |
| Const access to adjoint solver. | |
| adjointSolver & | getAdjointSolver () |
| Non-const access to adjoint solver. | |
| bool | includeDistance () const |
| Should the adjoint eikonal PDE should be solved. | |
| autoPtr< adjointEikonalSolver > & | getAdjointEikonalSolver () |
| Return the adjoint eikonal solver. | |
| autoPtr< adjointMeshMovementSolver > & | getAdjointMeshMovementSolver () |
| Return the adjoint eikonal solver. | |
| void | setSuffix (const word &suffix) |
| Set suffix. | |
| const word & | getSuffix () const |
| Get suffix. | |
| virtual bool | computeDxDbInternalField () const |
| Should the parameterization compute the internalField of dxdb. | |
| const scalarField & | getSensitivities () const |
| Returns the sensitivity fields. | |
| const autoPtr< volTensorField > & | gradDxDbMult () const |
| autoPtr< volTensorField > & | gradDxDbMult () |
| const autoPtr< scalarField > & | divDxDbMult () const |
| const autoPtr< boundaryVectorField > & | dxdbMult () const |
| const autoPtr< boundaryVectorField > & | dSfdbMult () const |
| const autoPtr< boundaryVectorField > & | dnfdbMult () const |
| const autoPtr< boundaryVectorField > & | dxdbDirectMult () const |
| const autoPtr< pointBoundaryVectorField > & | pointDxDbDirectMult () const |
| const autoPtr< boundaryVectorField > & | bcDxDbMult () const |
| const autoPtr< vectorField > & | optionsDxDbMult () const |
| Public Member Functions inherited from sensitivity | |
| TypeName ("sensitivity") | |
| Runtime type information. | |
| sensitivity (const fvMesh &mesh, const dictionary &dict) | |
| Construct from components. | |
| virtual | ~sensitivity ()=default |
| Destructor. | |
| const fvMesh & | mesh () const |
| Return reference to mesh. | |
| const dictionary & | dict () const |
| Return the construction dictionary. | |
| const autoPtr< volScalarField > & | fieldSensPtr () const |
| Get the fieldSensPtr. | |
Protected Attributes | |
| wordList | sensTypes_ |
| PtrList< adjointSensitivity > | sens_ |
| Protected Attributes inherited from adjointSensitivity | |
| adjointSolver & | adjointSolver_ |
| Reference to the underlaying adjoint solver. | |
| scalarField | derivatives_ |
| The sensitivity derivative values. | |
| word | suffix_ |
| Append this word to files related to the sensitivities. | |
| bool | includeDistance_ |
| Include distance variation in sensitivity computations. | |
| autoPtr< adjointEikonalSolver > | eikonalSolver_ |
| Adjoint eikonal equation solver. | |
| autoPtr< adjointMeshMovementSolver > | adjointMeshMovementSolver_ |
| Adjoint grid displacement solver. | |
| autoPtr< volTensorField > | gradDxDbMult_ |
| Multiplier of grad(dx/b). | |
| autoPtr< scalarField > | divDxDbMult_ |
| Multiplier of div(dx/db). | |
| autoPtr< boundaryVectorField > | dxdbMult_ |
| Multiplier of face dx/db. | |
| autoPtr< boundaryVectorField > | dSfdbMult_ |
| Multiplier of dSf/db. | |
| autoPtr< boundaryVectorField > | dnfdbMult_ |
| Multiplier of dnf/db. | |
| autoPtr< boundaryVectorField > | dxdbDirectMult_ |
| Multiplier of dCf/db, found in the objective function. | |
| autoPtr< pointBoundaryVectorField > | pointDxDbDirectMult_ |
| Multiplier of dx/db computed at points, found in the objective function. | |
| autoPtr< boundaryVectorField > | bcDxDbMult_ |
| Multiplier of dx/db, coming from boundary conditions that depend on the geometry, like rotatingWallVelocity. | |
| autoPtr< vectorField > | optionsDxDbMult_ |
| dx/db multiplier coming from fvOptions | |
| Protected Attributes inherited from sensitivity | |
| const fvMesh & | mesh_ |
| dictionary | dict_ |
| bool | writeFieldSens_ |
| autoPtr< volScalarField > | fieldSensPtr_ |
Additional Inherited Members | |
| Static Public Member Functions inherited from adjointSensitivity | |
| static autoPtr< adjointSensitivity > | New (const fvMesh &mesh, const dictionary &dict, adjointSolver &adjointSolver) |
| Return a reference to the selected turbulence model. | |
Calculation of adjoint based sensitivities of multiple types.
Definition at line 48 of file sensitivityMultiple.H.
| sensitivityMultiple | ( | const fvMesh & | mesh, |
| const dictionary & | dict, | ||
| adjointSolver & | adjointSolver ) |
Construct from components.
Definition at line 44 of file sensitivityMultiple.C.
References sensitivity::dict(), forAll, sensitivity::mesh(), adjointSensitivity::New(), sens_, and sensTypes_.

|
virtualdefault |
Destructor.
References sensitivity::dict(), and word::null.

| TypeName | ( | "multiple" | ) |
Runtime type information.
References sensitivity::dict(), and sensitivity::mesh().

|
virtual |
Read dict if changed.
Reimplemented from adjointSensitivity.
Definition at line 74 of file sensitivityMultiple.C.
References sensitivity::dict(), forAll, adjointSensitivity::readDict(), sens_, and sensTypes_.

|
virtual |
Accumulate sensitivity integrands.
Implements adjointSensitivity.
Definition at line 90 of file sensitivityMultiple.C.
|
virtual |
Assemble sensitivities.
Reimplemented from adjointSensitivity.
Definition at line 99 of file sensitivityMultiple.C.
|
virtual |
Calculates sensitivities at wall surface points.
Reimplemented from adjointSensitivity.
Definition at line 111 of file sensitivityMultiple.C.
References adjointSensitivity::derivatives_, Foam::endl(), forAll, Foam::Info, sens_, sensTypes_, Foam::type(), and write().

|
virtual |
Zero sensitivity fields and their constituents.
Reimplemented from adjointSensitivity.
Definition at line 127 of file sensitivityMultiple.C.
|
virtual |
Write sensitivities to file.
Reimplemented from adjointSensitivity.
Definition at line 136 of file sensitivityMultiple.C.
References forAll, sens_, and sensTypes_.
|
protected |
Definition at line 56 of file sensitivityMultiple.H.
Referenced by calculateSensitivities(), readDict(), sensitivityMultiple(), and write().
|
protected |
Definition at line 58 of file sensitivityMultiple.H.
Referenced by accumulateIntegrand(), assembleSensitivities(), calculateSensitivities(), clearSensitivities(), readDict(), sensitivityMultiple(), and write().