Skip to main content

Stiffness

Type Alias Stiffness 

Source
pub type Stiffness = Qty<0, 1, -2, 0, 0, 0, 0>;
Expand description

N·m⁻¹ — a spring’s k, and the penalty stiffness a contact is modelled with.

This is what sets a mechanical solver’s stability limit: a mass on a spring oscillates with period 2π√(m/k), and an explicit integrator has to resolve that period whether or not anyone cares about it. Stiff contact is expensive for exactly this reason.

Aliased Type§

pub struct Stiffness(/* private fields */);

Trait Implementations§

Source§

impl Mul<QVec3<1, 0, 0, 0, 0, 0, 0>> for Stiffness

Source§

type Output = QVec3<1, 1, -2, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, v: LengthVec) -> ForceVec

Performs the * operation. Read more
Source§

impl Mul<Qty<1, 0, 0, 0, 0, 0, 0>> for Stiffness

Source§

type Output = Qty<1, 1, -2, 0, 0, 0, 0>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Length) -> Force

Performs the * operation. Read more