R2VariableRate

Source: models/common/VariableRate.py

Calculate the first order discrete time derivative of a variable as \(\dot{f} = \frac{f-f_n}{t-t_n}\), where \(f\) is the variable, \(f_n\) is the variable at the previous time step, and \(t\) is time.

Inputs

variableinput · R2 · required

The variable being differentiated

timeinput · Scalar · default t

Time