#[non_exhaustive]pub struct FlownVehicle<'a> {
pub assembly: Cow<'a, Assembly>,
pub aero: Cow<'a, AeroModel>,
pub ignition_s: Vec<Option<f64>>,
pub from_s: Option<f64>,
pub until_s: Option<f64>,
}Expand description
A vehicle a flight flew in six degrees of freedom, as one rigid body: the launch stack, or a
sustainer a powered separation handed the flight to (crate::Simulation::flown_vehicles).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.assembly: Cow<'a, Assembly>Its assembled design: the stack’s (crate::Simulation::assembly), or a sustainer’s, the
design cut after its separation’s boundary with the nose body’s motors.
aero: Cow<'a, AeroModel>Its aerodynamic model: the stack’s (crate::Simulation::aero), or a sustainer’s, built
again on the cut design as the flight built it. A rebuilt one keeps the cut design’s
geometry and its stations, not the flight’s drag scale or base-drag setting, which bear on
neither.
ignition_s: Vec<Option<f64>>Each of its motors’ ignition time on the flight’s clock, s, in Assembly::motors’s
order; None for one that never lights, which stays loaded.
from_s: Option<f64>When it began to fly on its own, s after launch: None for the stack, which flies from
the start; the separation’s time for a sustainer.
until_s: Option<f64>When it stopped, s after launch: the next powered separation’s time; None for the last
vehicle, which flies to the flight’s end.
Implementations§
Source§impl FlownVehicle<'_>
impl FlownVehicle<'_>
Sourcepub fn mass_samples(&self) -> Vec<MassProperties>
pub fn mass_samples(&self) -> Vec<MassProperties>
Its mass properties at each instant its center of gravity’s distance from the axis can be
largest while it flies: at its start (the stack’s with every motor loaded, as at launch),
at each of its motors’ ignitions and burnouts between its start and its end, and at its
end; for the stack also with every motor spent (Assembly::dry_mass_properties), as if
it flew past every burnout. A motor’s propellant sits on the motor’s own axis, so while
one motor burns the center of gravity moves along a straight line in the cross-section,
and its distance from the axis is largest at an end of the burn: these instants hold the
largest exactly while at most one motor burns at a time. Two off-axis motors burning
together at different rates can put a larger distance between them.
Trait Implementations§
Source§impl<'a> Clone for FlownVehicle<'a>
impl<'a> Clone for FlownVehicle<'a>
Source§fn clone(&self) -> FlownVehicle<'a>
fn clone(&self) -> FlownVehicle<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more