Mesh Oriented datABase  (version 5.5.1)
An array-based unstructured mesh library
exodus_order.h
Go to the documentation of this file.
1 #ifndef EXODUS_ORDER_HPP
2 #define EXODUS_ORDER_HPP
3 
4 #include "patran_order.h"
5 
6 #ifdef __cplusplus
7 extern "C" {
8 namespace moab
9 {
10 #endif
11 
12  /* Cubit writes ExodusII files with tet mid-face nodes in this order */
13  static const int exodus_tet8_order[] = { 0, 1, 2, 3, 4, 5, 7, 6 };
14  static const int exodus_tet9_order[] = { 0, 1, 2, 3, 8, 4, 5, 7, 6 };
15  static const int exodus_tet14_order[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 12 };
16  static const int exodus_tet15_order[] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 14, 10, 11, 13, 12 };
17 
18  static const int* exodus_tet_order[] = { 0,
19  0,
20  0,
21  0,
22  0,
23  0,
24  0,
25  0,
28  0,
29  0,
30  0,
31  0,
34  0,
35  0,
36  0,
37  0,
38  0,
39  0,
40  0,
41  0,
42  0,
43  0,
44  0,
45  0 };
46 
47  static const int* const* exodus_hex_order = patran_hex_order;
48 
49  static const int* const* const exodus_elem_order_map[] = { patran_null_order, /* MBVERTEX */
50  patran_null_order, /* MBEDGE */
51  patran_null_order, /* MBTRI */
52  patran_null_order, /* MBQUAD */
53  patran_null_order, /* MBPOLYGON */
54  exodus_tet_order, /* MBTET */
55  patran_null_order, /* MBPYRAMID */
56  patran_pri_order, /* MBPRISM */
57  patran_null_order, /* MBKNIFE */
58  exodus_hex_order, /* MBHEX */
59  patran_null_order, /* MBPOLYHEDRON */
61 
62 #ifdef __cplusplus
63 } // namespace moab
64 
65 /* extern "C" */
66 } /* namespace moab */
67 #endif
68 
69 #endif