NLMech  0.1.0
GlobalVars

VTK Element types

static const int util::vtk_type_vertex = 1
 Element type (for vtk)

 
static const int util::vtk_type_poly_vertex = 2
 
static const int util::vtk_type_line = 3
 
static const int util::vtk_type_poly_line = 4
 
static const int util::vtk_type_triangle = 5
 
static const int util::vtk_type_triangle_strip = 6
 
static const int util::vtk_type_polygon = 7
 
static const int util::vtk_type_pixel = 8
 
static const int util::vtk_type_quad = 9
 
static const int util::vtk_type_tetra = 10
 
static const int util::vtk_type_voxel = 11
 
static const int util::vtk_type_hexahedron = 12
 
static const int util::vtk_type_wedge = 13
 
static const int util::vtk_type_pyramid = 14
 
static int util::vtk_map_element_to_num_nodes [16]
 Map from element type to number of nodes (for vtk) More...
 
static int util::vtk_to_msh_element_type_map [16]
 Map from vtk element type to msh element type. More...
 

Gmsh Element types

static const int util::msh_type_line = 1
 Element type (for gmsh)

 
static const int util::msh_type_triangle = 2
 
static const int util::msh_type_quadrangle = 3
 
static const int util::msh_type_tetrahedron = 4
 
static const int util::msh_type_hexahedron = 5
 
static const int util::msh_type_prism = 6
 
static const int util::msh_type_pyramid = 7
 
static const int util::msh_type_line_second_order = 8
 
static const int util::msh_type_traingle_second_order = 9
 
static const int util::msh_type_quadrangle_second_order = 10
 
static const int util::msh_type_vertex = 15
 
static int util::msh_map_element_to_num_nodes [16]
 Map from element type to number of nodes (for msh) More...
 

Fixity mask

#define FREE_MASK   0x000
 boundary condition mask

 
#define FIX_X_MASK   0x001
 
#define FIX_Y_MASK   0x002
 
#define FIX_Z_MASK   0x004
 

Detailed Description

Variable Documentation

◆ msh_map_element_to_num_nodes

int util::msh_map_element_to_num_nodes[16]
static
Initial value:
= {0, 2, 3, 4, 4, 8, 6, 5,
3, 6, 10, 0, 0, 0, 0, 1}

Map from element type to number of nodes (for msh)

◆ vtk_map_element_to_num_nodes

int util::vtk_map_element_to_num_nodes[16]
static
Initial value:
= {0, 1, -1, 2, -1, 3, -1, -1,
4, 4, 4, 8, 8, 6, 5, -1}

Map from element type to number of nodes (for vtk)

Referenced by rw::writer::MshWriter::appendMesh(), rw::writer::VtkWriter::appendMesh(), fe::Mesh::createData(), rw::reader::VtkReader::readCells(), and rw::reader::VtkReader::readMesh().

◆ vtk_to_msh_element_type_map

int util::vtk_to_msh_element_type_map[16]
static
Initial value:
= {-1, 15, -1, 1, -1, 2, -1, -1,
-1, 3, 4, -1, 5, 6, 7, -1}

Map from vtk element type to msh element type.

Referenced by rw::writer::MshWriter::appendMesh().