subCycleFields< GeometricField > Class Template Reference

Public Types

typedef List< GeometricField * > FieldsType
 Type of the list of fields. More...
 

Public Member Functions

 subCycleFields (List< GeometricField *> &gfPtrs, const label nSubCycles)
 Construct from field list and number of sub-cycles. More...
 
 ~subCycleFields ()
 Destructor. More...
 
const Timetime () const
 Access to time. More...
 
void updateTimeIndex ()
 Correct the time index of the fields to correspond to. More...
 

Detailed Description

template<class GeometricField>
class Foam::subCycleFields< GeometricField >

Definition at line 126 of file subCycle.H.

Member Typedef Documentation

◆ FieldsType

Type of the list of fields.

Definition at line 145 of file subCycle.H.

Constructor & Destructor Documentation

◆ subCycleFields()

subCycleFields ( List< GeometricField *> &  gfPtrs,
const label  nSubCycles 
)
inline

Construct from field list and number of sub-cycles.

Definition at line 151 of file subCycle.H.

References forAll, Foam::name(), PtrList< T >::set(), PtrList< T >::setSize(), and List< T >::size().

Here is the call graph for this function:

◆ ~subCycleFields()

~subCycleFields ( )
inline

Destructor.

Definition at line 182 of file subCycle.H.

References forAll, UPtrList< T >::size(), subCycleField< GeometricField >::time(), and TimeState::timeIndex().

Here is the call graph for this function:

Member Function Documentation

◆ time()

const Time& time ( ) const
inline

Access to time.

Definition at line 200 of file subCycle.H.

References forAll, subCycleField< GeometricField >::time(), TimeState::timeIndex(), and subCycleField< GeometricField >::updateTimeIndex().

Here is the call graph for this function:

◆ updateTimeIndex()

void updateTimeIndex ( )
inline

Correct the time index of the fields to correspond to.

the sub-cycling time.

The time index is incremented to protect the old-time value from being updated at the beginning of the time-loop in the case of outer iteration

Definition at line 211 of file subCycle.H.


The documentation for this class was generated from the following file: