pub struct WeathercockParams { /* private fields */ }Expand description
Aerodynamic and inertial parameters for the weathercock filter.
Implementations§
Source§impl WeathercockParams
impl WeathercockParams
Sourcepub fn new(
cna_vs_mach: Vec<(f64, f64)>,
cp_vs_mach: Vec<(f64, f64)>,
cg_dry_m: f64,
cg_propellant_m: f64,
diameter_m: f64,
pitch_inertia_kg_m2: f64,
damping_ratio: f64,
) -> Result<Self>
pub fn new( cna_vs_mach: Vec<(f64, f64)>, cp_vs_mach: Vec<(f64, f64)>, cg_dry_m: f64, cg_propellant_m: f64, diameter_m: f64, pitch_inertia_kg_m2: f64, damping_ratio: f64, ) -> Result<Self>
cna_vs_mach: normal-force slope per radian (as in body lift).
cp_vs_mach: centre of pressure, metres aft of the nose reference.
cg_dry_m/cg_propellant_m: two-point CG model — the dry structure’s
and the propellant’s centres of gravity along the same reference. The
instantaneous CG is mass-weighted from the current propellant fraction.
pitch_inertia_kg_m2: scalar pitch/yaw inertia about the CG.
damping_ratio: ζ of the second-order response (0 = undamped).
Trait Implementations§
Source§impl Clone for WeathercockParams
impl Clone for WeathercockParams
Auto Trait Implementations§
impl Freeze for WeathercockParams
impl RefUnwindSafe for WeathercockParams
impl Send for WeathercockParams
impl Sync for WeathercockParams
impl Unpin for WeathercockParams
impl UnsafeUnpin for WeathercockParams
impl UnwindSafe for WeathercockParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.