38#ifndef Foam_TimePaths_H
39#define Foam_TimePaths_H
88 bool detectProcessorCase();
102 const word& systemDirName =
"system",
103 const word& constantDirName =
"constant"
110 const word& systemDirName =
"system",
111 const word& constantDirName =
"constant"
119 const word& systemDirName =
"system",
120 const word& constantDirName =
"constant"
170 const bool caseTag =
false
202 const word& constantDirName =
"constant"
211 const word& constantDirName =
"constant"
219 const word& constantDirName =
"constant"
236 const word& constantDirName =
"constant"
Layout
The layout of the case structure.
instantList times() const
Search the case for valid time directories.
const word & system() const noexcept
Return system name.
bool distributed() const noexcept
True if case running with parallel distributed directories (ie. not NFS mounted).
const fileName & rootPath() const noexcept
Return root path.
const word & constant() const noexcept
Return constant name.
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.
static instantList findTimes(const fileName &directory, const word &constantDirName="constant")
Search a given directory for valid time directories.
fileName caseConstant() const
Return the constant name for the case, which is ../constant() for parallel runs.
const fileName & globalCaseName() const noexcept
Return global case name.
static word findInstancePath(const UList< instant > &timeDirs, const instant &t)
Search instantList for matching time value, return the instance name or word::null if nothing is equa...
fileName path() const
Return path for the case = rootPath/caseName.
static instant findClosestTime(const UList< instant > &timeDirs, const scalar t, const word &constantDirName="constant")
Search instant list for the instant closest to the specified time.
fileName caseSystem() const
Return the system name for the case, which is ../system() for parallel runs.
static label findClosestTimeIndex(const UList< instant > &timeDirs, const scalar t, const word &constantDirName="constant")
Search instant list for the time index closest to the specified time.
bool processorCase() const noexcept
True if this is a processor case.
fileName constantPath() const
Return constant path.
fileName systemPath() const
Return system path.
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.
const fileName & caseName() const noexcept
Return case name.
fileName globalPath() const
Return global path for the case = rootPath/globalCaseName.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Extract command arguments and options from the supplied argc and argv parameters.
A class for handling file names.
An instant of time. Contains the time value and name. Uses Foam::Time when formatting the name.
A class for handling words, derived from Foam::string.
List< instant > instantList
List of instants.
Foam::argList args(argc, argv)