pub struct Mesh2D<U = u32, F = f64>where
U: Unsigned + Copy + Debug,
F: Float + Debug,
Error: From<U::FromStrRadixErr> + From<F::FromStrRadixErr>,{
pub material_count_per_element: Option<MaterialCountPerElement<U>>,
pub nodes: Vec<Node<U, F>>,
pub e2ls: Vec<E2L<U>>,
pub e3ls: Vec<E3L<U>>,
pub e3ts: Vec<E3T<U>>,
pub e6ts: Vec<E6T<U>>,
pub e4qs: Vec<E4Q<U>>,
pub e8qs: Vec<E8Q<U>>,
pub e9qs: Vec<E9Q<U>>,
pub nodestring: Vec<Nodestring<U>>,
}Expand description
Representation of a .2dm file, as defined in https://www.xmswiki.com/wiki/SMS:2D_Mesh_Files_*.2dm.
You can optionally specify the types of unsigned integers and floats used in this struct using
generic types U and F respectively. The defaults are U = u32 and F = f64.
Fields§
§material_count_per_element: Option<MaterialCountPerElement<U>>Defines number of materials per element.
Corresponds to the card NUM_MATERIALS_PER_ELEM.
This card is mandatory, but did not exist prior to v11.0.
nodes: Vec<Node<U, F>>All nodes defined by the mesh.
e2ls: Vec<E2L<U>>All 2-noded linear elements defined by the mesh.
e3ls: Vec<E3L<U>>All 3-noded linear elements defined by the mesh.
e3ts: Vec<E3T<U>>All 3-noded triangular elements defined by the mesh.
e6ts: Vec<E6T<U>>All 6-noded triangular elements defined by the mesh.
e4qs: Vec<E4Q<U>>All 4-noded quadrilateral elements defined by the mesh.
e8qs: Vec<E8Q<U>>All 8-noded quadrilateral elements defined by the mesh.
e9qs: Vec<E9Q<U>>All 9-noded quadrilateral elements defined by the mesh.
nodestring: Vec<Nodestring<U>>All nodestrings defined by the mesh.