pub struct Euler {
pub config: OdeSolverConfig,
/* private fields */
}Expand description
Explicit first-order Euler solver with adaptive step size.
Maps to Foam::Euler (which inherits from adaptiveSolver).
Fields§
§config: OdeSolverConfigAdaptive step-size controller settings (tolerances, scale limits).
Implementations§
Source§impl Euler
impl Euler
Sourcepub fn new(n: usize, abs_tol: f64, rel_tol: f64) -> Self
pub fn new(n: usize, abs_tol: f64, rel_tol: f64) -> Self
Create a solver for an n-equation system with the given absolute and
relative per-equation error tolerances; other controller parameters take
their OdeSolverConfig::default values.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Euler
impl RefUnwindSafe for Euler
impl Send for Euler
impl Sync for Euler
impl Unpin for Euler
impl UnsafeUnpin for Euler
impl UnwindSafe for Euler
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