libMesh
Public Member Functions | Public Attributes | List of all members
libMesh::DynaIO::ElementDefinition Struct Reference

Defines mapping from libMesh element types to LS-DYNA element types or vice-versa. More...

Public Member Functions

 ElementDefinition (ElemType type_in, dyna_int_type dyna_type_in, dyna_int_type dim_in, dyna_int_type p_in)
 
 ElementDefinition (ElemType type_in, dyna_int_type dyna_type_in, dyna_int_type dim_in, dyna_int_type p_in, std::vector< unsigned int > &&nodes_in)
 

Public Attributes

ElemType type
 
dyna_int_type dyna_type
 
dyna_int_type dim
 
dyna_int_type p
 
std::vector< unsigned intnodes
 

Detailed Description

Defines mapping from libMesh element types to LS-DYNA element types or vice-versa.

For the foreseeable future only isotropic p elements, with the same polynomial degree in every direction, are supported.

Definition at line 145 of file dyna_io.h.

Constructor & Destructor Documentation

◆ ElementDefinition() [1/2]

libMesh::DynaIO::ElementDefinition::ElementDefinition ( ElemType  type_in,
dyna_int_type  dyna_type_in,
dyna_int_type  dim_in,
dyna_int_type  p_in 
)

Definition at line 91 of file dyna_io.C.

94  :
95  type(type_in),
96  dyna_type(dyna_type_in),
97  dim(dim_in),
98  p(p_in)
99 {
100  const unsigned int n_nodes = Elem::type_to_n_nodes_map[type_in];
101  nodes.resize(n_nodes);
102  std::iota(nodes.begin(), nodes.end(), 0);
103 }

References libMesh::Utility::iota(), n_nodes, and libMesh::Elem::type_to_n_nodes_map.

◆ ElementDefinition() [2/2]

libMesh::DynaIO::ElementDefinition::ElementDefinition ( ElemType  type_in,
dyna_int_type  dyna_type_in,
dyna_int_type  dim_in,
dyna_int_type  p_in,
std::vector< unsigned int > &&  nodes_in 
)

Definition at line 107 of file dyna_io.C.

111  :
112  type(type_in),
113  dyna_type(dyna_type_in),
114  dim(dim_in),
115  p(p_in),
116  nodes(nodes_in)
117 {}

Member Data Documentation

◆ dim

dyna_int_type libMesh::DynaIO::ElementDefinition::dim

Definition at line 160 of file dyna_io.h.

Referenced by libMesh::DynaIO::ElementMaps::add_def().

◆ dyna_type

dyna_int_type libMesh::DynaIO::ElementDefinition::dyna_type

Definition at line 159 of file dyna_io.h.

Referenced by libMesh::DynaIO::ElementMaps::add_def().

◆ nodes

std::vector<unsigned int> libMesh::DynaIO::ElementDefinition::nodes

Definition at line 162 of file dyna_io.h.

Referenced by libMesh::DynaIO::read_mesh().

◆ p

dyna_int_type libMesh::DynaIO::ElementDefinition::p

Definition at line 161 of file dyna_io.h.

Referenced by libMesh::DynaIO::ElementMaps::add_def().

◆ type

ElemType libMesh::DynaIO::ElementDefinition::type

Definition at line 158 of file dyna_io.h.

Referenced by libMesh::DynaIO::ElementMaps::add_def(), and libMesh::DynaIO::read_mesh().


The documentation for this struct was generated from the following files:
libMesh::DynaIO::ElementDefinition::dyna_type
dyna_int_type dyna_type
Definition: dyna_io.h:159
libMesh::DynaIO::ElementDefinition::type
ElemType type
Definition: dyna_io.h:158
libMesh::DynaIO::ElementDefinition::dim
dyna_int_type dim
Definition: dyna_io.h:160
libMesh::DynaIO::ElementDefinition::nodes
std::vector< unsigned int > nodes
Definition: dyna_io.h:162
libMesh::Utility::iota
void iota(ForwardIter first, ForwardIter last, T value)
Utility::iota is a duplication of the SGI STL extension std::iota.
Definition: utility.h:105
n_nodes
const dof_id_type n_nodes
Definition: tecplot_io.C:68
libMesh::Elem::type_to_n_nodes_map
static const unsigned int type_to_n_nodes_map[INVALID_ELEM]
This array maps the integer representation of the ElemType enum to the number of nodes in the element...
Definition: elem.h:576
libMesh::DynaIO::ElementDefinition::p
dyna_int_type p
Definition: dyna_io.h:161