40#ifndef optimisationManager_H
41#define optimisationManager_H
140 virtual bool end() = 0;
143 virtual bool update() = 0;
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Mesh data needed to do the Finite Volume discretisation.
Abstract base class for optimisation methods.
virtual ~optimisationManager()=default
Destructor.
virtual bool end()=0
Return true if end of optimisation run.
virtual bool checkEndOfLoopAndUpdate()=0
Return true if end of optimisation run.
TypeName("optimisationManager")
Runtime type information.
virtual optimisationManager & operator++(int)=0
Postfix increment, this is identical to the prefix increment.
declareRunTimeSelectionTable(autoPtr, optimisationManager, dictionary,(fvMesh &mesh),(mesh))
virtual void updateDesignVariables()=0
Update design variables.
autoPtr< incompressible::optimisationType > optType_
virtual optimisationManager & operator++()=0
Prefix increment,.
virtual bool update()=0
Whether to update the design variables.
virtual void solvePrimalEquations()
Solve all primal equations.
virtual void updatePrimalBasedQuantities()
Solve all primal equations.
PtrList< adjointSolverManager > adjointSolverManagers_
virtual void solveAdjointEquations()
Solve all adjoint equations.
virtual PtrList< adjointSolverManager > & adjointSolverManagers()
PtrList< primalSolver > primalSolvers_
static autoPtr< optimisationManager > New(fvMesh &mesh)
Return a reference to the selected turbulence model.
virtual void computeSensitivities()
Compute all adjoint sensitivities.
virtual PtrList< primalSolver > & primalSolvers()
virtual bool read()
Read object.
A class for handling words, derived from Foam::string.
Macros to ease declaration of run-time selection tables.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.