41 return solverDict().subDict(
"solutionControls");
83 if (average_ && iter_ >= averageStartIter_)
96 if (average_ && averageIter_)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
bool doAverageIter() const
Whether or not to add fields of the current iteration to the average fields.
const solver & solver_
Reference to the underlaying solver.
bool storeInitValues() const
Re-initialize.
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.
label & averageIter()
Return average iteration index reference.
bool average_
Do averaging.
label averageStartIter_
Averaging start index.
virtual const dictionary solutionDict() const
Return the solutionControls dictionary.
bool printMaxMags() const
Print max mags of solver fields.
bool useAveragedFields() const
Use averaged fields? For solving the adjoint equations or computing sensitivities based on averaged f...
label averageIter_
Current averaging iteration index.
label iter_
Current iteration index.
virtual const dictionary solverDict() const
Read controls from optimisationDict.
bool average() const
Whether averaging is enabled or not.
label iter() const
Return iteration index.
bool printMaxMags_
Whether to print the max magnitude during each solver iteration.
const solver & getSolver() const
Return reference to the underlaying solver.