Skip to main content

CapPlasticityModel

Struct CapPlasticityModel 

Source
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: f64

Drucker-Prager friction parameter alpha.

§k_cohesion: f64

Drucker-Prager cohesion parameter k.

§cap_r: f64

Cap eccentricity R (ratio of ellipse axes).

§x0: f64

Hardening parameter: initial cap position X_0 (hydrostatic yield).

§x_cap: f64

Current cap position X.

§hardening_w: f64

Hardening modulus W (relates plastic vol strain to cap movement).

§hardening_d: f64

Cap shape parameter D.

Implementations§

Source§

impl CapPlasticityModel

Source

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.

Source

pub fn shear_yield(&self, p: f64, q: f64) -> f64

Drucker-Prager shear yield function: f_s = q - alpha * p - k.

Source

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).

Source

pub fn is_elastic(&self, p: f64, q: f64) -> bool

Check if stress state is elastic.

Source

pub fn harden_cap(&mut self, d_eps_v_p: f64)

Harden cap from plastic volumetric strain increment.

Source

pub fn current_plastic_vol_strain(&self) -> f64

Current accumulated plastic volumetric strain from cap position.

Source

pub fn reset(&mut self)

Reset cap to initial position.

Trait Implementations§

Source§

impl Clone for CapPlasticityModel

Source§

fn clone(&self) -> CapPlasticityModel

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CapPlasticityModel

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.