Time integration
The equations of opencr.solvers.transient, declared on the code that implements them and checked by the tests.
solve_transient
functionsourceReturn the densities of the evolving states at times and the report.
- ode
- tolerance
- drift
- Assumes
- stiff integrators only (
BDF, the default,Radau,LSODA): CR rates span to s - BDF and Radau get the analytic sparse Jacobian; LSODA forms its own by finite differences
- time-dependent conditions rebuild the rates and the system at each new time (a one-entry cache); the prescribed states stay the same
- negative output densities are set to zero, with a message
- stiff integrators only (
- References
- Virtanen et al., Nat. Methods 17, 261 (2020) (
solve_ivp)
- Virtanen et al., Nat. Methods 17, 261 (2020) (
- Built from