Skip to main content

BoattailTerm

Struct BoattailTerm 

Source
#[non_exhaustive]
pub struct BoattailTerm { pub own: Boattail, pub own_area_ratio: f64, pub merged: Vec<MergedBoattail>, pub own_weight: f64, }
Expand description

A narrowing transition’s pressure drag: as a boattail of its own, or, by merge weights, as its share of the boattails it may continue.

A share is the drag of the cone from the start of the surface it continues through its aft end, less that of the cone from the same start through its fore end; it can be below 0 where the longer cone drags less, and parts of one straight cone add up to the cone exactly. Each surface ahead that the flow may still follow has a weight: its hold of the flow behind the boattails, times 1 for a turn of up to MERGE_FULL_TURN_RAD between this part and it, 0 from MERGE_NONE_TURN_RAD (a corner), linear between, and, when either part is shallower than MERGE_MIN_ANGLE_RAD, times the smaller half-angle over the larger (the larger taken as at most that), so a part narrowing by almost nothing is a tube and a straight cone of any angle merges wholly. The part drags the weights times the shares, plus its own drag times what they leave. So parts of one straight cone add up to one cone, a sharp corner keeps each part its own boattail, and the drag stays between the two.

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.
§own: Boattail

This transition as a boattail of its own (crate::afterbody).

§own_area_ratio: f64

Its fore area over the reference area.

§merged: Vec<MergedBoattail>

Its shares of the boattails it continues, each with its part of the merge. Empty when it continues none.

§own_weight: f64

The weight of its own drag: 1 less the merges’ weights.

Trait Implementations§

Source§

impl Clone for BoattailTerm

Source§

fn clone(&self) -> BoattailTerm

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 Debug for BoattailTerm

Source§

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

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

impl PartialEq for BoattailTerm

Source§

fn eq(&self, other: &BoattailTerm) -> 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 BoattailTerm

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 BoattailTerm

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> 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.