pub enum Method {
Trapezoidal,
Gear,
TrBdf2,
}Expand description
The .options method= integration method.
Variants§
Trapezoidal
trap (default): the 3f5’s trapezoidal rule, order 1 after
breakpoints, 2 otherwise.
Gear
gear: variable-order BDF up to MAXORD.
TrBdf2
trbdf2: Dune’s opt-in TR-BDF2 composite (Bank et al., IEEE
Trans. ED 32(10), 1985; Hosea & Shampine, Appl. Numer. Math.
20, 1996). Each step h is a trapezoidal stage to
t + γh, γ = 2 − √2, then a BDF2 stage on
{t, t + γh, t + h}: one-step, second order and L-stable, so
stiff modes that the trapezoidal rule rings (−1 amplification
as h/τ → ∞) are damped. Not a SPICE method: the 3f5 contract
(D-0002) holds only for trap/gear.
Trait Implementations§
impl Copy for Method
impl Eq for Method
impl StructuralPartialEq for Method
Auto Trait Implementations§
impl Forget for Method
impl Freeze for Method
impl Move for Method
impl RefUnwindSafe for Method
impl Send for Method
impl Sync for Method
impl Unpin for Method
impl UnsafeUnpin for Method
impl UnwindSafe for Method
Blanket Implementations§
impl<T> Boilerplate for T
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