qtruss 0.9.2

A simple finite-element solver for trusses.
Documentation
//! Describes an element material.

#[derive(Clone, Copy, Debug)]
/// An element material.
pub struct Material {
    /// Modulus of elasticity
    pub e: f64,
    /// Lower bound on internal stress (tension positive)
    pub minstress: Option<f64>,
    /// Upper bound on internal stress (tension positive)
    pub maxstress: Option<f64>,
}

impl Material {
    /// Constructs a new material.
    pub fn new(
        e: f64,
        minstress: Option<f64>,
        maxstress: Option<f64>,
    ) -> Self {
        Self {
            e,
            minstress,
            maxstress,
        }
    }
}