ILAMB.Variable.Variable.accumulateInTime¶
- Variable.accumulateInTime()[source]¶
For each time interval, accumulate variable from the beginning.
For each time interval \(i\) in the variable, defined by \([t_0^i,t_f^i]\), compute
\[\int_{t_0^0}^{t_f^i} v(t,\dots)\ dt\]This routine is useful, for example, if the variable is a mass rate defined over time and we wish to know the mass accumulation as a function of time.
- Returns
sum – The cumulative sum of this variable
- Return type