|
Public Types |
| enum | writeControls {
wcTimeStep,
wcRunTime,
wcAdjustableRunTime,
wcClockTime,
wcCpuTime
} |
| | Write control options. More...
|
| enum | stopAtControls { saEndTime,
saNoWriteNow,
saWriteNow,
saNextWrite
} |
| | Stop-run control options. More...
|
| enum | fmtflags { general = 0,
fixed = ios_base::fixed,
scientific = ios_base::scientific
} |
| | Suported time directory name formats. More...
|
Public Member Functions |
| | TypeName ("time") |
| | Time (const word &name, const fileName &rootPath, const fileName &caseName, const word &systemName="system", const word &constantName="constant") |
| | Construct given name, rootPath and casePath.
|
| | Time (const dictionary &dict, const fileName &rootPath, const fileName &caseName, const word &systemName="system", const word &constantName="constant") |
| | Construct given dictionary, rootPath and casePath.
|
| | Time (const fileName &rootPath, const fileName &caseName, const word &systemName="system", const word &constantName="constant") |
| | Construct given endTime, rootPath and casePath.
|
| virtual | ~Time () |
| | Virtual destructor.
|
| const fileName & | rootPath () const |
| | Return root path.
|
| const fileName & | caseName () const |
| | Return case name.
|
| fileName | path () const |
| | Return path.
|
| const dictionary & | controlDict () const |
| virtual const fileName & | dbDir () const |
| | Local directory path of this objectRegistry relative to the time.
|
| fileName | timePath () const |
| | Return current time path.
|
| IOstream::streamFormat | writeFormat () const |
| | Default write format.
|
| IOstream::versionNumber | writeVersion () const |
| | Default write version number.
|
| IOstream::compressionType | writeCompression () const |
| | Default write compression.
|
| const word & | graphFormat () const |
| | Default graph format.
|
| virtual bool | read () |
| | Read control dictionary, update controls and time.
|
| void | readModifiedObjects () |
| | Read the objects that have been modified.
|
| word | findInstance (const fileName &dir, const word &name, const IOobject::readOption rOpt=IOobject::MUST_READ) const |
| | Return the location of "dir" containing the file "name".
|
| instantList | times () const |
| | Search tha case for valid time directories.
|
| word | findInstancePath (const instant &) const |
| | Search the case for the time directory path.
|
| instant | findClosestTime (const scalar) const |
| | Search the case for the time closest to the given time.
|
| virtual bool | writeObject (IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const |
| | Write using given format, version and compression.
|
| bool | writeNow () |
| | Write the objects now and continue the run.
|
| bool | writeAndEnd () |
| | Write the objects now and end the run.
|
| virtual word | timeName () const |
| | Return current time name.
|
| virtual label | startTimeIndex () const |
| | Return start time index.
|
| virtual dimensionedScalar | startTime () const |
| | Return start time.
|
| virtual dimensionedScalar | endTime () const |
| | Return end time.
|
| const functionObjectList & | functionObjects () const |
| | Return the list of function objects.
|
| virtual bool | run () const |
| | Return true if run should continue.
|
| virtual bool | end () const |
| | Return true if end of run.
|
| virtual void | setTime (const Time &) |
| | Reset the time and time-index to those of the given time.
|
| virtual void | setTime (const instant &, const label newIndex) |
| | Reset the time and time-index.
|
| virtual void | setTime (const dimensionedScalar &, const label newIndex) |
| | Reset the time and time-index.
|
| virtual void | setTime (const scalar, const label newIndex) |
| | Reset the time and time-index.
|
| virtual void | setEndTime (const dimensionedScalar &) |
| | Reset end time.
|
| virtual void | setEndTime (const scalar) |
| | Reset end time.
|
| virtual void | setDeltaT (const dimensionedScalar &) |
| | Reset time step.
|
| virtual void | setDeltaT (const scalar) |
| | Reset time step.
|
| virtual TimeState | subCycle (const label nSubCycles) |
| | Set time to sub-cycle for the given number of steps.
|
| virtual void | endSubCycle (const TimeState &) |
| | Reset time after sub-cycling back to given TimeState.
|
| functionObjectList & | functionObjects () |
| | Return non-const access to the list of function objects.
|
| virtual Time & | operator+= (const dimensionedScalar &) |
| | Set deltaT to that specified and increment time.
|
| virtual Time & | operator+= (const scalar) |
| | Set deltaT to that specified and increment time.
|
| virtual Time & | operator++ () |
| | Prefix increment.
|
| virtual Time & | operator++ (int) |
| | Postfix increment.
|
Static Public Member Functions |
| static word | timeName (const scalar) |
| | Return time name of given scalar time.
|
| static instantList | findTimes (const fileName &) |
| | Search a given directory for valid time directories.
|
Static Public Attributes |
| static word | controlDictName |
| | Return the default control dictionary name.
|
Protected Member Functions |
| void | adjustDeltaT () |
| | Adjust the time step so that writing occurs at the specified time.
|
| void | setControls () |
| | Set the controls from the current controlDict.
|
| virtual void | readDict () |
| | Read the control dictionary and set the write controls etc.
|
Protected Attributes |
| label | startTimeIndex_ |
| scalar | startTime_ |
| | Start time in seconds.
|
| scalar | endTime_ |
| stopAtControls | stopAt_ |
| writeControls | writeControl_ |
| scalar | writeInterval_ |
| label | purgeWrite_ |
| FIFOStack< word > | previousOutputTimes_ |
Static Protected Attributes |
| static const NamedEnum< stopAtControls, 4 > | stopAtControlNames_ |
| static const NamedEnum< writeControls, 5 > | writeControlNames_ |
| static fmtflags | format_ |
| | Time directory name format.
|
| static int | precision_ |
| | Time directory name precision.
|