Abstract base class for optimisation methods. More...
Static Public Member Functions | |
static autoPtr< optimisationType > | New (fvMesh &mesh, const dictionary &dict, PtrList< adjointSolverManager > &adjointSolverManagers) |
Protected Member Functions | |
virtual void | updateDesignVariables (scalarField &correction)=0 |
virtual void | computeEta (scalarField &correction)=0 |
Protected Attributes | |
fvMesh & | mesh_ |
const dictionary | dict_ |
PtrList< adjointSolverManager > & | adjointSolvManagers_ |
autoPtr< updateMethod > | updateMethod_ |
autoPtr< volScalarField > | sourcePtr_ |
autoPtr< lineSearch > | lineSearch_ |
Abstract base class for optimisation methods.
Definition at line 54 of file optimisationTypeIncompressible.H.
optimisationType | ( | fvMesh & | mesh, |
const dictionary & | dict, | ||
PtrList< adjointSolverManager > & | adjointSolverManagers | ||
) |
Definition at line 43 of file optimisationTypeIncompressible.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::nl, and WarningInFunction.
|
virtualdefault |
|
protectedpure virtual |
Implemented in shapeOptimisation.
Referenced by optimisationType::update().
|
protectedpure virtual |
Implemented in shapeOptimisation.
Referenced by optimisationType::computeDirection().
TypeName | ( | "optimisationType" | ) |
declareRunTimeSelectionTable | ( | autoPtr | , |
optimisationType | , | ||
dictionary | , | ||
(fvMesh &mesh, const dictionary &dict, PtrList< adjointSolverManager > &adjointSolverManagers) | , | ||
(mesh, dict, adjointSolverManagers) | |||
) |
|
static |
Definition at line 120 of file optimisationTypeIncompressible.C.
References adjointSolverManagers, dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, Foam::Info, and mesh.
Referenced by steadyOptimisation::steadyOptimisation().
|
virtual |
Definition at line 152 of file optimisationTypeIncompressible.C.
References optimisationType::computeDirection(), Foam::correction(), tmp::ref(), optimisationType::updateOldCorrection(), and optimisationType::write().
|
virtual |
Definition at line 168 of file optimisationTypeIncompressible.C.
References Foam::correction(), optimisationType::lineSearch_, and optimisationType::updateDesignVariables().
|
pure virtual |
Implemented in shapeOptimisation.
|
pure virtual |
Implemented in shapeOptimisation.
|
virtual |
Definition at line 182 of file optimisationTypeIncompressible.C.
References optimisationType::computeEta(), Foam::correction(), tmp::ref(), optimisationType::updateGradientsAndValues(), optimisationType::updateMethod_, and Foam::Zero.
Referenced by optimisationType::update().
|
virtual |
Definition at line 218 of file optimisationTypeIncompressible.C.
References forAll, PtrList::set(), PtrList::setSize(), and Foam::Zero.
Referenced by optimisationType::computeDirection().
|
virtual |
Definition at line 275 of file optimisationTypeIncompressible.C.
References optimisationType::adjointSolvManagers_, optimisationType::updateMethod_, and Foam::Zero.
|
virtual |
Definition at line 302 of file optimisationTypeIncompressible.C.
References optimisationType::updateMethod_.
|
virtual |
Definition at line 308 of file optimisationTypeIncompressible.C.
References optimisationType::updateMethod_.
Referenced by optimisationType::update().
|
virtual |
Reimplemented in shapeOptimisation.
Definition at line 314 of file optimisationTypeIncompressible.C.
References optimisationType::updateMethod_.
Referenced by optimisationType::update(), and shapeOptimisation::write().
const autoPtr< volScalarField > & sourcePtr | ( | ) |
Definition at line 320 of file optimisationTypeIncompressible.C.
References optimisationType::sourcePtr_.
autoPtr< lineSearch > & getLineSearch | ( | ) |
Definition at line 326 of file optimisationTypeIncompressible.C.
References optimisationType::lineSearch_.
|
protected |
Definition at line 60 of file optimisationTypeIncompressible.H.
Referenced by shapeOptimisation::updateDesignVariables().
|
protected |
Definition at line 61 of file optimisationTypeIncompressible.H.
|
protected |
Definition at line 62 of file optimisationTypeIncompressible.H.
Referenced by optimisationType::computeMeritFunction().
|
protected |
Definition at line 63 of file optimisationTypeIncompressible.H.
Referenced by optimisationType::computeDirection(), optimisationType::computeMeritFunction(), optimisationType::meritFunctionDirectionalDerivative(), optimisationType::updateOldCorrection(), shapeOptimisation::write(), and optimisationType::write().
|
protected |
Definition at line 64 of file optimisationTypeIncompressible.H.
Referenced by optimisationType::sourcePtr().
|
protected |
Definition at line 65 of file optimisationTypeIncompressible.H.
Referenced by optimisationType::getLineSearch(), and optimisationType::update().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.