pub struct PyCompositeMaterial {
pub modulus1: f64,
pub modulus2: f64,
pub volume_fraction1: f64,
}Expand description
Composite material with Voigt, Reuss, and Hill mixture rules.
Fields§
§modulus1: f64Modulus of phase 1 (matrix) E₁ (Pa).
modulus2: f64Modulus of phase 2 (fiber/particle) E₂ (Pa).
volume_fraction1: f64Volume fraction of phase 1 (0..1).
Implementations§
Source§impl PyCompositeMaterial
impl PyCompositeMaterial
Sourcepub fn new(modulus1: f64, modulus2: f64, volume_fraction1: f64) -> Self
pub fn new(modulus1: f64, modulus2: f64, volume_fraction1: f64) -> Self
Create a new composite material.
Sourcepub fn voigt_modulus(&self, vf1: f64, e1: f64, e2: f64) -> f64
pub fn voigt_modulus(&self, vf1: f64, e1: f64, e2: f64) -> f64
Voigt (isostrain) upper-bound modulus.
Sourcepub fn reuss_modulus(&self, vf1: f64, e1: f64, e2: f64) -> f64
pub fn reuss_modulus(&self, vf1: f64, e1: f64, e2: f64) -> f64
Reuss (isostress) lower-bound modulus.
Sourcepub fn hill_modulus(&self) -> f64
pub fn hill_modulus(&self) -> f64
Hill (arithmetic mean of Voigt and Reuss) modulus.
Sourcepub fn hashin_shtrikman_lower(&self) -> f64
pub fn hashin_shtrikman_lower(&self) -> f64
Hashin–Shtrikman lower bound modulus (spherical inclusions).
Trait Implementations§
Source§impl Clone for PyCompositeMaterial
impl Clone for PyCompositeMaterial
Source§fn clone(&self) -> PyCompositeMaterial
fn clone(&self) -> PyCompositeMaterial
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 PyCompositeMaterial
impl Debug for PyCompositeMaterial
Source§impl Default for PyCompositeMaterial
impl Default for PyCompositeMaterial
Source§impl<'de> Deserialize<'de> for PyCompositeMaterial
impl<'de> Deserialize<'de> for PyCompositeMaterial
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PyCompositeMaterial
impl RefUnwindSafe for PyCompositeMaterial
impl Send for PyCompositeMaterial
impl Sync for PyCompositeMaterial
impl Unpin for PyCompositeMaterial
impl UnsafeUnpin for PyCompositeMaterial
impl UnwindSafe for PyCompositeMaterial
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.