pub struct OdeSolverConfig {
pub abs_tol: f64,
pub rel_tol: f64,
pub safe_scale: f64,
pub alpha_inc: f64,
pub alpha_dec: f64,
pub min_scale: f64,
pub max_scale: f64,
pub max_steps: usize,
}Expand description
Common parameters for the adaptive step-size controller.
Defaults match Foam::adaptiveSolver and Foam::ODESolver.
Fields§
§abs_tol: f64Absolute per-equation tolerance.
rel_tol: f64Relative per-equation tolerance.
safe_scale: f64Safety factor on the step-size scaling (0 < safeScale < 1).
alpha_inc: f64Exponent for step increase.
alpha_dec: f64Exponent for step decrease.
min_scale: f64Minimum scale factor applied per step.
max_scale: f64Maximum scale factor applied per step.
max_steps: usizeMaximum sub-steps for one integrate() call.
Trait Implementations§
Source§impl Clone for OdeSolverConfig
impl Clone for OdeSolverConfig
Source§impl Debug for OdeSolverConfig
impl Debug for OdeSolverConfig
Auto Trait Implementations§
impl Freeze for OdeSolverConfig
impl RefUnwindSafe for OdeSolverConfig
impl Send for OdeSolverConfig
impl Sync for OdeSolverConfig
impl Unpin for OdeSolverConfig
impl UnsafeUnpin for OdeSolverConfig
impl UnwindSafe for OdeSolverConfig
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