|
|
|
Time Class ReferenceClass to control time during OpenFOAM simulations that is also the top-level objectRegistry. More...
Inheritance diagram for Time:
![]()
Collaboration diagram for Time:
![]()
Detailed DescriptionClass to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Definition at line 59 of file Time.H. Member Enumeration Documentation
Constructor & Destructor Documentation
Construct given name, rootPath and casePath.
Definition at line 180 of file Time.C. References Time::startTimeIndex_, and TimeState::timeIndex_.
Member Function Documentation
Adjust the time step so that writing occurs at the specified time.
Definition at line 60 of file Time.C. Referenced by Time::subCycle().
Here is the caller graph for this function:
![]()
Read the control dictionary and set the write controls etc.
Reimplemented in engineTime. Definition at line 23 of file TimeIO.C. References IOstream::compressionEnum(), IOstream::defaultPrecision(), TimeState::deltaT_, TimeState::deltaTchanged_, Foam::endl(), Time::endTime_, Foam::exit(), Foam::FatalIOError, FatalIOErrorIn, Time::fixed, Time::format_, IOstream::formatEnum(), dictionary::found(), dictionary::lookup(), IOobject::name(), TimeState::outputTimeIndex_, Foam::Perr, Foam::Pout, OSstream::precision(), Time::precision_, Time::purgeWrite_, NamedEnum< Enum, nEnum >::read(), dictionary::readIfPresent(), Foam::readScalar(), Foam::readUint(), Time::saEndTime, Time::scientific, Foam::Serr, Foam::Sout, Time::stopAt_, Time::stopAtControlNames_, Time::timeName(), WarningIn, Time::wcAdjustableRunTime, Time::wcRunTime, Time::wcTimeStep, Time::writeControl_, Time::writeControlNames_, and Time::writeInterval_.
Here is the call graph for this function:
![]()
Return root path.
Reimplemented from TimePaths. Definition at line 215 of file Time.H. Referenced by Time::caseName(), and Time::controlDict().
Here is the caller graph for this function:
![]()
Return case name.
Reimplemented from TimePaths. Definition at line 221 of file Time.H. References Time::rootPath(). Referenced by Time::controlDict(), and Time::path().
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]()
Return path.
Reimplemented from TimePaths. Definition at line 227 of file Time.H. References Time::caseName(). Referenced by autoHexMeshDriver::autoHexMeshDriver(), Time::findInstance(), Time::findInstancePath(), and Time::writeFormat().
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]()
Definition at line 232 of file Time.H. References Time::caseName(), and Time::rootPath().
Here is the call graph for this function:
![]()
Local directory path of this objectRegistry relative to the time.
Reimplemented from objectRegistry.
Return current time path.
Definition at line 243 of file Time.H. References fileName::null. Referenced by Foam::writeCellGraph(), and Foam::writePatchGraph().
Here is the caller graph for this function:
![]()
Default write format.
Definition at line 249 of file Time.H. References Time::path(), and Time::timeName().
Here is the call graph for this function:
![]()
Read control dictionary, update controls and time.
Reimplemented from regIOobject. Reimplemented in engineTime.
Return the location of "dir" containing the file "name". (eg, used in reading mesh data) If name is null, search for the directory "dir" only Definition at line 31 of file findInstance.C. References TimePaths::constant(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorIn, Foam::Info, IOobject::IOobject(), Foam::isDir(), Foam::isFile(), IOobject::MUST_READ, IOobject::name(), Time::path(), Time::timeName(), TimeState::timeOutputValue(), and Time::times().
Here is the call graph for this function:
![]()
Search the case for valid time directories.
Definition at line 370 of file Time.C. References IOobject::name(). Referenced by Time::findInstance().
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]()
Search the case for the time directory path. corresponding to the given instance Definition at line 376 of file Time.C. References Time::findTimes(), and Time::path().
Here is the call graph for this function:
![]()
Search instantList for the time index closest to the given time.
Definition at line 439 of file Time.C. References forAll, Foam::mag(), and IOobject::name(). Referenced by if().
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]()
Write the objects now and end the run.
Definition at line 287 of file TimeIO.C. References TimeState::outputTime_, and regIOobject::write().
Here is the call graph for this function:
![]()
Return time name of given scalar time.
Definition at line 353 of file Time.C. References functionObjectList::clear(). Referenced by fieldAverage::addMeanField(), Foam::compressible::autoCreateAlphat(), Foam::incompressible::autoCreateNut(), basicMultiComponentMixture::basicMultiComponentMixture(), linearUpwindV< Type >::correction(), linearUpwind< Type >::correction(), Foam::MULES::explicitSolve(), EulerD2dt2Scheme< Type >::fvcD2dt2(), steadyStateD2dt2Scheme< Type >::fvcD2dt2(), EulerDdtScheme< Type >::fvcDdt(), steadyStateDdtScheme< Type >::fvcDdt(), fvMeshSubset::interpolate(), localMin< Type >::interpolate(), localMax< Type >::interpolate(), LESdelta::LESdelta(), PhiScheme< Type, PhiLimiter >::limiter(), LimitedScheme< Type, Limiter, LimitFunc >::limiter(), Foam::MapConsistentVolFields(), Foam::MapGeometricFields(), Foam::MapLagrangianFields(), Foam::MapVolFields(), solidParticle::move(), multivariateScheme< Type, Scheme >::multivariateScheme(), multivariateSelectionScheme< Type >::multivariateSelectionScheme(), Foam::polyMeshZipUpCells(), extendedUpwindCellToFaceStencil::weightedSum(), clippedLinear< Type >::weights(), reverseLinear< Type >::weights(), addSubtract::writeAddSubtractField(), addSubtract::writeAddSubtractValue(), components::writeComponentFields(), div::writeDivField(), interpolate::writeInterpolateField(), mag::writeMagField(), magGrad::writeMagGradField(), magSqr::writeMagSqrField(), Foam::writeMeshObject(), regIOobject::writeObject(), and randomise::writeRandomField().
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]()
Return current time name.
Definition at line 363 of file Time.C. References Time::format_, and Time::precision_. Referenced by Time::findInstance(), Time::readDict(), Time::setEndTime(), and Time::writeFormat().
Here is the caller graph for this function:
![]()
Search a given directory for valid time directories.
Definition at line 30 of file findTimes.C. References fileName::DIRECTORY, Foam::endl(), IOstream::eof(), forAll, Foam::Info, token::isNumber(), token::number(), Foam::readDir(), and Foam::sort(). Referenced by Time::findInstancePath(), and USERD_set_filenames().
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]()
Return true if run should continue,. also invokes the functionObjectList::end() method when the time goes out of range
Return true if run should continue and if so increment time. also invokes the functionObjectList::end() method when the time goes out of range
Return true if end of run,. does not invoke any functionObject methods Reimplemented from HashTable< regIOobject * >. Definition at line 513 of file Time.C. References Time::operator++().
Here is the call graph for this function:
![]()
Reset the time and time-index.
Definition at line 527 of file Time.C. References IOobject::name(), and TimeState::timeIndex_.
Here is the call graph for this function:
![]()
Reset end time.
Definition at line 567 of file Time.C. References IOobject::name(), TimeState::timeIndex_, Time::timeName(), and TimeState::timeToUserTime().
Here is the call graph for this function:
![]()
Reset time step.
Definition at line 579 of file Time.C. Referenced by Time::operator++().
Here is the caller graph for this function:
![]()
Set time to sub-cycle for the given number of steps.
Definition at line 593 of file Time.C. References Time::adjustDeltaT(), TimeState::deltaT_, and TimeState::deltaTchanged_.
Here is the call graph for this function:
![]()
Reset time after sub-cycling back to given TimeState.
Definition at line 607 of file Time.C. Referenced by subCycleTime::operator++().
Here is the caller graph for this function:
![]()
Set deltaT to that specified and increment time via operator++().
Definition at line 616 of file Time.C. References Time::subCycling_. Referenced by Time::operator+=().
Here is the caller graph for this function:
![]()
Set deltaT to that specified and increment time via operator++().
Definition at line 622 of file Time.C. References Time::operator+=().
Here is the call graph for this function:
![]()
Prefix increment,. also invokes the functionObjectList::start() or functionObjectList::execute() method, depending on the time-index Definition at line 629 of file Time.C. References Time::setDeltaT(). Referenced by Time::end().
Here is the call graph for this function:
![]()
Here is the caller graph for this function:
![]()
Postfix increment, this is identical to the prefix increment.
Definition at line 732 of file Time.C. References Time::endTime_.
Member Data Documentation
Is the time currently being sub-cycled?
Definition at line 122 of file Time.H. Referenced by Time::operator+=().
Time directory name format.
Definition at line 125 of file Time.H. Referenced by Time::readDict(), and Time::timeName().
Time directory name precision.
Definition at line 128 of file Time.H. Referenced by Time::readDict(), and Time::timeName().
The default control dictionary name (normally "controlDict").
The documentation for this class was generated from the following files:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||