pub struct IntegratorConfig {
pub initial_dt: Option<f64>,
pub min_dt: Option<f64>,
pub epsilon: Option<f64>,
pub adaptive_mode: Option<Ias15AdaptiveMode>,
}Expand description
Per-call IAS15 integrator knobs. None for any field leaves the REBOUND
default in place.
Applied to a freshly-created Simulation before any particles are added.
Fields§
§initial_dt: Option<f64>REBOUND r->dt (initial timestep). The integrator picks the sign
automatically once the first step is taken.
min_dt: Option<f64>REBOUND r->ri_ias15.min_dt. When the adaptive step would shrink
below this, it clamps. None (or 0) = no floor.
epsilon: Option<f64>REBOUND r->ri_ias15.epsilon (precision). REBOUND default 1e-9.
adaptive_mode: Option<Ias15AdaptiveMode>REBOUND r->ri_ias15.adaptive_mode. Default Prs23 since 2024-01.
Implementations§
Source§impl IntegratorConfig
impl IntegratorConfig
Sourcepub fn apply(&self, sim: &mut Simulation)
pub fn apply(&self, sim: &mut Simulation)
Apply each Some field to sim. Should be called immediately after
Simulation::new() and before adding particles.
Trait Implementations§
Source§impl Clone for IntegratorConfig
impl Clone for IntegratorConfig
Source§fn clone(&self) -> IntegratorConfig
fn clone(&self) -> IntegratorConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IntegratorConfig
impl Debug for IntegratorConfig
Source§impl Default for IntegratorConfig
impl Default for IntegratorConfig
Source§fn default() -> IntegratorConfig
fn default() -> IntegratorConfig
Returns the “default value” for a type. Read more
impl Copy for IntegratorConfig
Auto Trait Implementations§
impl Freeze for IntegratorConfig
impl RefUnwindSafe for IntegratorConfig
impl Send for IntegratorConfig
impl Sync for IntegratorConfig
impl Unpin for IntegratorConfig
impl UnsafeUnpin for IntegratorConfig
impl UnwindSafe for IntegratorConfig
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