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 noexcept |
bool | processorCase () const noexcept |
Return true if this is a processor case. More... | |
bool | processorCase (const bool isProcessorCase) noexcept |
Set processor case status. Return old one. 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 68 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 90 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 111 of file TimePaths.C.
|
inlinenoexcept |
True if case running with parallel distributed directories (ie. not NFS mounted)
Definition at line 30 of file TimePathsI.H.
Referenced by Time::readDict().
|
inlinenoexcept |
Return true if this is a processor case.
Definition at line 36 of file TimePathsI.H.
Referenced by uncollatedFileOperation::filePathInfo(), and collatedFileOperation::writeObject().
Set processor case status. Return old one.
Definition at line 42 of file TimePathsI.H.
|
inline |
Return root path.
Definition at line 50 of file TimePathsI.H.
|
inline |
Return global case name.
Definition at line 56 of file TimePathsI.H.
Referenced by uncollatedFileOperation::filePathInfo(), and fileOperation::processorsCasePath().
|
inline |
Return case name.
Definition at line 62 of file TimePathsI.H.
|
inline |
The case name for modification (use with caution)
Definition at line 68 of file TimePathsI.H.
|
inline |
Return path for the case.
Definition at line 74 of file TimePathsI.H.
|
inline |
Return global path for the case.
Definition at line 80 of file TimePathsI.H.
Referenced by CloudFunctionObject< CloudType >::CloudFunctionObject(), isoSurfaceTopo::isoSurfaceTopo(), MappedFile< scalar >::MappedFile(), objectiveManager::objectiveManager(), 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 86 of file TimePathsI.H.
References Foam::input().
Referenced by PDRblock::writeBlockMeshDict().
|
inline |
Return constant name.
Definition at line 96 of file TimePathsI.H.
Referenced by basicMultiComponentMixture::basicMultiComponentMixture(), boundaryRadiationProperties::boundaryRadiationProperties(), timeVaryingMappedFixedValuePointPatchField< Type >::checkTable(), coalCloudList::coalCloudList(), componentDisplacementMotionSolver::componentDisplacementMotionSolver(), uncollatedFileOperation::filePathInfo(), fileOperation::findInstance(), masterUncollatedFileOperation::findInstance(), greyMeanAbsorptionEmission::greyMeanAbsorptionEmission(), isoAdvection::isoAdvection(), Foam::fam::laplacian(), Foam::fvm::laplacian(), MappedFile< scalar >::MappedFile(), meshReader::mesh(), multiphaseSystem::New(), twoPhaseSystem::New(), thermalBaffleModel::New(), surfaceFilmModel::New(), RASModelVariables::New(), basicThermo::New(), pyrolysisModel::New(), dynamicFvMesh::New(), simplifiedDynamicFvMeshBase::New(), engineMesh::New(), motionSolver::New(), laminarFlameSpeed::New(), radiationModel::New(), waveModel::New(), displacementMethod::New(), adjointRASModel::New(), adjointTurbulenceModel::New(), motionSolver::iNew::operator()(), points0MotionSolver::points0IO(), powerLawLopesdaCostaZone::powerLawLopesdaCostaZone(), pyrolysisModelCollection::pyrolysisModelCollection(), masterUncollatedFileOperation::readObjects(), regionProperties::regionProperties(), timeSelector::select0(), Foam::selectReadIO(), masterUncollatedFileOperation::setTime(), stabilityBlendingFactor::stabilityBlendingFactor(), surfaceAlignedSBRStressFvMotionSolver::surfaceAlignedSBRStressFvMotionSolver(), cyclicAMIPolyPatch::surfPtr(), mappedPatchBase::surfPtr(), triSurfaceMeshPointSet::triSurfaceMeshPointSet(), triSurface::triSurfInstance(), velocityDisplacementMotionSolver::velocityDisplacementMotionSolver(), volBSplinesBase::volBSplinesBase(), wideBandAbsorptionEmission::wideBandAbsorptionEmission(), FIREMeshWriter::write(), triSurfaceTools::writeCloseness(), triSurfaceTools::writeCurvature(), and triSurfaceMesh::writeObject().
|
inline |
Return system name.
Definition at line 102 of file TimePathsI.H.
Referenced by codedBase::codeDict(), fvMeshTools::createDummyFvMeshFiles(), uncollatedFileOperation::filePathInfo(), optimisationManager::New(), PDRblock::writeBlockMeshDict(), and triSurfaceMesh::writeObject().
|
inline |
Return the constant name for the case, which is ../constant() for parallel runs.
Definition at line 108 of file TimePathsI.H.
Referenced by timeVaryingMappedFixedValuePointPatchField< Type >::checkTable(), fromFile::computeControlPoints(), and triSurfaceMesh::writeObject().
|
inline |
Return the system name for the case, which is ../system() for parallel runs.
Definition at line 119 of file TimePathsI.H.
References Foam::system().
Referenced by lumpedPointIOMovement::New(), sensitivitySurface::smoothSensitivities(), and triSurfaceMesh::writeObject().
|
inline |
Return constant path.
Definition at line 130 of file TimePathsI.H.
|
inline |
Return system path.
Definition at line 136 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 139 of file TimePaths.C.
References Foam::fileHandler(), and fileOperation::findTimes().
Referenced by timeVaryingMappedFixedValuePointPatchField< Type >::checkTable(), and uniformInterpolatedDisplacementPointPatchVectorField::uniformInterpolatedDisplacementPointPatchVectorField().
|
static |
Search instantList for the time index closest to the specified time.
Definition at line 155 of file TimePaths.C.
References Foam::diff(), Foam::mag(), Foam::name(), and UList< T >::size().
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(), UList< T >::first(), UList< T >::last(), Foam::mag(), path(), and UList< T >::size().