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: u32Number of tubes, 1 to 64 (TubeFinSet::MAX_COUNT).
length_m: f64Length, m.
outer_radius_m: f64Outer radius, m.
thickness_m: f64Wall thickness, m.
base_angle_rad: f64Roll angle of the first tube’s axis from x_B toward y_B, rad.
material: MaterialMaterial (bulk).
Implementations§
Source§impl TubeFinSet
impl TubeFinSet
Sourcepub const MAX_COUNT: u32 = 64
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).
Sourcepub fn closing_radius_m(body_radius_m: f64, count: u32) -> f64
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.
Sourcepub fn mass_properties(
&self,
body_radius_m: f64,
) -> Result<MassProperties, DesignError>
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
impl Clone for TubeFinSet
Source§fn clone(&self) -> TubeFinSet
fn clone(&self) -> TubeFinSet
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TubeFinSet
impl Debug for TubeFinSet
Source§impl<'de> Deserialize<'de> for TubeFinSet
impl<'de> Deserialize<'de> for TubeFinSet
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>,
Source§impl JsonSchema for TubeFinSet
impl JsonSchema for TubeFinSet
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for TubeFinSet
impl PartialEq for TubeFinSet
Source§fn eq(&self, other: &TubeFinSet) -> bool
fn eq(&self, other: &TubeFinSet) -> bool
self and other values to be equal, and is used by ==.