pub struct ForceModelComponents {
pub two_body_mu_km3_s2: Option<f64>,
pub zonal: Option<ZonalGravity>,
pub spherical_harmonic: Option<SphericalHarmonicGravityConfig>,
pub third_body: Option<ThirdBodyGravity>,
pub solar_radiation_pressure: Option<SolarRadiationPressure>,
pub earth_radiation_pressure: Option<EarthRadiationPressure>,
pub relativity: Option<SchwarzschildRelativity>,
}Expand description
Additive force components for ForceModelKind::Composite.
Fields§
§two_body_mu_km3_s2: Option<f64>Optional central two-body gravitational parameter, km^3/s^2.
zonal: Option<ZonalGravity>Optional zonal gravity perturbation.
spherical_harmonic: Option<SphericalHarmonicGravityConfig>Optional embedded EGM96 spherical-harmonic perturbation.
third_body: Option<ThirdBodyGravity>Optional Sun and Moon third-body perturbation.
solar_radiation_pressure: Option<SolarRadiationPressure>Optional cannonball solar radiation pressure perturbation.
earth_radiation_pressure: Option<EarthRadiationPressure>Optional cannonball Earth albedo and infrared radiation pressure perturbation.
relativity: Option<SchwarzschildRelativity>Optional geocentric Schwarzschild relativistic correction.
Implementations§
Source§impl ForceModelComponents
impl ForceModelComponents
Sourcepub fn earth_two_body() -> Self
pub fn earth_two_body() -> Self
Canonical Earth two-body central gravity.
Sourcepub fn earth_phase_a(
solar_radiation_pressure: Option<SolarRadiationPressure>,
) -> Self
pub fn earth_phase_a( solar_radiation_pressure: Option<SolarRadiationPressure>, ) -> Self
Canonical Earth Phase A force set, with optional spacecraft SRP parameters.
Sourcepub fn earth_phase_b(
max_degree: u16,
max_order: u16,
solar_radiation_pressure: Option<SolarRadiationPressure>,
) -> Result<Self, PropagationError>
pub fn earth_phase_b( max_degree: u16, max_order: u16, solar_radiation_pressure: Option<SolarRadiationPressure>, ) -> Result<Self, PropagationError>
Canonical Earth Phase B force set with embedded EGM96 harmonics.
Sourcepub fn with_two_body_mu(self, mu_km3_s2: f64) -> Self
pub fn with_two_body_mu(self, mu_km3_s2: f64) -> Self
Set or replace central two-body gravity.
Sourcepub fn with_zonal(self, zonal: ZonalGravity) -> Self
pub fn with_zonal(self, zonal: ZonalGravity) -> Self
Set or replace zonal gravity.
Sourcepub fn with_spherical_harmonic(
self,
gravity: SphericalHarmonicGravityConfig,
) -> Self
pub fn with_spherical_harmonic( self, gravity: SphericalHarmonicGravityConfig, ) -> Self
Set or replace embedded EGM96 spherical-harmonic gravity.
Sourcepub fn with_third_body(self, third_body: ThirdBodyGravity) -> Self
pub fn with_third_body(self, third_body: ThirdBodyGravity) -> Self
Set or replace third-body gravity.
Sourcepub fn with_solar_radiation_pressure(self, srp: SolarRadiationPressure) -> Self
pub fn with_solar_radiation_pressure(self, srp: SolarRadiationPressure) -> Self
Set or replace solar radiation pressure.
Sourcepub fn with_earth_radiation_pressure(
self,
pressure: EarthRadiationPressure,
) -> Self
pub fn with_earth_radiation_pressure( self, pressure: EarthRadiationPressure, ) -> Self
Set or replace Earth albedo and infrared radiation pressure.
Sourcepub fn with_relativity(self, relativity: SchwarzschildRelativity) -> Self
pub fn with_relativity(self, relativity: SchwarzschildRelativity) -> Self
Set or replace relativity.
Trait Implementations§
Source§impl Clone for ForceModelComponents
impl Clone for ForceModelComponents
Source§fn clone(&self) -> ForceModelComponents
fn clone(&self) -> ForceModelComponents
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 ForceModelComponents
Source§impl Debug for ForceModelComponents
impl Debug for ForceModelComponents
Source§impl Default for ForceModelComponents
impl Default for ForceModelComponents
Source§impl PartialEq for ForceModelComponents
impl PartialEq for ForceModelComponents
Source§fn eq(&self, other: &ForceModelComponents) -> bool
fn eq(&self, other: &ForceModelComponents) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ForceModelComponents
Auto Trait Implementations§
impl Freeze for ForceModelComponents
impl RefUnwindSafe for ForceModelComponents
impl Send for ForceModelComponents
impl Sync for ForceModelComponents
impl Unpin for ForceModelComponents
impl UnsafeUnpin for ForceModelComponents
impl UnwindSafe for ForceModelComponents
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.