VecVariableRate#

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 · Vec · required

The variable being differentiated

timeinput · Scalar · default t

Time

Outputs#

variable_rateoutput · Vec · default variable_rate

Optional name for the derived output (defaults to ‘variable_rate’, i.e. the ‘variable’ variable name with the ‘_rate’ suffix).