#[repr(C)]pub struct NeoHookeanElasticity {
pub cfl_coeff: Real,
pub lambda: Real,
pub mu: Real,
}
Fields§
§cfl_coeff: Real
§lambda: Real
§mu: Real
Implementations§
Source§impl NeoHookeanElasticity
impl NeoHookeanElasticity
pub fn new(young_modulus: Real, poisson_ratio: Real) -> Self
pub fn fpk_stress( &self, deformation_gradient: &Matrix<Real>, hardening: Real, ) -> Matrix<Real>
pub fn kirchhoff_stress( &self, particle_phase: Real, particle_elastic_hardening: Real, particle_deformation_gradient: &Matrix<Real>, ) -> Matrix<Real>
pub fn phase_coeff(phase: Real) -> Real
pub fn is_fluid(&self) -> bool
pub fn elastic_energy_density( &self, particle_phase: Real, elastic_hardening: Real, deformation_gradient: &Matrix<Real>, ) -> Real
pub fn pos_energy( &self, particle_phase: Real, particle_elastic_hardening: Real, particle_deformation_gradient: &Matrix<Real>, ) -> Real
pub fn active_timestep_bounds(&self) -> ActiveTimestepBounds
pub fn timestep_bound( &self, particle_density0: Real, particle_velocity: &Vector<Real>, particle_elastic_hardening: Real, cell_width: Real, ) -> Real
Trait Implementations§
Source§impl Clone for NeoHookeanElasticity
impl Clone for NeoHookeanElasticity
Source§fn clone(&self) -> NeoHookeanElasticity
fn clone(&self) -> NeoHookeanElasticity
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 NeoHookeanElasticity
impl Debug for NeoHookeanElasticity
Source§impl PartialEq for NeoHookeanElasticity
impl PartialEq for NeoHookeanElasticity
impl Copy for NeoHookeanElasticity
impl StructuralPartialEq for NeoHookeanElasticity
Auto Trait Implementations§
impl Freeze for NeoHookeanElasticity
impl RefUnwindSafe for NeoHookeanElasticity
impl Send for NeoHookeanElasticity
impl Sync for NeoHookeanElasticity
impl Unpin for NeoHookeanElasticity
impl UnwindSafe for NeoHookeanElasticity
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.