pub struct BoneMaterial {
pub is_cortical: bool,
pub density_g_cm3: f64,
pub porosity: f64,
pub bvf: f64,
pub power_law_a: f64,
pub power_law_b: f64,
}Expand description
Bone material combining cortical and trabecular phases.
Fields§
§is_cortical: boolTrue = cortical (compact), false = trabecular (cancellous).
density_g_cm3: f64Apparent density in g/cm³ (cortical ≈ 1.8–2.0, trabecular ≈ 0.1–0.8).
porosity: f64Porosity fraction (0 = fully dense, 1 = fully porous).
bvf: f64Bone volume fraction BVF (bone tissue / total volume, 0..1).
power_law_a: f64Power-law coefficient a for E = a * rho^b (Pa).
power_law_b: f64Power-law exponent b for E = a * rho^b (dimensionless).
Implementations§
Source§impl BoneMaterial
impl BoneMaterial
Sourcepub fn trabecular() -> Self
pub fn trabecular() -> Self
Typical human trabecular bone (vertebral body).
Sourcepub fn young_modulus_from_density(&self) -> f64
pub fn young_modulus_from_density(&self) -> f64
Young’s modulus from density using Morgan-Keaveny power law.
Returns E in Pa. rho is apparent density in g/cm³.
Sourcepub fn modulus_at_density(&self, rho_g_cm3: f64) -> f64
pub fn modulus_at_density(&self, rho_g_cm3: f64) -> f64
Young’s modulus from a supplied density (Pa).
Sourcepub fn tissue_type(&self) -> TissueType
pub fn tissue_type(&self) -> TissueType
Tissue type classification.
Trait Implementations§
Source§impl Clone for BoneMaterial
impl Clone for BoneMaterial
Source§fn clone(&self) -> BoneMaterial
fn clone(&self) -> BoneMaterial
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 BoneMaterial
impl RefUnwindSafe for BoneMaterial
impl Send for BoneMaterial
impl Sync for BoneMaterial
impl Unpin for BoneMaterial
impl UnsafeUnpin for BoneMaterial
impl UnwindSafe for BoneMaterial
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