41 time_.subCycle(nCycles);
58 return (index_ <= total_);
64 return (index_ > total_);
83 const bool active = status();
106 time_.subCycleIndex(index_);
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for managing sub-cycling times.
~subCycleTime()
Destructor.
subCycleTime(Time &runTime, const label nCycle)
Construct referencing the original time and number of sub-cycles.
subCycleTime & operator++()
Prefix increment.
void endSubCycle()
End the sub-cycling and reset the time-state.
bool status() const
True if the sub-cycle is active.
bool loop()
True if looping is active, increments the index.
bool end() const
Return true if the number of sub-cycles has been reached.