34 const word& systemDirName,
35 const word& constantDirName
61 return processorCase_;
67 bool old(processorCase_);
81 return globalCaseName_;
99 return rootPath()/caseName();
105 return rootPath()/globalCaseName();
115 return input.relative(globalPath(), caseTag);
135 return ".."/constant();
155 return path()/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.
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.
fileName path(UMean.rootPath()/UMean.caseName()/"graphs"/UMean.instance())
const fileName & rootPath() const noexcept
Return root path.
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.
int system(const std::string &command, const bool bg=false)
Execute the specified command via the shell.
const fileName & caseName() const noexcept
Return case name.
fileName globalPath() const
Return global path for the case = rootPath/globalCaseName.