pub struct Nozzle {
pub exit_radius_m: f64,
pub throat_radius_m: Option<f64>,
pub reference_pressure_pa: Option<f64>,
}Expand description
A nozzle, for the ambient-pressure correction of thrust.
Fields§
§exit_radius_m: f64Exit radius, m.
throat_radius_m: Option<f64>Throat radius, m, when known (informational: the thrust curve already carries its effect).
reference_pressure_pa: Option<f64>The ambient pressure the thrust curve was measured at, Pa: the static test site’s. The thrust is then corrected to the ambient pressure in flight.
None flies the curve as it is at every ambient pressure, with no correction. That is
RocketPy’s default (Motor(reference_pressure=None), whose pressure_thrust is then zero,
motor.py:1188-1189), so a RocketPy input transcribed into hpr says None.
Which to give: motor files don’t record where the curve was measured. For a motor tested
near sea level, STANDARD_SEA_LEVEL_PRESSURE_PA adds the thrust a higher site gains
(16 kPa × A_e at 1,400 m); None leaves it out. A design must say which: the field is
required, as null for None, so leaving it out is an error rather than a silent choice.
Motors read from .eng or .rse files, or from the catalog, carry no nozzle and so no
correction.
Implementations§
Trait Implementations§
impl Copy for Nozzle
Source§impl<'de> Deserialize<'de> for Nozzle
impl<'de> Deserialize<'de> for Nozzle
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 Nozzle
impl JsonSchema for Nozzle
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