pub struct WormGear {
pub lead_angle: f64,
pub friction: f64,
pub pressure_angle: f64,
}Expand description
A worm gear. Config [worm]: lead_angle_deg (gamma), friction_coefficient (mu), pressure_angle_deg (alpha_n).
The ratio is the gearbox’s.
Fields§
§lead_angle: f64§friction: f64§pressure_angle: f64Implementations§
Source§impl WormGear
impl WormGear
pub fn from_config(cfg: &Config) -> Result<Self, ConfigError>
Sourcepub fn efficiency(&self) -> f64
pub fn efficiency(&self) -> f64
Driven by the worm: tan gamma / tan(gamma + rho’).
Sourcepub fn back_efficiency(&self) -> f64
pub fn back_efficiency(&self) -> f64
Driven by the wheel: tan(gamma - rho’) / tan gamma; zero or less where the gear locks itself.
Trait Implementations§
impl StructuralPartialEq for WormGear
Auto Trait Implementations§
impl Freeze for WormGear
impl RefUnwindSafe for WormGear
impl Send for WormGear
impl Sync for WormGear
impl Unpin for WormGear
impl UnsafeUnpin for WormGear
impl UnwindSafe for WormGear
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more