Skip to main content

DruckerPragerModel

Struct DruckerPragerModel 

Source
pub struct DruckerPragerModel {
    pub friction_angle: f64,
    pub cohesion: f64,
    pub shear_modulus: f64,
    pub bulk_modulus: f64,
}
Expand description

Drucker-Prager yield surface for geomaterials (soil, rock, concrete).

Yield function: F = √J₂ + α·I₁ - k = 0

where: α = 2 sin φ / (√3 (3 - sin φ)) (outer cone, Mohr-Coulomb match in compression) k = 6 c cos φ / (√3 (3 - sin φ)) I₁ = tr(σ), J₂ = ½ dev:dev

Fields§

§friction_angle: f64

Internal friction angle φ (radians).

§cohesion: f64

Cohesion c (Pa).

§shear_modulus: f64

Shear modulus G (Pa).

§bulk_modulus: f64

Bulk modulus K (Pa).

Implementations§

Source§

impl DruckerPragerModel

Source

pub fn new( friction_angle: f64, cohesion: f64, shear_modulus: f64, bulk_modulus: f64, ) -> Self

Create a Drucker-Prager model.

Source

pub fn from_mohr_coulomb_degrees( phi_deg: f64, cohesion: f64, E: f64, nu: f64, ) -> Self

Create from φ (degrees), c (Pa), Young’s modulus (Pa), Poisson’s ratio.

Source

pub fn alpha_dp(&self) -> f64

DP α parameter (friction / pressure coupling).

Source

pub fn k_dp(&self) -> f64

DP k parameter (cohesion term).

Source

pub fn yield_function(&self, stress: &[f64; 6]) -> f64

Yield function value F. F > 0 indicates yielding.

Source

pub fn is_elastic(&self, stress: &[f64; 6]) -> bool

Check if stress state is elastic (F ≤ 0).

Source

pub fn uniaxial_tensile_strength(&self) -> f64

Uniaxial tensile strength (from cohesion and friction angle).

σ_t = 2c cos φ / (1 + sin φ)

Source

pub fn uniaxial_compressive_strength(&self) -> f64

Uniaxial compressive strength.

σ_c = 2c cos φ / (1 - sin φ)

Trait Implementations§

Source§

impl Clone for DruckerPragerModel

Source§

fn clone(&self) -> DruckerPragerModel

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 DruckerPragerModel

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Copy for DruckerPragerModel

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.