Class to control time during OpenFOAM simulations that is also the top-level objectRegistry. More...
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 } |
Supported time directory name formats. More... | |
![]() | |
enum | fileCheckTypes { timeStamp, timeStampMaster, inotify, inotifyMaster } |
Types of communications. More... | |
![]() | |
enum | objectState { GOOD, BAD } |
Enumeration defining the valid states of an IOobject. More... | |
enum | readOption { MUST_READ, MUST_READ_IF_MODIFIED, READ_IF_PRESENT, NO_READ } |
Enumeration defining the read options. More... | |
enum | writeOption { AUTO_WRITE = 0, NO_WRITE = 1 } |
Enumeration defining the write options. More... | |
![]() | |
typedef regIOobject * | value_type |
Type of values the HashTable contains. More... | |
typedef regIOobject *& | reference |
Type that can be used for storing into HashTable::value_type. More... | |
typedef const regIOobject *& | const_reference |
Type that can be used for storing into constant. More... | |
typedef label | size_type |
The type that can represent the size of a HashTable. More... | |
![]() | |
typedef pTraits< scalar >::cmptType | cmptType |
Component type. More... | |
Public Member Functions | |
TypeName ("time") | |
Time (const word &name, const argList &args, const word &systemName="system", const word &constantName="constant") | |
Construct given name of dictionary to read and argument list. More... | |
Time (const word &name, const fileName &rootPath, const fileName &caseName, const word &systemName="system", const word &constantName="constant", const bool enableFunctionObjects=true) | |
Construct given name of dictionary to read, rootPath and casePath. More... | |
Time (const dictionary &dict, const fileName &rootPath, const fileName &caseName, const word &systemName="system", const word &constantName="constant", const bool enableFunctionObjects=true) | |
Construct given dictionary, rootPath and casePath. More... | |
Time (const fileName &rootPath, const fileName &caseName, const word &systemName="system", const word &constantName="constant", const bool enableFunctionObjects=true) | |
Construct given endTime, rootPath and casePath. More... | |
virtual | ~Time () |
Destructor. More... | |
const fileName & | rootPath () const |
Return root path. More... | |
const fileName & | caseName () const |
Return case name. More... | |
fileName | path () const |
Return path. More... | |
const dictionary & | controlDict () const |
virtual const fileName & | dbDir () const |
Local directory path of this objectRegistry relative to the time. More... | |
fileName | timePath () const |
Return current time path. More... | |
IOstream::streamFormat | writeFormat () const |
Default write format. More... | |
IOstream::versionNumber | writeVersion () const |
Default write version number. More... | |
IOstream::compressionType | writeCompression () const |
Default write compression. More... | |
const word & | graphFormat () const |
Default graph format. More... | |
const Switch & | runTimeModifiable () const |
Supports re-reading. More... | |
virtual bool | read () |
Read control dictionary, update controls and time. More... | |
void | readModifiedObjects () |
Read the objects that have been modified. More... | |
label | addWatch (const fileName &) const |
Add watching of a file. Returns handle. More... | |
bool | removeWatch (const label) const |
Remove watch on a file (using handle) More... | |
const fileName & | getFile (const label) const |
Get name of file being watched (using handle) More... | |
fileMonitor::fileState | getState (const label) const |
Get current state of file (using handle) More... | |
void | setUnmodified (const label) const |
Set current state of file (using handle) to unmodified. More... | |
word | findInstance (const fileName &dir, const word &name=word::null, const IOobject::readOption rOpt=IOobject::MUST_READ, const word &stopInstance=word::null) const |
Return the location of "dir" containing the file "name". More... | |
instantList | times () const |
Search the case for valid time directories. More... | |
word | findInstancePath (const instant &) const |
Search the case for the time directory path. More... | |
instant | findClosestTime (const scalar) const |
Search the case for the time closest to the given time. More... | |
virtual bool | writeTimeDict () const |
Write time dictionary to the <time>/uniform directory. More... | |
virtual bool | writeObject (IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType) const |
Write using given format, version and compression. More... | |
bool | writeNow () |
Write the objects now (not at end of iteration) and continue. More... | |
bool | writeAndEnd () |
Write the objects now (not at end of iteration) and end the run. More... | |
void | writeOnce () |
Write the objects once (one shot) and continue the run. More... | |
virtual word | timeName () const |
Return current time name. More... | |
virtual label | startTimeIndex () const |
Return start time index. More... | |
virtual dimensionedScalar | startTime () const |
Return start time. More... | |
virtual dimensionedScalar | endTime () const |
Return end time. More... | |
const functionObjectList & | functionObjects () const |
Return the list of function objects. More... | |
const dlLibraryTable & | libs () const |
External access to the loaded libraries. More... | |
dlLibraryTable & | libs () |
External access to the loaded libraries. More... | |
bool | subCycling () const |
Return true if time currently being sub-cycled, otherwise false. More... | |
const TimeState & | prevTimeState () const |
Return previous TimeState if time is being sub-cycled. More... | |
virtual bool | run () const |
Return true if run should continue,. More... | |
virtual bool | loop () |
Return true if run should continue and if so increment time. More... | |
virtual bool | end () const |
Return true if end of run,. More... | |
virtual bool | stopAt (const stopAtControls) const |
Adjust the current stopAtControl. Note that this value. More... | |
virtual void | setTime (const Time &) |
Reset the time and time-index to those of the given time. More... | |
virtual void | setTime (const instant &, const label newIndex) |
Reset the time and time-index. More... | |
virtual void | setTime (const dimensionedScalar &, const label newIndex) |
Reset the time and time-index. More... | |
virtual void | setTime (const scalar, const label newIndex) |
Reset the time and time-index. More... | |
virtual void | setEndTime (const dimensionedScalar &) |
Reset end time. More... | |
virtual void | setEndTime (const scalar) |
Reset end time. More... | |
virtual void | setDeltaT (const dimensionedScalar &, const bool adjustDeltaT=true) |
Reset time step. More... | |
virtual void | setDeltaT (const scalar, const bool adjustDeltaT=true) |
Reset time step. More... | |
virtual TimeState | subCycle (const label nSubCycles) |
Set time to sub-cycle for the given number of steps. More... | |
virtual void | endSubCycle () |
Reset time after sub-cycling back to previous TimeState. More... | |
functionObjectList & | functionObjects () |
Return non-const access to the list of function objects. More... | |
virtual Time & | operator+= (const dimensionedScalar &) |
Set deltaT to that specified and increment time via operator++() More... | |
virtual Time & | operator+= (const scalar) |
Set deltaT to that specified and increment time via operator++() More... | |
virtual Time & | operator++ () |
Prefix increment,. More... | |
virtual Time & | operator++ (int) |
Postfix increment, this is identical to the prefix increment. More... | |
![]() | |
clock () | |
Null constructor which stores the start time. More... | |
time_t | elapsedClockTime () const |
Returns wall-clock time from clock instantiation. More... | |
time_t | clockTimeIncrement () const |
Returns wall-clock time from last call of clockTimeIncrement() More... | |
![]() | |
cpuTime () | |
Construct with the current clock time. More... | |
double | elapsedCpuTime () const |
Return CPU time (in seconds) from the start. More... | |
double | cpuTimeIncrement () const |
Return CPU time (in seconds) since last call to cpuTimeIncrement() More... | |
![]() | |
TimePaths (const fileName &rootPath, const fileName &caseName, const word &systemName, const word &constantName) | |
Construct given database name, rootPath and casePath. More... | |
TimePaths (const bool processorCase, const fileName &rootPath, const fileName &globalCaseName, const fileName &caseName, const word &systemName, const word &constantName) | |
Construct given database name, rootPath and casePath. More... | |
bool | processorCase () const |
Return true if this is a processor case. More... | |
const fileName & | rootPath () const |
Return root path. More... | |
const fileName & | globalCaseName () const |
Return global case name. More... | |
const fileName & | caseName () const |
Return case name. More... | |
const word & | system () const |
Return system name. More... | |
fileName | caseSystem () const |
Return system name for the case. More... | |
const word & | constant () const |
Return constant name. More... | |
fileName | caseConstant () const |
Return constant name for the case. More... | |
fileName | path () const |
Return path. More... | |
fileName | systemPath () const |
Return system path. More... | |
fileName | constantPath () const |
Return constant path. More... | |
![]() | |
TypeName ("objectRegistry") | |
Declare type name for this IOobject. More... | |
objectRegistry (const Time &db, const label nIoObjects=128) | |
Construct the time objectRegistry given an initial estimate. More... | |
objectRegistry (const IOobject &io, const label nIoObjects=128) | |
Construct a sub-registry given an IObject to describe the registry. More... | |
virtual | ~objectRegistry () |
Destructor. More... | |
const Time & | time () const |
Return time. More... | |
const objectRegistry & | parent () const |
Return the parent objectRegistry. More... | |
wordList | names () const |
Return the list of names of the IOobjects. More... | |
wordList | sortedNames () const |
Return the sorted list of names of the IOobjects. More... | |
wordList | names (const word &className) const |
Return the list of names of IOobjects of given class name. More... | |
wordList | sortedNames (const word &className) const |
Return the sorted list of names of IOobjects of given class name. More... | |
template<class Type > | |
wordList | names () const |
Return the list of names of the IOobjects of given type. More... | |
template<class Type > | |
wordList | names (const wordRe &name) const |
Return the list of objects whose name matches the input regExp. More... | |
template<class Type > | |
wordList | names (const wordReList &name) const |
Return the list of objects whose name matches the input regExp. More... | |
const objectRegistry & | subRegistry (const word &name, const bool forceCreate=false) const |
Lookup and return a const sub-objectRegistry. Optionally create. More... | |
template<class Type > | |
HashTable< const Type * > | lookupClass (const bool strict=false) const |
Lookup and return all objects of the given Type. More... | |
template<class Type > | |
HashTable< Type * > | lookupClass (const bool strict=false) |
Lookup and return all objects of the given Type. More... | |
template<class Type > | |
bool | foundObject (const word &name) const |
Is the named Type found? More... | |
template<class Type > | |
const Type & | lookupObject (const word &name) const |
Lookup and return the object of the given Type. More... | |
label | getEvent () const |
Return new event number. More... | |
virtual void | rename (const word &newName) |
Rename. More... | |
bool | checkIn (regIOobject &) const |
Add an regIOobject to registry. More... | |
bool | checkOut (regIOobject &) const |
Remove an regIOobject from registry. More... | |
virtual bool | modified () const |
Return true if any of the object's files have been modified. More... | |
void | readModifiedObjects () |
Read the objects that have been modified. More... | |
virtual bool | readIfModified () |
Read object if modified. More... | |
virtual bool | writeData (Ostream &) const |
writeData function required by regIOobject but not used More... | |
template<class Type > | |
Foam::wordList | names () const |
template<class Type > | |
Foam::wordList | names (const wordRe &name) const |
template<class Type > | |
Foam::wordList | names (const wordReList &patterns) const |
template<class Type > | |
Foam::HashTable< const Type * > | lookupClass (const bool strict) const |
template<class Type > | |
Foam::HashTable< Type * > | lookupClass (const bool strict) |
![]() | |
TypeName ("regIOobject") | |
Runtime type information. More... | |
regIOobject (const IOobject &, const bool isTime=false) | |
Construct from IOobject. Optional flag for if IOobject is the. More... | |
regIOobject (const regIOobject &) | |
Construct as copy. More... | |
regIOobject (const regIOobject &, bool registerCopy) | |
Construct as copy, transferring registry registration to copy. More... | |
regIOobject (const word &newName, const regIOobject &, bool registerCopy) | |
Construct as copy with new name, transfering registry registration. More... | |
regIOobject (const IOobject &, const regIOobject &) | |
Construct as copy with new IO parameters. More... | |
virtual | ~regIOobject () |
Destructor. More... | |
bool | checkIn () |
Add object to registry. More... | |
bool | checkOut () |
Remove object from registry. More... | |
bool | ownedByRegistry () const |
Is this object owned by the registry? More... | |
void | store () |
Transfer ownership of this object to its registry. More... | |
void | release () |
Release ownership of this object from its registry. More... | |
label | eventNo () const |
Event number at last update. More... | |
label & | eventNo () |
Event number at last update. More... | |
bool | upToDate (const regIOobject &) const |
Return true if up-to-date with respect to given object. More... | |
bool | upToDate (const regIOobject &, const regIOobject &) const |
Return true if up-to-date with respect to given objects. More... | |
bool | upToDate (const regIOobject &, const regIOobject &, const regIOobject &) const |
Return true if up-to-date with respect to given objects. More... | |
bool | upToDate (const regIOobject &, const regIOobject &, const regIOobject &, const regIOobject &) const |
Return true if up-to-date with respect to given objects. More... | |
void | setUpToDate () |
Set up to date (obviously) More... | |
Istream & | readStream (const word &) |
Return Istream and check object type against that given. More... | |
void | close () |
Close Istream. More... | |
virtual bool | readData (Istream &) |
Virtual readData function. More... | |
label | watchIndex () const |
Return file-monitoring handle. More... | |
label & | watchIndex () |
Return file-monitoring handle. More... | |
virtual bool | write () const |
Write using setting from DB. More... | |
void | operator= (const IOobject &) |
![]() | |
TypeName ("IOobject") | |
Runtime type information. More... | |
IOobject (const word &name, const fileName &instance, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true) | |
Construct from name, instance, registry, io options. More... | |
IOobject (const word &name, const fileName &instance, const fileName &local, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true) | |
Construct from name, instance, local, registry, io options. More... | |
IOobject (const fileName &path, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true) | |
Construct from path, registry, io options. More... | |
Foam::autoPtr< IOobject > | clone () const |
Clone. More... | |
virtual | ~IOobject () |
Destructor. More... | |
const Time & | time () const |
Return time. More... | |
const objectRegistry & | db () const |
Return the local objectRegistry. More... | |
const word & | name () const |
Return name. More... | |
const word & | headerClassName () const |
Return name of the class name read from header. More... | |
string & | note () |
Return non-constant access to the optional note. More... | |
const string & | note () const |
Return the optional note. More... | |
bool & | registerObject () |
Register object created from this IOobject with registry if true. More... | |
bool | registerObject () const |
Register object created from this IOobject with registry if true. More... | |
readOption | readOpt () const |
readOption & | readOpt () |
writeOption | writeOpt () const |
writeOption & | writeOpt () |
word | group () const |
Return group (extension part of name) More... | |
word | member () const |
Return member (name without the extension) More... | |
const fileName & | rootPath () const |
const fileName & | caseName () const |
const fileName & | instance () const |
fileName & | instance () |
const fileName & | local () const |
fileName | path () const |
Return complete path. More... | |
fileName | path (const word &instance, const fileName &local="") const |
Return complete path with alternative instance and local. More... | |
fileName | objectPath () const |
Return complete path + object name. More... | |
fileName | filePath () const |
Return complete path + object name if the file exists. More... | |
bool | readHeader (Istream &) |
Read header. More... | |
bool | headerOk () |
Read and check header info. More... | |
bool | writeHeader (Ostream &) const |
Write header. More... | |
bool | writeHeader (Ostream &, const word &objectType) const |
Write header. Allow override of type. More... | |
bool | good () const |
bool | bad () const |
InfoProxy< IOobject > | info () const |
Return info proxy. More... | |
void | operator= (const IOobject &) |
template<class Name > | |
Foam::word | groupName (Name name, const word &group) |
![]() | |
bool | set (const word &, const regIOobject *&newElmt) |
Assign a new hashedEntry, overwriting existing entries. More... | |
HashTable (const label size=128) | |
Construct given initial table size. More... | |
HashTable (Istream &, const label size=128) | |
Construct from Istream. More... | |
HashTable (const HashTable< regIOobject *, word, string::hash > &) | |
Construct as copy. More... | |
HashTable (const Xfer< HashTable< regIOobject *, word, string::hash >> &) | |
Construct by transferring the parameter contents. More... | |
~HashTable () | |
Destructor. More... | |
label | capacity () const |
The size of the underlying table. More... | |
label | size () const |
Return number of elements in table. More... | |
bool | empty () const |
Return true if the hash table is empty. More... | |
bool | found (const word &) const |
Return true if hashedEntry is found in table. More... | |
iterator | find (const word &) |
Find and return an iterator set at the hashedEntry. More... | |
const_iterator | find (const word &) const |
Find and return an const_iterator set at the hashedEntry. More... | |
List< word > | toc () const |
Return the table of contents. More... | |
List< word > | sortedToc () const |
Return the table of contents as a sorted list. More... | |
Ostream & | printInfo (Ostream &) const |
Print information. More... | |
bool | insert (const word &, const regIOobject *&newElmt) |
Insert a new hashedEntry. More... | |
bool | erase (const iterator &) |
Erase a hashedEntry specified by given iterator. More... | |
bool | erase (const word &) |
Erase a hashedEntry specified by the given key. More... | |
label | erase (const UList< word > &) |
Remove entries given by the listed keys from this HashTable. More... | |
label | erase (const HashTable< AnyType, word, AnyHash > &) |
Remove entries given by the given keys from this HashTable. More... | |
void | resize (const label newSize) |
Resize the hash table for efficiency. More... | |
void | clear () |
Clear all entries from table. More... | |
void | clearStorage () |
Clear the table entries and the table itself. More... | |
void | shrink () |
Shrink the allocated table to approx. twice number of elements. More... | |
void | transfer (HashTable< regIOobject *, word, string::hash > &) |
Transfer the contents of the argument table into this table. More... | |
Xfer< HashTable< regIOobject *, word, string::hash > > | xfer () |
Transfer contents to the Xfer container. More... | |
regIOobject *& | operator[] (const word &) |
Find and return a hashedEntry. More... | |
const regIOobject *& | operator[] (const word &) const |
Find and return a hashedEntry. More... | |
regIOobject *& | operator() (const word &) |
Find and return a hashedEntry, create it null if not present. More... | |
void | operator= (const HashTable< regIOobject *, word, string::hash > &) |
Assignment. More... | |
bool | operator== (const HashTable< regIOobject *, word, string::hash > &) const |
Equality. Hash tables are equal if the keys and values are equal. More... | |
bool | operator!= (const HashTable< regIOobject *, word, string::hash > &) const |
The opposite of the equality operation. Takes linear time. More... | |
iterator | begin () |
Iterator set to the beginning of the HashTable. More... | |
const_iterator | begin () const |
const_iterator set to the beginning of the HashTable More... | |
const_iterator | cbegin () const |
const_iterator set to the beginning of the HashTable More... | |
![]() | |
HashTableCore () | |
Construct null. More... | |
ClassName ("HashTable") | |
Define template name and debug. More... | |
![]() | |
TimeState () | |
virtual | ~TimeState () |
Destructor. More... | |
virtual scalar | userTimeToTime (const scalar theta) const |
Convert the user-time (e.g. CA deg) to real-time (s). More... | |
virtual scalar | timeToUserTime (const scalar t) const |
Convert the real-time (s) into user-time (e.g. CA deg) More... | |
scalar | timeOutputValue () const |
Return current time value. More... | |
label | timeIndex () const |
Return current time index. More... | |
scalar | deltaTValue () const |
Return time step value. More... | |
scalar | deltaT0Value () const |
Return old time step value. More... | |
dimensionedScalar | deltaT () const |
Return time step. More... | |
dimensionedScalar | deltaT0 () const |
Return old time step. More... | |
bool | writeTime () const |
Return true if this is a write time. More... | |
bool | outputTime () const |
Return true if this is a write time. More... | |
![]() | |
dimensioned (const word &, const dimensionSet &, const scalar) | |
Construct given a name, a value and its dimensionSet. More... | |
dimensioned (const word &, const dimensioned< scalar > &) | |
Construct from a dimensioned<Type> changing the name. More... | |
dimensioned (const scalar &t) | |
Construct given a value (creates dimensionless value). More... | |
dimensioned (Istream &) | |
Construct from Istream. More... | |
dimensioned (const word &, Istream &) | |
Construct from an Istream with a given name. More... | |
dimensioned (const word &, const dimensionSet &, Istream &) | |
Construct from an Istream with a given name and dimensions. More... | |
dimensioned (const word &, const dimensionSet &, const dictionary &) | |
Construct from dictionary lookup with a given name and dimensions. More... | |
dimensioned () | |
Null constructor. More... | |
const word & | name () const |
Return const reference to name. More... | |
word & | name () |
Return non-const reference to name. More... | |
const dimensionSet & | dimensions () const |
Return const reference to dimensions. More... | |
dimensionSet & | dimensions () |
Return non-const reference to dimensions. More... | |
const scalar & | value () const |
Return const reference to value. More... | |
scalar & | value () |
Return non-const reference to value. More... | |
dimensioned< cmptType > | component (const direction) const |
Return a component as a dimensioned<cmptType> More... | |
void | replace (const direction, const dimensioned< cmptType > &) |
Return a component with a dimensioned<cmptType> More... | |
dimensioned< scalar > | T () const |
Return transpose. More... | |
void | read (const dictionary &) |
Update the value of dimensioned<Type> More... | |
Istream & | read (Istream &is, const dictionary &) |
Read value from stream and units from dictionary. More... | |
Istream & | read (Istream &is, const HashTable< dimensionedScalar > &) |
Read value from stream and units from table. More... | |
Istream & | read (Istream &is) |
Read value from stream and units from system table. More... | |
bool | readIfPresent (const dictionary &) |
Update the value of dimensioned<Type> if found in the dictionary. More... | |
dimensioned< cmptType > | operator[] (const direction) const |
Return a component as a dimensioned<cmptType> More... | |
void | operator+= (const dimensioned< scalar > &) |
void | operator-= (const dimensioned< scalar > &) |
void | operator*= (const scalar) |
void | operator/= (const scalar) |
Static Public Member Functions | |
static label | findClosestTimeIndex (const instantList &, const scalar, const word &constantName="constant") |
Search instantList for the time index closest to the given time. More... | |
static word | timeName (const scalar, const int precision=precision_) |
Return time name of given scalar time. More... | |
static instantList | findTimes (const fileName &, const word &constantName="constant") |
Search a given directory for valid time directories. More... | |
![]() | |
static time_t | getTime () |
Get the current clock time in seconds. More... | |
static const struct tm | rawDate () |
Return the current wall-clock date as a raw struct. More... | |
static string | dateTime () |
Return the current wall-clock date/time as a string. More... | |
static string | date () |
Return the current wall-clock date as a string. More... | |
static string | clockTime () |
Return the current wall-clock time as a string. More... | |
![]() | |
template<class Type > | |
static Type & | store (Type *) |
Transfer ownership of the given object pointer to its registry. More... | |
template<class Type > | |
static Type & | store (autoPtr< Type > &) |
Transfer ownership of the given object pointer to its registry. More... | |
![]() | |
static bool | fileNameComponents (const fileName &path, fileName &instance, fileName &local, word &name) |
Split path into instance, local, name components. More... | |
template<class Name > | |
static word | groupName (Name name, const word &group) |
template<class Stream > | |
static Stream & | writeBanner (Stream &os, bool noHint=false) |
Write the standard OpenFOAM file/dictionary banner. More... | |
template<class Stream > | |
static Stream & | writeDivider (Stream &os) |
Write the standard file section divider. More... | |
template<class Stream > | |
static Stream & | writeEndDivider (Stream &os) |
Write the standard end file divider. More... | |
![]() | |
static label | canonicalSize (const label) |
Return a canonical (power-of-two) size. More... | |
static iteratorEnd | cend () |
iteratorEnd set to beyond the end of any HashTable More... | |
static iteratorEnd | end () |
iteratorEnd set to beyond the end of any HashTable More... | |
![]() | |
static dimensioned< scalar > | lookupOrDefault (const word &, const dictionary &, const dimensionSet &dims=dimless, const scalar &defaultValue=pTraits< scalar >::zero) |
Construct from dictionary, with default dimensions and value. More... | |
static dimensioned< scalar > | lookupOrDefault (const word &, const dictionary &, const scalar &defaultValue=pTraits< scalar >::zero) |
Construct from dictionary dimensionless with value. More... | |
static dimensioned< scalar > | lookupOrAddToDict (const word &, dictionary &, const dimensionSet &dims=dimless, const scalar &defaultValue=pTraits< scalar >::zero) |
Construct from dictionary, with default value. More... | |
static dimensioned< scalar > | lookupOrAddToDict (const word &, dictionary &, const scalar &defaultValue=pTraits< scalar >::zero) |
Construct from dictionary, dimensionless with default value. More... | |
Static Public Attributes | |
static word | controlDictName |
The default control dictionary name (normally "controlDict") More... | |
![]() | |
static const NamedEnum< fileCheckTypes, 4 > | fileCheckTypesNames |
static int | fileModificationSkew |
static fileCheckTypes | fileModificationChecking |
![]() | |
static const label | maxTableSize |
Maximum allowable table size. More... | |
Protected Member Functions | |
void | adjustDeltaT () |
Adjust the time step so that writing occurs at the specified time. More... | |
void | setControls () |
Set the controls from the current controlDict. More... | |
virtual void | readDict () |
Read the control dictionary and set the write controls etc. More... | |
![]() | |
Istream * | objectStream () |
Construct and return an IFstream for the object. More... | |
Istream * | objectStream (const fileName &) |
Construct and return an IFstream for the object given the. More... | |
void | setBad (const string &) |
Set the object state to bad. More... | |
Protected Attributes | |
label | startTimeIndex_ |
scalar | startTime_ |
scalar | endTime_ |
stopAtControls | stopAt_ |
writeControls | writeControl_ |
scalar | writeInterval_ |
label | purgeWrite_ |
FIFOStack< word > | previousWriteTimes_ |
bool | writeOnce_ |
bool | subCycling_ |
Is the time currently being sub-cycled? More... | |
autoPtr< TimeState > | prevTimeState_ |
If time is being sub-cycled this is the previous TimeState. More... | |
sigWriteNow | sigWriteNow_ |
Enable one-shot writing upon signal. More... | |
sigStopAtWriteNow | sigStopAtWriteNow_ |
Enable write and clean exit upon signal. More... | |
![]() | |
label | timeIndex_ |
scalar | deltaT_ |
scalar | deltaTSave_ |
scalar | deltaT0_ |
bool | deltaTchanged_ |
label | writeTimeIndex_ |
bool | writeTime_ |
Static Protected Attributes | |
static const NamedEnum< stopAtControls, 4 > | stopAtControlNames_ |
static const NamedEnum< writeControls, 5 > | writeControlNames_ |
static fmtflags | format_ |
Time directory name format. More... | |
static int | precision_ |
Time directory name precision. More... | |
static const int | maxPrecision_ |
Maximum time directory name precision. More... | |
![]() | |
static bool | masterOnlyReading = false |
To flag master-only reading of objects. More... | |
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
enum writeControls |
enum stopAtControls |
enum fmtflags |
Time | ( | const word & | name, |
const argList & | args, | ||
const word & | systemName = "system" , |
||
const word & | constantName = "constant" |
||
) |
Construct given name of dictionary to read and argument list.
Definition at line 416 of file Time.C.
References f(), regIOobject::fileModificationChecking, IOobject::MUST_READ_IF_MODIFIED, and List< T >::size().
Referenced by Time::setControls(), and Time::Time().
Time | ( | const word & | name, |
const fileName & | rootPath, | ||
const fileName & | caseName, | ||
const word & | systemName = "system" , |
||
const word & | constantName = "constant" , |
||
const bool | enableFunctionObjects = true |
||
) |
Construct given name of dictionary to read, rootPath and casePath.
Definition at line 324 of file Time.C.
References f(), regIOobject::fileModificationChecking, IOobject::MUST_READ_IF_MODIFIED, List< T >::size(), and Time::Time().
Time | ( | const dictionary & | dict, |
const fileName & | rootPath, | ||
const fileName & | caseName, | ||
const word & | systemName = "system" , |
||
const word & | constantName = "constant" , |
||
const bool | enableFunctionObjects = true |
||
) |
Construct given dictionary, rootPath and casePath.
Definition at line 514 of file Time.C.
References f(), regIOobject::fileModificationChecking, IOobject::MUST_READ_IF_MODIFIED, List< T >::size(), and Time::Time().
|
protected |
Adjust the time step so that writing occurs at the specified time.
Definition at line 83 of file Time.C.
References Foam::labelMax, Foam::max(), and Foam::min().
Referenced by Time::prevTimeState().
|
protected |
Set the controls from the current controlDict.
Definition at line 126 of file Time.C.
References Foam::endl(), Foam::exists(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, found, IOWarningInFunction, UList< T >::last(), Foam::mag(), UPstream::myProcNo(), Foam::name(), Foam::nl, IOobject::NO_WRITE, UPstream::nProcs(), UPstream::parRun(), path(), IOobject::READ_IF_PRESENT, dictionary::readIfPresent(), Foam::reduce(), setTime(), List< T >::size(), Time::Time(), timeDirs, timeName, and WarningInFunction.
|
protectedvirtual |
Read the control dictionary and set the write controls etc.
Reimplemented in engineTime.
Definition at line 33 of file TimeIO.C.
References IOstream::ASCII, IOstream::compressionEnum(), Foam::debug::debugObjects(), IOstream::defaultPrecision(), TimeState::deltaT_, TimeState::deltaTchanged_, dict, Foam::debug::dimensionedConstantObjects(), Foam::dimensionedConstants(), Foam::debug::dimensionSetObjects(), Foam::dimensionSystems(), Foam::endl(), Time::endTime_, Foam::exit(), Foam::FatalError, Foam::FatalIOError, FatalIOErrorInFunction, Time::fixed, forAll, forAllConstIter(), Time::format_, IOstream::formatEnum(), dictionary::found(), Time::general, Foam::Info, dictionary::lookup(), DictionaryBase< IDLListType, T >::lookupPtr(), dictionary::merge(), IOdictionary::name(), dimensioned< scalar >::name(), dimensioned< Type >::name(), Foam::debug::optimisationObjects(), Foam::Perr, Foam::Pout, OSstream::precision(), Time::precision_, Time::purgeWrite_, NamedEnum< Enum, nEnum >::read(), dictionary::readIfPresent(), Foam::readScalar(), Foam::readUint(), Time::removeWatch(), Time::saEndTime, Time::scientific, Foam::Serr, Foam::setEnv(), Foam::Sout, Time::stopAt_, Time::stopAtControlNames_, OStringStream::str(), dictionary::subDict(), Time::timeName(), dimensioned< scalar >::value(), WarningInFunction, regIOobject::watchIndex(), Time::wcAdjustableRunTime, Time::wcRunTime, Time::wcTimeStep, Time::writeControl_, Time::writeControlNames_, Time::writeInterval_, and TimeState::writeTimeIndex_.
Referenced by Time::read(), engineTime::readDict(), and Time::readModifiedObjects().
TypeName | ( | "time" | ) |
|
inline |
Return root path.
Definition at line 257 of file Time.H.
References TimePaths::rootPath().
Referenced by Time::path().
|
inline |
Return case name.
Definition at line 263 of file Time.H.
References TimePaths::caseName().
Referenced by Time::path(), triSurface::triSurface(), triSurface::triSurfInstance(), and triSurface::write().
|
inline |
Return path.
Definition at line 269 of file Time.H.
References Time::caseName(), and Time::rootPath().
Referenced by snappyLayerDriver::addLayers(), meshRefinement::baffleAndSplitMesh(), writeFile::baseFileDir(), meshRefinement::createZoneBaffles(), snappySnapDriver::detectNearSurfaces(), snappySnapDriver::doSnap(), edgeMeshFormatsCore::getLineNoComment(), surfaceFormatsCore::getLineNoComment(), meshRefinement::mergeBaffles(), listPlusEqOp< T >::operator()(), snappySnapDriver::preSmoothPatch(), polyMesh::removeFiles(), cyclicAMIPolyPatch::resetAMI(), timeSelector::select(), duplicatePoints::setRefinement(), snappySnapDriver::smoothDisplacement(), snappyRefineDriver::snappyRefineDriver(), Time::timePath(), triSurface::triSurface(), triSurface::triSurfInstance(), streamLine::write(), wallBoundedStreamLine::write(), triSurface::write(), Foam::writeCellGraph(), and meshRefinement::zonify().
|
inline |
|
inlinevirtual |
Local directory path of this objectRegistry relative to the time.
Reimplemented from objectRegistry.
Definition at line 279 of file Time.H.
References fileName::null.
|
inline |
Return current time path.
Definition at line 285 of file Time.H.
References Time::path(), and Time::timeName().
Referenced by MeshedSurfaceProxy< Face >::write(), molecule::writeFields(), and Foam::writePatchGraph().
|
inline |
|
inline |
|
inline |
Default write compression.
Definition at line 303 of file Time.H.
Referenced by PatchPostProcessing< CloudType >::write().
|
inline |
|
inline |
Supports re-reading.
Definition at line 315 of file Time.H.
References Time::addWatch(), Time::endTime(), Time::findClosestTime(), Time::findClosestTimeIndex(), Time::findInstance(), Time::findInstancePath(), Time::findTimes(), Time::getFile(), Time::getState(), IOobject::MUST_READ, dimensioned< scalar >::name(), word::null, Time::read(), Time::readModifiedObjects(), Time::removeWatch(), Time::setUnmodified(), Time::startTime(), Time::startTimeIndex(), Time::timeName(), Time::times(), Time::writeAndEnd(), Time::writeNow(), Time::writeObject(), Time::writeOnce(), and Time::writeTimeDict().
|
virtual |
Read control dictionary, update controls and time.
Reimplemented from regIOobject.
Reimplemented in engineTime.
Definition at line 363 of file TimeIO.C.
References Time::readDict().
Referenced by engineTime::read(), and Time::runTimeModifiable().
void readModifiedObjects | ( | ) |
Read the objects that have been modified.
Definition at line 377 of file TimeIO.C.
References regIOobject::fileModificationChecking, regIOobject::inotifyMaster, objectRegistry::modified(), UPstream::parRun(), functionObjectList::read(), Time::readDict(), regIOobject::readIfModified(), objectRegistry::readModifiedObjects(), and regIOobject::timeStampMaster.
Referenced by Time::run(), and Time::runTimeModifiable().
Foam::label addWatch | ( | const fileName & | fName | ) | const |
Add watching of a file. Returns handle.
Definition at line 683 of file Time.C.
Referenced by regIOobject::checkIn(), and Time::runTimeModifiable().
bool removeWatch | ( | const label | watchIndex | ) | const |
Remove watch on a file (using handle)
Definition at line 689 of file Time.C.
Referenced by regIOobject::checkOut(), Time::readDict(), and Time::runTimeModifiable().
const Foam::fileName & getFile | ( | const label | watchIndex | ) | const |
Get name of file being watched (using handle)
Definition at line 694 of file Time.C.
References Time::getState().
Referenced by regIOobject::readIfModified(), and Time::runTimeModifiable().
Foam::fileMonitor::fileState getState | ( | const label | watchFd | ) | const |
Get current state of file (using handle)
Definition at line 701 of file Time.C.
Referenced by Time::getFile(), regIOobject::modified(), and Time::runTimeModifiable().
void setUnmodified | ( | const label | watchFd | ) | const |
Set current state of file (using handle) to unmodified.
Definition at line 709 of file Time.C.
Referenced by Time::runTimeModifiable().
Foam::word findInstance | ( | const fileName & | dir, |
const word & | name = word::null , |
||
const IOobject::readOption | rOpt = IOobject::MUST_READ , |
||
const word & | stopInstance = word::null |
||
) | const |
Return the location of "dir" containing the file "name".
(eg, used in reading mesh data) If name is null, search for the directory "dir" only. Does not search beyond stopInstance (if set) or constant.
Definition at line 38 of file findInstance.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, IOobject::headerOk(), InfoInFunction, Foam::isDir(), Foam::isFile(), Foam::name(), path(), List< T >::size(), and timeName.
Referenced by Time::runTimeModifiable().
Foam::instantList times | ( | ) | const |
Search the case for valid time directories.
Definition at line 731 of file Time.C.
References path().
Referenced by edgeMeshFormatsCore::getLineNoComment(), surfaceFormatsCore::getLineNoComment(), Time::runTimeModifiable(), timeSelector::select0(), and triSurface::triSurfInstance().
Foam::word findInstancePath | ( | const instant & | t | ) | const |
Search the case for the time directory path.
corresponding to the given instance
Definition at line 737 of file Time.C.
References fileName::DIRECTORY, instant::equal(), forAll, Foam::isDir(), word::null, path(), Foam::readDir(), and Foam::readScalar().
Referenced by IOobjectList::IOobjectList(), and Time::runTimeModifiable().
Foam::instant findClosestTime | ( | const scalar | t | ) | const |
Search the case for the time closest to the given time.
Definition at line 767 of file Time.C.
References Foam::diff(), Time::findClosestTimeIndex(), UList< T >::last(), Foam::mag(), path(), List< T >::size(), and timeDirs.
Referenced by Time::runTimeModifiable().
|
static |
Search instantList for the time index closest to the given time.
Definition at line 804 of file Time.C.
References Foam::diff(), forAll, Foam::mag(), and Foam::name().
Referenced by Time::findClosestTime(), if(), and Time::runTimeModifiable().
|
virtual |
Write time dictionary to the <time>/uniform directory.
Definition at line 413 of file TimeIO.C.
References dictionary::add(), IOstream::ASCII, IOstream::currentVersion, TimeState::deltaT0_, TimeState::deltaT_, Time::maxPrecision_, IOobject::NO_READ, IOobject::NO_WRITE, TimeState::timeIndex_, Time::timeName(), TimeState::timeToUserTime(), IOstream::UNCOMPRESSED, dimensioned< scalar >::value(), and Time::writeObject().
Referenced by Time::runTimeModifiable(), and Time::writeObject().
|
virtual |
Write using given format, version and compression.
Reimplemented from objectRegistry.
Definition at line 447 of file TimeIO.C.
References IOobject::path(), Time::previousWriteTimes_, Time::purgeWrite_, Foam::rmDir(), Time::timeName(), objectRegistry::writeObject(), TimeState::writeTime(), TimeState::writeTime_, and Time::writeTimeDict().
Referenced by Time::runTimeModifiable(), and Time::writeTimeDict().
bool writeNow | ( | ) |
Write the objects now (not at end of iteration) and continue.
the run
Definition at line 485 of file TimeIO.C.
References regIOobject::write(), and TimeState::writeTime_.
Referenced by Time::runTimeModifiable(), and Time::writeAndEnd().
bool writeAndEnd | ( | ) |
Write the objects now (not at end of iteration) and end the run.
Definition at line 492 of file TimeIO.C.
References Time::endTime_, Time::saWriteNow, Time::stopAt_, dimensioned< scalar >::value(), and Time::writeNow().
Referenced by simpleControl::loop(), and Time::runTimeModifiable().
void writeOnce | ( | ) |
Write the objects once (one shot) and continue the run.
Definition at line 501 of file TimeIO.C.
References Time::writeOnce_.
Referenced by Time::runTimeModifiable().
|
static |
Return time name of given scalar time.
formatted with given precision
Definition at line 715 of file Time.C.
Referenced by fieldAverage::addMeanFieldType(), fieldAverage::addPrime2MeanFieldType(), interRegionExplicitPorositySource::addSup(), fieldToCell::applyToSet(), writeFile::baseTimeDir(), basicMultiComponentMixture::basicMultiComponentMixture(), blended< Type >::blendingFactor(), cellCoBlended< Type >::blendingFactor(), curvatureSeparation::calcCosAngle(), chemistryModel< CompType, ThermoType >::chemistryModel(), probes::classifyFields(), contactAngleForce::correct(), cubic< Type >::correction(), linearUpwindV< Type >::correction(), linearUpwind< Type >::correction(), Foam::CorrectPhi(), heThermo< BasicThermo, MixtureType >::Cp(), heThermo< BasicThermo, MixtureType >::CpByCpv(), heThermo< BasicThermo, MixtureType >::Cpv(), epsilonWallFunctionFvPatchScalarField::createAveragingWeights(), omegaWallFunctionFvPatchScalarField::createAveragingWeights(), writeFiles::createFiles(), heThermo< BasicThermo, MixtureType >::Cv(), fvMeshDistribute::distribute(), CrankNicolsonDdtScheme< Type >::fvcDdt(), CrankNicolsonDdtScheme< Type >::fvcDdtPhiCorr(), CrankNicolsonDdtScheme< Type >::fvcDdtUfCorr(), heThermo< BasicThermo, MixtureType >::gamma(), constantHeatTransfer::h(), heThermo< BasicThermo, MixtureType >::hc(), heThermo< BasicThermo, MixtureType >::he(), thermoSingleLayer::hs(), coalCloudList::hsTrans(), Foam::MULES::implicitSolve(), localMin< Type >::interpolate(), localMax< Type >::interpolate(), fvMeshSubset::interpolate(), heSolidThermo< BasicSolidThermo, MixtureType >::Kappa(), Foam::MULES::limitCorr(), PhiScheme< Type, PhiLimiter >::limiter(), LimitedScheme< Type, Limiter, LimitFunc >::limiter(), Foam::MULES::limiterCorr(), basicThermo::lookupOrConstruct(), simpleControl::loop(), meshRefinement::makeDisplacementField(), Foam::MapConsistentMesh(), Foam::MapConsistentVolFields(), fvMeshDistribute::mapExposedFaces(), Foam::MapLagrangianFields(), Foam::MapMesh(), meshToMesh::mapSrcToTgt(), Foam::MapSubMesh(), meshToMesh::mapTgtToSrc(), Foam::MapVolFields(), LocalInteraction< CloudType >::massEscape(), LocalInteraction< CloudType >::massStick(), MeshedSurface< Face >::MeshedSurface(), polyMesh::movePoints(), laminar::mut(), consumptionSpeed::omega0Sigma(), RaviPetersen::operator()(), sampledSurface::pointAverage(), Foam::polyMeshZipUpCells(), kinematicSingleLayer::pp(), VoidFraction< CloudType >::preEvolve(), ParticleErosion< CloudType >::preEvolve(), fvMeshDistribute::printCoupleInfo(), kinematicSingleLayer::pu(), pointFieldReconstructor::reconstructField(), forces::rho(), coalCloudList::rhoTrans(), noRadiation::Rp(), opaqueSolid::Rp(), P1::Rp(), viewFactor::Rp(), fvDOM::Rp(), noRadiation::Ru(), opaqueSolid::Ru(), viewFactor::Ru(), timeSelector::selectIfPresent(), skewCorrected< Type >::skewCorrection(), solidChemistryModel< CompType, SolidThermo >::solidChemistryModel(), coalCloudList::Srho(), thermoSingleLayer::Srho(), thermoSingleLayer::T(), thermoSingleLayer::thermoSingleLayer(), polyTopoChanger::update(), MPPICParcel< ParcelType >::TrackingData< CloudType >::updateAverages(), uniformInterpolatedDisplacementPointPatchVectorField::updateCoeffs(), laminar::Us(), coalCloudList::UTrans(), wallShearStress::wallShearStress(), extendedUpwindCellToFaceStencil::weightedSum(), extendedFaceToCellStencil::weightedSum(), extendedCellToFaceStencil::weightedSum(), reverseLinear< Type >::weights(), clippedLinear< Type >::weights(), FacePostProcessing< CloudType >::write(), STARCD::write(), MeshedSurfaceProxy< Face >::write(), histogram::write(), ParticleCollector< CloudType >::write(), streamLine::write(), regionSizeDistribution::write(), wallBoundedStreamLine::write(), meshRefinement::write(), Foam::writeCellGraph(), Foam::writeMeshObject(), dynamicRefineFvMesh::writeObject(), writeFile::writeTime(), CloudFunctionObject< CloudType >::writeTimeDir(), yPlus::yPlus(), FSD< CombThermoType, ThermoType >::~FSD(), Gulders::~Gulders(), and GuldersEGR::~GuldersEGR().
|
virtual |
Return current time name.
Definition at line 725 of file Time.C.
References dimensioned< Type >::name().
Referenced by Time::readDict(), Time::runTimeModifiable(), Time::timePath(), Time::writeObject(), and Time::writeTimeDict().
|
static |
Search a given directory for valid time directories.
Definition at line 38 of file findTimes.C.
References Foam::endl(), IOstream::eof(), forAll, InfoInFunction, token::isNumber(), Foam::less(), token::number(), Foam::readDir(), List< T >::setSize(), List< T >::size(), and Foam::sort().
Referenced by Time::runTimeModifiable(), uniformInterpolatedDisplacementPointPatchVectorField::uniformInterpolatedDisplacementPointPatchVectorField(), and USERD_set_filenames().
|
virtual |
Return start time index.
Definition at line 829 of file Time.C.
Referenced by Time::runTimeModifiable().
|
virtual |
Return start time.
Definition at line 835 of file Time.C.
References Foam::dimTime.
Referenced by fieldAverage::addMeanFieldType(), fieldAverage::addPrime2MeanFieldType(), writeFiles::createFiles(), Time::runTimeModifiable(), and simpleControl::simpleControl().
|
virtual |
Return end time.
Definition at line 841 of file Time.C.
References Foam::dimTime.
Referenced by Time::runTimeModifiable(), and simpleControl::simpleControl().
|
inline |
|
inline |
|
inline |
|
inline |
Return true if time currently being sub-cycled, otherwise false.
Definition at line 444 of file Time.H.
References Time::subCycling_.
Referenced by localEulerDdt::localRDeltaT().
|
inline |
Return previous TimeState if time is being sub-cycled.
Definition at line 450 of file Time.H.
References Time::adjustDeltaT(), Time::end(), Time::endSubCycle(), Time::loop(), Time::prevTimeState_, Time::run(), Time::setDeltaT(), Time::setEndTime(), Time::setTime(), Time::stopAt(), and Time::subCycle().
Referenced by fvMesh::Vsc(), and fvMesh::Vsc0().
|
virtual |
Return true if run should continue,.
also invokes the functionObjectList::end() method when the time goes out of range
Definition at line 847 of file Time.C.
References Time::readModifiedObjects().
Referenced by Time::prevTimeState().
|
virtual |
Return true if run should continue and if so increment time.
also invokes the functionObjectList::end() method when the time goes out of range
Definition at line 887 of file Time.C.
Referenced by simpleControl::loop(), and Time::prevTimeState().
|
virtual |
Return true if end of run,.
does not invoke any functionObject methods
Definition at line 900 of file Time.C.
Referenced by Time::prevTimeState().
|
virtual |
Adjust the current stopAtControl. Note that this value.
only persists until the next time the dictionary is read. Return true if the stopAtControl changed.
Definition at line 906 of file Time.C.
Referenced by Time::prevTimeState().
|
virtual |
Reset the time and time-index to those of the given time.
Definition at line 924 of file Time.C.
References dimensioned< Type >::name(), TimeState::timeIndex_, and dimensioned< Type >::value().
Referenced by Time::prevTimeState(), and timeSelector::select0().
Reset the time and time-index.
Definition at line 932 of file Time.C.
References instant::name(), dimensioned< Type >::name(), IOobject::NO_WRITE, IOobject::READ_IF_PRESENT, dictionary::readIfPresent(), timeName, and instant::value().
|
virtual |
Reset the time and time-index.
Definition at line 958 of file Time.C.
References setTime(), and dimensioned< Type >::value().
|
virtual |
Reset the time and time-index.
Definition at line 964 of file Time.C.
References dimensioned< Type >::name(), and timeName.
|
virtual |
Reset end time.
Definition at line 972 of file Time.C.
References dimensioned< Type >::value().
Referenced by Time::prevTimeState().
|
virtual |
Reset end time.
Definition at line 978 of file Time.C.
References Time::setDeltaT().
|
virtual |
Reset time step.
Definition at line 985 of file Time.C.
References dimensioned< Type >::value().
Referenced by Time::prevTimeState(), and Time::setEndTime().
|
virtual |
|
virtual |
Set time to sub-cycle for the given number of steps.
Definition at line 1006 of file Time.C.
References setTime(), and timeIndex.
Referenced by Time::prevTimeState(), and subCycleTime::subCycleTime().
|
virtual |
Reset time after sub-cycling back to previous TimeState.
Definition at line 1020 of file Time.C.
Referenced by subCycleTime::endSubCycle(), and Time::prevTimeState().
|
inline |
Return non-const access to the list of function objects.
Definition at line 548 of file Time.H.
References Time::operator++(), and Time::operator+=().
|
virtual |
Set deltaT to that specified and increment time via operator++()
Definition at line 1033 of file Time.C.
References dimensioned< Type >::value().
Referenced by Time::functionObjects().
|
virtual |
Set deltaT to that specified and increment time via operator++()
|
virtual |
Prefix increment,.
also invokes the functionObjectList::start() or functionObjectList::execute() method, depending on the time-index
Definition at line 1046 of file Time.C.
References Foam::endl(), Foam::mag(), Foam::max(), Foam::min(), dimensioned< Type >::name(), Foam::nl, Foam::pow(), Foam::readScalar(), Foam::reduce(), Foam::returnReduce(), setTime(), Foam::sign(), timeIndex, and WarningInFunction.
Referenced by Time::functionObjects().
|
virtual |
|
protected |
Definition at line 123 of file Time.H.
Referenced by engineTime::engineTime().
|
mutableprotected |
Definition at line 124 of file Time.H.
Referenced by Time::readDict(), and Time::writeAndEnd().
|
staticprotected |
Definition at line 126 of file Time.H.
Referenced by NamedEnum< Enum, nEnum >::names(), and Time::readDict().
|
mutableprotected |
Definition at line 127 of file Time.H.
Referenced by Time::readDict(), and Time::writeAndEnd().
|
staticprotected |
Definition at line 129 of file Time.H.
Referenced by NamedEnum< Enum, nEnum >::names(), and Time::readDict().
|
protected |
Definition at line 130 of file Time.H.
Referenced by Time::readDict().
|
protected |
Definition at line 132 of file Time.H.
Referenced by Time::readDict().
|
protected |
Definition at line 134 of file Time.H.
Referenced by Time::readDict(), and Time::writeObject().
Definition at line 135 of file Time.H.
Referenced by Time::writeObject().
|
protected |
Definition at line 138 of file Time.H.
Referenced by Time::writeOnce().
|
protected |
Is the time currently being sub-cycled?
Definition at line 141 of file Time.H.
Referenced by Time::subCycling().
If time is being sub-cycled this is the previous TimeState.
Definition at line 144 of file Time.H.
Referenced by Time::prevTimeState().
|
protected |
|
protected |
|
staticprotected |
Time directory name format.
Definition at line 157 of file Time.H.
Referenced by NamedEnum< Enum, nEnum >::names(), and Time::readDict().
|
staticprotected |
Time directory name precision.
Definition at line 160 of file Time.H.
Referenced by NamedEnum< Enum, nEnum >::names(), and Time::readDict().
|
staticprotected |
Maximum time directory name precision.
Definition at line 163 of file Time.H.
Referenced by NamedEnum< Enum, nEnum >::names(), and Time::writeTimeDict().
|
static |
The default control dictionary name (normally "controlDict")
Definition at line 201 of file Time.H.
Referenced by NamedEnum< Enum, nEnum >::names().