38 #ifndef Foam_TimePaths_H 39 #define Foam_TimePaths_H 74 bool detectProcessorCase();
85 const word& systemName =
"system",
86 const word& constantName =
"constant" 94 const word& systemName =
"system",
95 const word& constantName =
"constant" 107 const word& systemName =
"system",
108 const word& constantName =
"constant" 152 const bool caseTag =
false 184 const word& constantName =
"constant" 192 const word& constantName =
"constant" fileName constantPath() const
Return constant path.
Address the time paths without using the Time class.
A class for handling file names.
static label findClosestTimeIndex(const instantList &timeDirs, const scalar t, const word &constantName="constant")
Search instantList for the time index closest to the specified time.
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
Return true if this is a processor case.
fileName caseSystem() const
Return the system name for the case, which is ../system() for parallel runs.
TimePaths(const argList &args, const word &systemName="system", const word &constantName="constant")
Construct using characteristics given by the argList.
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.
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.
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.
static instantList findTimes(const fileName &directory, const word &constantName="constant")
Search a given directory for valid time directories.
instantList times() const
Search the case for valid time directories.
const fileName & globalCaseName() const noexcept
Return global case name.
fileName path() const
Return path for the case.
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.