pub struct FlightMotor {
pub total_impulse_ns: f64,
pub burn_out_time_s: f64,
pub propellant_initial_mass_kg: f64,
pub reference_pressure_pa: Option<f64>,
}Expand description
The motor of a whole flight, as the reference records RocketPy flying it.
Fields§
§total_impulse_ns: f64The thrust curve’s total impulse, N s.
burn_out_time_s: f64When the curve ends, s after ignition.
propellant_initial_mass_kg: f64The propellant’s mass at ignition, kg.
reference_pressure_pa: Option<f64>The pressure the curve is corrected from, Pa; None for no correction.
Trait Implementations§
Source§impl Clone for FlightMotor
impl Clone for FlightMotor
Source§fn clone(&self) -> FlightMotor
fn clone(&self) -> FlightMotor
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 FlightMotor
Source§impl Debug for FlightMotor
impl Debug for FlightMotor
Source§impl<'de> Deserialize<'de> for FlightMotor
impl<'de> Deserialize<'de> for FlightMotor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for FlightMotor
impl PartialEq for FlightMotor
Source§fn eq(&self, other: &FlightMotor) -> bool
fn eq(&self, other: &FlightMotor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for FlightMotor
impl Serialize for FlightMotor
impl StructuralPartialEq for FlightMotor
Auto Trait Implementations§
impl Freeze for FlightMotor
impl RefUnwindSafe for FlightMotor
impl Send for FlightMotor
impl Sync for FlightMotor
impl Unpin for FlightMotor
impl UnsafeUnpin for FlightMotor
impl UnwindSafe for FlightMotor
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