SCOREC core
Parallel unstructured mesh tools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
crvTables.h
Go to the documentation of this file.
1 /*
2  * Copyright 2015 Scientific Computation Research Center
3  *
4  * This work is open source software, licensed under the terms of the
5  * BSD license as described in the LICENSE file in the top-level directory.
6  */
7 
8 #ifndef CRVTABLES_H
9 #define CRVTABLES_H
10 
11 #include "apf.h"
12 #include "apfMesh.h"
13 
17 namespace crv {
18 
21 extern unsigned const* const* const b2[11];
24 extern unsigned const* const* const* const b3[5];
25 
28 extern unsigned const* const* const* const tet_tri[7];
29 
32 extern apf::Vector3 const* const elem_vert_xi[apf::Mesh::TYPES];
35 extern apf::Vector3 const* const elem_edge_xi[apf::Mesh::TYPES];
36 
40 static int const tet_tri_edges[4][3] =
41 {{0,1,2},{0,4,3},{1,5,4},{2,5,3}};
45 static bool const flip_tet_tri_edges[4][3] =
46 {{0,0,0},{0,0,1},{0,0,1},{1,0,1}};
47 
51 static int const vertEdges[4][3] = {{3,0,2},{0,4,1},{1,5,2},{3,5,4}};
52 
54 static int const oppEdges[6] = {5,3,4,1,2,0};
55 
58 static int const edgeFaces[6][2] = {{1,0},{2,0},{3,0},{3,1},{1,2},{2,3}};
59 
60 }
61 
62 #endif
The APF Field interface.
placeholder to set array sizes
Definition: apfMesh.h:166
unsigned const *const *const *const tet_tri[7]
table of alignment used in alignSharedNodes, tet_tri[order][flip][rotate][node];
unsigned const *const *const b2[11]
table of indices for triangles, b2[order][i][j], only up to 10th order is stored, higher can be gener...
apf::Vector3 const *const elem_edge_xi[apf::Mesh::TYPES]
parametric locations of midpoint nodes given an edge number, elem_edge_xi[type][edge_index] ...
convenience wrapper over apf::Vector<3>
Definition: apfVector.h:150
unsigned const *const *const *const b3[5]
table of indices for tets, b3[order][i][j][k], only up to 4th order is stored, higher can be generate...
The APF Mesh interface.
apf::Vector3 const *const elem_vert_xi[apf::Mesh::TYPES]
parametric locations of midpoint nodes given a vertex number, elem_vert_xi[type][vertex_index] ...