Skip to main content

SoaMaterialPoints

Struct SoaMaterialPoints 

Source
pub struct SoaMaterialPoints {
Show 27 fields pub n: usize, pub strain_xx: Vec<f64>, pub strain_yy: Vec<f64>, pub strain_zz: Vec<f64>, pub strain_xy: Vec<f64>, pub strain_yz: Vec<f64>, pub strain_xz: Vec<f64>, pub stress_xx: Vec<f64>, pub stress_yy: Vec<f64>, pub stress_zz: Vec<f64>, pub stress_xy: Vec<f64>, pub stress_yz: Vec<f64>, pub stress_xz: Vec<f64>, pub plastic_strain: Vec<f64>, pub yield_stress: Vec<f64>, pub damage: Vec<f64>, pub temperature: Vec<f64>, pub fatigue_damage: Vec<f64>, pub f11: Vec<f64>, pub f12: Vec<f64>, pub f13: Vec<f64>, pub f21: Vec<f64>, pub f22: Vec<f64>, pub f23: Vec<f64>, pub f31: Vec<f64>, pub f32: Vec<f64>, pub f33: Vec<f64>,
}
Expand description

Structure-of-Arrays storage for n material integration points.

All arrays have the same length n so batch kernels can iterate over them with simple index loops that LLVM can auto-vectorize.

Fields§

§n: usize

Number of material points.

§strain_xx: Vec<f64>

Normal strain εxx.

§strain_yy: Vec<f64>

Normal strain εyy.

§strain_zz: Vec<f64>

Normal strain εzz.

§strain_xy: Vec<f64>

Shear strain εxy (engineering = 2 * tensorial).

§strain_yz: Vec<f64>

Shear strain εyz.

§strain_xz: Vec<f64>

Shear strain εxz.

§stress_xx: Vec<f64>

Normal stress σxx (output from constitutive kernels).

§stress_yy: Vec<f64>

Normal stress σyy.

§stress_zz: Vec<f64>

Normal stress σzz.

§stress_xy: Vec<f64>

Shear stress σxy.

§stress_yz: Vec<f64>

Shear stress σyz.

§stress_xz: Vec<f64>

Shear stress σxz.

§plastic_strain: Vec<f64>

Accumulated equivalent plastic strain p̄.

§yield_stress: Vec<f64>

Current yield stress σ_y (may harden).

§damage: Vec<f64>

Scalar damage variable D ∈ [0, 1].

§temperature: Vec<f64>

Temperature (K).

§fatigue_damage: Vec<f64>

Accumulated fatigue damage (Miner’s rule) ∈ [0, 1].

§f11: Vec<f64>

F₁₁ components (one per point).

§f12: Vec<f64>

F₁₂.

§f13: Vec<f64>

F₁₃.

§f21: Vec<f64>

F₂₁.

§f22: Vec<f64>

F₂₂.

§f23: Vec<f64>

F₂₃.

§f31: Vec<f64>

F₃₁.

§f32: Vec<f64>

F₃₂.

§f33: Vec<f64>

F₃₃.

Implementations§

Source§

impl SoaMaterialPoints

Source

pub fn new(n: usize) -> Self

Allocate n material points, all zero-initialised.

Source

pub fn zero_stress(&mut self)

Reset all stresses to zero.

Source

pub fn von_mises_stress(&self) -> Vec<f64>

Compute Von Mises equivalent stress for each point.

σ_vm = √( ½ [(σxx−σyy)² + (σyy−σzz)² + (σzz−σxx)²] + 3(σxy² + σyz² + σxz²) )

Source

pub fn hydrostatic_stress(&self) -> Vec<f64>

Mean (hydrostatic) stress for each point.

Trait Implementations§

Source§

impl Clone for SoaMaterialPoints

Source§

fn clone(&self) -> SoaMaterialPoints

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 SoaMaterialPoints

Source§

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

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

impl Default for SoaMaterialPoints

Source§

fn default() -> SoaMaterialPoints

Returns the “default value” for a type. 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.