pub struct FiniteElements { /* private fields */ }Expand description
The finite elements type.
Implementations§
source§impl FiniteElements
impl FiniteElements
Inherent implementation of the finite elements type.
sourcepub fn from_data(
element_blocks: Vec<usize>,
element_node_connectivity: Vec<Vec<usize>>,
nodal_coordinates: Vec<Vec<f64>>,
) -> Self
pub fn from_data( element_blocks: Vec<usize>, element_node_connectivity: Vec<Vec<usize>>, nodal_coordinates: Vec<Vec<f64>>, ) -> Self
Constructs and returns a new finite elements type from data.
sourcepub fn calculate_nodal_hierarchy(&mut self) -> Result<(), &str>
pub fn calculate_nodal_hierarchy(&mut self) -> Result<(), &str>
Calculates and sets the nodal hierarchy.
sourcepub fn calculate_node_element_connectivity(&mut self) -> Result<(), &str>
pub fn calculate_node_element_connectivity(&mut self) -> Result<(), &str>
Calculates and sets the node-to-element connectivity.
sourcepub fn calculate_node_node_connectivity(&mut self) -> Result<(), &str>
pub fn calculate_node_node_connectivity(&mut self) -> Result<(), &str>
Calculates and sets the node-to-node connectivity.
sourcepub fn get_element_blocks(&self) -> &Vec<usize>
pub fn get_element_blocks(&self) -> &Vec<usize>
Returns a reference to the element blocks.
sourcepub fn get_element_node_connectivity(&self) -> &Vec<Vec<usize>>
pub fn get_element_node_connectivity(&self) -> &Vec<Vec<usize>>
Returns a reference to the element-to-node connectivity.
sourcepub fn get_exterior_nodes(&self) -> &Vec<usize>
pub fn get_exterior_nodes(&self) -> &Vec<usize>
Returns a reference to the exterior nodes.
sourcepub fn get_interface_nodes(&self) -> &Vec<usize>
pub fn get_interface_nodes(&self) -> &Vec<usize>
Returns a reference to the interface nodes.
sourcepub fn get_interior_nodes(&self) -> &Vec<usize>
pub fn get_interior_nodes(&self) -> &Vec<usize>
Returns a reference to the interior nodes.
sourcepub fn get_nodal_coordinates(&self) -> &Vec<Vec<f64>>
pub fn get_nodal_coordinates(&self) -> &Vec<Vec<f64>>
Returns a reference to the nodal coordinates.
sourcepub fn get_node_element_connectivity(&self) -> &Vec<Vec<usize>>
pub fn get_node_element_connectivity(&self) -> &Vec<Vec<usize>>
Returns a reference to the node-to-element connectivity.
sourcepub fn get_node_node_connectivity(&self) -> &Vec<Vec<usize>>
pub fn get_node_node_connectivity(&self) -> &Vec<Vec<usize>>
Returns a reference to the node-to-node connectivity.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FiniteElements
impl RefUnwindSafe for FiniteElements
impl Send for FiniteElements
impl Sync for FiniteElements
impl Unpin for FiniteElements
impl UnwindSafe for FiniteElements
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more