pub struct ExtendedMaterial {
pub base: Material,
pub young_modulus: f64,
pub poisson_ratio: f64,
pub yield_strength: f64,
pub uts: f64,
pub thermal_conductivity: f64,
pub specific_heat: f64,
pub thermal_expansion: f64,
}Expand description
Extended material with full elastic constants.
Fields§
§base: MaterialBase material (density, friction, restitution).
young_modulus: f64Young’s modulus (Pa).
poisson_ratio: f64Poisson’s ratio.
yield_strength: f64Yield strength (Pa), 0 if not applicable.
uts: f64Ultimate tensile strength (Pa), 0 if not applicable.
thermal_conductivity: f64Thermal conductivity (W/(m*K)).
specific_heat: f64Specific heat capacity (J/(kg*K)).
thermal_expansion: f64Coefficient of thermal expansion (1/K).
Implementations§
Source§impl ExtendedMaterial
impl ExtendedMaterial
Sourcepub fn new(
base: Material,
young_modulus: f64,
poisson_ratio: f64,
yield_strength: f64,
uts: f64,
thermal_conductivity: f64,
specific_heat: f64,
thermal_expansion: f64,
) -> Self
pub fn new( base: Material, young_modulus: f64, poisson_ratio: f64, yield_strength: f64, uts: f64, thermal_conductivity: f64, specific_heat: f64, thermal_expansion: f64, ) -> Self
Create an extended material.
Sourcepub fn bulk_modulus(&self) -> f64
pub fn bulk_modulus(&self) -> f64
Bulk modulus K = E / (3*(1-2*nu)).
Sourcepub fn shear_modulus(&self) -> f64
pub fn shear_modulus(&self) -> f64
Shear modulus G = E / (2*(1+nu)).
Sourcepub fn specific_stiffness(&self) -> f64
pub fn specific_stiffness(&self) -> f64
Specific stiffness E / rho (m^2/s^2).
Sourcepub fn specific_strength(&self) -> f64
pub fn specific_strength(&self) -> f64
Specific strength sigma_y / rho (m^2/s^2).
Sourcepub fn thermal_diffusivity(&self) -> f64
pub fn thermal_diffusivity(&self) -> f64
Thermal diffusivity k / (rho * cp) (m^2/s).
Trait Implementations§
Source§impl Clone for ExtendedMaterial
impl Clone for ExtendedMaterial
Source§fn clone(&self) -> ExtendedMaterial
fn clone(&self) -> ExtendedMaterial
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExtendedMaterial
impl RefUnwindSafe for ExtendedMaterial
impl Send for ExtendedMaterial
impl Sync for ExtendedMaterial
impl Unpin for ExtendedMaterial
impl UnsafeUnpin for ExtendedMaterial
impl UnwindSafe for ExtendedMaterial
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more