Skip to main content

TravelCompliance

Struct TravelCompliance 

Source
pub struct TravelCompliance {
    pub ae: f64,
    pub length: f64,
    pub both_ends: bool,
    pub fixed_bearing_at: f64,
    pub reference: f64,
    pub gear: [f64; 2],
    pub converter: [f64; 2],
}
Expand description

A ball screw shaft’s axial compliance as the nut travels (effects.screw_stiffness_with_position): the shaft between the fixed bearing and the nut, a / (E A) with the nut a from it, or a (L - a) / (E A L) where both ends hold it axially (fixed-fixed); a = |q - fixed_bearing_at| for the joint’s travel q. The gear’s springs were put in series with the screw at reference (m/N, the shaft’s compliance there); at q they are in series with the difference too (Gearbox::at). The nut’s distance is clamped as transmission::BallScrew::stiffness clamps it.

The screw’s damper keeps its damping ratio along the stroke: c_c = 2 zeta sqrt(K_c m) at the screw’s stiffness K_c where the nut is (a loss factor eta = 2 zeta gives the same, eta K_c / omega at the screw’s own omega = sqrt(K_c / m)), so c_c(q) = c_c sqrt(K_c(q) / K_c) of the reference’s; with the gear’s damper the two in series are laid out anew there (series_dampers).

Fields§

§ae: f64

E A of the root section, N.

§length: f64§both_ends: bool§fixed_bearing_at: f64

The joint’s travel at which the fixed bearing stands, m.

§reference: f64§gear: [f64; 2]

The gear’s own spring and damper at the joint, K_g (N/m) and c_g (N s/m), as Converter::apply_back puts them in series with the screw (BackDriven::apply_to).

§converter: [f64; 2]

The screw’s K_c (N/m) and its damper c_c (N s/m) at the reference; K_c 0: the dampers keep the reference’s.

Implementations§

Source§

impl TravelCompliance

Source

pub fn dampers(&self, dc: f64) -> Option<[f64; 4]>

The series dampers (series_dampers) with the screw’s compliance dc from the reference’s: K_c = 1 / (1 / K_c0 + dc), c_c = c_c0 sqrt(K_c / K_c0). [b, K_m, tau, dK_m / d(dc)]; None where converter is not set.

Source

pub fn shaft(&self, a: f64) -> (f64, f64)

The shaft’s compliance with the nut a from the fixed bearing, and its slope in a.

Source

pub fn delta(&self, q: f64) -> (f64, f64)

The compliance at travel q less the reference’s, and its slope in q.

Trait Implementations§

Source§

impl Clone for TravelCompliance

Source§

fn clone(&self) -> TravelCompliance

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 TravelCompliance

Source§

impl Debug for TravelCompliance

Source§

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

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

impl PartialEq for TravelCompliance

Source§

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

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.