andes.routines.daeint.Trapezoid#
- class andes.routines.daeint.Trapezoid[source]#
Trapezoidal methods.
- __init__(*args, **kwargs)#
Methods
calc_h(tds)Default step-size control: niter heuristic with fixt/shrinkt handling.
calc_jac(tds, gxs, gys)Build full Jacobian matrix
Acfor Trapezoid method.calc_q(x, f, Tf, h, x0, f0)Calculate the residual of algebraized differential equations.
checkpoint_state(tds)Snapshot DAE state for rollback.
niter_next_h(niter, h, h_min, h_max)Niter-based step-size heuristic shared by all methods.
restore_state(tds, state)Restore DAE state from a checkpoint.
solve_once(tds, h, method)Run one implicit step with the given method and step size.
step(tds)Integrate with Implicit Trapezoidal Method (ITM) to the current time.
Attributes
nolte_event_stepsnolte_event_windowrequires_variable_step