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