subCycleTime Class Reference

A class for managing sub-cycling times. More...

Inheritance diagram for subCycleTime:
[legend]

Public Member Functions

 subCycleTime (Time &runTime, const label nCycle)
 Construct referencing the original time and number of sub-cycles. More...
 
 ~subCycleTime ()
 Destructor. More...
 
label index () const
 Return the current sub-cycle index. More...
 
label nSubCycles () const
 Return the total number of sub-cycles. More...
 
bool status () const
 True if the sub-cycle is active. More...
 
bool end () const
 Return true if the number of sub-cycles has been reached. More...
 
void endSubCycle ()
 End the sub-cycling and reset the time-state. More...
 
bool loop ()
 True if looping is active, increments the index. More...
 
subCycleTimeoperator++ ()
 Prefix increment. More...
 
subCycleTimeoperator++ (int)
 Postfix increment, this is identical to the prefix increment. More...
 

Detailed Description

A class for managing sub-cycling times.

Source files

Definition at line 50 of file subCycleTime.H.

Constructor & Destructor Documentation

◆ subCycleTime()

subCycleTime ( Time runTime,
const label  nCycle 
)

Construct referencing the original time and number of sub-cycles.

Definition at line 32 of file subCycleTime.C.

References Time::subCycle().

Here is the call graph for this function:

◆ ~subCycleTime()

Destructor.

Definition at line 48 of file subCycleTime.C.

Member Function Documentation

◆ index()

label index ( ) const
inline

Return the current sub-cycle index.

Definition at line 79 of file subCycleTime.H.

◆ nSubCycles()

label nSubCycles ( ) const
inline

Return the total number of sub-cycles.

Definition at line 85 of file subCycleTime.H.

◆ status()

bool status ( ) const

True if the sub-cycle is active.

Definition at line 56 of file subCycleTime.C.

◆ end()

bool end ( ) const

Return true if the number of sub-cycles has been reached.

Definition at line 62 of file subCycleTime.C.

◆ endSubCycle()

void endSubCycle ( )

End the sub-cycling and reset the time-state.

Definition at line 68 of file subCycleTime.C.

Referenced by CollidingCloud< KinematicCloud< Cloud< basicKinematicCollidingParcel > > >::motion().

Here is the caller graph for this function:

◆ loop()

bool loop ( )

True if looping is active, increments the index.

Example usage,

while (subcycle.loop())
{
}

Definition at line 81 of file subCycleTime.C.

◆ operator++() [1/2]

Foam::subCycleTime & operator++ ( )

Prefix increment.

Definition at line 96 of file subCycleTime.C.

◆ operator++() [2/2]

Foam::subCycleTime & operator++ ( int  )

Postfix increment, this is identical to the prefix increment.

Definition at line 112 of file subCycleTime.C.


The documentation for this class was generated from the following files:
Foam::solve
SolverPerformance< Type > solve(faMatrix< Type > &, Istream &)
Solve returning the solution statistics given convergence tolerance.