pub struct MotorState {
pub time_s: f64,
pub thrust_n: f64,
pub mass_flow_kg_s: f64,
pub propellant: MassElement,
pub total: MassElement,
}Expand description
A motor’s thrust and mass properties at one time.
Fields§
§time_s: f64Time since ignition, s.
thrust_n: f64Thrust from the curve (at its reference pressure), N.
mass_flow_kg_s: f64Propellant consumption rate ṁ = F/c, kg/s (non-negative; the motor’s mass falls at this
rate).
propellant: MassElementThe propellant left, about its own center of mass.
total: MassElementThe whole motor (dry mass plus propellant), about the motor’s center of mass.
Trait Implementations§
Source§impl Clone for MotorState
impl Clone for MotorState
Source§fn clone(&self) -> MotorState
fn clone(&self) -> MotorState
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 MotorState
Source§impl Debug for MotorState
impl Debug for MotorState
Source§impl<'de> Deserialize<'de> for MotorState
impl<'de> Deserialize<'de> for MotorState
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 MotorState
impl PartialEq for MotorState
Source§fn eq(&self, other: &MotorState) -> bool
fn eq(&self, other: &MotorState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MotorState
impl Serialize for MotorState
impl StructuralPartialEq for MotorState
Auto Trait Implementations§
impl Freeze for MotorState
impl RefUnwindSafe for MotorState
impl Send for MotorState
impl Sync for MotorState
impl Unpin for MotorState
impl UnsafeUnpin for MotorState
impl UnwindSafe for MotorState
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