pub struct AdaptiveConfig {
pub mu: Mu,
pub thrust: ThrustProfile,
pub rtol: f64,
pub atol: f64,
pub h_init: f64,
pub h_min: f64,
pub h_max: f64,
pub max_steps: usize,
}Expand description
Configuration for the RK45 adaptive integrator.
Fields§
§mu: MuCentral body gravitational parameter (km³/s²)
thrust: ThrustProfileThrust profile
rtol: f64Relative tolerance (default: 1e-8)
atol: f64Absolute tolerance (default: 1e-10)
h_init: f64Initial step size (s). If 0, auto-estimated.
h_min: f64Minimum step size (s). Below this, integration stops with error.
h_max: f64Maximum step size (s)
max_steps: usizeMaximum number of steps (safety limit)
Implementations§
Source§impl AdaptiveConfig
impl AdaptiveConfig
Sourcepub fn heliocentric(mu: Mu, thrust: ThrustProfile) -> Self
pub fn heliocentric(mu: Mu, thrust: ThrustProfile) -> Self
Create with sensible defaults for heliocentric propagation.
Sourcepub fn planetocentric(mu: Mu, thrust: ThrustProfile) -> Self
pub fn planetocentric(mu: Mu, thrust: ThrustProfile) -> Self
Create with sensible defaults for planetocentric propagation.
Trait Implementations§
Source§impl Clone for AdaptiveConfig
impl Clone for AdaptiveConfig
Source§fn clone(&self) -> AdaptiveConfig
fn clone(&self) -> AdaptiveConfig
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 AdaptiveConfig
impl Debug for AdaptiveConfig
impl Copy for AdaptiveConfig
Auto Trait Implementations§
impl Freeze for AdaptiveConfig
impl RefUnwindSafe for AdaptiveConfig
impl Send for AdaptiveConfig
impl Sync for AdaptiveConfig
impl Unpin for AdaptiveConfig
impl UnwindSafe for AdaptiveConfig
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