pub struct PlacedMotor {
pub mount: String,
pub stage: usize,
pub nozzle_m: DVec3,
pub mounted: MountedMotor,
pub tube: usize,
pub fails: bool,
}Expand description
A motor placed in the rocket: one per tube of its mount, so a cluster’s mount gives several, one after another in the order of its tubes.
Fields§
§mount: StringThe mount’s id.
stage: usizeIndex of the mount’s stage.
nozzle_m: DVec3The nozzle exit’s position in body axes, m.
mounted: MountedMotorThe motor as configured.
tube: usizeWhich of the mount’s tubes it is in (0 for a single tube).
fails: boolWhether it never lights: its tube fails (MountedMotor::failed_tubes), or the motor is
set never to light (Ignition::Never).
Implementations§
Source§impl PlacedMotor
impl PlacedMotor
Sourcepub fn nozzle_station_m(&self) -> f64
pub fn nozzle_station_m(&self) -> f64
Station of the nozzle exit, m aft of the nose tip.
Sourcepub fn fore_station_m(&self) -> f64
pub fn fore_station_m(&self) -> f64
Station of the motor case’s forward end, m.
Sourcepub fn place(&self, element: &MassElement) -> MassProperties
pub fn place(&self, element: &MassElement) -> MassProperties
A motor-axis mass element in body axes.
Sourcepub fn mass_properties(&self, t_s: f64) -> MassProperties
pub fn mass_properties(&self, t_s: f64) -> MassProperties
The whole motor at t_s seconds after ignition, in body axes.
Sourcepub fn mass_properties_lit(
&self,
t_s: f64,
ignition_s: Option<f64>,
) -> MassProperties
pub fn mass_properties_lit( &self, t_s: f64, ignition_s: Option<f64>, ) -> MassProperties
The whole motor at flight time t_s when it lit at ignition_s (None: it never lights),
in body axes: loaded before it lights.
Sourcepub fn dry_mass_properties(&self) -> MassProperties
pub fn dry_mass_properties(&self) -> MassProperties
The motor’s dry mass (case, closures, nozzle) in body axes.
Trait Implementations§
Source§impl Clone for PlacedMotor
impl Clone for PlacedMotor
Source§fn clone(&self) -> PlacedMotor
fn clone(&self) -> PlacedMotor
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PlacedMotor
impl Debug for PlacedMotor
Source§impl<'de> Deserialize<'de> for PlacedMotor
impl<'de> Deserialize<'de> for PlacedMotor
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>,
Source§impl PartialEq for PlacedMotor
impl PartialEq for PlacedMotor
Source§fn eq(&self, other: &PlacedMotor) -> bool
fn eq(&self, other: &PlacedMotor) -> bool
self and other values to be equal, and is used by ==.