Load

Struct Load 

Source
pub struct Load {
    pub origin: f64,
    pub end: f64,
    pub magnitude: Box<dyn Fn(f64) -> f64>,
}
Expand description

Load represents a non-reactive force applied to a beam. This could be the weight of some object being supported, like another beam a working load or anything else which acts directly on the beam. Loads are defined by three things:

  1. origin: relative position beyond which the force acts on the beam
  2. end: relative position where the force stops acting on the beam
  3. magnitude: a function which accepts a relative position as an argument and returns some value in units of force. ie f(x) = x * 2

Fields§

§origin: f64§end: f64§magnitude: Box<dyn Fn(f64) -> f64>

Implementations§

Source§

impl Load

Source

pub fn new(origin: f64, end: f64, magnitude: fn(x: f64) -> f64) -> Load

Takes a start point, end point (relative to the beam) and a function the function can be any function which takes a location on the beam ie the x variable, and returns a number (the magnitude of the load)

Source

pub fn point(location: f64, magnitude: f64) -> Load

convenience function to allow quick definition of point loads. Point loads are the same as concentrated loads, or a force acting on a beam which is located at a single point. If the beam is supporting another beam joined by a pin, the force caused by the weight of the supported beam would be an example of a point load. Arguments:

  • location: relative position on the beam where weight is concentrated
  • magnitude: weight or force applied.
Source

pub fn distributed(origin: f64, end: f64, magnitude: f64) -> Load

Convenience function to allow quick definition of distributed loads. Distributed loads refer to weight which is uniformly distributed across all or part of the beam. Supported objects with a wide contact area with the supporting beam could be modeled as a distributed load. Arguments:

  • origin: starting point relative to the beam in units of length
  • end: end point of the load
  • magnitude: the unit force per unit length (ie 1 pound per foot)

Auto Trait Implementations§

§

impl Freeze for Load

§

impl !RefUnwindSafe for Load

§

impl !Send for Load

§

impl !Sync for Load

§

impl Unpin for Load

§

impl !UnwindSafe for Load

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.