Struct sparkl2d_core::dynamics::models::NaccPlasticity
source · #[repr(C)]pub struct NaccPlasticity { /* private fields */ }
Expand description
The Non-Associated-Cam-Clay plasticity model.
Implementations§
source§impl NaccPlasticity
impl NaccPlasticity
pub fn new(
young_modulus: Real,
poisson_ratio: Real,
cohesion: Real,
hardening_enabled: bool,
hardening_factor: Real,
friction_angle: Real
) -> Self
pub fn with_m(
young_modulus: Real,
poisson_ratio: Real,
cohesion: Real,
hardening_enabled: bool,
hardening_factor: Real,
m: Real
) -> Self
pub fn project_deformation_gradient(
&self,
deformation_gradient: Matrix<Real>,
alpha: Real
) -> (Matrix<Real>, Real)
pub fn update_particle(
&self,
particle_deformation_gradient: &mut Matrix<Real>,
particle_nacc_alpha: &mut Real
)
Trait Implementations§
source§impl Clone for NaccPlasticity
impl Clone for NaccPlasticity
source§fn clone(&self) -> NaccPlasticity
fn clone(&self) -> NaccPlasticity
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 NaccPlasticity
impl Debug for NaccPlasticity
source§impl PartialEq<NaccPlasticity> for NaccPlasticity
impl PartialEq<NaccPlasticity> for NaccPlasticity
source§fn eq(&self, other: &NaccPlasticity) -> bool
fn eq(&self, other: &NaccPlasticity) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for NaccPlasticity
impl StructuralPartialEq for NaccPlasticity
Auto Trait Implementations§
impl RefUnwindSafe for NaccPlasticity
impl Send for NaccPlasticity
impl Sync for NaccPlasticity
impl Unpin for NaccPlasticity
impl UnwindSafe for NaccPlasticity
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.