Skip to main content

two_mass

Function two_mass 

Source
pub fn two_mass(sweep: &[SweepPoint]) -> Option<TwoMass>
Expand description

The two-mass model from a frequency response of motor torque to motor speed: the dip (the lowest in frequency, as resonance finds it), the highest peak above it up to five times its frequency, and the total inertia from the part below a third of the dip (gain = 1 / (J ω) there, corrected for the two frequencies). Then J_motor = J (f_dip / f_peak)², J_load = J - J_motor, stiffness = J_load (2π f_dip)², and the damping from the width of the dip. That is the start for a least-squares fit of the whole model (with a viscous friction at the motor) through all points, whose values and errors are returned; where that fails, the values read off the dip and peak. None without a dip, a peak inside the response, or three points below the dip.