Skip to main content

TubeFinSet

Struct TubeFinSet 

Source
pub struct TubeFinSet {
    pub count: u32,
    pub length_m: f64,
    pub outer_radius_m: f64,
    pub thickness_m: f64,
    pub base_angle_rad: f64,
    pub material: Material,
}
Expand description

Tube fins: open tubes parallel to the body, touching it, spaced evenly around it.

Fields§

§count: u32

Number of tubes, 1 to 64 (TubeFinSet::MAX_COUNT).

§length_m: f64

Length, m.

§outer_radius_m: f64

Outer radius, m.

§thickness_m: f64

Wall thickness, m.

§base_angle_rad: f64

Roll angle of the first tube’s axis from x_B toward y_B, rad.

§material: Material

Material (bulk).

Implementations§

Source§

impl TubeFinSet

Source

pub const MAX_COUNT: u32 = 64

The most tubes a set may have: as FinSet::MAX_COUNT, a bound on the bodies its mass properties build one by one, far above any rocket’s (the most tubes in one set among the .ork designs read is 6, a one-off count over 78 designs, not a committed survey).

Source

pub fn closing_radius_m(body_radius_m: f64, count: u32) -> f64

The outer radius of count tubes that close the ring around a body of radius body_radius_m, each touching the body and its two neighbours, which is the radius OpenRocket 24.12 gives a tube fin set written auto (ADR-098).

The axes of N tubes of radius r sit on a circle of radius R + r, 2π/N apart, so neighbouring axes are a chord 2(R + r) sin(π/N) apart. Touching means that chord is 2r:

r = R sin(π/N) / (1 − sin(π/N)).

For one or two tubes sin(π/N) is 0 or 1 and no finite ring closes; OpenRocket 24.12 gives those the body’s radius, measured on its probes on 20 and 50 mm bodies, and so does this; so does a count of none, which Self::mass_properties refuses. On a 50 mm body, six tubes are 50 mm (sin(π/6) = 1/2), four are 120.7 mm and eight are 31.0 mm.

Source

pub fn mass_properties( &self, body_radius_m: f64, ) -> Result<MassProperties, DesignError>

Mass properties in the set’s frame (origin on the body axis at the tubes’ forward end), on a body of radius body_radius_m. Each tube is a hollow cylinder, I_a = m(R² + r²)/2 and I_t = m((R² + r²)/4 + L²/12), with its axis at R_b + R.

§Errors

DesignError::Domain for a bad dimension, or a count of none or more than Self::MAX_COUNT (what is "tube fin count (1 to 64)"), DesignError::Geometry for a wall thicker than the radius, and material errors.

Trait Implementations§

Source§

impl Clone for TubeFinSet

Source§

fn clone(&self) -> TubeFinSet

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 TubeFinSet

Source§

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

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

impl<'de> Deserialize<'de> for TubeFinSet

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 JsonSchema for TubeFinSet

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn inline_schema() -> bool

Whether JSON Schemas generated for this type should be included directly in parent schemas, rather than being re-used where possible using the $ref keyword. Read more
Source§

impl PartialEq for TubeFinSet

Source§

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

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 TubeFinSet

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.