pub struct Stage { /* private fields */ }Expand description
One separable stage: structural mass carried until a scheduled separation, plus an optional motor with its own burn schedule.
Separation is right-continuous: at exactly separation_time_s the stage’s
dry mass, motor and unspent propellant leave the vehicle and its motor stops
contributing thrust. A None separation keeps the stage attached for the
whole flight, so its empty casing remains part of the vehicle mass.
Implementations§
Source§impl Stage
impl Stage
Sourcepub fn new(
dry_mass_kg: f64,
motor: Option<Motor>,
separation_time_s: Option<f64>,
) -> Result<Self>
pub fn new( dry_mass_kg: f64, motor: Option<Motor>, separation_time_s: Option<f64>, ) -> Result<Self>
A stage needs nonnegative dry mass and at least one of mass or a motor. Separation may fall before, during or after the motor’s burn: dropping a burning stage (hot staging) ends its thrust, and dropping an unlit stage removes its unspent propellant along with the casing.
Sourcepub fn dry_mass_kg(&self) -> f64
pub fn dry_mass_kg(&self) -> f64
Structural mass dropped at separation, in kilograms.
Sourcepub fn separation_time_s(&self) -> Option<f64>
pub fn separation_time_s(&self) -> Option<f64>
Scheduled separation time relative to the flight epoch; None never separates.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Stage
impl RefUnwindSafe for Stage
impl Send for Stage
impl Sync for Stage
impl Unpin for Stage
impl UnsafeUnpin for Stage
impl UnwindSafe for Stage
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<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.