pub struct Fins { /* private fields */ }Expand description
A set of identical fins spaced evenly around the last body tube, flush with its aft end
unless placed elsewhere with Fins::at. Their edges are square unless
Fins::with_cross_section says otherwise.
Implementations§
Source§impl Fins
impl Fins
Sourcepub fn new(
count: u32,
planform: FinPlanform,
thickness_m: f64,
material: Material,
) -> Self
pub fn new( count: u32, planform: FinPlanform, thickness_m: f64, material: Material, ) -> Self
count fins of the shape planform, thickness_m thick. The planform names its
dimensions: a trapezoid’s root and tip chords, its span, and how far aft of the root’s
leading edge the tip’s is (FinPlanform).
use hpr::FinPlanform;
use hpr::rocket::{Fins, material};
let planform = FinPlanform::Trapezoidal {
root_chord_m: 0.1,
tip_chord_m: 0.04,
span_m: 0.045,
sweep_m: 0.05,
};
let fins = Fins::new(3, planform, 0.003175, material("birch_plywood")?);Sourcepub fn with_cross_section(self, cross_section: FinCrossSection) -> Self
pub fn with_cross_section(self, cross_section: FinCrossSection) -> Self
The same fins with edges shaped cross_section: square, rounded or an airfoil. It changes
their drag.
Sourcepub fn with_cant_deg(self, cant_deg: f64) -> Self
pub fn with_cant_deg(self, cant_deg: f64) -> Self
The same fins canted by cant_deg, which spins the rocket (the sign convention is
FinSet::cant_rad’s).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Fins
impl<'de> Deserialize<'de> for Fins
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Fins
Auto Trait Implementations§
impl Freeze for Fins
impl RefUnwindSafe for Fins
impl Send for Fins
impl Sync for Fins
impl Unpin for Fins
impl UnsafeUnpin for Fins
impl UnwindSafe for Fins
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more