Address the time paths without using the Time class. More...
#include <TimePaths.H>

Public Member Functions | |
| 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. | |
| TimePaths (const argList &args, const word &systemDirName="system", const word &constantDirName="constant") | |
| Construct using characteristics given by the argList. | |
| TimePaths (const fileName &rootPath, const fileName &caseName, const word &systemDirName="system", const word &constantDirName="constant") | |
| Construct from rootPath and casePath. | |
| bool | distributed () const noexcept |
| True if case running with parallel distributed directories (ie. not NFS mounted). | |
| bool | processorCase () const noexcept |
| True if this is a processor case. | |
| bool | processorCase (bool on) noexcept |
| Set processor case status. Return old status. | |
| const fileName & | rootPath () const noexcept |
| Return root path. | |
| const fileName & | globalCaseName () const noexcept |
| Return global case name. | |
| const fileName & | caseName () const noexcept |
| Return case name. | |
| fileName & | caseName () noexcept |
| The case name for modification (use with caution). | |
| const fileName & | caseName (IOobjectOption::Layout) const noexcept |
| Return caseName() or globalCaseName(). | |
| fileName | path () const |
| Return path for the case = rootPath/caseName. | |
| fileName | globalPath () const |
| Return global path for the case = rootPath/globalCaseName. | |
| fileName | path (IOobjectOption::Layout) const |
| Return path() or globalPath(). | |
| 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. | |
| const word & | constant () const noexcept |
| Return constant name. | |
| const word & | system () const noexcept |
| Return system name. | |
| fileName | caseConstant () const |
Return the constant name for the case, which is ../constant() for parallel runs. | |
| fileName | caseSystem () const |
Return the system name for the case, which is ../system() for parallel runs. | |
| fileName | constantPath () const |
| Return constant path. | |
| fileName | systemPath () const |
| Return system path. | |
| instantList | times () const |
| Search the case for valid time directories. | |
| instantList | times (IOobjectOption::Layout) const |
| Search local or global locations for valid time directories. | |
| instant | findClosestTime (const scalar t) const |
| Search the case for the time closest to the given time. | |
| instant | findClosestTime (IOobjectOption::Layout, const scalar t) const |
| Search local or global locations for the time closest to the given time. | |
| word | findInstancePath (const instant &t) const |
| Search the case for the time directory path corresponding to the given instance. | |
| word | findInstancePath (IOobjectOption::Layout, const instant &t) const |
| Search local or global locations for the time directory path corresponding to the given instance. | |
Static Public Member Functions | |
| static instantList | findTimes (const fileName &directory, const word &constantDirName="constant") |
| Search a given directory for valid time directories. | |
| 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. | |
| 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. | |
| 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 equal. | |
| static word | findInstancePath (const fileName &directory, const instant &t, const word &constantDirName="constant") |
| Search the given directory for matching time value, return the instance name or word::null if nothing is equal. | |
Address the time paths without using the Time class.
Definition at line 52 of file TimePaths.H.
| 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.
Definition at line 61 of file TimePaths.C.
References caseName(), distributed(), globalCaseName(), processorCase(), and rootPath().
Referenced by Time::Time(), Time::Time(), Time::Time(), Time::Time(), TimePaths(), and TimePaths().


|
explicit |
Construct using characteristics given by the argList.
Definition at line 86 of file TimePaths.C.
References args, caseName(), distributed(), globalCaseName(), rootPath(), and TimePaths().

|
inline |
Construct from rootPath and casePath.
Definition at line 23 of file TimePathsI.H.
References caseName(), rootPath(), and TimePaths().

|
inlinenoexcept |
True if case running with parallel distributed directories (ie. not NFS mounted).
Definition at line 46 of file TimePathsI.H.
References Foam::noexcept.
Referenced by Time::readDict(), TimePaths(), and TimePaths().

|
inlinenoexcept |
True if this is a processor case.
Definition at line 52 of file TimePathsI.H.
References Foam::noexcept.
Referenced by cyclicAMIPolyPatch::canResetAMI(), cyclicAMIFvPatch::coupled(), TimePaths(), and collatedFileOperation::writeObject().

|
inlinenoexcept |
Set processor case status. Return old status.
Definition at line 58 of file TimePathsI.H.
|
inlinenoexcept |
Return root path.
Definition at line 66 of file TimePathsI.H.
References Foam::noexcept.
Referenced by globalPath(), path(), path(), TimePaths(), TimePaths(), TimePaths(), and Time::TypeName().

|
inlinenoexcept |
Return global case name.
Definition at line 72 of file TimePathsI.H.
References Foam::noexcept.
Referenced by globalPath(), TimePaths(), TimePaths(), and Time::TypeName().

|
inlinenoexcept |
Return case name.
Definition at line 78 of file TimePathsI.H.
References Foam::noexcept.
Referenced by path(), path(), TimePaths(), TimePaths(), TimePaths(), and Time::TypeName().

|
inlinenoexcept |
The case name for modification (use with caution).
Definition at line 84 of file TimePathsI.H.
References Foam::noexcept.
|
inlinenoexcept |
Return caseName() or globalCaseName().
Definition at line 91 of file TimePathsI.H.
References IOobjectOption::global.
|
inline |
Return path for the case = rootPath/caseName.
Definition at line 102 of file TimePathsI.H.
References caseName(), and rootPath().
Referenced by Time::timePath(), Time::timePath(), and Time::TypeName().


|
inline |
Return global path for the case = rootPath/globalCaseName.
Definition at line 108 of file TimePathsI.H.
References globalCaseName(), and rootPath().
Referenced by Time::globalTimePath(), relativePath(), and Time::TypeName().


|
inline |
Return path() or globalPath().
Definition at line 115 of file TimePathsI.H.
References caseName(), and rootPath().

|
inline |
Return the input relative to the globalPath by stripping off a leading value of the globalPath.
| input | the directory or filename to make case-relative |
| caseTag | replace globalPath with <case> for later use with expand(), or prefix <case> if the file name was not an absolute location |
Definition at line 121 of file TimePathsI.H.
References globalPath(), and fileName::relative().
Referenced by PDRblock::writeBlockMeshDict().


|
inlinenoexcept |
Return constant name.
Definition at line 131 of file TimePathsI.H.
References Foam::noexcept.
Referenced by caseConstant(), findClosestTime(), findClosestTime(), fileOperation::findInstance(), masterUncollatedFileOperation::findInstance(), Time::globalCaseName(), Foam::fam::laplacian(), Foam::fam::laplacian(), Foam::fvm::laplacian(), Foam::fvm::laplacian(), meshReader::mesh(), adjointRASModel::New(), adjointTurbulenceModel::New(), laminarFlameSpeed::New(), edgeSlipDisplacementPointPatchVectorField::read(), masterUncollatedFileOperation::readObjects(), Time::setControls(), masterUncollatedFileOperation::setTime(), times(), times(), triSurface::triSurfInstance(), and FIREMeshWriter::write().

|
inlinenoexcept |
Return system name.
Definition at line 137 of file TimePathsI.H.
References Foam::noexcept.
Referenced by codedBase::codeDict(), Time::Time(), Time::Time(), Time::Time(), and Time::Time().

|
inline |
Return the constant name for the case, which is ../constant() for parallel runs.
Definition at line 143 of file TimePathsI.H.
References constant().

|
inline |
Return the system name for the case, which is ../system() for parallel runs.
Definition at line 154 of file TimePathsI.H.
References Foam::system().
Referenced by lumpedPointIOMovement::New().


|
inline |
Return constant path.
Definition at line 165 of file TimePathsI.H.
|
inline |
Return system path.
Definition at line 171 of file TimePathsI.H.
|
static |
Search a given directory for valid time directories.
Definition at line 108 of file TimePaths.C.
References Foam::fileHandler.
Referenced by findClosestTime(), findClosestTime(), findInstancePath(), Time::setControls(), times(), times(), and uniformInterpolatedDisplacementPointPatchVectorField::updateCoeffs().

|
static |
Search instant list for the time index closest to the specified time.
Definition at line 118 of file TimePaths.C.
References Foam::diff(), Foam::mag(), name, and UList< T >::size().
Referenced by if(), timeSelector::selected(), and timeSelector::setTimeIfPresent().


|
static |
Search instant list for the instant closest to the specified time.
Definition at line 146 of file TimePaths.C.
References Foam::diff(), Foam::mag(), and UList< T >::size().
Referenced by findClosestTime(), and findClosestTime().


|
static |
Search instantList for matching time value, return the instance name or word::null if nothing is equal.
Definition at line 191 of file TimePaths.C.
References Instant< T >::equal(), and forAllReverse.
Referenced by masterUncollatedFileOperation::filePathInfo(), findInstancePath(), findInstancePath(), findInstancePath(), masterUncollatedFileOperation::readObjects(), and uncollatedFileOperation::readObjects().


|
static |
Search the given directory for matching time value, return the instance name or word::null if nothing is equal.
Definition at line 215 of file TimePaths.C.
References findInstancePath(), and findTimes().

| Foam::instantList times | ( | ) | const |
Search the case for valid time directories.
Definition at line 230 of file TimePaths.C.
References constant(), findTimes(), and path().
Referenced by triSurface::triSurfInstance().


| Foam::instantList times | ( | IOobjectOption::Layout | layout | ) | const |
Search local or global locations for valid time directories.
Definition at line 237 of file TimePaths.C.
References constant(), findTimes(), and path().

| Foam::instant findClosestTime | ( | const scalar | t | ) | const |
Search the case for the time closest to the given time.
Definition at line 244 of file TimePaths.C.
References constant(), findClosestTime(), findTimes(), and path().

| Foam::instant findClosestTime | ( | IOobjectOption::Layout | layout, |
| const scalar | t ) const |
Search local or global locations for the time closest to the given time.
Definition at line 256 of file TimePaths.C.
References constant(), findClosestTime(), findTimes(), and path().

| Foam::word findInstancePath | ( | const instant & | t | ) | const |
Search the case for the time directory path corresponding to the given instance.
Definition at line 272 of file TimePaths.C.
References findInstancePath(), and path().

| Foam::word findInstancePath | ( | IOobjectOption::Layout | layout, |
| const instant & | t ) const |
Search local or global locations for the time directory path corresponding to the given instance.
Definition at line 278 of file TimePaths.C.
References findInstancePath(), and path().
