pub struct PyHyperelasticMaterial {
pub c1: f64,
pub c2: f64,
pub bulk_modulus: f64,
}Expand description
Hyperelastic material supporting NeoHookean and Mooney–Rivlin models.
Fields§
§c1: f64First Mooney–Rivlin constant C₁ (also the NeoHookean shear parameter).
c2: f64Second Mooney–Rivlin constant C₂.
bulk_modulus: f64Bulk modulus κ (Pa).
Implementations§
Source§impl PyHyperelasticMaterial
impl PyHyperelasticMaterial
Sourcepub fn strain_energy_neo_hookean(&self, i1_bar: f64, j: f64) -> f64
pub fn strain_energy_neo_hookean(&self, i1_bar: f64, j: f64) -> f64
NeoHookean strain energy density W = C₁(Ī₁ − 3) + κ/2 (J − 1)².
i1_bar is the first invariant of the isochoric right Cauchy–Green
tensor; j is the volumetric Jacobian.
Sourcepub fn strain_energy_mooney_rivlin(
&self,
i1_bar: f64,
i2_bar: f64,
j: f64,
) -> f64
pub fn strain_energy_mooney_rivlin( &self, i1_bar: f64, i2_bar: f64, j: f64, ) -> f64
Mooney–Rivlin strain energy density W = C₁(Ī₁ − 3) + C₂(Ī₂ − 3) + κ/2 (J − 1)².
i1_bar and i2_bar are the first and second invariants of the
isochoric right Cauchy–Green tensor; j is the volumetric Jacobian.
Sourcepub fn initial_shear_modulus(&self) -> f64
pub fn initial_shear_modulus(&self) -> f64
Initial (small-strain) shear modulus μ = 2(C₁ + C₂).
Trait Implementations§
Source§impl Clone for PyHyperelasticMaterial
impl Clone for PyHyperelasticMaterial
Source§fn clone(&self) -> PyHyperelasticMaterial
fn clone(&self) -> PyHyperelasticMaterial
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 PyHyperelasticMaterial
impl Debug for PyHyperelasticMaterial
Source§impl Default for PyHyperelasticMaterial
impl Default for PyHyperelasticMaterial
Source§impl<'de> Deserialize<'de> for PyHyperelasticMaterial
impl<'de> Deserialize<'de> for PyHyperelasticMaterial
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 PyHyperelasticMaterial
impl RefUnwindSafe for PyHyperelasticMaterial
impl Send for PyHyperelasticMaterial
impl Sync for PyHyperelasticMaterial
impl Unpin for PyHyperelasticMaterial
impl UnsafeUnpin for PyHyperelasticMaterial
impl UnwindSafe for PyHyperelasticMaterial
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.