Go to the documentation of this file.
43 Foam::SIMPLEControl::SIMPLEControl
46 const word& managerType,
52 managerType_(managerType),
66 const word& managerType,
70 auto* ctorPtr = dictionaryConstructorTable(managerType);
78 *dictionaryConstructorTablePtr_
95 <<
"Average start iteration is larger than nIter in solver "
97 <<
tab <<
"Disabling averaging ..." <<
nl
108 nIters_ =
dict().
get<label>(
"nIters");
114 if (average_ && iter_ < averageStartIter_)
117 <<
"Solver " << solver_.solverName()
118 <<
" converged before averaging started" <<
nl <<
tab
119 <<
"Using instantaneous fields ..." <<
nl
A class for handling words, derived from Foam::string.
label averageStartIter_
Averaging start index.
virtual bool read()
Read controls from optimisationDict.
SIMPLE control class to supply convergence information/checks for the SIMPLE loop.
const word & solverName() const
Return the solver name.
static constexpr const zero Zero
Global zero (0)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
bool average_
Do averaging.
Base class for solver control classes.
Ostream & endl(Ostream &os)
Add newline and flush stream.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Base class for solution control classes.
virtual bool read()
Read controls from fvSolution dictionary.
void checkMeanSolution() const
const solver & solver_
Reference to the underlaying solver.
#define FatalErrorInLookup(lookupTag, lookupName, lookupTable)
Report an error message using Foam::FatalError.
Mesh data needed to do the Finite Volume discretisation.
static autoPtr< SIMPLEControl > New(fvMesh &mesh, const word &managerType, const solver &solver)
Return a reference to the selected turbulence model.
errorManipArg< error, int > exit(error &err, const int errNo=1)
bool read()
Read controls from fvSolution dictionary.
label nIters_
Number of SIMPLE iterations.
defineTypeNameAndDebug(combustionModel, 0)
#define WarningInFunction
Report a warning using Foam::Warning.