Pimple loop class. Implements the logic which controls the pimple loop generically for a given corrector convergence control. Can therefore be used be either single- or multi-region control classes. More...
Public Member Functions | |
TypeName ("pimpleLoop") | |
Run-time type information. More... | |
pimpleLoop (const solutionControl &control) | |
Construct from a solution control. More... | |
virtual | ~pimpleLoop () |
Destructor. More... | |
label | nCorrPimple () const |
Maximum number of pimple correctors. More... | |
bool | firstPimpleIter () const |
Flag to indicate the first pimple iteration. More... | |
bool | finalPimpleIter () const |
Flag to indicate the last pimple iteration. More... | |
bool | firstIter () const |
Flag to indicate the first iteration. More... | |
bool | finalIter () const |
Flag to indicate the last iteration. More... | |
bool | loop (correctorConvergenceControl &convergence) |
Pimple loop. More... | |
Protected Member Functions | |
virtual bool | read () |
Read controls. More... | |
Protected Attributes | |
const solutionControl & | control_ |
Reference to the solution control. More... | |
label | nCorrPimple_ |
Maximum number of pimple correctors. More... | |
label | corrPimple_ |
Current pimple corrector. More... | |
bool | converged_ |
Flag to indicate convergence of the pimple loop. More... | |
Pimple loop class. Implements the logic which controls the pimple loop generically for a given corrector convergence control. Can therefore be used be either single- or multi-region control classes.
Definition at line 51 of file pimpleLoop.H.
pimpleLoop | ( | const solutionControl & | control | ) |
Construct from a solution control.
Definition at line 49 of file pimpleLoop.C.
|
virtual |
Destructor.
Definition at line 60 of file pimpleLoop.C.
|
protectedvirtual |
Read controls.
Reimplemented in pimpleMultiRegionControl, and pimpleControl.
Definition at line 38 of file pimpleLoop.C.
Referenced by pimpleLoop::loop(), and pimpleControl::read().
TypeName | ( | "pimpleLoop" | ) |
Run-time type information.
|
inline |
Maximum number of pimple correctors.
Definition at line 28 of file pimpleLoopI.H.
References pimpleLoop::nCorrPimple_.
|
inline |
Flag to indicate the first pimple iteration.
Definition at line 34 of file pimpleLoopI.H.
References pimpleLoop::corrPimple_.
Referenced by pimpleLoop::firstIter(), and pimpleLoop::loop().
|
inline |
Flag to indicate the last pimple iteration.
Definition at line 40 of file pimpleLoopI.H.
References pimpleLoop::corrPimple_, and pimpleLoop::nCorrPimple_.
Referenced by pimpleLoop::finalIter().
|
inline |
Flag to indicate the first iteration.
Definition at line 46 of file pimpleLoopI.H.
References pimpleLoop::firstPimpleIter().
|
inline |
Flag to indicate the last iteration.
Definition at line 52 of file pimpleLoopI.H.
References pimpleLoop::converged_, and pimpleLoop::finalPimpleIter().
Referenced by pimpleControl::loop(), pimpleMultiRegionControl::pimpleTurbCorr(), and pimpleControl::turbCorr().
bool loop | ( | correctorConvergenceControl & | convergence | ) |
Pimple loop.
Definition at line 66 of file pimpleLoop.C.
References solutionControl::algorithmName(), solutionControl::algorithmSpace(), pimpleLoop::control_, pimpleLoop::converged_, correctorConvergenceControl::corrCriteriaSatisfied(), pimpleLoop::corrPimple_, Foam::endl(), pimpleLoop::firstPimpleIter(), correctorConvergenceControl::hasCorrResidualControls(), Foam::Info, pimpleLoop::nCorrPimple_, Foam::nl, pimpleLoop::read(), correctorConvergenceControl::resetCorrSolveIndex(), and correctorConvergenceControl::updateCorrSolveIndex().
Referenced by pimpleControl::loop(), and pimpleMultiRegionControl::loop().
|
protected |
Reference to the solution control.
Definition at line 58 of file pimpleLoop.H.
Referenced by pimpleLoop::loop().
|
protected |
Maximum number of pimple correctors.
Definition at line 61 of file pimpleLoop.H.
Referenced by pimpleLoop::finalPimpleIter(), pimpleLoop::loop(), pimpleLoop::nCorrPimple(), pimpleControl::pimpleControl(), and pimpleControl::read().
|
protected |
Current pimple corrector.
Definition at line 64 of file pimpleLoop.H.
Referenced by pimpleLoop::finalPimpleIter(), pimpleLoop::firstPimpleIter(), and pimpleLoop::loop().
|
protected |
Flag to indicate convergence of the pimple loop.
Definition at line 67 of file pimpleLoop.H.
Referenced by pimpleLoop::finalIter(), and pimpleLoop::loop().