pub struct DecayConfig {
pub force_model: PropagationForceModel,
pub mu_km3_s2: Option<f64>,
pub integrator: IntegratorKind,
pub options: IntegratorOptions,
pub drag: DragParameters,
pub reentry_altitude_km: f64,
pub scan_step_s: f64,
pub crossing_tolerance_s: f64,
pub max_duration_s: f64,
pub max_scan_samples: u32,
}Expand description
Configuration for a decay run.
Fields§
§force_model: PropagationForceModelGravity choice layered under drag.
mu_km3_s2: Option<f64>Gravitational-parameter override, km^3/s^2.
integrator: IntegratorKindNumerical integrator.
options: IntegratorOptionsIntegrator options.
drag: DragParametersDrag parameters.
reentry_altitude_km: f64Reentry threshold altitude, km.
scan_step_s: f64Coarse scan step, s.
crossing_tolerance_s: f64Bisection time tolerance, s.
max_duration_s: f64Maximum elapsed scan horizon, s.
max_scan_samples: u32Maximum number of coarse scan samples.
Implementations§
Source§impl DecayConfig
impl DecayConfig
Sourcepub const DEFAULT_REENTRY_ALTITUDE_KM: f64 = DragForce::DEFAULT_REENTRY_ALTITUDE_KM
pub const DEFAULT_REENTRY_ALTITUDE_KM: f64 = DragForce::DEFAULT_REENTRY_ALTITUDE_KM
Default reentry altitude, km.
Sourcepub const DEFAULT_SCAN_STEP_S: f64 = 60.0
pub const DEFAULT_SCAN_STEP_S: f64 = 60.0
Default coarse scan step, s.
Sourcepub const DEFAULT_CROSSING_TOLERANCE_S: f64 = 1.0
pub const DEFAULT_CROSSING_TOLERANCE_S: f64 = 1.0
Default bisection time tolerance, s.
Sourcepub const DEFAULT_MAX_SCAN_SAMPLES: u32 = 200_000
pub const DEFAULT_MAX_SCAN_SAMPLES: u32 = 200_000
Default maximum coarse scan samples.
Sourcepub const DEFAULT_MAX_DURATION_S: f64
pub const DEFAULT_MAX_DURATION_S: f64
Default maximum elapsed scan horizon, s.
Sourcepub fn new(drag: DragParameters) -> Self
pub fn new(drag: DragParameters) -> Self
Build a decay config around required drag parameters.
Sourcepub fn with_force_model(self, force_model: PropagationForceModel) -> Self
pub fn with_force_model(self, force_model: PropagationForceModel) -> Self
Replace the gravity choice.
Sourcepub fn with_mu_km3_s2(self, mu_km3_s2: Option<f64>) -> Self
pub fn with_mu_km3_s2(self, mu_km3_s2: Option<f64>) -> Self
Replace the gravitational parameter override.
Sourcepub fn with_integrator(self, integrator: IntegratorKind) -> Self
pub fn with_integrator(self, integrator: IntegratorKind) -> Self
Replace the integrator.
Sourcepub fn with_options(self, options: IntegratorOptions) -> Self
pub fn with_options(self, options: IntegratorOptions) -> Self
Replace the integrator options.
Sourcepub fn with_reentry_altitude_km(self, reentry_altitude_km: f64) -> Self
pub fn with_reentry_altitude_km(self, reentry_altitude_km: f64) -> Self
Replace the reentry altitude, km.
Sourcepub fn with_scan_step_s(self, scan_step_s: f64) -> Self
pub fn with_scan_step_s(self, scan_step_s: f64) -> Self
Replace the coarse scan step, s.
Sourcepub fn with_crossing_tolerance_s(self, crossing_tolerance_s: f64) -> Self
pub fn with_crossing_tolerance_s(self, crossing_tolerance_s: f64) -> Self
Replace the crossing tolerance, s.
Sourcepub fn with_max_duration_s(self, max_duration_s: f64) -> Self
pub fn with_max_duration_s(self, max_duration_s: f64) -> Self
Replace the maximum scan horizon, s.
Sourcepub fn with_max_scan_samples(self, max_scan_samples: u32) -> Self
pub fn with_max_scan_samples(self, max_scan_samples: u32) -> Self
Replace the maximum coarse sample count.
Trait Implementations§
Source§impl Clone for DecayConfig
impl Clone for DecayConfig
Source§fn clone(&self) -> DecayConfig
fn clone(&self) -> DecayConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DecayConfig
Source§impl Debug for DecayConfig
impl Debug for DecayConfig
Source§impl PartialEq for DecayConfig
impl PartialEq for DecayConfig
Source§fn eq(&self, other: &DecayConfig) -> bool
fn eq(&self, other: &DecayConfig) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DecayConfig
Auto Trait Implementations§
impl Freeze for DecayConfig
impl RefUnwindSafe for DecayConfig
impl Send for DecayConfig
impl Sync for DecayConfig
impl Unpin for DecayConfig
impl UnsafeUnpin for DecayConfig
impl UnwindSafe for DecayConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.