pub struct Converter {
pub lever: f64,
pub stiffness: f64,
pub backlash: f64,
pub efficiency: f64,
pub inertia: f64,
pub damping_ratio: f64,
}Expand description
What turns a gearbox’s output rotation into a joint’s travel (ball screw, rack and pinion): the travel per radian of
its input (lever, m/rad), its own stiffness along the travel (N/m), its backlash (m), efficiency, the inertia
that turns with its input (screw shaft, pinion; kg m^2), and the damping ratio of its spring’s own mode (nut,
bearings and guides; apply_back).
Fields§
§lever: f64§stiffness: f64§backlash: f64§efficiency: f64§inertia: f64§damping_ratio: f64Implementations§
Source§impl Converter
impl Converter
Sourcepub fn apply(
&self,
cfg: &Config,
joint: &mut RotaryJoint,
) -> Result<(), ConfigError>
pub fn apply( &self, cfg: &Config, joint: &mut RotaryJoint, ) -> Result<(), ConfigError>
Puts the converter behind joint’s gearbox (read in N m and rad at the converter’s input): the joint’s gearbox
becomes gearbox and converter together, in N and m. Ratio i / lever; stiffness of the gearbox seen at the joint
(over lever^2) in series with the converter’s, the gearbox’s damping across its own spring alone (a Zener solid,
Gearbox::arm); backlash and efficiency added and multiplied as
effects.gearbox_backlash and effects.gearbox_efficiency say; the converter’s inertia joins the rotor over i^2.
With effects.thermal_feedback the gearbox’s temperature changes the gearbox’s share of the efficiency, not the
converter’s (RotaryJoint::extra_efficiency).
The output’s own inertia is not known here: the mesh friction’s bristle is capped by the rotor’s (apply_to).
Sourcepub fn apply_to(
&self,
cfg: &Config,
joint: &mut RotaryJoint,
output: f64,
) -> Result<(), ConfigError>
pub fn apply_to( &self, cfg: &Config, joint: &mut RotaryJoint, output: f64, ) -> Result<(), ConfigError>
apply for an output of the given inertia at the joint’s travel (kg behind a screw, rack or drum): the mesh
friction’s bristle, between the gear’s output and the housing, is capped by the smaller of it and the rotor’s
inertia seen at the load, so that a light output (a winch drum) does not stick to the housing at a frequency the
step cannot follow.
Sourcepub fn apply_back(
&self,
cfg: &Config,
joint: &mut RotaryJoint,
output: f64,
back_efficiency: f64,
) -> Result<(), ConfigError>
pub fn apply_back( &self, cfg: &Config, joint: &mut RotaryJoint, output: f64, back_efficiency: f64, ) -> Result<(), ConfigError>
apply_to for a converter that loses back_efficiency where the load drives it back (self.efficiency driving):
the gearbox’s back-driving efficiency becomes its own times back_efficiency / efficiency (Gearbox::back_ratio).
The converter’s spring is in series with the whole gear. The lost-motion band is the gearbox’s angle times the
lever, and over it the converter’s spring stretches with the force as it does beyond (Gearbox::band_compliance);
the line beyond the band keeps its offset, b lever / 2. The hysteresis, a friction T_h in parallel with the
flanks’ spring K1 (lever^2 / K1 in m/N at the joint): sliding, the force is K1’ (x -+ lever T_h / K1) with K1’ the
series stiffness, so its friction at the joint is T_h / lever times K1’ lever^2 / K1, and its loop as wide as the
gear’s, 2 lever T_h / K1; at a reversal the gear is K1 + sigma, in series K1’ + sigma’ with
sigma’ = series(K1 + sigma) - series(K1).