pub struct CapPlasticityModel {
pub alpha: f64,
pub k_cohesion: f64,
pub cap_r: f64,
pub x0: f64,
pub x_cap: f64,
pub hardening_w: f64,
pub hardening_d: f64,
}Expand description
Cap plasticity model (Drucker-Prager shear surface + elliptical cap).
Used for modelling compactive yielding in soils, concrete, and powders.
Fields§
§alpha: f64Drucker-Prager friction parameter alpha.
k_cohesion: f64Drucker-Prager cohesion parameter k.
cap_r: f64Cap eccentricity R (ratio of ellipse axes).
x0: f64Hardening parameter: initial cap position X_0 (hydrostatic yield).
x_cap: f64Current cap position X.
hardening_w: f64Hardening modulus W (relates plastic vol strain to cap movement).
hardening_d: f64Cap shape parameter D.
Implementations§
Source§impl CapPlasticityModel
impl CapPlasticityModel
Sourcepub fn new(
alpha: f64,
k_cohesion: f64,
cap_r: f64,
x0: f64,
hardening_w: f64,
hardening_d: f64,
) -> Self
pub fn new( alpha: f64, k_cohesion: f64, cap_r: f64, x0: f64, hardening_w: f64, hardening_d: f64, ) -> Self
Construct a new cap plasticity model.
Sourcepub fn shear_yield(&self, p: f64, q: f64) -> f64
pub fn shear_yield(&self, p: f64, q: f64) -> f64
Drucker-Prager shear yield function: f_s = q - alpha * p - k.
Sourcepub fn cap_yield(&self, p: f64, q: f64) -> f64
pub fn cap_yield(&self, p: f64, q: f64) -> f64
Cap yield function (elliptical): f_c = sqrt((p - L)^2 + (Rq)^2) - (X - L). L = X - R * (alpha * X + k).
Sourcepub fn is_elastic(&self, p: f64, q: f64) -> bool
pub fn is_elastic(&self, p: f64, q: f64) -> bool
Check if stress state is elastic.
Sourcepub fn harden_cap(&mut self, d_eps_v_p: f64)
pub fn harden_cap(&mut self, d_eps_v_p: f64)
Harden cap from plastic volumetric strain increment.
Sourcepub fn current_plastic_vol_strain(&self) -> f64
pub fn current_plastic_vol_strain(&self) -> f64
Current accumulated plastic volumetric strain from cap position.
Trait Implementations§
Source§impl Clone for CapPlasticityModel
impl Clone for CapPlasticityModel
Source§fn clone(&self) -> CapPlasticityModel
fn clone(&self) -> CapPlasticityModel
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more