Skip to main content

Converter

Struct Converter 

Source
pub struct Converter {
    pub lever: f64,
    pub stiffness: f64,
    pub backlash: f64,
    pub efficiency: f64,
    pub inertia: f64,
    pub damping_ratio: f64,
}
Expand description

What turns a gearbox’s output rotation into a joint’s travel (ball screw, rack and pinion): the travel per radian of its input (lever, m/rad), its own stiffness along the travel (N/m), its backlash (m), efficiency, the inertia that turns with its input (screw shaft, pinion; kg m^2), and the damping ratio of its spring’s own mode (nut, bearings and guides; apply_back).

Fields§

§lever: f64§stiffness: f64§backlash: f64§efficiency: f64§inertia: f64§damping_ratio: f64

Implementations§

Source§

impl Converter

Source

pub fn apply( &self, cfg: &Config, joint: &mut RotaryJoint, ) -> Result<(), ConfigError>

Puts the converter behind joint’s gearbox (read in N m and rad at the converter’s input): the joint’s gearbox becomes gearbox and converter together, in N and m. Ratio i / lever; stiffness of the gearbox seen at the joint (over lever^2) in series with the converter’s, the gearbox’s damping across its own spring alone (a Zener solid, Gearbox::arm); backlash and efficiency added and multiplied as effects.gearbox_backlash and effects.gearbox_efficiency say; the converter’s inertia joins the rotor over i^2.

With effects.thermal_feedback the gearbox’s temperature changes the gearbox’s share of the efficiency, not the converter’s (RotaryJoint::extra_efficiency).

The output’s own inertia is not known here: the mesh friction’s bristle is capped by the rotor’s (apply_to).

Source

pub fn apply_to( &self, cfg: &Config, joint: &mut RotaryJoint, output: f64, ) -> Result<(), ConfigError>

apply for an output of the given inertia at the joint’s travel (kg behind a screw, rack or drum): the mesh friction’s bristle, between the gear’s output and the housing, is capped by the smaller of it and the rotor’s inertia seen at the load, so that a light output (a winch drum) does not stick to the housing at a frequency the step cannot follow.

Source

pub fn apply_back( &self, cfg: &Config, joint: &mut RotaryJoint, output: f64, back_efficiency: f64, ) -> Result<(), ConfigError>

apply_to for a converter that loses back_efficiency where the load drives it back (self.efficiency driving): the gearbox’s back-driving efficiency becomes its own times back_efficiency / efficiency (Gearbox::back_ratio).

The converter’s spring is in series with the whole gear. The lost-motion band is the gearbox’s angle times the lever, and over it the converter’s spring stretches with the force as it does beyond (Gearbox::band_compliance); the line beyond the band keeps its offset, b lever / 2. The hysteresis, a friction T_h in parallel with the flanks’ spring K1 (lever^2 / K1 in m/N at the joint): sliding, the force is K1’ (x -+ lever T_h / K1) with K1’ the series stiffness, so its friction at the joint is T_h / lever times K1’ lever^2 / K1, and its loop as wide as the gear’s, 2 lever T_h / K1; at a reversal the gear is K1 + sigma, in series K1’ + sigma’ with sigma’ = series(K1 + sigma) - series(K1).

Trait Implementations§

Source§

impl Clone for Converter

Source§

fn clone(&self) -> Converter

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 Converter

Source§

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

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

impl PartialEq for Converter

Source§

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

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.