37 #ifndef solverControl_H 38 #define solverControl_H 143 inline label
iter()
const;
Base class for solution control classes.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual bool read()
Read controls from optimisationDict.
virtual ~solverControl()=default
Destructor.
label averageIter_
Current averaging iteration index.
bool storeInitValues_
Whether to re-initialize the solution based on the initial time step. Makes sense only for optimisati...
label averageStartIter() const
Return iteration index.
bool printMaxMags() const
Print max mags of solver fields.
Base class for solver control classes.
label iter_
Current iteration index.
label iter() const
Return iteration index.
const solver & solver_
Reference to the underlaying solver.
TypeName("solverControl")
Run-time type information.
virtual const dictionary solverDict() const
Read controls from optimisationDict.
bool doAverageIter() const
Whether or not to add fields of the current iteration to the average fields.
label averageStartIter_
Averaging start index.
bool printMaxMags_
Whether to print the max magnitude during each solver iteration.
bool average() const
Whether averaging is enabled or not.
label & averageIter()
Return average iteration index reference.
bool useAveragedFields() const
Use averaged fields? For solving the adjoint equations or computing sensitivities based on averaged f...
bool storeInitValues() const
Re-initialize.
bool average_
Do averaging.
virtual const dictionary solutionDict() const
Return the solutionControls dictionary.