Calculation of adjoint based sensitivities for Bezier control points. More...
Public Member Functions | |
TypeName ("Bezier") | |
Runtime type information. More... | |
sensitivityBezier (const fvMesh &mesh, const dictionary &dict, incompressibleAdjointSolver &adjointSolver) | |
Construct from components. More... | |
virtual | ~sensitivityBezier ()=default |
Destructor. More... | |
virtual void | assembleSensitivities () |
Assemble sensitivities. More... | |
virtual void | clearSensitivities () |
Zero sensitivity fields and their constituents. More... | |
virtual void | write (const word &baseName=word::null) |
Write sensitivities to file. More... | |
Public Member Functions inherited from SIBase | |
TypeName ("volumetricBSplinesFI") | |
Runtime type information. More... | |
SIBase (const fvMesh &mesh, const dictionary &dict, incompressibleAdjointSolver &adjointSolver) | |
Construct from components. More... | |
virtual | ~SIBase ()=default |
Destructor. More... | |
virtual bool | readDict (const dictionary &dict) |
Read dict if changed. More... | |
virtual void | accumulateIntegrand (const scalar dt) |
Accumulate sensitivity integrands. More... | |
const sensitivitySurface & | getSurfaceSensitivities () const |
Return reference to underlaying surface sensitivities. More... | |
Public Member Functions inherited from shapeSensitivities | |
TypeName ("shapeSensitivities") | |
Runtime type information. More... | |
shapeSensitivities (const fvMesh &mesh, const dictionary &dict, incompressibleAdjointSolver &adjointSolver) | |
Construct from components. More... | |
virtual | ~shapeSensitivities ()=default |
Destructor. More... | |
Public Member Functions inherited from adjointSensitivity | |
TypeName ("adjointSensitivity") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, adjointSensitivity, dictionary,(const fvMesh &mesh, const dictionary &dict, incompressibleAdjointSolver &adjointSolver),(mesh, dict, adjointSolver)) | |
adjointSensitivity (const fvMesh &mesh, const dictionary &dict, incompressibleAdjointSolver &adjointSolver) | |
Construct from components. More... | |
virtual | ~adjointSensitivity ()=default |
Destructor. More... | |
const incompressibleVars & | primalVars () const |
Get primal variables. More... | |
const incompressibleAdjointVars & | adjointVars () const |
Get adjoint variables. More... | |
const incompressibleAdjointSolver & | adjointSolver () const |
Get adjoint solver. More... | |
virtual const scalarField & | calculateSensitivities () |
Calculates and returns sensitivity fields. More... | |
const scalarField & | getSensitivities () const |
Returns the sensitivity fields. More... | |
tmp< volTensorField > | computeGradDxDbMultiplier () |
Compute the volTensorField multiplying grad(dxdb) for the volume-based approach to compute shape sensitivity derivatives. More... | |
tmp< volVectorField > | adjointMeshMovementSource () |
Compute source term for adjoint mesh movement equation. More... | |
Public Member Functions inherited from sensitivity | |
TypeName ("sensitivity") | |
Runtime type information. More... | |
sensitivity (const fvMesh &mesh, const dictionary &dict) | |
Construct from components. More... | |
virtual | ~sensitivity ()=default |
Destructor. More... | |
const dictionary & | dict () const |
Return the construction dictionary. More... | |
virtual void | computeDerivativesSize () |
Compute design variables number. Does nothing in the base. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from adjointSensitivity | |
static autoPtr< adjointSensitivity > | New (const fvMesh &mesh, const dictionary &dict, incompressibleAdjointSolver &adjointSolver) |
Return a reference to the selected turbulence model. More... | |
Protected Member Functions inherited from SIBase | |
void | read () |
Read options from dict. More... | |
Protected Member Functions inherited from shapeSensitivities | |
virtual void | accumulateDirectSensitivityIntegrand (const scalar dt) |
Accumulate direct sensitivities. More... | |
virtual void | accumulateBCSensitivityIntegrand (const scalar dt) |
Accumulate sensitivities enamating from the boundary conditions. More... | |
tmp< boundaryVectorField > | dvdbMult () const |
Compute multiplier of dv_i/db. More... | |
Calculation of adjoint based sensitivities for Bezier control points.
Definition at line 59 of file sensitivityBezierIncompressible.H.
sensitivityBezier | ( | const fvMesh & | mesh, |
const dictionary & | dict, | ||
incompressibleAdjointSolver & | adjointSolver | ||
) |
Construct from components.
Definition at line 48 of file sensitivityBezierIncompressible.C.
References Foam::mkDir(), and Foam::Zero.
|
virtualdefault |
Destructor.
TypeName | ( | "Bezier" | ) |
Runtime type information.
|
virtual |
Assemble sensitivities.
Implements SIBase.
Definition at line 73 of file sensitivityBezierIncompressible.C.
References sensitivitySurface::assembleSensitivities(), shapeSensitivities::bcDxDbMult_, sensitivityBezier::bcSens_, sensitivityBezier::Bezier_, Bezier::confineXmovement(), Bezier::confineYmovement(), Bezier::confineZmovement(), adjointSensitivity::derivatives_, Bezier::dndbBasedSensitivities(), sensitivityBezier::dndbSens_, shapeSensitivities::dnfdbMult_, sensitivityBezier::dSdbSens_, shapeSensitivities::dSfdbMult_, shapeSensitivities::dxdbDirectMult_, sensitivityBezier::dxdbDirectSens_, Bezier::dxdbFace(), sensitivityBezier::flowSens_, forAll, Foam::gSum(), SIBase::includeObjective_, Bezier::nBezier(), sensitivityBezier::sens_, SIBase::surfaceSensitivity_, and Foam::Zero.
|
virtual |
Zero sensitivity fields and their constituents.
Reimplemented from SIBase.
Definition at line 172 of file sensitivityBezierIncompressible.C.
References sensitivityBezier::bcSens_, SIBase::clearSensitivities(), sensitivityBezier::dndbSens_, sensitivityBezier::dSdbSens_, sensitivityBezier::dxdbDirectSens_, sensitivityBezier::flowSens_, sensitivityBezier::sens_, and Foam::Zero.
|
virtual |
Write sensitivities to file.
Reimplemented from SIBase.
Definition at line 185 of file sensitivityBezierIncompressible.C.
References adjointSensitivity::adjointVars_, sensitivityBezier::bcSens_, sensitivityBezier::Bezier_, Field< Type >::component(), Bezier::confineMovement(), IOstream::defaultPrecision(), adjointSensitivity::derivatives_, sensitivityBezier::derivativesFolder_, sensitivityBezier::dndbSens_, sensitivityBezier::dSdbSens_, sensitivityBezier::dxdbDirectSens_, Foam::endl(), sensitivityBezier::flowSens_, Foam::Info, UPstream::master(), Foam::max(), sensitivity::mesh_, Foam::name(), Bezier::nBezier(), sensitivityBezier::sens_, Foam::setw(), UList< T >::size(), variablesSet::solverName(), fvMesh::time(), Time::timeName(), and SIBase::write().
|
protected |
Definition at line 67 of file sensitivityBezierIncompressible.H.
Referenced by sensitivityBezier::assembleSensitivities(), and sensitivityBezier::write().
|
protected |
Definition at line 69 of file sensitivityBezierIncompressible.H.
Referenced by sensitivityBezier::assembleSensitivities(), sensitivityBezier::clearSensitivities(), and sensitivityBezier::write().
|
protected |
Definition at line 70 of file sensitivityBezierIncompressible.H.
Referenced by sensitivityBezier::assembleSensitivities(), sensitivityBezier::clearSensitivities(), and sensitivityBezier::write().
|
protected |
Definition at line 71 of file sensitivityBezierIncompressible.H.
Referenced by sensitivityBezier::assembleSensitivities(), sensitivityBezier::clearSensitivities(), and sensitivityBezier::write().
|
protected |
Definition at line 72 of file sensitivityBezierIncompressible.H.
Referenced by sensitivityBezier::assembleSensitivities(), sensitivityBezier::clearSensitivities(), and sensitivityBezier::write().
|
protected |
Definition at line 73 of file sensitivityBezierIncompressible.H.
Referenced by sensitivityBezier::assembleSensitivities(), sensitivityBezier::clearSensitivities(), and sensitivityBezier::write().
|
protected |
Definition at line 74 of file sensitivityBezierIncompressible.H.
Referenced by sensitivityBezier::assembleSensitivities(), sensitivityBezier::clearSensitivities(), and sensitivityBezier::write().
|
protected |
Definition at line 76 of file sensitivityBezierIncompressible.H.
Referenced by sensitivityBezier::write().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.