Skip to main content

Tri6

Struct Tri6 

Source
pub struct Tri6 {
    pub el_id: usize,
    pub coords: [[f64; 6]; 2],
    pub node_ids: [usize; 6],
    pub elastic_modulus: f64,
    pub shear_modulus: f64,
    pub density: f64,
}
Expand description

Six-noded quadratic triangular finite element.

Node ordering: [v0, v1, v2, mid01, mid12, mid20] where v0,v1,v2 are vertices and midXX are mid-edge nodes.

Fields§

§el_id: usize

Element id

§coords: [[f64; 6]; 2]

Coordinates: coords[0] = x[0..6], coords[1] = y[0..6]

§node_ids: [usize; 6]

Global node ids

§elastic_modulus: f64

Elastic modulus

§shear_modulus: f64

Shear modulus

§density: f64

Density

Implementations§

Source§

impl Tri6

Source

pub fn from_points( el_id: usize, points: [Point; 6], node_ids: [usize; 6], em: f64, gm: f64, rho: f64, ) -> Result<Self, FemError>

Create a Tri6 element from 6 points and node ids.

Validates that the element has positive orientation (CCW winding). Returns Err(FemError::InvalidElementOrientation) if the element is degenerate or has negative Jacobian (CW winding).

Source

pub fn geometric_properties(&self) -> (f64, f64, f64, f64, f64, f64)

Calculate geometric properties: (area, qx, qy, ixx, iyy, ixy).

Source

pub fn torsion_properties(&self) -> ([[f64; 6]; 6], [f64; 6], [f64; 6])

Calculate torsion stiffness matrix (6×6), load vector (6), and constraint vector (6).

Source

pub fn shear_load_vectors( &self, ixx: f64, iyy: f64, ixy: f64, nu: f64, ) -> ([f64; 6], [f64; 6])

Calculate shear load vectors f_psi and f_phi.

Source

pub fn shear_warping_integrals( &self, ixx: f64, iyy: f64, ixy: f64, omega: &[f64; 6], ) -> (f64, f64, f64, f64, f64, f64)

Calculate shear centre and warping integrals.

Returns (sc_xint, sc_yint, q_omega, i_omega, i_xomega, i_yomega).

Source

pub fn shear_coefficients( &self, ixx: f64, iyy: f64, ixy: f64, psi_shear: &[f64; 6], phi_shear: &[f64; 6], nu: f64, ) -> (f64, f64, f64)

Calculate shear deformation coefficients (kappa_x, kappa_y, kappa_xy).

Source

pub fn monosymmetry_integrals(&self, phi: f64) -> (f64, f64, f64, f64)

Calculate monosymmetry integrals (int_x, int_y, int_11, int_22).

phi is the principal axis angle in radians.

Source

pub fn torsion_shear_stress(&self, omega: &[f64; 6]) -> (f64, (f64, f64))

Calculate the St. Venant shear-stress factor at Gauss points.

For pure torsion with torque T, the stress is T / J times the returned factor: (∂ω/∂x - y, ∂ω/∂y + x).

Returns (max_shear_stress_magnitude, max_shear_stress_vector) where max_shear_stress_vector = (tau_x, tau_y) at the point of max magnitude.

Source

pub fn element_stress( &self, n: f64, mxx: f64, myy: f64, m11: f64, m22: f64, mzz: f64, vx: f64, vy: f64, ea: f64, cx: f64, cy: f64, ixx: f64, iyy: f64, ixy: f64, i11: f64, i22: f64, phi: f64, j: f64, nu: f64, omega: &[f64; 6], psi_shear: &[f64; 6], phi_shear: &[f64; 6], delta_s: f64, ) -> [[f64; 6]; 11]

Calculate element stresses at the 6 Gauss points, extrapolated to nodes.

Returns 11 nodal stress arrays (each length 6): (sig_zz_n, sig_zz_mxx, sig_zz_myy, sig_zz_m11, sig_zz_m22, sig_zx_mzz, sig_zy_mzz, sig_zx_vx, sig_zy_vx, sig_zx_vy, sig_zy_vy)

Trait Implementations§

Source§

impl Clone for Tri6

Source§

fn clone(&self) -> Self

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 Tri6

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Forget for Tri6

§

impl Freeze for Tri6

§

impl Move for Tri6

§

impl RefUnwindSafe for Tri6

§

impl Send for Tri6

§

impl Sync for Tri6

§

impl Unpin for Tri6

§

impl UnsafeUnpin for Tri6

§

impl UnwindSafe for Tri6

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 = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

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.