R2BackwardEulerTimeIntegration#
Source: models/common/BackwardEulerTimeIntegration.py
Define the backward Euler time integration residual \(r = 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#
variable—input·R2· requiredVariable being integrated
time—input·Scalar· defaulttTime
Outputs#
variable_residual—output·R2· defaultvariable_residualOptional name for the derived output (defaults to ‘variable_residual’, i.e. the ‘variable’ variable name with the ‘_residual’ suffix).
Other options#
rate—strOverride name for the variable rate.