use-conductivity 0.0.1

Primitive thermal and electrical conductivity helpers
Documentation
  • Coverage
  • 5.88%
    1 out of 17 items documented1 out of 12 items with examples
  • Size
  • Source code size: 7.66 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 455.46 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 18s Average build duration of successful builds.
  • all releases: 18s 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 conductivity helpers.

Initial calculations assume SI units unless otherwise documented.

Examples

use use_conductivity::{
    ElectricalConductivity, ThermalConductivity, conductivity_from_resistivity,
    heat_flow_rate, resistivity_from_conductivity, thermal_resistance,
};

let thermal = ThermalConductivity::new(50.0).unwrap();
let electrical = ElectricalConductivity::new(5.8e7).unwrap();

assert_eq!(thermal.watts_per_meter_kelvin(), 50.0);
assert_eq!(electrical.siemens_per_meter(), 5.8e7);
assert_eq!(thermal_resistance(0.1, 2.0, 50.0).unwrap(), 0.001);
assert_eq!(heat_flow_rate(50.0, 2.0, 10.0, 0.1).unwrap(), 10_000.0);
assert_eq!(resistivity_from_conductivity(2.0).unwrap(), 0.5);
assert_eq!(conductivity_from_resistivity(0.5).unwrap(), 2.0);