Skip to main content

ConcreteMaterial

Struct ConcreteMaterial 

Source
pub struct ConcreteMaterial {
    pub fc: f64,
    pub ft: f64,
    pub ec: f64,
    pub poisson: f64,
    pub shrinkage_strain: f64,
    pub creep_coefficient: f64,
    pub density: f64,
}
Expand description

Concrete material properties per ACI/EN standard.

Fields§

§fc: f64

Characteristic compressive strength f’c (MPa).

§ft: f64

Tensile strength ft (MPa), typically ≈ 0.1 * fc.

§ec: f64

Modulus of elasticity Ec (MPa).

§poisson: f64

Poisson’s ratio ν.

§shrinkage_strain: f64

Drying shrinkage strain ε_sh (dimensionless).

§creep_coefficient: f64

Creep coefficient φ (ratio of creep strain to elastic strain).

§density: f64

Density (kg/m³).

Implementations§

Source§

impl ConcreteMaterial

Source

pub fn new(fc: f64) -> Self

Create a normal-weight concrete with characteristic strength fc (MPa).

Ec is estimated by ACI 318: Ec = 4700 * sqrt(fc) (MPa).

Source

pub fn shear_modulus(&self) -> f64

Shear modulus G = Ec / (2*(1+ν)).

Source

pub fn splitting_tensile_strength(&self) -> f64

Splitting tensile strength (ACI): fct = 0.56 * sqrt(fc) MPa.

Source

pub fn ultimate_compressive_strain(&self) -> f64

Ultimate compressive strain (ACI): 0.003.

Source

pub fn modulus_of_rupture(&self) -> f64

Modulus of rupture (flexural): fr = 0.62 * sqrt(fc) MPa.

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