46 template<
class GeometricField>
74 const label nSubCycles
126 template<
class GeometricField>
154 const label nSubCycles
158 gf0Ptrs_(gfPtrs.size())
166 gf0Ptrs_[i] = &gfPtrs_[i]->oldTime();
173 gf0Ptrs_[i]->
name() +
"_",
185 if (gf_0Ptrs_.
size())
190 *gf0Ptrs_[i] = gf_0Ptrs_[i];
203 return gfPtrs_[0]->time();
234 public SubCycleField<GeometricField>,
245 typename SubCycleField<GeometricField>::FieldsType& gf,
246 const label nSubCycles
GeometricField FieldsType
Type of the field.
#define forAll(list, i)
Loop across all elements in list.
const word & name() const
Return name.
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...
void size(const label)
Override size to be inconsistent with allocated storage.
~subCycleField()
Destructor.
static tmp< GeometricField< Type, PatchField, GeoMesh > > New(const word &name, const Internal &, const PtrList< PatchField< Type >> &)
Return a temporary field constructed from name,.
Generic GeometricField class.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
const Time & time() const
Access to time.
subCycleField(GeometricField &gf, const label nSubCycles)
Construct from field and number of sub-cycles.
bool valid() const
Is this temporary object valid,.
Perform a subCycleTime on a field or list of fields.
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
word name(const complex &)
Return a string representation of a complex.
label timeIndex() const
Return the time index of the field.
label size() const
Return the number of elements in the UPtrList.
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 temporary objects.
A class for managing sub-cycling times.