use-stress 0.0.1

Primitive stress and pressure-like helpers
Documentation
  • Coverage
  • 7.69%
    1 out of 13 items documented1 out of 10 items with examples
  • Size
  • Source code size: 5.26 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 380.48 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 15s Average build duration of successful builds.
  • all releases: 15s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-materials
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

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);