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