A class for managing sub-cycling times. More...
#include <subCycleTime.H>

Public Member Functions | |
| subCycleTime (Time &runTime, const label nCycle) | |
| Construct referencing the original time and number of sub-cycles. | |
| ~subCycleTime () | |
| Destructor. | |
| label | index () const |
| Return the current sub-cycle index. | |
| label | nSubCycles () const |
| Return the total number of sub-cycles. | |
| bool | status () const |
| True if the sub-cycle is active. | |
| bool | end () const |
| Return true if the number of sub-cycles has been reached. | |
| void | endSubCycle () |
| End the sub-cycling and reset the time-state. | |
| bool | loop () |
| True if looping is active, increments the index. | |
| subCycleTime & | operator++ () |
| Prefix increment. | |
| subCycleTime & | operator++ (int) |
| Postfix increment, this is identical to the prefix increment. | |
| subCycleTime | ( | Time & | runTime, |
| const label | nCycle ) |
Construct referencing the original time and number of sub-cycles.
Definition at line 25 of file subCycleTime.C.
References runTime.
Referenced by subCycle< GeometricField >::subCycle().

| ~subCycleTime | ( | ) |
Destructor.
Definition at line 41 of file subCycleTime.C.
References endSubCycle().

|
inline |
Return the current sub-cycle index.
Definition at line 87 of file subCycleTime.H.
|
inline |
Return the total number of sub-cycles.
Definition at line 95 of file subCycleTime.H.
| bool status | ( | ) | const |
True if the sub-cycle is active.
Definition at line 49 of file subCycleTime.C.
Referenced by loop().

| bool end | ( | ) | const |
Return true if the number of sub-cycles has been reached.
Definition at line 55 of file subCycleTime.C.
Referenced by multiphaseSystem::solve(), twoPhaseSystem::solve(), and MultiComponentPhaseModel< BasePhaseModel, phaseThermo >::solveYi().

| void endSubCycle | ( | ) |
End the sub-cycling and reset the time-state.
Definition at line 61 of file subCycleTime.C.
Referenced by subCycle< GeometricField >::~subCycle(), and ~subCycleTime().

| bool loop | ( | ) |
True if looping is active, increments the index.
Example usage,
Definition at line 74 of file subCycleTime.C.
References operator++(), and status().

| Foam::subCycleTime & operator++ | ( | ) |
Prefix increment.
Definition at line 89 of file subCycleTime.C.
Referenced by loop(), and operator++().

| Foam::subCycleTime & operator++ | ( | int | ) |
Postfix increment, this is identical to the prefix increment.
Definition at line 105 of file subCycleTime.C.
References operator++().
