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#
variable—input·Vec· requiredThe variable being differentiated
time—input·Scalar· defaulttTime
Outputs#
variable_rate—output·Vec· defaultvariable_rateOptional name for the derived output (defaults to ‘variable_rate’, i.e. the ‘variable’ variable name with the ‘_rate’ suffix).