48template<
class GeometricField>
123template<
class GeometricField>
Generic GeometricField class.
label timeIndex() const
Return the time index of the field.
const word & name() const noexcept
Return the object name.
const Time & time() const
Return Time associated with the objectRegistry.
label timeIndex() const noexcept
Return current time index.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
void updateTimeIndex()
Correct the time index of the field to correspond to.
~subCycleField()
Destructor.
subCycleField(GeometricField &gf)
Construct field and number of sub-cycles.
A class for managing sub-cycling times.
void endSubCycle()
End the sub-cycling and reset the time-state.
Perform a subCycleTime on a field.
subCycle(GeometricField &gf, const label nCycles)
Construct field and number of sub-cycles.
A class for managing temporary objects.
bool valid() const noexcept
Identical to good(), or bool operator.
Info<< "Creating field kinetic energy K\n"<< endl;volScalarField K("K", 0.5 *magSqr(U));if(U.nOldTimes()){ volVectorField *Uold=&U.oldTime();volScalarField *Kold=&K.oldTime();*Kold==0.5 *magSqr(*Uold);while(Uold->nOldTimes()) { Uold=&Uold-> oldTime()