46 template<
class GeometricField>
75 gf_0_(gf0_.
name() +
"_", gf0_)
114 template<
class GeometricField>
142 gf0Ptrs_(gfPtrs.size()),
143 gf_0Ptrs_(gfPtrs.size())
147 gf0Ptrs_[i] = &gfPtrs_[i]->oldTime();
154 gf0Ptrs_[i]->
name() +
"_",
168 *gf0Ptrs_[i] = gf_0Ptrs_[i];
180 return gfPtrs_[0]->time();
211 public SubCycleField<GeometricField>,
222 typename SubCycleField<GeometricField>::FieldsType& gf,
223 const label nSubCycles
GeometricField FieldsType
Type of the field.
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool set(const label) const
Is element set.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
~subCycleField()
Destructor.
Generic GeometricField class.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const Time & time() const
Access to time.
Perform a subCycleTime on a field or list of fields.
subCycleField(GeometricField &gf)
Construct from field and number of sub-cycles.
word name(const complex &)
Return a string representation of a complex.
label timeIndex() const
Return the time index of the field.
label timeIndex() const
Return current time index.
void updateTimeIndex()
Correct the time index of the field to correspond to.
const Time & time() const
Return time.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
A class for managing sub-cycling times.