pub struct CurveCheck {
pub total_impulse_ns: f64,
pub average_thrust_n: f64,
pub burn_time_s: f64,
pub passes: bool,
}Expand description
A curve file’s check against its motor’s StatedFigures (ADR-005’s 1% rule,
definition A of the ThrustCurve.org data notes): the file’s total impulse over its whole
curve, its NFPA 1125 burn time between the 5%-of-peak crossings, and its average thrust as
that impulse over that burn time, each worked out by ThrustCurve’s own methods, the ones
the simulator flies. The file passes when all three are within CHECK_BOUND of the stated
figures: |file − stated| ≤ 0.01 × stated, so a gap of exactly 1% passes. A pass says the
file agrees with the published figures; it says nothing about the curve’s shape between them.
Fields§
§total_impulse_ns: f64The file’s total impulse, N·s (ThrustCurve::total_impulse_ns).
average_thrust_n: f64The file’s average thrust, N (ThrustCurve::average_thrust_n).
burn_time_s: f64The file’s burn time, s (ThrustCurve::burn_time_s).
passes: boolWhether all three are within CHECK_BOUND of the motor’s stated figures.
Implementations§
Source§impl CurveCheck
impl CurveCheck
Sourcepub fn of(thrust: &ThrustCurve, stated: &StatedFigures) -> Self
pub fn of(thrust: &ThrustCurve, stated: &StatedFigures) -> Self
The check of a curve against a motor’s stated figures.
Sourcepub fn gaps(&self, stated: &StatedFigures) -> [FigureGap; 3]
pub fn gaps(&self, stated: &StatedFigures) -> [FigureGap; 3]
The three figures against stated: total impulse, average thrust, burn time.
Trait Implementations§
Source§impl Clone for CurveCheck
impl Clone for CurveCheck
Source§fn clone(&self) -> CurveCheck
fn clone(&self) -> CurveCheck
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CurveCheck
Source§impl Debug for CurveCheck
impl Debug for CurveCheck
Source§impl<'de> Deserialize<'de> for CurveCheck
impl<'de> Deserialize<'de> for CurveCheck
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 CurveCheck
impl PartialEq for CurveCheck
Source§fn eq(&self, other: &CurveCheck) -> bool
fn eq(&self, other: &CurveCheck) -> bool
self and other values to be equal, and is used by ==.