48 template<
class GeometricField>
123 template<
class GeometricField>
bool valid() const noexcept
Identical to good(), or bool operator.
const GeometricField< Type, PatchField, GeoMesh > & oldTime() const
Return old time field.
const word & name() const noexcept
Return the object name.
~subCycleField()
Destructor.
Generic GeometricField class.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Perform a subCycleTime on a field.
label timeIndex() const noexcept
Return the current time index.
void endSubCycle()
End the sub-cycling and reset the time-state.
const Time & time() const noexcept
Return Time associated with the objectRegistry.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, IOobjectOption::registerOption regOpt, const Mesh &mesh, const dimensionSet &dims, const word &patchFieldType=PatchField< Type >::calculatedType())
Return tmp field (NO_READ, NO_WRITE) from name, mesh, dimensions and patch type. [Takes current timeN...
subCycleField(GeometricField &gf)
Construct field and number of sub-cycles.
void updateTimeIndex()
Correct the time index of the field to correspond to.
label timeIndex() const noexcept
Return the time index of the field.
A class for managing temporary objects.
A class for managing sub-cycling times.