63 Info<< algorithmName_ <<
" correct: corrPISO = " << corrPISO_ <<
endl;
66 if (corrPISO_ <= nCorrPISO_)
100 bool finalInnerIter =
101 corrPISO_ == nCorrPISO_
102 && corrNonOrtho_ == nNonOrthCorr_ + 1;
104 if (finalOnLastPimpleIterOnly_)
106 return finalInnerIter && finalIter();
123 if (turbOnFinalIterOnly_)
127 setFirstIterFlag(
true,
true);
134 setFirstIterFlag(
true,
true);
142 return !turbOnFinalIterOnly_ || finalIter();
bool SIMPLErho() const
Flag to indicate whether to update density in SIMPLE.
bool SIMPLErho_
Flag to indicate whether to update density in SIMPLE rather than PISO mode.
label corrPISO_
Current PISO corrector.
bool finalIter() const
Return true for final PIMPLE (outer) iteration.
label corrPISO() const
Current PISO corrector index.
label nCorrPIMPLE() const
Maximum number of PIMPLE correctors.
bool turbCorr()
Return true to solve for turbulence.
bool finalOnLastPimpleIterOnly_
Flag to indicate wheter the final solver is used only on the final pimple iter.
label nCorrPISO_
Maximum number of PISO correctors.
label nCorrPIMPLE_
Maximum number of PIMPLE correctors.
bool finalInnerIter() const
Return true for final inner iteration.
bool storeInitialResiduals() const
Return true to store the initial residuals.
bool solveFlow_
Flag to indicate whether to solve for the flow.
bool correct()
Pressure corrector loop control.
bool firstIter() const
Return true for first PIMPLE (outer) iteration.
bool turbOnFinalIterOnly_
Flag to indicate whether to only solve turbulence on final iter.
bool ddtCorr() const
Return true to apply ddtCorr.
bool ddtCorr_
Flag to indicate that ddtCorr should be applied; default = yes.
virtual void setFirstIterFlag(const bool check=true, const bool force=false)
Set the firstIteration flag on the mesh data dictionary.
label nCorrPISO() const
Maximum number of PISO correctors.
bool solveFlow() const
Return true to solve for flow.
bool converged_
Converged flag.
const word algorithmName_
The dictionary name, e.g. SIMPLE, PIMPLE.
label corrNonOrtho_
Current non-orthogonal corrector loop index.
label corr_
Current corrector loop index.
label nNonOrthCorr_
Maximum number of non-orthogonal correctors.
Namespace for handling debugging switches.
messageStream Info
Information stream (stdout output on master, null elsewhere).
Ostream & endl(Ostream &os)
Add newline and flush stream.