SR2ForwardEulerTimeIntegration#
Source: models/common/ForwardEulerTimeIntegration.py
Perform forward Euler time integration defined as \(s = s_n + (t - t_n) \dot{s}\), where \(s\) is the variable being integrated, \(\dot{s}\) is the variable rate, and \(t\) is time. Subscripts \(n\) denote quantities from the previous time step.
Inputs#
time—input·Scalar· defaulttTime
Outputs#
variable—output·SR2· requiredIntegrated variable
Other options#
rate—strOverride name for the variable rate.
old_variable—strOverride name for the variable’s previous-step value. Defaults to
<variable>~1; set it to integrate a provisional quantity forward from some other variable’s previous value.