pub struct OdeSolver {
pub method: OdeMethod,
pub dt: f64,
pub dt_min: f64,
pub dt_max: f64,
pub tolerance: f64,
pub max_steps: u64,
/* private fields */
}Expand description
ODE solver with configurable method and step control.
Fields§
§method: OdeMethod§dt: f64§dt_min: f64§dt_max: f64§tolerance: f64§max_steps: u64Implementations§
Source§impl OdeSolver
impl OdeSolver
pub fn new(method: OdeMethod, dt: f64) -> Self
pub fn rk4(dt: f64) -> Self
pub fn adaptive(dt: f64, tol: f64) -> Self
pub fn verlet(dt: f64) -> Self
Sourcepub fn step(&mut self, system: &dyn OdeSystem, state: &OdeState) -> OdeState
pub fn step(&mut self, system: &dyn OdeSystem, state: &OdeState) -> OdeState
Integrate one step. Returns the new state.
Auto Trait Implementations§
impl Freeze for OdeSolver
impl RefUnwindSafe for OdeSolver
impl Send for OdeSolver
impl Sync for OdeSolver
impl Unpin for OdeSolver
impl UnsafeUnpin for OdeSolver
impl UnwindSafe for OdeSolver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more