| 1 |
// @HEADER |
| 2 |
// ***************************************************************************** |
| 3 |
// Pamgen Package |
| 4 |
// |
| 5 |
// Copyright 2004 NTESS and the Pamgen contributors. |
| 6 |
// SPDX-License-Identifier: LGPL-2.1-or-later |
| 7 |
// ***************************************************************************** |
| 8 |
// @HEADER |
| 9 |
|
| 10 |
#ifndef element_dictionaryH |
| 11 |
#define element_dictionaryH |
| 12 |
|
| 13 |
#include "pamgen_code_types.h" |
| 14 |
namespace PAMGEN_NEVADA { |
| 15 |
|
| 16 |
|
| 17 |
const uint MAX_ELEMENT_FACES = 24; // for HEX27 |
| 18 |
|
| 19 |
enum Element_Type { |
| 20 |
UNKNOWN_ELEMENT = 0, CIRCLE, SPHERE, QUAD4, QUAD8, |
| 21 |
QUAD9, TRI3, TRI6, TRI7, SHELL4, |
| 22 |
SHELL8, HEX8, HEX20, HEX27, TET4, TET8, |
| 23 |
TET10, TET15, WEDGE6, WEDGE18, BEAM2, |
| 24 |
BEAM3, TRUSS2, TRUSS3, STRUCT1D, STRUCT2D, |
| 25 |
STRUCT3D, SFACET3D, PYRAMID5, SEG2, SEG3, |
| 26 |
MAX_EL_TYPES |
| 27 |
}; |
| 28 |
|
| 29 |
enum Element_Class { |
| 30 |
EL_UNKNOWN = 0, EL_CONTINUUM, EL_STRUCTURAL |
| 31 |
}; |
| 32 |
|
| 33 |
struct Element_Info |
| 34 |
{ |
| 35 |
uint nodes; |
| 36 |
uint edges; |
| 37 |
uint faces; |
| 38 |
uint max_nodes_per_face; |
| 39 |
uint number_of_stress_points; |
| 40 |
Element_Class element_class; |
| 41 |
}; |
| 42 |
|
| 43 |
extern const Element_Info element_info[MAX_EL_TYPES]; |
| 44 |
extern const int nodes_per_face[MAX_EL_TYPES]; |
| 45 |
extern const int faces_per_element[MAX_EL_TYPES]; |
| 46 |
extern const int edges_per_element[MAX_EL_TYPES]; |
| 47 |
|
| 48 |
/* translations tables do not include the nonstandard element TET8 */ |
| 49 |
|
| 50 |
/* node to side translation tables - |
| 51 |
* These tables are used to look up the side number based on the |
| 52 |
* first and second node in the side/face list. The side node order |
| 53 |
* is found in the original Exodus document, SAND87-2997. The element |
| 54 |
* node order is found in the ExodusII document, SAND92-2137. These |
| 55 |
* tables were generated by following the right-hand rule for determining |
| 56 |
* the outward normal. Note: Only the more complex 3-D shapes require |
| 57 |
* these tables, the simple shapes are trivial - the first node found |
| 58 |
* is also the side number. |
| 59 |
*/ |
| 60 |
|
| 61 |
extern const int shell_node_to_side_table[2][8]; |
| 62 |
extern const int tetra_node_to_side_table[2][12]; |
| 63 |
extern const int wedge_node_to_side_table[2][18]; |
| 64 |
extern const int hex_node_to_side_table[2][24]; |
| 65 |
|
| 66 |
/* side to node translation tables - |
| 67 |
* These tables are used to look up the side number based on the |
| 68 |
* first and second node in the side/face list. The side node order |
| 69 |
* is found in the original Exodus document, SAND87-2997. The element |
| 70 |
* node order is found in the ExodusII document, SAND92-2137. These |
| 71 |
* tables were generated by following the right-hand rule for determining |
| 72 |
* the outward normal. |
| 73 |
*/ |
| 74 |
|
| 75 |
extern const int tri_side_to_node_table[3][3]; |
| 76 |
extern const int quad_side_to_node_table[4][3]; |
| 77 |
extern const int shell_side_to_node_table[2][8]; |
| 78 |
extern const int tetra_side_to_node_table[4][7]; |
| 79 |
extern const int wedge_side_to_node_table[5][8]; |
| 80 |
extern const int hex_side_to_node_table[6][8]; |
| 81 |
|
| 82 |
extern const char* Element_Type_Names[MAX_EL_TYPES]; |
| 83 |
|
| 84 |
} // end namespace PAMGEN_NEVADA { |
| 85 |
#endif |