pub struct Model {Show 14 fields
pub epsilon: f64,
pub dimension: u8,
pub degrees_of_freedom: u8,
pub f: Vector,
pub u: Vector,
pub m: CooMat,
pub f_r: Vector,
pub u_r: Vector,
pub m_r: CooMat,
pub u_boundary_conditions: Vec<Option<f64>>,
pub elements: HashMap<Vec<usize>, Box<Element>>,
pub nodes: Vec<Rc<Node>>,
pub materials: Vec<Rc<Material>>,
pub sections: Vec<Rc<Section>>,
}Fields§
§epsilon: f64§dimension: u8§degrees_of_freedom: u8§f: Vector§u: Vector§m: CooMat§f_r: Vector§u_r: Vector§m_r: CooMat§u_boundary_conditions: Vec<Option<f64>>§elements: HashMap<Vec<usize>, Box<Element>>§nodes: Vec<Rc<Node>>§materials: Vec<Rc<Material>>§sections: Vec<Rc<Section>>Implementations§
Source§impl Model
impl Model
pub fn new(dim: u8, epsilon: f64) -> Self
pub fn save(&self, file: &str)
pub fn load(file: &str) -> Self
pub fn add_element( &mut self, element: ElementType, nodes: Vec<usize>, material: usize, section: usize, ) -> &mut Self
pub fn add_node(&mut self, node: Node) -> &mut Self
pub fn add_material(&mut self, material: Material) -> &mut Self
pub fn add_section(&mut self, section: Section) -> &mut Self
pub fn solve(&mut self) -> &mut Self
pub fn reduce(&mut self) -> &mut Self
pub fn developp(&mut self) -> &mut Self
pub fn add_u_boundary_condition( &mut self, node: usize, field: u8, value: f64, ) -> &mut Self
pub fn remove_u_boundary_condition( &mut self, node: usize, field: u8, ) -> &mut Self
pub fn set_force(&mut self, node: usize, field: u8, value: f64) -> &mut Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Model
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl !Send for Model
impl !Sync for Model
impl Unpin for Model
impl UnwindSafe for Model
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more