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: f64Material 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: f64The 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
impl Belt
pub fn from_config(cfg: &Config) -> Result<Self, ConfigError>
Sourcepub fn rest_length(&self, geo: f64) -> f64
pub fn rest_length(&self, geo: f64) -> f64
Unstretched belt in a section of length geo at pretension.