Skip to main content

ThermalFeedback

Struct ThermalFeedback 

Source
pub struct ThermalFeedback {
    pub ambient: f64,
    pub reference: f64,
    pub viscosity_slope: f64,
    pub gearbox_viscous_share: f64,
    pub belt_coefficient: f64,
    pub efficiency: f64,
    pub seal_exponent: f64,
}
Expand description

With effects.thermal_feedback: what the temperatures of the parts do to friction, gearbox losses and belt stiffness. The config’s values hold at reference (gearbox makers quote their no-load torque at 20 °C); the machine stands in air at ambient, and a part is at ambient plus its rise (effects.part_heating; without it the rises stay 0).

  • Lubricant viscosity (Arrhenius/Andrade): nu(T) / nu_ref = exp(B (1/T - 1/T_ref)), T in K. A mineral oil of viscosity index about 100 has B = 3470 K (ISO VG 32: 32 and 5.4 mm²/s at 40 and 100 °C) to 4730 K (VG 220: 220 and 19.4 mm²/s); VG 68 (68 and 8.7) gives 4000 K.
  • Guide: its viscous coefficient follows the viscosity; Coulomb and stiction levels (rolling contact, seals) stay as they are.
  • Gearbox: a share s of its loss (1 - eta_ref) is churning and bearing drag, which follows the viscosity; the rest, tooth friction, does not: 1 - eta = (1 - eta_ref) (1 - s + s nu / nu_ref).
  • Gearbox with effects.gearbox_drag: its churning and bearing drag is the no-load running torque (GearDrag), which follows the viscosity by its own law; the efficiency then is the teeth’s alone, and s is taken as 0.
  • Shaft seals: the motor shaft’s Coulomb and breakaway levels (ShaftFriction) follow (nu / nu_ref)^m, m seal_viscosity_exponent: a lip seal runs on a lubricant film whose shear grows with the viscosity, less than in proportion.
  • Belt: polyurethane loses modulus as it warms, but the steel cords carry EA: EA (1 - alpha (T - T_ref)), alpha a few 1e-4 per K (steel’s own modulus falls by about 2.5e-4 per K). The belt is taken at ambient: it has no loss of its own in the model, and a stiffness that changed while running would change its stored energy.

Fields§

§ambient: f64

K.

§reference: f64§viscosity_slope: f64

B of the viscosity law, K.

§gearbox_viscous_share: f64§belt_coefficient: f64

alpha, 1/K.

§efficiency: f64

The gearbox’s efficiency at the reference temperature (1 with effects.gearbox_efficiency off).

§seal_exponent: f64

m of the seals’ law.

Implementations§

Source§

impl ThermalFeedback

Source

pub fn from_config(cfg: &Config) -> Result<Option<Self>, ConfigError>

None with the effect off.

Source

pub fn viscosity_factor(&self, rise: f64) -> f64

nu / nu_ref of a lubricant rise above ambient.

Source

pub fn gearbox_efficiency(&self, rise: f64) -> f64

The gearbox’s efficiency rise above ambient. Not below 0.01: a gearbox far below its reference temperature would otherwise lose more than it transmits.

Source

pub fn belt_stiffness_factor(&self) -> f64

Factor on the belt’s EA at ambient.

Trait Implementations§

Source§

impl Clone for ThermalFeedback

Source§

fn clone(&self) -> ThermalFeedback

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ThermalFeedback

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.