Skip to main content

ElementLoad3

Struct ElementLoad3 

Source
pub struct ElementLoad3 {
    pub uniform: [f64; 3],
    pub body: [f64; 3],
    pub pressure: f64,
}
Expand description

ElementLoad’s 3D counterpart: an additive accumulator, one field group per load kind. ElementOps::Load for the 3D profile.

Fields§

§uniform: [f64; 3]

Beam-columns: uniform load (force/length) in the member’s local axes: wx along the member axis, wy/wz transverse in local +y/+z (vec_xz defines y/z). Xara/OpenSees’s Beam3dUniformLoad.

§body: [f64; 3]

Shells: body acceleration in global axes (a gravity vector g points down); the force per unit area is +rho h b. OpenSees’ ShellMITC4 applies -rho h b for the same -selfWeight factors, so exporters negate.

§pressure: f64

Shells: pressure per unit area, positive along the local normal e3 (right-hand rule from the node order).

Implementations§

Source§

impl ElementLoad3

Source

pub const fn uniform(wx: f64, wy: f64, wz: f64) -> Self

A uniform beam load.

Source

pub fn body(bx: f64, by: f64, bz: f64) -> Self

A shell self-weight (acceleration factors in global axes).

Source

pub fn pressure(pressure: f64) -> Self

A shell pressure along the local normal.

Source

pub fn has_uniform(&self) -> bool

Source

pub fn has_body(&self) -> bool

Source

pub fn has_pressure(&self) -> bool

Trait Implementations§

Source§

impl Add for ElementLoad3

Source§

fn add(self, other: ElementLoad3) -> ElementLoad3

See ElementLoad’s Add.

Source§

type Output = ElementLoad3

The resulting type after applying the + operator.
Source§

impl Clone for ElementLoad3

Source§

fn clone(&self) -> ElementLoad3

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 Copy for ElementLoad3

Source§

impl Debug for ElementLoad3

Source§

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

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

impl Default for ElementLoad3

Source§

fn default() -> ElementLoad3

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

Number of components (ElementLoad: 2, ElementLoad3: 3); the bound a recorder’s component index is checked against.
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.
Source§

impl Mul<f64> for ElementLoad3

Source§

type Output = ElementLoad3

The resulting type after applying the * operator.
Source§

fn mul(self, factor: f64) -> ElementLoad3

Performs the * operation. Read more
Source§

impl PartialEq for ElementLoad3

Source§

fn eq(&self, other: &ElementLoad3) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ElementLoad3

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
§

impl<T> Boilerplate for T
where T: Copy + Send + Sync + Debug + PartialEq + 'static,

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
§

impl<T> ByRef<T> for T

§

fn by_ref(&self) -> &T

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.

§

impl<T, U> Imply<T> for U
where T: ?Sized, U: ?Sized,

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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,

§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
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.