MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / timeControl

Class timeControl

src/OpenFOAM/db/functionObjects/timeControl/timeControl.H:50–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48\*---------------------------------------------------------------------------*/
49
50class timeControl
51{
52public:
53
54 //- The time control options
55 enum timeControls
56 {
57 ocTimeStep, //!< execution is coupled to the time-step
58 ocWriteTime, //!< execution is coupled to the write-time
59 ocOutputTime, //!< execution is coupled to the output-time
60 ocAdjustableRunTime, //!< Adjust time step for execution
61 ocRunTime, //!< run time for execution
62 ocClockTime, //!< clock time for execution
63 ocCpuTime, //!< cpu time for execution
64 ocNone //!< no execution
65 };
66
67
68private:
69
70 // Private data
71
72 //- Time object
73 const Time& time_;
74
75 //- Prefix
76 const word prefix_;
77
78 //- String representation of timeControls enums
79 static const NamedEnum<timeControls, 8> timeControlNames_;
80
81 //- Type of time control
82 timeControls timeControl_;
83
84 //- Execution interval steps for timeStep mode
85 // a value <= 1 means execute at every time step
86 label intervalSteps_;
87
88 //- Execution interval
89 scalar interval_;
90
91 //- Index of previous execution
92 label executionIndex_;
93
94
95 // Private Member Functions
96
97 //- Disallow default bitwise copy construct and assignment
98 timeControl(const timeControl&);
99
100 //- Disallow default bitwise assignment
101 void operator=(const timeControl&);
102
103
104public:
105
106 // Constructors
107

Callers 2

timeControl.CFile · 0.70
readFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected