The time value with time-stepping information, user-defined remapping, etc. More...
Public Member Functions | |
TimeState () | |
virtual | ~TimeState () |
Destructor. More... | |
virtual scalar | userTimeToTime (const scalar theta) const |
Convert the user-time (e.g. CA deg) to real-time (s). More... | |
virtual scalar | timeToUserTime (const scalar t) const |
Convert the real-time (s) into user-time (e.g. CA deg) More... | |
scalar | timeOutputValue () const |
Return current time value. More... | |
label | timeIndex () const |
Return current time index. More... | |
scalar | deltaTValue () const |
Return time step value. More... | |
scalar | deltaT0Value () const |
Return old time step value. More... | |
dimensionedScalar | deltaT () const |
Return time step. More... | |
dimensionedScalar | deltaT0 () const |
Return old time step. More... | |
bool | outputTime () const |
Return true if this is an output time (primary or secondary) More... | |
![]() | |
dimensioned (const word &, const dimensionSet &, const Type) | |
Construct given a name, a value and its dimensionSet. More... | |
dimensioned (const word &, const dimensioned< Type > &) | |
Construct from a dimensioned<Type> changing the name. More... | |
dimensioned (const Type &t) | |
Construct given a value (creates dimensionless value). More... | |
dimensioned (Istream &) | |
Construct from Istream. More... | |
dimensioned (const word &, Istream &) | |
Construct from an Istream with a given name. More... | |
dimensioned (const word &, const dimensionSet &, Istream &) | |
Construct from an Istream with a given name and dimensions. More... | |
dimensioned (const word &, const dimensionSet &, const dictionary &) | |
Construct from dictionary lookup with a given name and dimensions. More... | |
dimensioned () | |
Null constructor. More... | |
const word & | name () const |
Return const reference to name. More... | |
word & | name () |
Return non-const reference to name. More... | |
const dimensionSet & | dimensions () const |
Return const reference to dimensions. More... | |
dimensionSet & | dimensions () |
Return non-const reference to dimensions. More... | |
const Type & | value () const |
Return const reference to value. More... | |
Type & | value () |
Return non-const reference to value. More... | |
dimensioned< cmptType > | component (const direction) const |
Return a component as a dimensioned<cmptType> More... | |
void | replace (const direction, const dimensioned< cmptType > &) |
Return a component with a dimensioned<cmptType> More... | |
dimensioned< Type > | T () const |
Return transpose. More... | |
void | read (const dictionary &) |
Update the value of dimensioned<Type> More... | |
bool | readIfPresent (const dictionary &) |
Update the value of dimensioned<Type> if found in the dictionary. More... | |
Istream & | read (Istream &is, const dictionary &) |
Read value from stream and units from dictionary. More... | |
Istream & | read (Istream &is, const HashTable< dimensionedScalar > &) |
Read value from stream and units from table. More... | |
Istream & | read (Istream &is) |
Read value from stream and units from system table. More... | |
dimensioned< cmptType > | operator[] (const direction) const |
Return a component as a dimensioned<cmptType> More... | |
void | operator+= (const dimensioned< Type > &) |
void | operator-= (const dimensioned< Type > &) |
void | operator*= (const scalar) |
void | operator/= (const scalar) |
Protected Attributes | |
label | timeIndex_ |
scalar | deltaT_ |
scalar | deltaTSave_ |
scalar | deltaT0_ |
bool | deltaTchanged_ |
label | outputTimeIndex_ |
bool | primaryOutputTime_ |
Is outputTime because of primary? More... | |
label | secondaryOutputTimeIndex_ |
bool | secondaryOutputTime_ |
Is outputTime because of secondary? More... | |
bool | outputTime_ |
Additional Inherited Members | |
![]() | |
typedef pTraits< Type >::cmptType | cmptType |
Component type. More... | |
![]() | |
static dimensioned< Type > | lookupOrDefault (const word &, const dictionary &, const dimensionSet &dims=dimless, const Type &defaultValue=pTraits< Type >::zero) |
Construct from dictionary, with default dimensions and value. More... | |
static dimensioned< Type > | lookupOrDefault (const word &, const dictionary &, const Type &defaultValue=pTraits< Type >::zero) |
Construct from dictionary dimensionless with value. More... | |
static dimensioned< Type > | lookupOrAddToDict (const word &, dictionary &, const dimensionSet &dims=dimless, const Type &defaultValue=pTraits< Type >::zero) |
Construct from dictionary, with default value. More... | |
static dimensioned< Type > | lookupOrAddToDict (const word &, dictionary &, const Type &defaultValue=pTraits< Type >::zero) |
Construct from dictionary, dimensionless with default value. More... | |
The time value with time-stepping information, user-defined remapping, etc.
Definition at line 49 of file TimeState.H.
TimeState | ( | ) |
Definition at line 31 of file TimeState.C.
|
virtual |
Destructor.
Definition at line 49 of file TimeState.C.
|
virtual |
Convert the user-time (e.g. CA deg) to real-time (s).
Reimplemented in engineTime.
Definition at line 55 of file TimeState.C.
Referenced by PolynomialEntry::convertTimeBase(), and TableBase::convertTimeBase().
|
virtual |
Convert the real-time (s) into user-time (e.g. CA deg)
Reimplemented in engineTime.
Definition at line 61 of file TimeState.C.
Foam::scalar timeOutputValue | ( | ) | const |
Return current time value.
Definition at line 67 of file TimeState.C.
Referenced by triSurface::triSurfInstance(), uniformInterpolatedDisplacementPointPatchVectorField::updateCoeffs(), and porousBafflePressureFvPatchField< Type >::updateCoeffs().
Foam::label timeIndex | ( | ) | const |
Return current time index.
Definition at line 73 of file TimeState.C.
Referenced by layerAdditionRemoval::changeTopology(), CrankNicolsonDdtScheme< Type >::ddt0_(), doCommand(), sampledThresholdCellFaces::needsUpdate(), sampledIsoSurfaceCell::needsUpdate(), sampledIsoSurface::needsUpdate(), optionList::readOptions(), uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField::updateCoeffs(), sixDoFRigidBodyDisplacementPointPatchVectorField::updateCoeffs(), sampledThresholdCellFaces::updateGeometry(), sampledIsoSurfaceCell::updateGeometry(), sampledIsoSurface::updateGeometry(), and writeCellDistance().
|
inline |
Return time step value.
Definition at line 100 of file TimeState.H.
References TimeState::deltaT_.
Referenced by cellCoBlended< Type >::blendingFactor(), Foam::compressibleCourantNo(), kinematicSingleLayer::CourantNumber(), phaseChangeModel::info(), reactingOneDim::solidRegionDiffNo(), sixDoFRigidBodyMotionSolver::solve(), thermoSingleLayer::Srho(), thermoSingleLayer::transferPrimaryRegionSourceFields(), kinematicSingleLayer::transferPrimaryRegionSourceFields(), oscillatingVelocityPointPatchVectorField::updateCoeffs(), angularOscillatingVelocityPointPatchVectorField::updateCoeffs(), uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField::updateCoeffs(), sixDoFRigidBodyDisplacementPointPatchVectorField::updateCoeffs(), thermoSingleLayer::updateSubmodels(), fvMesh::Vsc(), and fvMesh::Vsc0().
|
inline |
Return old time step value.
Definition at line 106 of file TimeState.H.
References TimeState::deltaT0_.
Referenced by sixDoFRigidBodyMotionSolver::solve(), uncoupledSixDoFRigidBodyDisplacementPointPatchVectorField::updateCoeffs(), and sixDoFRigidBodyDisplacementPointPatchVectorField::updateCoeffs().
Foam::dimensionedScalar deltaT | ( | ) | const |
Return time step.
Definition at line 79 of file TimeState.C.
References Foam::dimTime.
Referenced by CoBlended< Type >::blendingFactor(), reactingOneDim::calculateMassTransfer(), thixotropicViscosity::correct(), kinematicSingleLayer::deltaMass(), CourantNo::execute(), movingImmersedBoundary::movePoints(), kinematicSingleLayer::netMass(), Foam::solidRegionDiffNo(), thermoSingleLayer::updateSubmodels(), and kinematicSingleLayer::updateSubmodels().
Foam::dimensionedScalar deltaT0 | ( | ) | const |
bool outputTime | ( | ) | const |
Return true if this is an output time (primary or secondary)
Definition at line 91 of file TimeState.C.
Referenced by contactAngleForce::correct(), thixotropicViscosity::correct(), and filmSubModelBase::outputTime().
|
protected |
Definition at line 56 of file TimeState.H.
Referenced by Time::setTime().
|
protected |
Definition at line 57 of file TimeState.H.
Referenced by Time::adjustDeltaT(), TimeState::deltaTValue(), Time::readDict(), and engineTime::timeAdjustment().
|
protected |
Definition at line 58 of file TimeState.H.
|
protected |
Definition at line 59 of file TimeState.H.
Referenced by TimeState::deltaT0Value().
|
protected |
Definition at line 60 of file TimeState.H.
Referenced by Time::readDict().
|
protected |
Definition at line 62 of file TimeState.H.
Referenced by Time::adjustDeltaT(), and Time::readDict().
|
protected |
Is outputTime because of primary?
Definition at line 64 of file TimeState.H.
|
protected |
Definition at line 66 of file TimeState.H.
Referenced by Time::adjustDeltaT(), and Time::readDict().
|
protected |
Is outputTime because of secondary?
Definition at line 68 of file TimeState.H.
|
protected |
Definition at line 70 of file TimeState.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.