Skip to main content

Connectivity

Enum Connectivity 

Source
pub enum Connectivity {
    Hexahedral(PrimitiveConnectivity<3, 8>),
    Polyhedral(PolytopalConnectivity<3>),
    Polygonal(PolytopalConnectivity<2>),
    Pyramidal(PrimitiveConnectivity<3, 5>),
    Quadrilateral(PrimitiveConnectivity<2, 4>),
    Tetrahedral(PrimitiveConnectivity<3, 4>),
    Triangular(PrimitiveConnectivity<2, 3>),
    Wedge(PrimitiveConnectivity<3, 6>),
}

Variants§

§

Hexahedral(PrimitiveConnectivity<3, 8>)

§

Polyhedral(PolytopalConnectivity<3>)

§

Polygonal(PolytopalConnectivity<2>)

§

Pyramidal(PrimitiveConnectivity<3, 5>)

§

Quadrilateral(PrimitiveConnectivity<2, 4>)

§

Tetrahedral(PrimitiveConnectivity<3, 4>)

§

Triangular(PrimitiveConnectivity<2, 3>)

§

Wedge(PrimitiveConnectivity<3, 6>)

Implementations§

Source§

impl Connectivity

Source

pub fn local_faces(&self) -> &'static [&'static [usize]]

Source

pub fn abaqus_side(&self, ordinal: usize) -> usize

Source

pub fn local_face_from_abaqus_side(&self, side: usize) -> usize

Source

pub fn add_edge_adjacency(&self, nodes_nodes: &mut [Vec<usize>])

Source

pub fn is_empty(&self) -> bool

Source

pub fn iter(&self) -> ElementIter<'_>

Source

pub fn element_numbers(&self) -> Option<&[usize]>

Source

pub fn node_element_connectivity(&self) -> &[Vec<usize>]

Source

pub fn number_elements(&mut self, numbers: Vec<usize>)

Source

pub fn number_of_elements(&self) -> usize

Source

pub fn number_of_faces(&self) -> Option<usize>

Source

pub fn number_of_faces_per_element<I>(&self) -> Option<Vec<I>>
where I: Debug + TryFrom<usize, Error = TryFromIntError>,

Source

pub fn number_of_nodes_per_element(&self) -> Option<usize>

Source

pub fn number_of_nodes_per_face<I>(&self) -> Option<Vec<I>>
where I: Debug + TryFrom<usize, Error = TryFromIntError>,

Source

pub fn exodus_element_type(&self) -> &str

Source

pub fn flat_connectivity<I>(&self) -> FlatConnectivity<I>
where I: Debug + TryFrom<usize, Error = TryFromIntError>,

Trait Implementations§

Source§

impl From<Vec<[usize; 3]>> for Connectivity

Source§

fn from(connectivity: Vec<[usize; 3]>) -> Self

Converts to this type from the input type.
Source§

impl<'a> IntoIterator for &'a Connectivity

Source§

type Item = &'a [usize]

The type of the elements being iterated over.
Source§

type IntoIter = ElementIter<'a>

Which kind of iterator are we turning this into?
Source§

fn into_iter(self) -> ElementIter<'a>

Creates an iterator from a value. Read more
Source§

impl TryFrom<Connectivity> for PolytopalConnectivity<2>

Source§

type Error = &'static str

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

fn try_from(connectivity: Connectivity) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Connectivity> for PolytopalConnectivity<3>

Source§

type Error = &'static str

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

fn try_from(connectivity: Connectivity) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Connectivity> for PrimitiveConnectivity<2, 3>

Source§

type Error = &'static str

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

fn try_from(connectivity: Connectivity) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Connectivity> for PrimitiveConnectivity<2, 4>

Source§

type Error = &'static str

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

fn try_from(connectivity: Connectivity) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Connectivity> for PrimitiveConnectivity<3, 4>

Source§

type Error = &'static str

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

fn try_from(connectivity: Connectivity) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Connectivity> for PrimitiveConnectivity<3, 5>

Source§

type Error = &'static str

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

fn try_from(connectivity: Connectivity) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Connectivity> for PrimitiveConnectivity<3, 6>

Source§

type Error = &'static str

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

fn try_from(connectivity: Connectivity) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFrom<Connectivity> for PrimitiveConnectivity<3, 8>

Source§

type Error = &'static str

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

fn try_from(connectivity: Connectivity) -> Result<Self, Self::Error>

Performs the conversion.

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, 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.