Skip to main content

ModifiedCamClay

Struct ModifiedCamClay 

Source
pub struct ModifiedCamClay {
    pub m_slope: f64,
    pub lambda: f64,
    pub kappa: f64,
    pub pc0: f64,
    pub pc: f64,
    pub v0: f64,
    pub poisson: f64,
}
Expand description

Modified Cam-Clay critical-state model.

The yield surface in (p’, q) space is:

q^2 / M^2 + p’ (p’ - p_c) = 0

where M is the critical-state stress ratio and p_c is the pre-consolidation pressure (hardening variable).

Fields§

§m_slope: f64

Slope of critical state line M.

§lambda: f64

Slope of normal compression line lambda.

§kappa: f64

Slope of swelling/recompression line kappa.

§pc0: f64

Initial pre-consolidation pressure p_c0 [Pa].

§pc: f64

Current pre-consolidation pressure p_c [Pa].

§v0: f64

Initial specific volume v0.

§poisson: f64

Poisson’s ratio for elastic unloading.

Implementations§

Source§

impl ModifiedCamClay

Source

pub fn new( m_slope: f64, lambda: f64, kappa: f64, pc0: f64, v0: f64, poisson: f64, ) -> Self

Create a new Modified Cam-Clay model.

Source

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

Evaluate the yield function f(p’, q).

Returns < 0 inside the yield surface (elastic), 0 on the surface,

0 outside (inadmissible before return mapping).

Source

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

Check whether the stress state is on or outside the yield surface.

Source

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

Elastic bulk modulus K from current mean stress.

Source

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

Elastic shear modulus G (derived from K and nu).

Source

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

Harden: update pre-consolidation pressure from plastic volumetric strain increment d_eps_v_p (positive = compression).

Source

pub fn stress_ratio(p: f64, q: f64) -> f64

Stress ratio eta = q / p’.

Source

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

Over-consolidation ratio OCR = p_c / p’.

Source

pub fn ncl_volumetric_strain(&self, p0: f64, p: f64) -> f64

Volumetric strain on the normal compression line from p’_0 to p’.

Source

pub fn elastic_volumetric_strain(&self, p0: f64, p: f64) -> f64

Elastic (swelling-line) volumetric strain from p0 to p.

Source

pub fn yield_surface_size(&self) -> f64

Size of the yield ellipse along the p-axis (= pc).

Source

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

Critical-state mean stress for given q.

Source

pub fn reset(&mut self)

Reset to initial pre-consolidation.

Trait Implementations§

Source§

impl Clone for ModifiedCamClay

Source§

fn clone(&self) -> ModifiedCamClay

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 ModifiedCamClay

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.