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

Class TimeState

src/OpenFOAM/db/Time/TimeState.H:49–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47\*---------------------------------------------------------------------------*/
48
49class TimeState
50:
51 public dimensionedScalar
52{
53
54protected:
55
56 label timeIndex_;
57 scalar deltaT_;
58 scalar deltaTSave_;
59 scalar deltaT0_;
60 bool deltaTchanged_;
61 label writeTimeIndex_;
62 bool writeTime_;
63
64
65public:
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

Callers 2

Time.CFile · 0.85
TimeState.CFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected