pub struct AdaptiveIntegrator {
pub base_dt: f64,
pub min_dt: f64,
pub max_dt: f64,
pub encounter_threshold: f64,
/* private fields */
}Expand description
Adaptive time-stepping for close encounters.
Fields§
§base_dt: f64§min_dt: f64§max_dt: f64§encounter_threshold: f64Implementations§
Source§impl AdaptiveIntegrator
impl AdaptiveIntegrator
Sourcepub fn new(
base_dt: f64,
min_dt: f64,
max_dt: f64,
encounter_threshold: f64,
) -> Self
pub fn new( base_dt: f64, min_dt: f64, max_dt: f64, encounter_threshold: f64, ) -> Self
Create a new adaptive integrator.
Sourcepub fn compute_dt(&self, state: &NBodyState) -> f64
pub fn compute_dt(&self, state: &NBodyState) -> f64
Compute adaptive time step based on state.
Trait Implementations§
Source§impl Clone for AdaptiveIntegrator
impl Clone for AdaptiveIntegrator
Source§fn clone(&self) -> AdaptiveIntegrator
fn clone(&self) -> AdaptiveIntegrator
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 moreAuto Trait Implementations§
impl Freeze for AdaptiveIntegrator
impl RefUnwindSafe for AdaptiveIntegrator
impl Send for AdaptiveIntegrator
impl Sync for AdaptiveIntegrator
impl Unpin for AdaptiveIntegrator
impl UnsafeUnpin for AdaptiveIntegrator
impl UnwindSafe for AdaptiveIntegrator
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