Skip to main content

FinGeometry

Struct FinGeometry 

Source
#[non_exhaustive]
pub struct FinGeometry { pub span_m: f64, pub area_m2: f64, pub midchord_sweep_rad: f64, pub leading_edge_sweep_rad: f64, pub trailing_edge_sweep_rad: f64, pub mac_length_m: f64, pub mac_leading_edge_m: f64, pub mac_span_m: f64, }
Expand description

A fin’s aerodynamic geometry.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§span_m: f64

Span from the root (body surface) to the tip, m.

§area_m2: f64

Area of one side of one fin, m²; the area in the normal-force slope.

§midchord_sweep_rad: f64

Mid-chord sweep Γ_c, rad, positive with the tip aft.

§leading_edge_sweep_rad: f64

Leading-edge sweep Γ_L, rad, positive with the tip aft; the span average of the edge’s angle when it is curved or kinked (Niskanen 2009 eq. 3.91).

§trailing_edge_sweep_rad: f64

Trailing-edge sweep, rad, positive with the tip aft; the span average of the edge’s angle when it is curved or kinked. Negative for a trailing edge that sweeps forward to the tip.

§mac_length_m: f64

Length of the mean aerodynamic chord c̄, m.

§mac_leading_edge_m: f64

Leading edge of the mean aerodynamic chord, m aft of the root leading edge.

§mac_span_m: f64

Spanwise station of the mean aerodynamic chord, m from the root.

Implementations§

Source§

impl FinGeometry

Source

pub fn from_planform(planform: &FinPlanform) -> Result<Self, AeroError>

The geometry of a planform (Niskanen 2009 eq. 3.30–3.34; see the module docs).

§Errors

The planform’s own validation errors, and AeroError::Domain for a fin without area.

Source

pub fn center_of_pressure_m(&self) -> f64

Center of pressure at the quarter mean aerodynamic chord, m aft of the root leading edge (Niskanen 2009, X_f = x_MAC,LE + 0.25 c̄; Barrowman 1966 eq. 76a for a trapezoid).

Source

pub fn single_fin_slope( &self, reference_area_m2: f64, mach: f64, ) -> Result<f64, AeroError>

Normal-force slope of one fin, per radian of the angle between the flow and the fin (Barrowman 1967 eq. 3-6; Niskanen 2009 eq. 3.40).

§Errors

AeroError::Mach outside [0, 1), and AeroError::Domain for a non-positive reference area.

Trait Implementations§

Source§

impl Clone for FinGeometry

Source§

fn clone(&self) -> FinGeometry

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for FinGeometry

Source§

impl Debug for FinGeometry

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for FinGeometry

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for FinGeometry

Source§

fn eq(&self, other: &FinGeometry) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for FinGeometry

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for FinGeometry

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.