Struct trussx::Truss [−][src]
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]
&mut self,
ab: EdgeIndex,
elastic_modulus: f64,
yield_strength: f64
)
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]
&mut self,
elastic_modulus: f64,
yield_strength: f64
)
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
Auto Trait Implementations
impl RefUnwindSafe for Truss
[src]
impl Send for Truss
[src]
impl Sync for Truss
[src]
impl Unpin for Truss
[src]
impl UnwindSafe for Truss
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,