pub struct Stage {
pub id: String,
pub name: String,
pub components: Vec<Component>,
pub overrides: Overrides,
pub override_rule: StageOverrideRule,
pub added_mass: Option<AddedMass>,
pub drag_override: Option<DragOverride>,
pub parallel: Option<ParallelStage>,
}Expand description
A stage: body components stacked from its forward end aft, on the airframe’s axis or, for a parallel stage, along each of its pods.
Fields§
§id: StringUnique id.
name: StringName.
components: Vec<Component>Body components (nose cones, body tubes, transitions), forward to aft.
overrides: OverridesOverrides for the whole stage without its motors, applied after every override inside it. A center-of-mass override is measured aft of the stage’s forward end.
override_rule: StageOverrideRuleHow overrides set the stage’s inertia (StageOverrideRule): by rescaling and moving
the stage as one body, as hpr-design does by default, or with its parts left in place,
as OpenRocket 24.12 weighs a single stage.
added_mass: Option<AddedMass>Mass the stage carries beyond what its parts weigh (AddedMass): a point mass, added to
the parts before overrides apply. A parallel stage’s sits among its pods. A stage a
parallel stage hangs on can carry one at a station, unless that parallel stage is one pod
off the axis, and can’t carry one with no station (Rocket::layout).
drag_override: Option<DragOverride>A drag coefficient stated for the stage (DragOverride): added to the rocket’s drag, or,
covering its children, in place of everything in the stage.
parallel: Option<ParallelStage>Where the stage hangs beside the airframe, for a parallel stage; None for a stage on the
axis, which stacks.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Stage
impl<'de> Deserialize<'de> for Stage
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 JsonSchema for Stage
impl JsonSchema for Stage
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more