Go to the documentation of this file.
48 template<
class GeometricField>
123 template<
class GeometricField>
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for managing temporary objects.
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()
subCycle(GeometricField &gf, const label nCycles)
Construct field and number of sub-cycles.
A class for managing sub-cycling times.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Mesh &mesh, const dimensionSet &ds, const word &patchFieldType=PatchField< Type >::calculatedType())
Return tmp field from name, mesh, dimensions and patch type.
void endSubCycle()
End the sub-cycling and reset the time-state.
subCycleField(GeometricField &gf)
Construct field and number of sub-cycles.
label timeIndex() const
Return the time index of the field.
void updateTimeIndex()
Correct the time index of the field to correspond to.
bool valid() const noexcept
Identical to good(), or bool operator.
~subCycleField()
Destructor.
Generic GeometricField class.
Perform a subCycleTime on a field.