pub enum SolverTypes {
EulerFixed {
dt: f64,
},
HeunsMethod {
dt: f64,
},
MidpointMethod {
dt: f64,
},
RalstonsMethod {
dt: f64,
},
RK23BogackiShampine(Box<AdaptiveSolverConfig>),
RK4Fixed {
dt: f64,
},
RK45CashKarp(Box<AdaptiveSolverConfig>),
}
Variants§
EulerFixed
Euler with fixed time step.
parameter dt
provides time step size for whenever solver is between
t_report
times. ≥
HeunsMethod
Heun’s Method. (basic Runge-Kutta 2nd order with fixed time step)
MidpointMethod
Midpoint Method. ( alternate Runge-Kutta 2nd order with fixed time step)
RalstonsMethod
Ralston’s Method. ( alternate Runge-Kutta 2nd order with fixed time step)
RK23BogackiShampine(Box<AdaptiveSolverConfig>)
Bogacki-Shampine Method. Runge-Kutte 2/3 order adaptive solver
RK4Fixed
Runge-Kutta 4th order with fixed time step
parameter dt
provides time step size for whenever solver is between
t_report
times.
RK45CashKarp(Box<AdaptiveSolverConfig>)
Runge-Kutta 4/5 order adaptive, Cash-Karp method https://en.wikipedia.org/wiki/Cash%E2%80%93Karp_method
Trait Implementations§
Source§impl Clone for SolverTypes
impl Clone for SolverTypes
Source§fn clone(&self) -> SolverTypes
fn clone(&self) -> SolverTypes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SolverTypes
impl Debug for SolverTypes
Source§impl Default for SolverTypes
impl Default for SolverTypes
Source§fn default() -> SolverTypes
fn default() -> SolverTypes
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SolverTypes
impl<'de> Deserialize<'de> for SolverTypes
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SolverTypes, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SolverTypes, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SolverTypes
impl PartialEq for SolverTypes
Source§impl PartialOrd for SolverTypes
impl PartialOrd for SolverTypes
Source§impl Serialize for SolverTypes
impl Serialize for SolverTypes
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SolverTypes
Auto Trait Implementations§
impl Freeze for SolverTypes
impl RefUnwindSafe for SolverTypes
impl Send for SolverTypes
impl Sync for SolverTypes
impl Unpin for SolverTypes
impl UnwindSafe for SolverTypes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> SerdeAPI for Twhere
T: Serialize + for<'a> Deserialize<'a>,
impl<T> SerdeAPI for Twhere
T: Serialize + for<'a> Deserialize<'a>,
Source§fn to_file(&self, filename: &str) -> Result<(), Error>
fn to_file(&self, filename: &str) -> Result<(), Error>
Save current data structure to file. Method adaptively calls serialization methods
dependent on the suffix of the file given as str. Read more
Source§fn from_file(filename: &str) -> Result<Self, Error>where
Self: Sized + for<'de> Deserialize<'de>,
fn from_file(filename: &str) -> Result<Self, Error>where
Self: Sized + for<'de> Deserialize<'de>,
Read from file and return instantiated struct. Method adaptively calls deserialization
methods dependent on the suffix of the file name given as str.
Function returns a dynamic Error Result if it fails. Read more