38 #ifndef Foam_TimePaths_H 39 #define Foam_TimePaths_H 76 bool detectProcessorCase();
90 const word& systemDirName =
"system",
91 const word& constantDirName =
"constant" 98 const word& systemDirName =
"system",
99 const word& constantDirName =
"constant" 107 const word& systemDirName =
"system",
108 const word& constantDirName =
"constant" 152 const bool caseTag =
false 184 const word& constantDirName =
"constant" 192 const word& constantDirName =
"constant" fileName constantPath() const
Return constant path.
Address the time paths without using the Time class.
A class for handling file names.
fileName relativePath(const fileName &input, const bool caseTag=false) const
Return the input relative to the globalPath by stripping off a leading value of the globalPath...
fileName systemPath() const
Return system path.
bool processorCase() const noexcept
True if this is a processor case.
fileName caseSystem() const
Return the system name for the case, which is ../system() for parallel runs.
A class for handling words, derived from Foam::string.
Extract command arguments and options from the supplied argc and argv parameters. ...
static Istream & input(Istream &is, IntRange< T > &range)
const word & system() const noexcept
Return system name.
static label findClosestTimeIndex(const instantList &timeDirs, const scalar t, const word &constantDirName="constant")
Search instantList for the time index closest to the specified time.
fileName caseConstant() const
Return the constant name for the case, which is ../constant() for parallel runs.
bool distributed() const noexcept
True if case running with parallel distributed directories (ie. not NFS mounted)
const word & constant() const noexcept
Return constant name.
static instantList findTimes(const fileName &directory, const word &constantDirName="constant")
Search a given directory for valid time directories.
An instant of time. Contains the time value and name. Uses Foam::Time when formatting the name...
const fileName & rootPath() const noexcept
Return root path.
instantList times() const
Search the case for valid time directories.
const fileName & globalCaseName() const noexcept
Return global case name.
TimePaths(const bool processorCase, const fileName &rootPath, const bool distributed, const fileName &globalCaseName, const fileName &caseName, const word &systemDirName="system", const word &constantDirName="constant")
Construct from all components.
fileName path() const
Return path for the case = rootPath/caseName.
instant findClosestTime(const scalar t) const
Search the case for the time closest to the given time.
Foam::argList args(argc, argv)
const fileName & caseName() const noexcept
Return case name.
fileName globalPath() const
Return global path for the case = rootPath/globalCaseName.