Skip to main content

ElementLoadComponents

Trait ElementLoadComponents 

Source
pub trait ElementLoadComponents {
    const COUNT: usize;

    // Required method
    fn component(&self, index: usize) -> f64;
}
Expand description

Scalar view of an element load’s components (local axes), for recording the load an element actually carries at some pseudo-time.

Required Associated Constants§

Source

const COUNT: usize

Number of components (ElementLoad: 2, ElementLoad3: 3); the bound a recorder’s component index is checked against.

Required Methods§

Source

fn component(&self, index: usize) -> f64

Component index (ElementLoad: 0 = wx, 1 = wy; ElementLoad3: 0..3 = wx, wy, wz); 0.0 past the last.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl ElementLoadComponents for ElementLoad

Component layout: [wx, wy, bx, by, t0x, t0y, p0, t1x, t1y, p1, t2x, t2y, p2, t3x, t3y, p3] (beam uniform, body force, then traction and pressure per edge).

Source§

const COUNT: usize = 16

Source§

impl ElementLoadComponents for ElementLoad3

Component layout: [wx, wy, wz, bx, by, bz, pressure] (beam uniform, shell body, shell pressure).

Source§

const COUNT: usize = 7