49 Foam::steadyOptimisation::steadyOptimisation(
fvMesh&
mesh)
70 new designVariablesUpdate
88 Info<<
"\n* * * * * * * * * * * * * * * * *" <<
endl;
89 Info<<
"Optimisation cycle " << time_.value() <<
endl;
90 Info<<
"* * * * * * * * * * * * * * * * *\n" <<
endl;
120 return (time_.timeIndex() != 1 && !
end());
virtual bool update()
Whether to update the design variables.
PtrList< adjointSolverManager > adjointSolverManagers_
List of adjoint solver managers to be included in the optimisation.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual bool checkEndOfLoopAndUpdate()
Return true if end of optimisation run.
fvMesh & mesh_
Reference to the mesh.
Abstract base class for optimisation methods.
Ostream & endl(Ostream &os)
Add newline and flush stream.
autoPtr< designVariablesUpdate > dvUpdate_
Helper class managing parts of the optimisation.
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
virtual void initialize()
Initialization. Construct primal and adjoint solvers.
Macros for easy insertion into run-time selection tables.
virtual optimisationManager & operator++()
Prefix increment.
virtual bool end()
Return true if end of optimisation run.
autoPtr< designVariables > designVars_
Design variables of the optimisation problem.
constexpr auto end(C &c) -> decltype(c.end())
Return iterator to the end of the container c.
defineTypeNameAndDebug(combustionModel, 0)
Mesh data needed to do the Finite Volume discretisation.
static autoPtr< designVariables > New(fvMesh &mesh, const dictionary &dict)
Return a reference to the selected design variables.
messageStream Info
Information stream (stdout output on master, null elsewhere)
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)