Skip to main content

Crate use_stress

Crate use_stress 

Source
Expand description

Primitive stress and pressure-like helpers.

Initial calculations assume SI units unless otherwise documented.

§Examples

use use_stress::{Stress, force_from_stress, normal_stress, shear_stress};

let stress = Stress::new(250_000_000.0).unwrap();

assert_eq!(stress.megapascals(), 250.0);
assert_eq!(normal_stress(1_000.0, 0.01).unwrap(), 100_000.0);
assert_eq!(shear_stress(1_000.0, 0.01).unwrap(), 100_000.0);
assert_eq!(force_from_stress(100_000.0, 0.01).unwrap(), 1_000.0);

Structs§

Stress

Enums§

StressError

Functions§

force_from_stress
normal_stress
shear_stress