pub struct ShaftFriction {
pub coulomb: f64,
pub viscous: f64,
pub smoothing: f64,
pub stiction: f64,
pub stribeck: f64,
pub drag: GearDrag,
pub oil: f64,
pub seal_exponent: f64,
pub presliding: f64,
pub anchor: [f64; 2],
}Expand description
Motor and bearing friction on the shaft, with what the gearbox’s input adds to it: a Coulomb level that breaks away
from a higher stiction level along a Stribeck curve (effects.motor_stiction), viscous friction, and the gearbox’s
no-load running torque (GearDrag). The Coulomb step is smoothed with tanh so a shaft at rest sees no chattering
torque.
The Coulomb and stiction levels are those of the seals and bearings: on a geared motor the shaft’s seal is the
gearbox’s input seal and runs in its lubricant, so with effects.thermal_feedback both follow the gearbox’s
lubricant (oil, nu / nu_ref) to the power seal_exponent, as the drag follows it by its own law.
Fields§
§coulomb: f64§viscous: f64§smoothing: f64§stiction: f64The breakaway level at rest; one below coulomb counts as coulomb (so with effects.motor_stiction off).
stribeck: f64The speed over which the level falls from stiction to Coulomb, rad/s.
drag: GearDrag§oil: f64nu / nu_ref of the gearbox’s lubricant (1 at the reference temperature; ThermalFeedback sets it).
seal_exponent: f64The exponent of the seals’ levels on oil (0 without effects.thermal_feedback).
presliding: f64With a stiffness above 0 (a slide’s effects.slide_presliding), the level is a presliding state of its own in
place of the tanh: Dahl’s law, the force over the travel since the last step’s end (presliding_force). 0: none.
anchor: [f64; 2]Where the last step ended, travel and friction force (commit); NaN before the first: then no force.
Implementations§
Source§impl ShaftFriction
impl ShaftFriction
Sourcepub const NONE: Self
pub const NONE: Self
No friction: a bearing friction of a joint or slide (coulomb, viscous, smoothing) has none of the rest.
pub fn from_config(cfg: &Config) -> Result<Self, ConfigError>
Sourcepub fn set_oil(&mut self, oil: f64)
pub fn set_oil(&mut self, oil: f64)
With effects.thermal_feedback: the gearbox’s lubricant at nu / nu_ref = oil (ThermalFeedback::viscosity_factor
of the gearbox’s rise).
Sourcepub fn level(&self, speed: f64) -> f64
pub fn level(&self, speed: f64) -> f64
The sliding level at speed: Fc + (Fs - Fc) exp(-(w / ws)^2), times the seals’ temperature factor.
Sourcepub fn torque(&self, speed: f64) -> f64
pub fn torque(&self, speed: f64) -> f64
Torque opposing a positive speed.
The gearbox’s drag acts on the rotor with the seals’ friction (every machine has this one call on its rotor), but
its loss is the gearbox’s: the machines book drag_power in the gearbox’s loss, which warms the gearbox.
Sourcepub fn drag_power(&self, speed: f64) -> f64
pub fn drag_power(&self, speed: f64) -> f64
The power the gearbox’s drag (effects.gearbox_drag) takes at a rotor speed, W: the gearbox’s loss, not the motor’s.
Sourcepub fn presliding_force(&self, x: f64, speed: f64) -> f64
pub fn presliding_force(&self, x: f64, speed: f64) -> f64
With presliding: the friction force at travel x and speed speed, Dahl’s law solved from the anchor
[x0, z0] along a travel that ran one way, z = s g - (s g - z0) exp(-sigma |x - x0| / g), g the level at the speed
(level: Coulomb, or stiction falling to it along the Stribeck curve), s the sign of x - x0 (of the speed at the
anchor itself). It holds any force within ±g at rest without creeping (the travel, not the time, moves it), turns
over a presliding travel of about g / sigma at a reversal, and slides at ±g. 0 before the first step and
without a level.
Trait Implementations§
Source§impl Clone for ShaftFriction
impl Clone for ShaftFriction
Source§fn clone(&self) -> ShaftFriction
fn clone(&self) -> ShaftFriction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more