pub struct CellSizeDistribution {
pub mean_diameter: f64,
pub std_diameter: f64,
pub cell_density: f64,
}Expand description
Foam cell size distribution statistics.
Fields§
§mean_diameter: f64Mean cell diameter [m].
std_diameter: f64Standard deviation of cell diameter [m].
cell_density: f64Number of cells per unit volume [1/m³].
Implementations§
Source§impl CellSizeDistribution
impl CellSizeDistribution
Sourcepub fn new(mean_diameter: f64, std_diameter: f64, cell_density: f64) -> Self
pub fn new(mean_diameter: f64, std_diameter: f64, cell_density: f64) -> Self
Create a new cell size distribution.
Sourcepub fn coefficient_of_variation(&self) -> f64
pub fn coefficient_of_variation(&self) -> f64
Coefficient of variation.
Sourcepub fn estimated_porosity(&self) -> f64
pub fn estimated_porosity(&self) -> f64
Approximate porosity from cell density and mean diameter.
phi ≈ N * (pi/6) * d^3, capped at 1.0.
Sourcepub fn specific_surface_area(&self) -> f64
pub fn specific_surface_area(&self) -> f64
Specific surface area (surface per unit volume) for spherical cells.
S_v = N * pi * d^2
Sourcepub fn wall_thickness(&self, relative_density: f64) -> f64
pub fn wall_thickness(&self, relative_density: f64) -> f64
Characteristic cell wall thickness for closed-cell foam.
t ≈ d * (1 - (1 - rho_rel)^(1/3))
Trait Implementations§
Source§impl Clone for CellSizeDistribution
impl Clone for CellSizeDistribution
Source§fn clone(&self) -> CellSizeDistribution
fn clone(&self) -> CellSizeDistribution
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CellSizeDistribution
impl Debug for CellSizeDistribution
Source§impl PartialEq for CellSizeDistribution
impl PartialEq for CellSizeDistribution
impl StructuralPartialEq for CellSizeDistribution
Auto Trait Implementations§
impl Freeze for CellSizeDistribution
impl RefUnwindSafe for CellSizeDistribution
impl Send for CellSizeDistribution
impl Sync for CellSizeDistribution
impl Unpin for CellSizeDistribution
impl UnsafeUnpin for CellSizeDistribution
impl UnwindSafe for CellSizeDistribution
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