Skip to main content

ToothJump

Struct ToothJump 

Source
pub struct ToothJump {
    pub pitch: f64,
    pub climb: f64,
    pub factor: f64,
    pub mass: f64,
}
Expand description

With effects.belt_tooth_jump: the belt’s teeth jump over a driven pulley.

The teeth climb out when the effective pull at the pulley, |T_a - T_b|, exceeds climb times the slack-side tension min(T_a, T_b): each tooth in mesh is held in its groove by the tension’s radial pull, T p / r over one pitch, and pushed out by its share of the pull times the tangent of an effective flank angle (flank, friction and the tooth’s give together). Summed over the z_m teeth in mesh: climb = k z_m p / r, k = 1 / tan(effective angle) an estimate (belt.tooth_jump_factor). The pull a pulley can take before the teeth jump is then proportional to the tension the belt is set up with: the torque at which timing belts jump is reported to rise with their installation tension. No maker’s chart was read for the factor.

Once out, the teeth ride over the pulley’s: the belt, with its mass, moves on its own, and the pulley holds it back with a ridge force F_s sin(2 pi d / p), d how far it has slid, F_s the pull it climbed out at (climb times the slack side’s tension then), held over the jump so that the ridge is a spring with the energy F_s p / (2 pi) (1 - cos(2 pi d / p)). That force is what the pulley passes on meanwhile. Where the belt crosses the next groove (d = p) the teeth fall in: a jump, counted; where it slides back over the groove it left (d < 0), they fall back in, uncounted. Either way belt and pulley run on together, at the speed that keeps their momentum (a plastic impact): what that takes is what a jump dissipates. Where the pull settles below the ridge the belt stays half out, held by it.

The belt’s mass is the share the machine lumps on that pulley (effects.belt_mass, which the effect needs): while the teeth are out it moves with the belt and not with the pulley.

Fields§

§pitch: f64§climb: f64§factor: f64

belt.tooth_jump_factor, k: with the wrap angle known (set_wrap) climb = k z_m p / r = k wrap.

§mass: f64

The belt’s mass lumped on the pulley, kg.

Implementations§

Source§

impl ToothJump

Source

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

None with the effect off. radius is the driven pulley’s, mass the belt’s mass the machine lumps on it; none (effects.belt_mass off) is refused.

Source

pub fn set_wrap(&mut self, wrap: f64)

The teeth in mesh from the angle wrap (rad) by which the belt wraps the pulley (effects.belt_wrap), in place of ratings.belt_teeth_in_mesh: a pulley of radius r has 2 pi r / p teeth, wrap / (2 pi) of them in mesh, so z_m = wrap r / p and climb = k z_m p / r = k wrap, whatever the pitch and radius.

Source

pub fn pulley_inertia(&self, slip: &[f64], lumped: f64, radius: f64) -> f64

The pulley’s inertia: lumped (with the belt’s share) while the teeth are in mesh, without it while they are out.

Source

pub fn climbs(&self, a: f64, b: f64) -> bool

Whether the teeth climb out at these tensions of the two sections that meet at the pulley.

Source

pub fn pulley_force(&self, slip: &[f64], force: f64) -> f64

The force between belt and pulley along the belt, towards +u on the pulley: the sections’ pull force while the teeth are in mesh, the ridge force while they are out.

Source

pub fn pulley_torque(&self, slip: &[f64], belt_torque: f64, radius: f64) -> f64

pulley_force as a torque on a pulley of radius: the belt’s torque as it is while in mesh, so that an effect that never climbs out changes no bit.

Source

pub fn rates(&self, slip: &[f64], force: f64, surface_acc: f64, out: &mut [f64])

The rates of a pulley’s slip states: none while in mesh. While the teeth are out, the belt moves on its own at r da/dt + du/dt (a the pulley’s angle) under force, the sections’ pull towards +u, less the ridge force: d2u/dt2 = (force - ridge) / mass - surface_acc, the pulley’s surface acceleration r d2a/dt2.

Source

pub fn slip_energy(&self, slip: &[f64], surface_speed: f64) -> f64

What a sliding belt adds to the energy of a machine that counts its mass with the pulley, whose surface moves at v: 1/2 m (v + du/dt)^2 - 1/2 m v^2, and the ridge’s energy; 0 while the teeth are in mesh.

Source

pub fn update( &self, slip: &mut [f64], a: f64, b: f64, rest_mass: f64, surface_speed: &mut f64, ) -> bool

After a step: starts a jump where the teeth climb out at the tensions a, b (the section that +u feeds and the other one), or ends one where the belt has crossed the next groove (a jump) or the one it left: belt and pulley then share their momentum, surface_speed the pulley’s and rest_mass its inertia without the belt over r^2. Returns whether it changed anything: the machine’s energy then changes at once.

Trait Implementations§

Source§

impl Clone for ToothJump

Source§

fn clone(&self) -> ToothJump

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 ToothJump

Source§

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

Formats the value using the given formatter. Read more

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.