| 47 | \*---------------------------------------------------------------------------*/ |
| 48 | |
| 49 | class TimeState |
| 50 | : |
| 51 | public dimensionedScalar |
| 52 | { |
| 53 | |
| 54 | protected: |
| 55 | |
| 56 | label timeIndex_; |
| 57 | scalar deltaT_; |
| 58 | scalar deltaTSave_; |
| 59 | scalar deltaT0_; |
| 60 | bool deltaTchanged_; |
| 61 | label writeTimeIndex_; |
| 62 | bool writeTime_; |
| 63 | |
| 64 | |
| 65 | public: |
| 66 | |
| 67 | // Constructors |
| 68 | |
| 69 | TimeState(); |
| 70 | |
| 71 | |
| 72 | //- Destructor |
| 73 | virtual ~TimeState(); |
| 74 | |
| 75 | |
| 76 | // Member functions |
| 77 | |
| 78 | // Access |
| 79 | |
| 80 | //- Convert the user-time (e.g. CA deg) to real-time (s). |
| 81 | virtual scalar userTimeToTime(const scalar theta) const; |
| 82 | |
| 83 | //- Convert the real-time (s) into user-time (e.g. CA deg) |
| 84 | virtual scalar timeToUserTime(const scalar t) const; |
| 85 | |
| 86 | //- Return current time value |
| 87 | inline scalar timeOutputValue() const; |
| 88 | |
| 89 | //- Return current time index |
| 90 | inline label timeIndex() const; |
| 91 | |
| 92 | //- Return time step value |
| 93 | inline scalar deltaTValue() const; |
| 94 | |
| 95 | //- Return old time step value |
| 96 | inline scalar deltaT0Value() const; |
| 97 | |
| 98 | //- Return time step |
| 99 | inline dimensionedScalar deltaT() const; |
| 100 | |
| 101 | //- Return old time step |
| 102 | inline dimensionedScalar deltaT0() const; |
| 103 | |
| 104 | |
| 105 | // Check |
| 106 |
no outgoing calls
no test coverage detected