61 averageIter_(
solver.getOrDefault<label>(
"averageIter", 0)),
62 averageStartIter_(-1),
66 solverDict().getOrDefault<bool>(
"storeInitValues", false)
71 getOrDefault<bool>(
"average", false)
fvSolution solutionDict(runTime)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
dictionary subOrEmptyDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX, const bool mandatory=false) const
Find and return a sub-dictionary as a copy, otherwise return an empty dictionary.
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a T, or return the given default value. FatalIOError if it is found and the number of...
Base class for solver control classes.
const solver & solver_
Reference to the underlaying solver.
bool storeInitValues_
Whether to re-initialize the solution based on the initial time step. Makes sense only for optimisati...
bool average_
Do averaging.
label averageStartIter_
Averaging start index.
virtual const dictionary solutionDict() const
Return the solutionControls dictionary.
label averageIter_
Current averaging iteration index.
label iter_
Current iteration index.
virtual const dictionary solverDict() const
Read controls from optimisationDict.
virtual bool read()
Read controls from optimisationDict.
bool printMaxMags_
Whether to print the max magnitude during each solver iteration.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.