pimpleSingleRegionControl Class Reference

Pimple single region control class. Provides time-loop control methods which exit the simulation once convergence criteria have been reached. Also provides Pimple-loop control methods which exit the iteration once corrector convergence criteria have been met. Example usage: More...

Inheritance diagram for pimpleSingleRegionControl:
Collaboration diagram for pimpleSingleRegionControl:

Public Member Functions

 TypeName ("pimpleSingleRegionControl")
 Run-time type information. More...
 
 pimpleSingleRegionControl (pimpleNoLoopControl &pimple)
 Construct from single region pimple. More...
 
 pimpleSingleRegionControl (const pimpleSingleRegionControl &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~pimpleSingleRegionControl ()
 Destructor. More...
 
virtual bool read ()
 Read controls. More...
 
bool loop ()
 Pimple loop. More...
 
bool run (Time &time)
 Time run loop. More...
 
bool loop (Time &time)
 Time loop loop. More...
 
- Public Member Functions inherited from pimpleLoop
 TypeName ("pimpleLoop")
 Run-time type information. More...
 
 pimpleLoop (const solutionControl &control)
 Construct from a solution control. More...
 
virtual ~pimpleLoop ()
 Destructor. More...
 
label nCorr () const
 Maximum number of correctors. More...
 
bool anyIter () const
 Flag to indicate any 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...
 

Additional Inherited Members

- Protected Attributes inherited from pimpleLoop
const solutionControlcontrol_
 Reference to the solution control. More...
 
label nCorr_
 Maximum number of correctors. More...
 
label corr_
 Current corrector. More...
 
bool converged_
 Flag to indicate convergence of the pimple loop. More...
 

Detailed Description

Pimple single region control class. Provides time-loop control methods which exit the simulation once convergence criteria have been reached. Also provides Pimple-loop control methods which exit the iteration once corrector convergence criteria have been met. Example usage:

pimpleSingleRegionControl pimple(mesh);

while (pimple.run(runTime))
{
    // pre-time-increment operations ...

    runTime ++;
    Info<< "Time = " << runTime.userTimeName() << nl << endl;

    while (pimple.loop())
    {
        // solve ...
    }

    // post-solve operations ...
}
Source files

Definition at line 72 of file pimpleSingleRegionControl.H.

Constructor & Destructor Documentation

◆ pimpleSingleRegionControl() [1/2]

◆ pimpleSingleRegionControl() [2/2]

Disallow default bitwise copy construction.

◆ ~pimpleSingleRegionControl()

Destructor.

Definition at line 77 of file pimpleSingleRegionControl.C.

Member Function Documentation

◆ TypeName()

TypeName ( "pimpleSingleRegionControl"  )

Run-time type information.

◆ read()

bool read ( )
virtual

Read controls.

Reimplemented from pimpleLoop.

Definition at line 85 of file pimpleSingleRegionControl.C.

References pimpleLoop::read().

Referenced by pimpleSingleRegionControl::pimpleSingleRegionControl().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ loop() [1/2]

bool loop ( )

Pimple loop.

Definition at line 91 of file pimpleSingleRegionControl.C.

References pimpleLoop::loop().

Here is the call graph for this function:

◆ run()

bool run ( Time time)

Time run loop.

Definition at line 108 of file pimpleSingleRegionControl.C.

◆ loop() [2/2]

bool loop ( Time time)

Time loop loop.

Definition at line 119 of file pimpleSingleRegionControl.C.

References Time::loop().

Here is the call graph for this function:

The documentation for this class was generated from the following files: