Class to control time during OpenFOAM simulations that is also the top-level objectRegistry. More...
Public Member Functions | |
TypeName ("time") | |
Time (const word &ctrlDictName, const argList &args, const bool enableFunctionObjects=true, const bool enableLibs=true) | |
Time (const word &ctrlDictName, const fileName &rootPath, const fileName &caseName, const bool enableFunctionObjects=true, const bool enableLibs=true) | |
Time (const dictionary &dict, const fileName &rootPath, const fileName &caseName, const bool enableFunctionObjects=true, const bool enableLibs=true) | |
Time (const fileName &rootPath, const fileName &caseName, const bool enableFunctionObjects=true, const bool enableLibs=true) | |
Time (const word &ctrlDictName, const argList &args, const word &systemName, const word &constantName, const bool enableFunctionObjects=true, const bool enableLibs=true) | |
Time (const word &ctrlDictName, const fileName &rootPath, const fileName &caseName, const word &systemName, const word &constantName, const bool enableFunctionObjects=true, const bool enableLibs=true) | |
Time (const dictionary &dict, const fileName &rootPath, const fileName &caseName, const word &systemName, const word &constantName, const bool enableFunctionObjects=true, const bool enableLibs=true) | |
Time (const fileName &rootPath, const fileName &caseName, const word &systemName, const word &constantName, const bool enableFunctionObjects=true, const bool enableLibs=true) | |
virtual | ~Time () |
fileName | path () const |
const dictionary & | controlDict () const |
virtual const fileName & | dbDir () const |
fileName | timePath () const |
IOstreamOption | writeStreamOption () const |
IOstream::streamFormat | writeFormat () const |
IOstream::compressionType | writeCompression () const |
IOstream::versionNumber | writeVersion () const |
const word & | graphFormat () const |
const Switch & | runTimeModifiable () const |
virtual bool | read () |
void | readModifiedObjects () |
word | findInstance (const fileName &dir, const word &name=word::null, const IOobject::readOption rOpt=IOobject::MUST_READ, const word &stopInstance=word::null) const |
word | findInstancePath (const fileName &directory, const instant &t) const |
word | findInstancePath (const instant &t) const |
virtual bool | writeTimeDict () const |
virtual bool | writeObject (IOstreamOption streamOpt, const bool valid) const |
bool | writeNow () |
bool | writeAndEnd () |
void | writeOnce () |
Ostream & | printExecutionTime (OSstream &os) const |
virtual word | timeName () const |
virtual label | startTimeIndex () const |
virtual dimensionedScalar | startTime () const |
virtual dimensionedScalar | endTime () const |
virtual stopAtControls | stopAt () const |
virtual bool | isAdjustTimeStep () const |
const functionObjectList & | functionObjects () const |
dlLibraryTable & | libs () const |
label | subCycling () const |
const TimeState & | prevTimeState () const |
virtual bool | run () const |
virtual bool | loop () |
virtual bool | end () const |
virtual bool | stopAt (const stopAtControls stopCtrl) const |
virtual void | setTime (const Time &t) |
virtual void | setTime (const instant &inst, const label newIndex) |
virtual void | setTime (const dimensionedScalar &newTime, const label newIndex) |
virtual void | setTime (const scalar newTime, const label newIndex) |
virtual void | setEndTime (const dimensionedScalar &endTime) |
virtual void | setEndTime (const scalar endTime) |
virtual void | setDeltaT (const dimensionedScalar &deltaT, const bool adjust=true) |
virtual void | setDeltaT (const scalar deltaT, const bool adjust=true) |
virtual TimeState | subCycle (const label nSubCycles) |
virtual void | subCycleIndex (const label index) |
virtual void | endSubCycle () |
functionObjectList & | functionObjects () |
virtual Time & | operator+= (const dimensionedScalar &deltaT) |
virtual Time & | operator+= (const scalar deltaT) |
virtual Time & | operator++ () |
virtual Time & | operator++ (int) |
const fileName & | rootPath () const |
const fileName & | caseName () const |
fileName & | caseName () |
![]() | |
clock () | |
double | elapsedClockTime () const |
double | clockTimeIncrement () const |
![]() | |
cpuTimePosix () | |
void | resetCpuTime () |
double | elapsedCpuTime () const |
double | cpuTimeIncrement () const |
![]() | |
TimePaths (const argList &args, const word &systemName="system", const word &constantName="constant") | |
TimePaths (const fileName &rootPath, const fileName &caseName, const word &systemName="system", const word &constantName="constant") | |
TimePaths (const bool processorCase, const fileName &rootPath, const bool distributed, const fileName &globalCaseName, const fileName &caseName, const word &systemName="system", const word &constantName="constant") | |
bool | distributed () const noexcept |
bool | processorCase () const noexcept |
bool | processorCase (const bool isProcessorCase) noexcept |
const fileName & | rootPath () const |
const fileName & | globalCaseName () const |
const fileName & | caseName () const |
fileName & | caseName () |
fileName | path () const |
fileName | globalPath () const |
fileName | relativePath (const fileName &input, const bool caseTag=false) const |
const word & | constant () const |
const word & | system () const |
fileName | caseConstant () const |
fileName | caseSystem () const |
fileName | constantPath () const |
fileName | systemPath () const |
instantList | times () const |
instant | findClosestTime (const scalar t) const |
![]() | |
TypeName ("objectRegistry") | |
objectRegistry (const Time &db, const label nObjects=128) | |
objectRegistry (const IOobject &io, const label nObjects=128) | |
virtual | ~objectRegistry () |
const objectRegistry & | thisDb () const noexcept |
const objectRegistry & | parent () const noexcept |
const Time & | time () const noexcept |
bool | isTimeDb () const noexcept |
HashTable< wordHashSet > | classes () const |
template<class MatchPredicate > | |
HashTable< wordHashSet > | classes (const MatchPredicate &matchName) const |
label | count (const char *clsName) const |
template<class MatchPredicate > | |
label | count (const MatchPredicate &matchClass) const |
template<class MatchPredicate1 , class MatchPredicate2 > | |
label | count (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const |
template<class Type > | |
label | count (const bool strict=false) const |
template<class Type , class MatchPredicate > | |
label | count (const MatchPredicate &matchName) const |
wordList | names () const |
wordList | names (const char *clsName) const |
template<class MatchPredicate > | |
wordList | names (const MatchPredicate &matchClass) const |
template<class MatchPredicate1 , class MatchPredicate2 > | |
wordList | names (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const |
template<class Type > | |
wordList | names () const |
template<class Type , class MatchPredicate > | |
wordList | names (const MatchPredicate &matchName) const |
wordList | sortedNames () const |
wordList | sortedNames (const char *clsName) const |
template<class MatchPredicate > | |
wordList | sortedNames (const MatchPredicate &matchClass) const |
template<class MatchPredicate1 , class MatchPredicate2 > | |
wordList | sortedNames (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const |
template<class Type > | |
wordList | sortedNames () const |
template<class Type , class MatchPredicate > | |
wordList | sortedNames (const MatchPredicate &matchName) const |
const objectRegistry & | subRegistry (const word &name, const bool forceCreate=false, const bool recursive=false) const |
template<class Type > | |
HashTable< const Type * > | lookupClass (const bool strict=false) const |
template<class Type > | |
HashTable< Type * > | lookupClass (const bool strict=false) |
const regIOobject * | cfindIOobject (const word &name, const bool recursive=false) const |
bool | found (const word &name, const bool recursive=false) const |
template<class Type > | |
bool | foundObject (const word &name, const bool recursive=false) const |
template<class Type > | |
const Type * | cfindObject (const word &name, const bool recursive=false) const |
template<class Type > | |
const Type * | findObject (const word &name, const bool recursive=false) const |
template<class Type > | |
Type * | findObject (const word &name, const bool recursive=false) |
template<class Type > | |
Type * | getObjectPtr (const word &name, const bool recursive=false) const |
template<class Type > | |
const Type & | lookupObject (const word &name, const bool recursive=false) const |
template<class Type > | |
Type & | lookupObjectRef (const word &name, const bool recursive=false) const |
label | getEvent () const |
bool | checkIn (regIOobject *io) const |
bool | checkIn (regIOobject &io) const |
bool | checkOut (regIOobject *io) const |
bool | checkOut (regIOobject &io) const |
bool | checkOut (const word &key) const |
void | clear () |
void | clearStorage () |
bool | erase (const iterator &iter) |
bool | erase (const word &key) |
label | erase (std::initializer_list< word > keys) |
label | erase (const UList< word > &keys) |
virtual void | rename (const word &newName) |
virtual bool | modified () const |
void | readModifiedObjects () |
virtual bool | readIfModified () |
virtual bool | writeData (Ostream &) const |
template<class Type > | |
const Type * | lookupObjectPtr (const word &name, bool recursive=false) const |
template<class Type > | |
Type * | lookupObjectRefPtr (const word &name, bool recursive=false) const |
template<class MatchPredicate > | |
Foam::HashTable< Foam::wordHashSet > | classesImpl (const objectRegistry &list, const MatchPredicate &matchName) |
template<class MatchPredicate1 , class MatchPredicate2 > | |
Foam::label | countImpl (const objectRegistry &list, const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) |
template<class Type , class MatchPredicate > | |
Foam::label | countTypeImpl (const objectRegistry &list, const MatchPredicate &matchName) |
template<class MatchPredicate1 , class MatchPredicate2 > | |
Foam::wordList | namesImpl (const objectRegistry &list, const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName, const bool doSort) |
template<class Type , class MatchPredicate > | |
Foam::wordList | namesTypeImpl (const objectRegistry &list, const MatchPredicate &matchName, const bool doSort) |
template<class MatchPredicate > | |
Foam::HashTable< Foam::wordHashSet > | classes (const MatchPredicate &matchName) const |
template<class MatchPredicate > | |
Foam::label | count (const MatchPredicate &matchClass) const |
template<class MatchPredicate1 , class MatchPredicate2 > | |
Foam::label | count (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const |
template<class Type , class MatchPredicate > | |
Foam::label | count (const MatchPredicate &matchName) const |
template<class Type > | |
Foam::label | count (const bool strict) const |
template<class MatchPredicate > | |
Foam::wordList | names (const MatchPredicate &matchClass) const |
template<class MatchPredicate1 , class MatchPredicate2 > | |
Foam::wordList | names (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const |
template<class Type > | |
Foam::wordList | names () const |
template<class Type , class MatchPredicate > | |
Foam::wordList | names (const MatchPredicate &matchName) const |
template<class MatchPredicate > | |
Foam::wordList | sortedNames (const MatchPredicate &matchClass) const |
template<class MatchPredicate1 , class MatchPredicate2 > | |
Foam::wordList | sortedNames (const MatchPredicate1 &matchClass, const MatchPredicate2 &matchName) const |
template<class Type > | |
Foam::wordList | sortedNames () const |
template<class Type , class MatchPredicate > | |
Foam::wordList | sortedNames (const MatchPredicate &matchName) 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") | |
regIOobject (const IOobject &io, const bool isTimeObject=false) | |
regIOobject (const regIOobject &rio) | |
regIOobject (const regIOobject &rio, bool registerCopy) | |
regIOobject (const word &newName, const regIOobject &, bool registerCopy) | |
regIOobject (const IOobject &io, const regIOobject &rio) | |
virtual | ~regIOobject () |
bool | checkIn () |
bool | checkOut () |
virtual void | addWatch () |
bool | ownedByRegistry () const |
bool | store () |
void | release (const bool unregister=false) |
label | eventNo () const |
label & | eventNo () |
bool | upToDate (const regIOobject &) const |
bool | upToDate (const regIOobject &, const regIOobject &) const |
bool | upToDate (const regIOobject &, const regIOobject &, const regIOobject &) const |
bool | upToDate (const regIOobject &, const regIOobject &, const regIOobject &, const regIOobject &) const |
void | setUpToDate () |
const dictionary * | findMetaData () const noexcept |
dictionary & | getMetaData () noexcept |
void | removeMetaData () |
virtual void | updateMetaData () |
virtual fileName | filePath () const |
bool | headerOk () |
Istream & | readStream (const word &, const bool valid=true) |
void | close () |
virtual bool | readData (Istream &) |
virtual label | addWatch (const fileName &) |
const labelList & | watchIndices () const |
labelList & | watchIndices () |
virtual bool | write (const bool valid=true) const |
virtual bool | global () const |
void | operator= (const IOobject &io) |
virtual bool | writeObject (IOstreamOption::streamFormat fmt, IOstreamOption::versionNumber ver, IOstreamOption::compressionType comp, const bool valid) const |
![]() | |
TypeName ("IOobject") | |
IOobject (const IOobject &)=default | |
virtual | ~IOobject ()=default |
IOobject (const word &name, const fileName &instance, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
IOobject (const word &name, const fileName &instance, const fileName &local, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
IOobject (const fileName &path, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true, bool globalObject=false) | |
IOobject (const IOobject &io, const objectRegistry ®istry) | |
IOobject (const IOobject &io, const word &name) | |
IOobject (const IOobject &io, readOption, writeOption) | |
autoPtr< IOobject > | clone () const |
autoPtr< IOobject > | clone (const objectRegistry ®istry) const |
const objectRegistry & | db () const noexcept |
const Time & | time () const |
const word & | name () const noexcept |
const word & | headerClassName () const noexcept |
word & | headerClassName () noexcept |
const string & | note () const noexcept |
string & | note () noexcept |
bool | registerObject () const noexcept |
bool | registerObject (bool on) noexcept |
bool | globalObject () const noexcept |
bool | globalObject (bool on) noexcept |
unsigned | labelByteSize () const noexcept |
unsigned | scalarByteSize () const noexcept |
bool | isHeaderClassName (const word &clsName) const |
template<class Type > | |
bool | isHeaderClassName () const |
readOption | readOpt () const noexcept |
readOption | readOpt (readOption opt) noexcept |
writeOption | writeOpt () const noexcept |
writeOption | writeOpt (writeOption opt) noexcept |
word | group () const |
word | member () const |
const fileName & | rootPath () const |
const fileName & | caseName () const |
const fileName & | instance () const noexcept |
fileName & | instance () noexcept |
const fileName & | local () const noexcept |
fileName | path () const |
fileName | path (const word &instance, const fileName &local=fileName::null) const |
fileName | objectPath () const |
fileName | objectRelPath () const |
fileName | localFilePath (const word &typeName, const bool search=true) const |
fileName | globalFilePath (const word &typeName, const bool search=true) const |
IOstreamOption | parseHeader (const dictionary &headerDict) |
bool | readHeader (Istream &is) |
bool | readHeader (dictionary &headerDict, Istream &is) |
template<class Type > | |
bool | typeHeaderOk (const bool checkType=true, const bool search=true, const bool verbose=true) |
template<class Type > | |
void | warnNoRereading () const |
bool | writeHeader (Ostream &os) const |
bool | writeHeader (Ostream &os, const word &objectType) const |
void | writeHeader (dictionary &dict, IOstreamOption streamOpt) const |
void | writeHeader (dictionary &dict, const word &objectType, IOstreamOption streamOpt) const |
bool | good () const noexcept |
bool | bad () const noexcept |
InfoProxy< IOobject > | info () const |
void | operator= (const IOobject &io) |
readOption & | readOpt () noexcept |
writeOption & | writeOpt () noexcept |
bool & | registerObject () noexcept |
bool & | globalObject () noexcept |
template<> | |
bool | isHeaderClassName () const |
template<class StringType > | |
Foam::word | groupName (StringType base, const word &group) |
![]() | |
HashTable () | |
HashTable (const label size) | |
HashTable (Istream &is, const label size=128) | |
HashTable (const this_type &ht) | |
HashTable (this_type &&rhs) | |
HashTable (std::initializer_list< std::pair< Key, T >> list) | |
~HashTable () | |
label | capacity () const noexcept |
label | size () const noexcept |
bool | empty () const noexcept |
T & | at (const Key &key) |
const T & | at (const Key &key) const |
bool | found (const Key &key) const |
iterator | find (const Key &key) |
const_iterator | find (const Key &key) const |
const_iterator | cfind (const Key &key) const |
const T & | lookup (const Key &key, const T &deflt) const |
List< Key > | toc () const |
List< Key > | sortedToc () const |
List< Key > | sortedToc (const Compare &comp) const |
Foam::List< Key > | sortedToc (const Compare &comp) const |
List< Key > | tocKeys (const UnaryPredicate &pred, const bool invert=false) const |
Foam::List< Key > | tocKeys (const UnaryPredicate &pred, const bool invert) const |
List< Key > | tocValues (const UnaryPredicate &pred, const bool invert=false) const |
Foam::List< Key > | tocValues (const UnaryPredicate &pred, const bool invert) const |
List< Key > | tocEntries (const BinaryPredicate &pred, const bool invert=false) const |
Foam::List< Key > | tocEntries (const BinaryPredicate &pred, const bool invert) const |
label | countKeys (const UnaryPredicate &pred, const bool invert=false) const |
Foam::label | countKeys (const UnaryPredicate &pred, const bool invert) const |
label | countValues (const UnaryPredicate &pred, const bool invert=false) const |
Foam::label | countValues (const UnaryPredicate &pred, const bool invert) const |
label | countEntries (const BinaryPredicate &pred, const bool invert=false) const |
Foam::label | countEntries (const BinaryPredicate &pred, const bool invert) const |
bool | emplace (const Key &key, Args &&... args) |
bool | emplace_set (const Key &key, Args &&... args) |
bool | insert (const Key &key, const T &obj) |
bool | insert (const Key &key, T &&obj) |
bool | set (const Key &key, const T &obj) |
bool | set (const Key &key, T &&obj) |
bool | erase (const iterator &iter) |
bool | erase (const Key &key) |
label | erase (const HashTable< AnyType, Key, AnyHash > &other) |
label | erase (std::initializer_list< Key > keys) |
label | erase (InputIter first, InputIter last) |
label | erase (const FixedList< Key, N > &keys) |
label | erase (const UList< Key > &keys) |
Foam::label | erase (InputIter first, InputIter last) |
Foam::label | erase (const FixedList< Key, N > &keys) |
Foam::label | erase (const HashTable< AnyType, Key, AnyHash > &other) |
label | retain (const HashTable< AnyType, Key, AnyHash > &other) |
Foam::label | retain (const HashTable< AnyType, Key, AnyHash > &other) |
label | filterKeys (const UnaryPredicate &pred, const bool pruning=false) |
Foam::label | filterKeys (const UnaryPredicate &pred, const bool pruning) |
label | filterValues (const UnaryPredicate &pred, const bool pruning=false) |
Foam::label | filterValues (const UnaryPredicate &pred, const bool pruning) |
label | filterEntries (const BinaryPredicate &pred, const bool pruning=false) |
Foam::label | filterEntries (const BinaryPredicate &pred, const bool pruning) |
void | resize (const label sz) |
void | clear () |
void | clearStorage () |
void | swap (HashTable< T, Key, Hash > &rhs) |
void | transfer (HashTable< T, Key, Hash > &rhs) |
T & | operator[] (const Key &key) |
const T & | operator[] (const Key &key) const |
T & | operator() (const Key &key) |
T & | operator() (const Key &key, const T &deflt) |
void | operator= (const this_type &rhs) |
void | operator= (std::initializer_list< std::pair< Key, T >> rhs) |
void | operator= (this_type &&rhs) |
bool | operator== (const this_type &rhs) const |
bool | operator!= (const this_type &rhs) const |
this_type & | operator+= (const this_type &rhs) |
const_iterator_pair< const_key_iterator, this_type > | keys () const |
iterator | begin () |
const_iterator | begin () const |
const_iterator | cbegin () const |
iterator | end () noexcept |
const_iterator | end () const noexcept |
constexpr const_iterator | cend () const noexcept |
Ostream & | printInfo (Ostream &os) const |
Ostream & | writeKeys (Ostream &os, const label shortLen=0) const |
![]() | |
TimeState () | |
virtual | ~TimeState ()=default |
virtual scalar | userTimeToTime (const scalar theta) const |
virtual scalar | timeToUserTime (const scalar t) const |
scalar | timeOutputValue () const |
label | timeIndex () const noexcept |
scalar | deltaTValue () const noexcept |
scalar | deltaT0Value () const noexcept |
dimensionedScalar | deltaT () const |
dimensionedScalar | deltaT0 () const |
bool | writeTime () const noexcept |
bool | outputTime () const noexcept |
![]() | |
dimensioned () | |
dimensioned (const dimensionSet &dims) | |
dimensioned (const dimensionSet &dims, const Foam::zero) | |
dimensioned (const dimensionSet &dims, const Foam::one) | |
dimensioned (const Type &val) | |
dimensioned (const dimensionSet &dims, const Type &val) | |
dimensioned (const word &name, const dimensionSet &dims, const Type &val) | |
dimensioned (const word &name, const dimensioned< Type > &dt) | |
dimensioned (const primitiveEntry &e) | |
dimensioned (const primitiveEntry &e, const dimensionSet &dims) | |
dimensioned (const word &name, const dictionary &dict) | |
dimensioned (const word &name, const dimensionSet &dims, const dictionary &dict) | |
dimensioned (const word &name, const dimensionSet &dims, const dictionary &dict, const word &entryName) | |
dimensioned (const word &name, const dimensionSet &dims, const Type &val, const dictionary &dict) | |
const word & | name () const |
word & | name () |
const dimensionSet & | dimensions () const |
dimensionSet & | dimensions () |
const Type & | value () const |
Type & | value () |
dimensioned< cmptType > | component (const direction d) const |
void | replace (const direction d, const dimensioned< cmptType > &dc) |
dimensioned< Type > | T () const |
bool | read (const dictionary &dict) |
bool | readIfPresent (const dictionary &dict) |
bool | read (const word &entryName, const dictionary &dict) |
bool | readIfPresent (const word &entryName, const dictionary &dict) |
Istream & | read (Istream &is, const bool readName=true) |
Istream & | read (Istream &is, const dictionary &readSet) |
Istream & | read (Istream &is, const HashTable< dimensionedScalar > &readSet) |
void | writeEntry (const word &keyword, Ostream &os) const |
dimensioned< cmptType > | operator[] (const direction d) const |
void | operator+= (const dimensioned< Type > &dt) |
void | operator-= (const dimensioned< Type > &dt) |
void | operator*= (const scalar s) |
void | operator/= (const scalar s) |
dimensioned (Istream &is) | |
dimensioned (const word &name, Istream &is) | |
dimensioned (const word &name, const dimensionSet &dims, Istream &is) | |
Static Public Member Functions | |
static autoPtr< Time > | New () |
static autoPtr< Time > | New (const fileName &caseDir) |
static autoPtr< Time > | New (const argList &args) |
static word | timeName (const scalar t, const int precision=precision_) |
![]() | |
static time_t | getTime () |
static const struct tm | rawDate () |
static std::string | dateTime () |
static std::string | date () |
static std::string | clockTime () |
![]() | |
static instantList | findTimes (const fileName &directory, const word &constantName="constant") |
static label | findClosestTimeIndex (const instantList &timeDirs, const scalar t, const word &constantName="constant") |
![]() | |
template<class Type > | |
static Type & | store (Type *p) |
template<class Type > | |
static Type & | store (autoPtr< Type > &ptr) |
template<class Type > | |
static Type & | store (autoPtr< Type > &&ptr) |
template<class Type > | |
static Type & | store (refPtr< Type > &ptr) |
template<class Type > | |
static Type & | store (refPtr< Type > &&ptr) |
template<class Type > | |
static Type & | store (tmp< Type > &ptr) |
template<class Type > | |
static Type & | store (tmp< Type > &&ptr) |
![]() | |
static bool | bannerEnabled () noexcept |
static bool | bannerEnabled (bool on) noexcept |
static bool | fileNameComponents (const fileName &path, fileName &instance, fileName &local, word &name) |
template<class StringType > | |
static word | groupName (StringType base, const word &group) |
static word | group (const word &name) |
static word | member (const word &name) |
static word | scopedName (const std::string &scope, const word &name) |
static IOobject | selectIO (const IOobject &io, const fileName &altFile, const word &ioName="") |
static Ostream & | writeBanner (Ostream &os, const bool noSyntaxHint=false) |
static Ostream & | writeDivider (Ostream &os) |
static Ostream & | writeEndDivider (Ostream &os) |
![]() | |
static dimensioned< Type > | getOrDefault (const word &name, const dictionary &dict, const dimensionSet &dims=dimless, const Type &deflt=Type(Zero)) |
static dimensioned< Type > | getOrDefault (const word &name, const dictionary &dict, const Type &deflt=Type(Zero)) |
static dimensioned< Type > | getOrAddToDict (const word &name, dictionary &dict, const dimensionSet &dims=dimless, const Type &deflt=Type(Zero)) |
static dimensioned< Type > | getOrAddToDict (const word &name, dictionary &dict, const Type &deflt=Type(Zero)) |
static dimensioned< Type > | lookupOrDefault (const word &name, const dictionary &dict, const dimensionSet &dims=dimless, const Type &deflt=Type(Zero)) |
static dimensioned< Type > | lookupOrDefault (const word &name, const dictionary &dict, const Type &deflt=Type(Zero)) |
static dimensioned< Type > | lookupOrAddToDict (const word &name, dictionary &dict, const dimensionSet &dims=dimless, const Type &deflt=Type(Zero)) |
static dimensioned< Type > | lookupOrAddToDict (const word &name, dictionary &dict, const Type &deflt=Type(Zero)) |
Static Public Attributes | |
static const Enum< writeControls > | writeControlNames |
static const Enum< stopAtControls > | stopAtControlNames |
static int | printExecutionFormat_ |
static word | controlDictName |
![]() | |
static const Enum< fileCheckTypes > | fileCheckTypesNames |
static char | scopeSeparator |
static fileCheckTypes | fileModificationChecking |
static float | fileModificationSkew |
static int | maxFileModificationPolls |
Protected Member Functions | |
void | adjustDeltaT () |
void | setControls () |
void | setMonitoring (const bool forceProfiling=false) |
virtual void | readDict () |
![]() | |
bool | readHeaderOk (const IOstreamOption::streamFormat fmt, const word &typeName) |
![]() | |
void | setBad (const string &s) |
![]() | |
bool | iterator_erase (node_type *&entry, label &index) |
Protected Attributes | |
label | startTimeIndex_ |
scalar | startTime_ |
scalar | endTime_ |
stopAtControls | stopAt_ |
writeControls | writeControl_ |
scalar | writeInterval_ |
label | purgeWrite_ |
FIFOStack< word > | previousWriteTimes_ |
label | subCycling_ |
bool | writeOnce_ |
autoPtr< TimeState > | prevTimeState_ |
sigWriteNow | sigWriteNow_ |
sigStopAtWriteNow | sigStopAtWriteNow_ |
![]() | |
label | timeIndex_ |
label | writeTimeIndex_ |
scalar | deltaT_ |
scalar | deltaT0_ |
scalar | deltaTSave_ |
bool | deltaTchanged_ |
bool | writeTime_ |
Static Protected Attributes | |
static fmtflags | format_ |
static int | precision_ |
static const int | maxPrecision_ |
![]() | |
static bool | masterOnlyReading = false |
Additional Inherited Members | |
![]() | |
const typedef T * | const_pointer |
const typedef T & | const_reference |
![]() | |
static void | writeHeaderContent (Ostream &os, const IOobject &io, const word &objectType, const dictionary *metaDataDict=nullptr) |
static void | writeHeaderContent (dictionary &dict, const IOobject &io, const word &objectType, IOstreamOption streamOpt, const dictionary *metaDataDict=nullptr) |
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
enum writeControls |
enum stopAtControls |
Enumerator | |
---|---|
saEndTime | Stop when Time reaches prescribed endTime. |
saNoWriteNow | Adjust endTime to stop immediately w/o writing. |
saWriteNow | adjust endTime to stop immediately w/ writing |
saNextWrite | stop at the next data write interval |
saUnknown | Dummy no-op. Do not change current value. |
enum fmtflags |
Time | ( | const word & | ctrlDictName, |
const argList & | args, | ||
const word & | systemName, | ||
const word & | constantName, | ||
const bool | enableFunctionObjects = true , |
||
const bool | enableLibs = true |
||
) |
systemName | "system" directory name |
constantName | "constant" directory name |
Definition at line 480 of file Time.C.
References args, found, argList::found(), IOobject::MUST_READ_IF_MODIFIED, and argList::validOptions.
Time | ( | const word & | ctrlDictName, |
const fileName & | rootPath, | ||
const fileName & | caseName, | ||
const word & | systemName, | ||
const word & | constantName, | ||
const bool | enableFunctionObjects = true , |
||
const bool | enableLibs = true |
||
) |
systemName | "system" directory name |
constantName | "constant" directory name |
Definition at line 407 of file Time.C.
References IOobject::MUST_READ_IF_MODIFIED.
Time | ( | const dictionary & | dict, |
const fileName & | rootPath, | ||
const fileName & | caseName, | ||
const word & | systemName, | ||
const word & | constantName, | ||
const bool | enableFunctionObjects = true , |
||
const bool | enableLibs = true |
||
) |
systemName | "system" directory name |
constantName | "constant" directory name |
Definition at line 566 of file Time.C.
References IOobject::MUST_READ_IF_MODIFIED.
|
virtual |
Definition at line 751 of file Time.C.
References objectRegistry::clear(), Foam::fileHandler(), forAllReverse, fileOperation::removeWatch(), and profiling::stop().
|
protected |
Definition at line 92 of file Time.C.
References functionObjectList::adjustTimeStep(), TimeState::deltaT_, Foam::labelMax, Foam::max(), Foam::min(), Time::startTime_, dimensioned::value(), Time::wcAdjustableRunTime, Time::writeControl_, Time::writeInterval_, and TimeState::writeTimeIndex_.
|
protected |
Definition at line 136 of file Time.C.
References Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::fileHandler(), found, IOWarningInFunction, Foam::mag(), UPstream::myProcNo(), Foam::nl, IOobject::NO_WRITE, UPstream::nProcs(), oldTime, UPstream::parRun(), path(), IOobject::READ_IF_PRESENT, dictionary::readIfPresent(), Foam::reduce(), setTime(), timeName, and WarningInFunction.
|
protected |
Definition at line 342 of file Time.C.
References fileOperation::addWatches(), IOobject::AUTO_WRITE, Foam::debug::controlDict(), Foam::fileHandler(), dictionary::findDict(), dictionary::getOrDefault(), profiling::initialize(), IOobject::NO_READ, and timeName.
|
protectedvirtual |
Reimplemented in crankConRod, and engineTime.
Definition at line 83 of file TimeIO.C.
References fileOperation::addWatches(), IOstreamOption::BINARY, List::clear(), IOstreamOption::COMPRESSED, IOstreamOption::compression(), Foam::debug::debugObjects(), IOstream::defaultPrecision(), TimeState::deltaT_, TimeState::deltaTchanged_, DetailInfo, dict, Foam::debug::dimensionedConstantObjects(), Foam::dimensionedConstants(), Foam::debug::dimensionSetObjects(), Foam::dimensionSystems(), TimePaths::distributed(), Foam::endl(), Time::endTime_, Foam::exit(), Foam::FatalError, Foam::FatalIOError, FatalIOErrorInFunction, Foam::fileHandler(), DictionaryBase::find(), dictionary::findDict(), Time::fixed, forAllConstIters(), forAllReverse, IOstreamOption::format(), Time::format_, dictionary::found(), Time::general, dictionary::get(), fileOperation::getFile(), Foam::Info, Foam::infoDetailLevel, Foam::debug::infoObjects(), IOWarningInFunction, dictionary::merge(), baseIOdictionary::name(), dimensioned::name(), fileOperation::New(), Foam::nl, Foam::debug::optimisationObjects(), os(), Foam::Perr, Foam::Pout, OSstream::precision(), Time::precision_, Time::purgeWrite_, dictionary::readEntry(), Enum::readIfPresent(), dictionary::readIfPresent(), fileOperation::removeWatch(), Time::saEndTime, Time::scientific, Foam::Serr, Foam::setEnv(), simpleObjectRegistry::setValues(), Foam::Sout, Time::stopAt_, Time::stopAtControlNames, error::stream(), ofstreamPointer::supports_gz(), Time::timeName(), Foam::type(), IOstreamOption::UNCOMPRESSED, dimensioned::value(), IOstreamOption::version(), WarningInFunction, regIOobject::watchIndices(), Time::wcAdjustableRunTime, Time::wcRunTime, Time::wcTimeStep, Time::writeControl_, Time::writeControlNames, Time::writeInterval_, and TimeState::writeTimeIndex_.
Referenced by engineTime::readDict(), and crankConRod::readDict().
TypeName | ( | "time" | ) |
|
static |
Definition at line 710 of file Time.C.
References autoPtr::New().
Referenced by boundaryDataWriter::write(), and boundaryDataWriter::writeTemplate().
|
static |
Definition at line 723 of file Time.C.
References fileName::name(), autoPtr::New(), and fileName::path().
|
static |
Definition at line 736 of file Time.C.
References args, Time::controlDictName, and autoPtr::New().
|
inline |
Definition at line 354 of file Time.H.
References TimePaths::caseName(), and TimePaths::rootPath().
Referenced by snappyLayerDriver::addLayers(), meshRefinement::baffleAndSplitMesh(), nearWallFields::calcAddressing(), snappySnapDriver::detectNearSurfaces(), snappySnapDriver::doSnap(), masterUncollatedFileOperation::filePath(), masterUncollatedFileOperation::filePathInfo(), Foam::getGraphPathBase(), fvMeshTools::newMesh(), snappySnapDriver::preSmoothPatch(), masterUncollatedFileOperation::readObjects(), cyclicAMIPolyPatch::resetAMI(), masterUncollatedFileOperation::setTime(), snappySnapDriver::smoothDisplacement(), Time::timePath(), triSurface::triSurface(), triSurface::triSurfInstance(), and triSurface::write().
|
inline |
Definition at line 360 of file Time.H.
Referenced by thermo::readControls().
|
inlinevirtual |
Reimplemented from objectRegistry.
Definition at line 365 of file Time.H.
References fileName::null.
|
inline |
Definition at line 371 of file Time.H.
References Time::path(), and Time::timeName().
Referenced by faMesh::faMesh(), averageNeighbourFvGeometryScheme::movePoints(), and molecule::writeFields().
|
inline |
|
inline |
Definition at line 383 of file Time.H.
References IOstreamOption::format().
|
inline |
Definition at line 389 of file Time.H.
References IOstreamOption::compression().
|
inline |
Definition at line 395 of file Time.H.
References IOstreamOption::version().
|
virtual |
Reimplemented from regIOobject.
Reimplemented in crankConRod, and engineTime.
Definition at line 435 of file TimeIO.C.
References fileOperation::addWatches(), and Foam::fileHandler().
Referenced by engineTime::read(), and crankConRod::read().
void readModifiedObjects | ( | ) |
Definition at line 460 of file TimeIO.C.
References fileOperation::addWatches(), Foam::fileHandler(), IOobject::fileModificationChecking, IOobject::inotifyMaster, objectRegistry::modified(), UPstream::parRun(), objectRegistry::readModifiedObjects(), IOobject::timeStampMaster, and fileOperation::updateStates().
Referenced by SIMPLEControlOpt::loop(), and Time::run().
Foam::word findInstance | ( | const fileName & | dir, |
const word & | name = word::null , |
||
const IOobject::readOption | rOpt = IOobject::MUST_READ , |
||
const word & | stopInstance = word::null |
||
) | const |
Definition at line 790 of file Time.C.
References Foam::fileHandler(), IOobject::instance(), Foam::name(), and timeName.
Referenced by topoSet::findIOobject(), fvMeshTools::newMesh(), points0MotionSolver::points0IO(), sensitivitySurface::smoothSensitivities(), and cellCellStencil::zoneID().
Foam::word findInstancePath | ( | const fileName & | directory, |
const instant & | t | ||
) | const |
Definition at line 820 of file Time.C.
References Instant< T >::equal(), forAllReverse, word::null, and path().
Referenced by uncollatedFileOperation::filePathInfo(), and uncollatedFileOperation::readObjects().
Foam::word findInstancePath | ( | const instant & | t | ) | const |
|
virtual |
Definition at line 506 of file TimeIO.C.
References dictionary::add(), addProfiling, IOstreamOption::ASCII, IOobject::NO_READ, IOobject::NO_WRITE, and timeName.
|
virtual |
Reimplemented from objectRegistry.
Definition at line 541 of file TimeIO.C.
References Foam::fileHandler(), IOobject::path(), fileOperation::rmDir(), timeName, and objectRegistry::writeObject().
bool writeNow | ( | ) |
Definition at line 589 of file TimeIO.C.
References Foam::vtk::write().
Referenced by runTimeControl::execute(), and SIMPLEControlSingleRun::writeNow().
bool writeAndEnd | ( | ) |
Definition at line 596 of file TimeIO.C.
Referenced by runTimeControl::execute(), and simpleControl::loop().
Foam::Ostream & printExecutionTime | ( | OSstream & | os | ) | const |
Definition at line 611 of file TimeIO.C.
References Foam::endl(), Foam::nl, os(), Foam::printTimeHMS(), and OFstream::stdStream().
Referenced by sensitivitySurface::smoothSensitivities(), adjointMeshMovementSolver::solve(), adjointEikonalSolver::solve(), and RASTurbulenceModel::solveIter().
|
static |
Definition at line 773 of file Time.C.
Referenced by constantAbsorptionEmission::aCont(), adjointLaminar::adjointMeanFlowSource(), adjointSensitivity::adjointMeshMovementSource(), adjointSpalartAllmaras::allocateMask(), RASModelVariables::allocateMeanFields(), fieldToCell::applyToSet(), sensitivityVolBSplinesFI::assembleSensitivities(), variablesSet::autoCreateMeshMovementField(), surfaceWriter::beginTime(), Bezier::Bezier(), cellCoBlended< Type >::blendingFactor(), Foam::calc_pTotal(), Foam::calc_rhoU(), nearWallFields::calcAddressing(), ObukhovLength::calcOL(), DarcyForchheimer::calcTransformModelData(), RASModelVariables::cloneRefPtr(), adjointSensitivity::computeGradDxDbMultiplier(), adjointEikonalSolver::computeYPhi(), contactAngleForce::correct(), cubic< Type >::correction(), waxSolventEvaporation::correctModel(), epsilonWallFunctionFvPatchScalarField::createAveragingWeights(), omegaWallFunctionFvPatchScalarField::createAveragingWeights(), logFiles::createFiles(), distanceSurface::createGeometry(), cloud::createIOField(), ATCModel::createLimiter(), Foam::createZeroFieldPtr(), filmTurbulenceModel::Cw(), faMeshDecomposition::decomposeMesh(), adjointLaminar::distanceSensitivities(), multiphaseMangrovesSource::dragCoeff(), masterUncollatedFileOperation::findInstance(), adjointLaminar::FISensitivityTerm(), fvMeshDistribute::generateTestField(), adjointRASModel::getAdjointTMVariable1Inst(), adjointRASModel::getAdjointTMVariable2Inst(), ATCUaGradU::getFISensitivityTerm(), ATCstandard::getFISensitivityTerm(), cancelATC::getFISensitivityTerm(), adjointEikonalSolver::getFISensitivityTerm(), constantHeatTransfer::h(), localMax< Type >::interpolate(), localMin< Type >::interpolate(), isoSurfacePoint::isoSurfacePoint(), simpleControl::loop(), SIMPLEControlSingleRun::loop(), meshRefinement::makeDisplacementField(), Foam::MapConsistentMesh(), Foam::MapConsistentVolFields(), Foam::MapLagrangianFields(), Foam::MapMesh(), meshToMesh::mapSrcToTgt(), Foam::MapSubMesh(), meshToMesh::mapTgtToSrc(), Foam::MapVolFields(), momentumError::momentumError(), triSurfaceMesh::movePoints(), laminar::mut(), dynamicFvMesh::New(), adjointRASModel::nutJacobianTMVar1(), adjointRASModel::nutJacobianTMVar2(), objectiveManager::objectiveManager(), kinematicSingleLayer::pp(), kinematicSingleLayer::pu(), variablesSet::renameTurbulenceField(), filmTurbulenceModel::rho(), timeSelector::selectIfPresent(), variablesSet::setFluxField(), incompressibleAdjointMeanFlowVars::setMeanFields(), incompressibleVars::setMeanFields(), adjointRASModel::setMeanFields(), refinementIterator::setRefinement(), masterUncollatedFileOperation::setTime(), noFilm::Sh(), noScatter::sigmaEff(), constantScatter::sigmaEff(), skewCorrected< Type >::skewCorrection(), sensitivitySurface::smoothSensitivities(), twoPhaseSystem::solve(), multiphaseSystem::solve(), RASTurbulenceModel::solveIter(), noFilm::Srho(), temperatureDependentContactAngleForce::theta(), distributionContactAngleForce::theta(), perturbedTemperatureDependentContactAngleForce::theta(), MPPICParcel::trackingData::updateAverages(), KinematicParcel::trackingData::updateAverages(), uniformInterpolatedDisplacementPointPatchVectorField::updateCoeffs(), laminar::Us(), coalCloudList::UTrans(), velocityDisplacementMotionSolver::velocityDisplacementMotionSolver(), reverseLinear< Type >::weights(), clippedLinear< Type >::weights(), FIREMeshWriter::write(), FacePostProcessing< CloudType >::write(), RemoveParcels< CloudType >::write(), sensitivityBezier::write(), sensitivityVolBSplines::write(), sensitivityVolBSplinesFI::write(), sensitivityBezierFI::write(), ParticleCollector< CloudType >::write(), areaWrite::write(), faMeshDecomposition::writeDecomposition(), Foam::writeMeshObject(), and triSurfaceMesh::writeObject().
|
virtual |
Definition at line 783 of file Time.C.
References dimensioned::name().
Referenced by writeFile::createFile(), Time::readDict(), faceSetOption::setArea(), cellSetOption::setVol(), Time::timePath(), and writeFile::writeCurrentTime().
|
virtual |
Definition at line 860 of file Time.C.
References Foam::dimTime.
Referenced by logFiles::createFiles(), and pointHistory::pointHistory().
|
virtual |
Definition at line 866 of file Time.C.
References Foam::dimTime.
Referenced by SIMPLEControlSingleRun::checkEndTime(), and SIMPLEControlSingleRun::readIters().
|
virtual |
Definition at line 872 of file Time.C.
Referenced by dynamicFvMesh::New().
|
inline |
Definition at line 495 of file Time.H.
Referenced by stateFunctionObject::stateDict().
|
inline |
Definition at line 501 of file Time.H.
Referenced by codedPoints0MotionSolver::libs(), codedFunctionObject::libs(), dynamicFvMesh::New(), GAMGAgglomeration::New(), and functionObject::New().
|
inline |
Definition at line 511 of file Time.H.
References Time::subCycling_.
Referenced by masterUncollatedFileOperation::setTime().
|
inline |
Definition at line 517 of file Time.H.
References Time::prevTimeState_.
|
virtual |
Definition at line 878 of file Time.C.
References profiling::active(), addProfiling, IOobject::name(), and Time::readModifiedObjects().
Referenced by runTimeControl::execute().
|
virtual |
Definition at line 950 of file Time.C.
Referenced by simpleControl::loop(), and SIMPLEControlSingleRun::loop().
|
virtual |
|
virtual |
Definition at line 996 of file Time.C.
References Foam::fileHandler(), dimensioned::name(), fileOperation::setTime(), TimeState::timeIndex_, and dimensioned::value().
Referenced by timeSelector::select0().
|
virtual |
Definition at line 1005 of file Time.C.
References Foam::fileHandler(), Instant< T >::name(), dimensioned::name(), IOobject::NO_WRITE, IOobject::READ_IF_PRESENT, dictionary::readIfPresent(), fileOperation::setTime(), timeName, and Instant< T >::value().
|
virtual |
Definition at line 1032 of file Time.C.
References setTime(), and dimensioned::value().
|
virtual |
Definition at line 1038 of file Time.C.
References Foam::fileHandler(), dimensioned::name(), fileOperation::setTime(), and timeName.
|
virtual |
Definition at line 1047 of file Time.C.
References dimensioned::value().
Referenced by SIMPLEControlSingleRun::checkEndTime(), and SIMPLEControlSingleRun::readIters().
|
virtual |
Definition at line 1060 of file Time.C.
References dimensioned::value().
Referenced by SIMPLEControlOpt::resetDeltaT().
|
virtual |
|
virtual |
Definition at line 1081 of file Time.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::nl, setTime(), and timeIndex.
Referenced by subCycleTime::subCycleTime().
|
inline |
|
virtual |
Definition at line 1132 of file Time.C.
References dimensioned::value().
|
virtual |
|
virtual |
Definition at line 1145 of file Time.C.
References stdFoam::end(), Foam::endl(), Foam::mag(), Foam::max(), Foam::min(), dimensioned::name(), Foam::nl, Foam::pow(), Foam::reduce(), Foam::returnReduce(), setTime(), Foam::sign(), timeIndex, and WarningInFunction.
|
virtual |
|
inline |
Definition at line 43 of file TimePathsI.H.
|
inline |
Definition at line 55 of file TimePathsI.H.
Referenced by triSurface::triSurface(), triSurface::triSurfInstance(), and triSurface::write().
|
inline |
|
static |
Definition at line 112 of file Time.H.
Referenced by Time::readDict().
|
static |
Definition at line 115 of file Time.H.
Referenced by Foam::getStopAction(), abort::read(), and Time::readDict().
|
protected |
Definition at line 147 of file Time.H.
Referenced by Time::adjustDeltaT().
|
mutableprotected |
Definition at line 149 of file Time.H.
Referenced by Time::readDict().
|
mutableprotected |
Definition at line 151 of file Time.H.
Referenced by Time::readDict().
|
protected |
Definition at line 153 of file Time.H.
Referenced by Time::adjustDeltaT(), and Time::readDict().
|
protected |
Definition at line 155 of file Time.H.
Referenced by Time::adjustDeltaT(), and Time::readDict().
|
protected |
Definition at line 157 of file Time.H.
Referenced by Time::readDict().
|
protected |
Definition at line 163 of file Time.H.
Referenced by Time::subCycling().
Definition at line 169 of file Time.H.
Referenced by Time::prevTimeState().
|
protected |
|
protected |
|
staticprotected |
Definition at line 179 of file Time.H.
Referenced by Time::readDict().
|
staticprotected |
Definition at line 182 of file Time.H.
Referenced by Time::readDict().
|
static |
Definition at line 222 of file Time.H.
Referenced by faMeshDecomposition::decomposeMesh(), Time::New(), and faMeshDecomposition::writeDecomposition().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.