MCPcopy Create free account
hub / github.com/Axect/Peroxide / ODEProblem

Interface ODEProblem

src/numerical/ode.rs:113–115  ·  view source on GitHub ↗

Trait for defining an ODE problem. Implement this trait to define your own ODE problem. # Example ``` use peroxide::fuga::*; struct MyODEProblem; impl ODEProblem for MyODEProblem { fn rhs(&self, t: f64, y: &[f64], dy: &mut [f64]) -> anyhow::Result<()> { dy[0] = -0.5 * y[0]; dy[1] = y[0] - y[1]; Ok(()) } } ```

Source from the content-addressed store, hash-verified

111/// }
112/// ```
113pub trait ODEProblem {
114 fn rhs(&self, t: f64, y: &[f64], dy: &mut [f64]) -> Result<()>;
115}
116
117/// Trait for ODE integrators.
118///

Callers

nothing calls this directly

Implementers 13

lorenz_rk4.rsexamples/lorenz_rk4.rs
ode_test_gl4.rsexamples/ode_test_gl4.rs
ode_test_orbit.rsexamples/ode_test_orbit.rs
lorenz_tsit45.rsexamples/lorenz_tsit45.rs
lorenz_rkf45.rsexamples/lorenz_rkf45.rs
lorenz_rkf78.rsexamples/lorenz_rkf78.rs
ode_env.rsexamples/ode_env.rs
lorenz_dp45.rsexamples/lorenz_dp45.rs
check_odeexamples/clippy_verify.rs
ode_test_rkf45.rsexamples/ode_test_rkf45.rs
ode_test_rkf78.rsexamples/ode_test_rkf78.rs
ode_test_rk4.rsexamples/ode_test_rk4.rs

Calls

no outgoing calls

Tested by

no test coverage detected