Skip to main content

SoilModel

Struct SoilModel 

Source
pub struct SoilModel {
    pub cohesion: f64,
    pub friction_angle: f64,
    pub dilatancy_angle: f64,
    pub young_modulus: f64,
    pub poisson_ratio: f64,
}
Expand description

Soil model using the Mohr-Coulomb yield criterion.

Models elastic-perfectly-plastic soil behavior with friction and cohesion.

Fields§

§cohesion: f64

Cohesion c [Pa].

§friction_angle: f64

Internal friction angle φ [radians].

§dilatancy_angle: f64

Dilatancy angle ψ [radians].

§young_modulus: f64

Young’s modulus E [Pa].

§poisson_ratio: f64

Poisson’s ratio ν.

Implementations§

Source§

impl SoilModel

Source

pub fn new( cohesion: f64, friction_angle_deg: f64, dilatancy_angle_deg: f64, young_modulus: f64, poisson_ratio: f64, ) -> Self

Create a new Mohr-Coulomb soil model.

Source

pub fn medium_sand() -> Self

Typical medium-density sand.

Source

pub fn stiff_clay() -> Self

Typical stiff clay.

Source

pub fn yield_function(&self, sigma1: f64, sigma3: f64) -> f64

Mohr-Coulomb yield function F(σ1, σ3).

F = (σ1 - σ3) - 2ccos(φ) - (σ1 + σ3)*sin(φ) F < 0: elastic; F = 0: on yield surface.

Source

pub fn is_yielding(&self, sigma1: f64, sigma3: f64) -> bool

Check if the stress state is yielding.

Source

pub fn plastic_multiplier(&self, d_eps_p: f64) -> f64

Plastic multiplier Δλ for a given incremental plastic strain magnitude.

Δλ = Δεp / (1 + sin(ψ))

Source

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

Critical state line (CSL) deviator stress q as a function of mean stress p [Pa].

q = M_cs * p where M_cs = 6*sin(φ) / (3 - sin(φ)) for compression.

Source

pub fn bulk_modulus(&self) -> f64

Bulk modulus K = E / (3*(1-2ν)) [Pa].

Source

pub fn shear_modulus(&self) -> f64

Shear modulus G = E / (2*(1+ν)) [Pa].

Source

pub fn ucs(&self) -> f64

Uniaxial compressive strength (unconfined) [Pa].

qu = 2ccos(φ) / (1 - sin(φ))

Source

pub fn k0_jaky(&self) -> f64

Ko (coefficient of earth pressure at rest) via Jaky’s formula.

Ko = 1 - sin(φ)

Trait Implementations§

Source§

impl Clone for SoilModel

Source§

fn clone(&self) -> SoilModel

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 SoilModel

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.