pub struct ForceModelComponents {
pub two_body_mu_km3_s2: Option<f64>,
pub zonal: Option<ZonalGravity>,
pub third_body: Option<ThirdBodyGravity>,
pub solar_radiation_pressure: Option<SolarRadiationPressure>,
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.
third_body: Option<ThirdBodyGravity>Optional Sun and Moon third-body perturbation.
solar_radiation_pressure: Option<SolarRadiationPressure>Optional cannonball solar 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 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_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_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
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 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
Tests for
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
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
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.