Skip to main content

Belt

Struct Belt 

Source
pub struct Belt {
    pub ea: f64,
    pub damping: f64,
    pub damping_time: f64,
    pub pretension: f64,
    pub slack: bool,
    pub mass_per_m: f64,
    pub tooth_length: f64,
}
Expand description

A toothed belt. A section is the belt between two points that hold it (a driven pulley or a clamp); idlers in between are free, so the tension is the same along the whole section.

A section has a geometric length geo (set by the pose) and holds mat of unstretched belt (changed by the pulleys feeding belt in or out). Stretch e = geo - mat, stiffness k = EA / mat, tension T = max(0, k e + c de/dt).

Fields§

§ea: f64§damping: f64§damping_time: f64

Material loss: a section damps with its stiffness times this time, so a short section damps more.

§pretension: f64§slack: bool§mass_per_m: f64§tooth_length: f64

The teeth in mesh on a driven pulley give way like this much more belt: EA / tooth-mesh stiffness. A machine adds it to the geometric length of a section once per driven pulley the section ends at. mat then holds it too, and k = EA / mat is the belt and the teeth in series.

Implementations§

Source§

impl Belt

Source

pub fn from_config(cfg: &Config) -> Result<Self, ConfigError>

Source

pub fn rest_length(&self, geo: f64) -> f64

Unstretched belt in a section of length geo at pretension.

Source

pub fn section( &self, geo: f64, mat: f64, geo_rate: f64, mat_rate: f64, ) -> SectionForce

Source

pub fn energy(&self, geo: f64, mat: f64) -> f64

Source

pub fn loss_power( &self, geo: f64, mat: f64, geo_rate: f64, mat_rate: f64, ) -> f64

Power the damping of a section takes, W: what goes into it (the tension on the length, less the material force on the belt fed in) less what its stored energy gains. c (rate)^2 while it is taut.

Source

pub fn static_material( &self, geo: &[f64], offsets: &[f64], total: f64, ) -> Vec<f64>

Material per section at rest, when section i carries base + offsets[i] and the sections share total of belt. The base tension follows from the total; found by bisection.

Trait Implementations§

Source§

impl Clone for Belt

Source§

fn clone(&self) -> Belt

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 Belt

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Belt

§

impl RefUnwindSafe for Belt

§

impl Send for Belt

§

impl Sync for Belt

§

impl Unpin for Belt

§

impl UnsafeUnpin for Belt

§

impl UnwindSafe for Belt

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.