The time value with time-stepping information, user-defined remapping, etc. More...
#include <OpenFOAM/TimeState.H>
The time value with time-stepping information, user-defined remapping, etc.
Definition at line 50 of file TimeState.H.
Public Member Functions | |
TimeState () | |
virtual | ~TimeState () |
Destructor.
| |
virtual scalar | userTimeToTime (const scalar theta) const |
Convert the user-time (e.g. CA deg) to real-time (s).
| |
virtual scalar | timeToUserTime (const scalar t) const |
Convert the real-time (s) into user-time (e.g. CA deg)
| |
scalar | timeOutputValue () const |
Return current time value.
| |
label | timeIndex () const |
Return current time index.
| |
scalar | deltaTValue () const |
Return time step value.
| |
scalar | deltaT0Value () const |
Return old time step value.
| |
dimensionedScalar | deltaT () const |
Return time step.
| |
dimensionedScalar | deltaT0 () const |
Return old time step.
| |
bool | outputTime () const |
Return true if this is an output time.
| |
Protected Attributes | |
label | timeIndex_ |
scalar | deltaT_ |
scalar | deltaTSave_ |
scalar | deltaT0_ |
bool | deltaTchanged_ |
label | outputTimeIndex_ |
bool | outputTime_ |
TimeState | ( | ) |
Definition at line 31 of file TimeState.C.
~TimeState | ( | ) | [virtual]
|
Destructor.
Definition at line 46 of file TimeState.C.
Foam::scalar userTimeToTime | ( | const scalar | theta ) | const [virtual]
|
Convert the user-time (e.g. CA deg) to real-time (s).
Reimplemented in engineTime.
Definition at line 52 of file TimeState.C.
Referenced by commonRailInjector::commonRailInjector(), definedHollowConeInjector::definedHollowConeInjector(), definedInjector::definedInjector(), multiHoleInjector::multiHoleInjector(), swirlInjector::swirlInjector(), and unitInjector::unitInjector().
Foam::scalar timeToUserTime | ( | const scalar | t ) | const [virtual]
|
Convert the real-time (s) into user-time (e.g. CA deg)
Reimplemented in engineTime.
Definition at line 58 of file TimeState.C.
Foam::scalar timeOutputValue | ( | ) | const |
Return current time value.
Definition at line 64 of file TimeState.C.
Referenced by triSurface::triSurfInstance().
Foam::label timeIndex | ( | ) | const |
Return current time index.
Definition at line 70 of file TimeState.C.
Referenced by ignitionSite::cells(), sampledThresholdCellFaces::needsUpdate(), sampledIsoSurfaceCell::needsUpdate(), sampledIsoSurface::needsUpdate(), fvMesh::phi(), and subCycle< GeometricField >::~subCycle().
scalar deltaTValue | ( | ) | const [inline]
|
Return time step value.
Definition at line 95 of file TimeState.H.
References TimeState::deltaT_.
Referenced by FreeStream< CloudType >::inflow(), KinematicParcel< ParcelType >::move(), DsmcParcel< ParcelType >::move(), uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField::updateCoeffs(), sixDoFRigidBodyDisplacementPointPatchVectorField::updateCoeffs(), oscillatingVelocityPointPatchVectorField::updateCoeffs(), angularOscillatingVelocityPointPatchVectorField::updateCoeffs(), fvMesh::Vsc(), and fvMesh::Vsc0().
scalar deltaT0Value | ( | ) | const [inline]
|
Return old time step value.
Definition at line 101 of file TimeState.H.
References TimeState::deltaT0_.
Referenced by uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField::updateCoeffs(), and sixDoFRigidBodyDisplacementPointPatchVectorField::updateCoeffs().
Foam::dimensionedScalar deltaT | ( | ) | const |
Return time step.
Definition at line 76 of file TimeState.C.
References Foam::dimTime.
Referenced by spray::atomizationLoop(), spray::breakupLoop(), fieldAverage::calculateMeanFields(), fieldAverage::calculatePrime2MeanFields(), stochasticDispersionRAS::disperseParcels(), gradientDispersionRAS::disperseParcels(), spray::evaporationSource(), spray::evolve(), Foam::MULES::explicitSolve(), EulerD2dt2Scheme< Type >::fvcD2dt2(), EulerDdtScheme< Type >::fvcDdt(), boundedBackwardDdtScheme::fvcDdt(), backwardDdtScheme< Type >::fvcDdt(), ddtScheme< Type >::fvcDdtPhiCoeff(), EulerDdtScheme< Type >::fvcDdtPhiCorr(), backwardDdtScheme< Type >::fvcDdtPhiCorr(), EulerD2dt2Scheme< Type >::fvmD2dt2(), EulerDdtScheme< Type >::fvmDdt(), spray::heatTransferSource(), ignitionSite::ignited(), ignitionSite::igniting(), Foam::MULES::implicitSolve(), spray::inject(), Foam::MULES::limiter(), spray::momentumSource(), solidParticle::move(), molecule::move(), parcel::move(), layeredEngineMesh::move(), fvMotionSolverEngineMesh::move(), trackedParticle::move(), surfaceDisplacementPointPatchVectorField::updateCoeffs(), and movingWallVelocityFvPatchVectorField::updateCoeffs().
Foam::dimensionedScalar deltaT0 | ( | ) | const |
Return old time step.
Definition at line 82 of file TimeState.C.
References Foam::dimTime.
Referenced by EulerD2dt2Scheme< Type >::fvcD2dt2(), and EulerD2dt2Scheme< Type >::fvmD2dt2().
bool outputTime | ( | ) | const |
Return true if this is an output time.
Definition at line 88 of file TimeState.C.
label timeIndex_ [protected]
|
Definition at line 57 of file TimeState.H.
Referenced by Time::setTime().
scalar deltaT_ [protected]
|
Definition at line 58 of file TimeState.H.
Referenced by Time::adjustDeltaT(), TimeState::deltaTValue(), and Time::readDict().
scalar deltaTSave_ [protected]
|
Definition at line 59 of file TimeState.H.
scalar deltaT0_ [protected]
|
Definition at line 60 of file TimeState.H.
Referenced by TimeState::deltaT0Value().
bool deltaTchanged_ [protected]
|
Definition at line 61 of file TimeState.H.
Referenced by Time::readDict().
label outputTimeIndex_ [protected]
|
Definition at line 63 of file TimeState.H.
Referenced by Time::adjustDeltaT(), and Time::readDict().
bool outputTime_ [protected]
|
Definition at line 64 of file TimeState.H.