automesh

Struct FiniteElements

source
pub struct FiniteElements { /* private fields */ }
Expand description

The finite elements type.

Implementations§

source§

impl FiniteElements

Inherent implementation of the finite elements type.

source

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.

source

pub fn calculate_nodal_hierarchy(&mut self) -> Result<(), &str>

Calculates and sets the nodal hierarchy.

source

pub fn calculate_node_element_connectivity(&mut self) -> Result<(), &str>

Calculates and sets the node-to-element connectivity.

source

pub fn calculate_node_node_connectivity(&mut self) -> Result<(), &str>

Calculates and sets the node-to-node connectivity.

source

pub fn get_element_blocks(&self) -> &Vec<usize>

Returns a reference to the element blocks.

source

pub fn get_element_node_connectivity(&self) -> &Vec<Vec<usize>>

Returns a reference to the element-to-node connectivity.

source

pub fn get_exterior_nodes(&self) -> &Vec<usize>

Returns a reference to the exterior nodes.

source

pub fn get_interface_nodes(&self) -> &Vec<usize>

Returns a reference to the interface nodes.

source

pub fn get_interior_nodes(&self) -> &Vec<usize>

Returns a reference to the interior nodes.

source

pub fn get_nodal_coordinates(&self) -> &Vec<Vec<f64>>

Returns a reference to the nodal coordinates.

source

pub fn get_node_element_connectivity(&self) -> &Vec<Vec<usize>>

Returns a reference to the node-to-element connectivity.

source

pub fn get_node_node_connectivity(&self) -> &Vec<Vec<usize>>

Returns a reference to the node-to-node connectivity.

Trait Implementations§

source§

impl Abaqus for FiniteElements

Abaqus implementation of the finite elements type.

source§

fn write_inp(&self, file_path: &str) -> Result<(), Error>

Writes the finite element data to a new Abaqus input file.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

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 more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.