Struct sparkl2d_core::dynamics::models::NeoHookeanElasticity
source · 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 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 copy 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<NeoHookeanElasticity> for NeoHookeanElasticity
impl PartialEq<NeoHookeanElasticity> for NeoHookeanElasticity
source§fn eq(&self, other: &NeoHookeanElasticity) -> bool
fn eq(&self, other: &NeoHookeanElasticity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for NeoHookeanElasticity
impl StructuralPartialEq for NeoHookeanElasticity
Auto Trait Implementations§
impl RefUnwindSafe for NeoHookeanElasticity
impl Send for NeoHookeanElasticity
impl Sync for NeoHookeanElasticity
impl Unpin for NeoHookeanElasticity
impl UnwindSafe for NeoHookeanElasticity
Blanket Implementations§
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§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 more§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).§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.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.