Expand description
Thin facade for the use-materials workspace.
The crate reexports the focused material-property crates directly so consumers can opt into one dependency while still using the smaller APIs.
§Examples
use use_materials::*;
let density = Density::new(7_850.0).unwrap();
let stress = Stress::new(250_000_000.0).unwrap();
let expansion = linear_expansion(2.0, 12.0e-6, 50.0).unwrap();
assert_eq!(density.kg_per_m3(), 7_850.0);
assert_eq!(stress.megapascals(), 250.0);
assert!((expansion - 0.0012).abs() < 1.0e-12);Re-exports§
pub use use_conductivity;pub use use_density;pub use use_elasticity;pub use use_hardness;pub use use_material_property;pub use use_strain;pub use use_stress;pub use use_thermal_expansion;
Structs§
- Density
- Elastic
Modulus - Electrical
Conductivity - Hardness
- Linear
Expansion Coefficient - Material
Property - Strain
- Stress
- Thermal
Conductivity
Enums§
- Conductivity
Error - Density
Error - Elasticity
Error - Hardness
Error - Hardness
Scale - Material
Property Error - Material
Property Kind - Strain
Error - Stress
Error - Thermal
Expansion Error
Functions§
- area_
expansion_ coefficient - coefficient_
from_ lengths - conductivity_
from_ resistivity - density
- elastic_
deformation - engineering_
strain - filter_
by_ kind - final_
length - force_
from_ stress - heat_
flow_ rate - is_
harder_ than - linear_
expansion - mass_
from_ density - normal_
stress - percent_
strain - property_
values - resistivity_
from_ conductivity - same_
scale - shear_
stress - strain_
from_ change - strain_
from_ modulus - stress_
from_ modulus - thermal_
resistance - volume_
expansion_ coefficient - volume_
from_ density - youngs_
modulus