Address the time paths without using the Time class. More...
Public Member Functions | |
TimePaths (const argList &args, const word &systemName="system", const word &constantName="constant") | |
Construct using characteristics given by the argList. More... | |
TimePaths (const fileName &rootPath, const fileName &caseName, const word &systemName="system", const word &constantName="constant") | |
Construct given database name, rootPath and casePath. More... | |
TimePaths (const bool processorCase, const fileName &rootPath, const bool distributed, const fileName &globalCaseName, const fileName &caseName, const word &systemName="system", const word &constantName="constant") | |
Construct given database name, rootPath and casePath. More... | |
bool | distributed () const |
bool | processorCase () const |
Return true if this is a processor case. More... | |
const fileName & | rootPath () const |
Return root path. More... | |
const fileName & | globalCaseName () const |
Return global case name. More... | |
const fileName & | caseName () const |
Return case name. More... | |
fileName & | caseName () |
The case name for modification (use with caution) More... | |
fileName | path () const |
Return path for the case. More... | |
fileName | globalPath () const |
Return global path for the case. More... | |
fileName | relativePath (const fileName &input, const bool caseTag=false) const |
const word & | constant () const |
Return constant name. More... | |
const word & | system () const |
Return system name. More... | |
fileName | caseConstant () const |
fileName | caseSystem () const |
fileName | constantPath () const |
Return constant path. More... | |
fileName | systemPath () const |
Return system path. More... | |
instantList | times () const |
Search the case for valid time directories. More... | |
instant | findClosestTime (const scalar t) const |
Search the case for the time closest to the given time. More... | |
Static Public Member Functions | |
static instantList | findTimes (const fileName &directory, const word &constantName="constant") |
Search a given directory for valid time directories. More... | |
static label | findClosestTimeIndex (const instantList &timeDirs, const scalar t, const word &constantName="constant") |
Search instantList for the time index closest to the specified time. More... | |
Address the time paths without using the Time class.
Definition at line 56 of file TimePaths.H.
|
explicit |
Construct using characteristics given by the argList.
Definition at line 69 of file TimePaths.C.
TimePaths | ( | const fileName & | rootPath, |
const fileName & | caseName, | ||
const word & | systemName = "system" , |
||
const word & | constantName = "constant" |
||
) |
Construct given database name, rootPath and casePath.
Definition at line 91 of file TimePaths.C.
TimePaths | ( | const bool | processorCase, |
const fileName & | rootPath, | ||
const bool | distributed, | ||
const fileName & | globalCaseName, | ||
const fileName & | caseName, | ||
const word & | systemName = "system" , |
||
const word & | constantName = "constant" |
||
) |
Construct given database name, rootPath and casePath.
Definition at line 112 of file TimePaths.C.
|
inline |
True if case running with parallel distributed directories (ie. not NFS mounted)
Definition at line 30 of file TimePathsI.H.
|
inline |
Return true if this is a processor case.
Definition at line 36 of file TimePathsI.H.
Referenced by cyclicAMIPolyPatch::canResetAMI(), masterUncollatedFileOperation::exists(), uncollatedFileOperation::filePathInfo(), masterUncollatedFileOperation::filePathInfo(), collatedFileOperation::objectPath(), and collatedFileOperation::writeObject().
|
inline |
Return root path.
Definition at line 42 of file TimePathsI.H.
Referenced by Time::path().
|
inline |
Return global case name.
Definition at line 48 of file TimePathsI.H.
Referenced by uncollatedFileOperation::filePathInfo(), masterUncollatedFileOperation::filePathInfo(), masterUncollatedFileOperation::localObjectPath(), and fileOperation::processorsCasePath().
|
inline |
Return case name.
Definition at line 54 of file TimePathsI.H.
Referenced by Time::path().
|
inline |
The case name for modification (use with caution)
Definition at line 60 of file TimePathsI.H.
|
inline |
Return path for the case.
Definition at line 66 of file TimePathsI.H.
|
inline |
Return global path for the case.
Definition at line 72 of file TimePathsI.H.
Referenced by CloudFunctionObject< CloudType >::CloudFunctionObject(), meshRefinement::findRegions(), abort::read(), and shortestPathSet::shortestPathSet().
|
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 79 of file TimePathsI.H.
References fileName::relative().
|
inline |
Return constant name.
Definition at line 88 of file TimePathsI.H.
Referenced by timeVaryingMappedFixedValuePointPatchField< Type >::checkTable(), componentDisplacementMotionSolver::componentDisplacementMotionSolver(), dynamicMultiMotionSolverFvMesh::dynamicMultiMotionSolverFvMesh(), masterUncollatedFileOperation::filePath(), uncollatedFileOperation::filePathInfo(), masterUncollatedFileOperation::filePathInfo(), fileOperation::findInstance(), masterUncollatedFileOperation::findInstance(), meshReader::mesh(), simplifiedDynamicFvMeshBase::New(), motionSolver::New(), engineMesh::New(), coordinateSystems::New(), dynamicFvMesh::New(), motionSolver::iNew::operator()(), points0MotionSolver::points0IO(), masterUncollatedFileOperation::readObjects(), regionProperties::regionProperties(), timeSelector::select0(), Foam::selectReadIO(), masterUncollatedFileOperation::setTime(), cyclicAMIPolyPatch::surfPtr(), mappedPatchBase::surfPtr(), triSurfaceMeshPointSet::triSurfaceMeshPointSet(), triSurface::triSurfInstance(), velocityDisplacementMotionSolver::velocityDisplacementMotionSolver(), volBSplinesBase::volBSplinesBase(), FIREMeshWriter::write(), triSurfaceTools::writeCurvature(), and triSurfaceMesh::writeObject().
|
inline |
Return system name.
Definition at line 94 of file TimePathsI.H.
Referenced by fvMeshTools::createDummyFvMeshFiles(), uncollatedFileOperation::filePathInfo(), masterUncollatedFileOperation::filePathInfo(), optimisationManager::New(), and triSurfaceMesh::writeObject().
|
inline |
Return the constant name for the case, which is ../constant() for parallel runs.
Definition at line 100 of file TimePathsI.H.
Referenced by timeVaryingMappedFixedValuePointPatchField< Type >::checkTable(), and triSurfaceMesh::writeObject().
|
inline |
Return the system name for the case, which is ../system() for parallel runs.
Definition at line 111 of file TimePathsI.H.
References Foam::system().
Referenced by lumpedPointIOMovement::New(), and triSurfaceMesh::writeObject().
|
inline |
Return constant path.
Definition at line 122 of file TimePathsI.H.
References path().
|
inline |
Return system path.
Definition at line 128 of file TimePathsI.H.
References path(), and Foam::system().
|
static |
Search a given directory for valid time directories.
Forwards to the current fileHandler
Definition at line 140 of file TimePaths.C.
References Foam::fileHandler(), and fileOperation::findTimes().
Referenced by uniformInterpolatedDisplacementPointPatchVectorField::uniformInterpolatedDisplacementPointPatchVectorField().
|
static |
Search instantList for the time index closest to the specified time.
Definition at line 156 of file TimePaths.C.
References Foam::diff(), Foam::mag(), and Foam::name().
Referenced by if(), and timeSelector::selected().
Foam::instantList times | ( | ) | const |
Search the case for valid time directories.
Definition at line 149 of file TimePaths.C.
References path().
Referenced by fileOperation::findInstance(), masterUncollatedFileOperation::findInstance(), timeSelector::select0(), and triSurface::triSurfInstance().
Foam::instant findClosestTime | ( | const scalar | t | ) | const |
Search the case for the time closest to the given time.
Definition at line 183 of file TimePaths.C.
References Foam::diff(), Foam::mag(), and path().