[][src]Struct nyx_space::dynamics::drag::ConstantDrag

pub struct ConstantDrag<'a> {
    pub sc_area: f64,
    pub cd: f64,
    pub rho: f64,
    pub drag_frame_id: i32,
    pub cosm: &'a Cosm,
}

ConstantDrag implements a constant drag model as defined in Vallado, 4th ed., page 551, with an important caveat.

WARNING: This basic model assumes that the velocity of the spacecraft is identical to the velocity of the upper atmosphere, This is a bad assumption and should not be used for high fidelity simulations. This will be resolved after https://gitlab.com/chrisrabotin/nyx/issues/93 is implemented.

Fields

sc_area: f64

in m^2

cd: f64

coefficient of drag; (spheres are between 2.0 and 2.1, use 2.2 in Earth's atmosphere).

rho: f64

atmospheric density in kg/m^3

drag_frame_id: i32

Geoid causing the drag

cosm: &'a Cosm

a Cosm reference is needed to convert to the state around the correct planet

Trait Implementations

impl<'a> Clone for ConstantDrag<'a>[src]

impl<'a> ForceModel for ConstantDrag<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for ConstantDrag<'a>

impl<'a> !Send for ConstantDrag<'a>

impl<'a> !Sync for ConstantDrag<'a>

impl<'a> Unpin for ConstantDrag<'a>

impl<'a> !UnwindSafe for ConstantDrag<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,