Skip to main content

TitaniumTube

Struct TitaniumTube 

Source
pub struct TitaniumTube {
    pub outer_diameter_mm: f64,
    pub wall_thickness_mm: f64,
    pub temperature_c: f64,
}
Expand description

Titanium structural beam sizing for aerospace applications.

Sizes a hollow circular tube to carry a given axial load with a safety factor.

Fields§

§outer_diameter_mm: f64

Outer diameter (mm).

§wall_thickness_mm: f64

Wall thickness (mm).

§temperature_c: f64

Temperature (°C).

Implementations§

Source§

impl TitaniumTube

Source

pub fn new( outer_diameter_mm: f64, wall_thickness_mm: f64, temperature_c: f64, ) -> Self

Construct a titanium tube.

Source

pub fn cross_section_area_mm2(&self) -> f64

Cross-sectional area (mm²).

Source

pub fn second_moment_mm4(&self) -> f64

Second moment of area I (mm⁴).

Source

pub fn euler_buckling_load_n(&self, length_mm: f64) -> f64

Euler buckling load (N) for a pin-ended column of length l (mm).

Source

pub fn axial_yield_load_n(&self) -> f64

Axial load capacity (N) limited by yield.

Source

pub fn margin_of_safety_yield(&self, applied_load_n: f64) -> f64

Margin of safety against yield under applied_load_n (positive = safe).

Trait Implementations§

Source§

impl Clone for TitaniumTube

Source§

fn clone(&self) -> TitaniumTube

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 TitaniumTube

Source§

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

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

impl Copy for TitaniumTube

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