Skip to main content

train_speed

Function train_speed 

Source
pub fn train_speed(train: Train, jerk: f64, acc: f64) -> f64
Expand description

How much faster than the plan’s rigid motion a motor runs with an elastic drive train (Machine::trains) while its acceleration changes at the jerk jerk (rad/s^3), rad/s. Two masses on a spring k, the rotor’s side J_m and the load’s J_L (s = J_L / (J_m + J_L), w^2 = k / J_L the load’s frequency against the motor held), the motor’s torque the rigid (J_m + J_L) a(t): the twist x = theta_m - theta_L obeys x’’ + k (1/J_m + 1/J_L) x = (J_m + J_L) / J_m a, so at a steady a it holds x = a / w^2, and while a changes at j it grows at x’ = j / w^2 (to which the free swing (j / w^2) (1 - cos) settles about its mean). The motor runs ahead of the masses’ common speed by s x’, so by s j / w^2; the swing’s peak is twice that, which the velocity loop damps. A ramp quicker than the train’s swing is a step of the acceleration acc (rad/s^2, the most the motor has): x = acc / w^2 (1 - cos W t) at the swing’s own frequency W = sqrt(k (1/J_m + 1/J_L)) = w / sqrt(1 - s), so x’ peaks at acc W / w^2 however high the jerk limit; the lower of the two.