Struct trussx::Truss[][src]

pub struct Truss { /* fields omitted */ }

This is the truss object that contains all of the necessary information about trusses

Implementations

impl Truss[src]

pub fn new() -> Truss[src]

This function instantiates an empty truss

pub fn add_joint(&mut self, position: [f64; 3]) -> NodeIndex[src]

This function creates a new joint

pub fn add_edge(&mut self, a: NodeIndex, b: NodeIndex) -> EdgeIndex[src]

This function creates a new member to connect two joints

pub fn move_joint(&mut self, a: NodeIndex, position: [f64; 3])[src]

This function moves a joint

pub fn delete_joint(&mut self, a: NodeIndex)[src]

This function deletes a joint

pub fn delete_member(&mut self, ab: EdgeIndex)[src]

This function deletes a member

pub fn set_reactions(&mut self, a: NodeIndex, reaction: [bool; 3])[src]

Set reaction forces available at each joint

pub fn set_material(
    &mut self,
    ab: EdgeIndex,
    elastic_modulus: f64,
    yield_strength: f64
)
[src]

Set material for a member

pub fn set_shape(&mut self, ab: EdgeIndex, shape: StructuralShape)[src]

Set shape for a member

pub fn set_material_for_all(
    &mut self,
    elastic_modulus: f64,
    yield_strength: f64
)
[src]

Set material for all members

pub fn set_shape_for_all(&mut self, shape: StructuralShape)[src]

Set material for all members

pub fn evaluate(&mut self)[src]

This function calculates the forces in each member and outputs a report

Trait Implementations

impl Default for Truss[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.