MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::cubit Namespace Reference

Enumerations

enum  CubitElementType {
  ELEMENT_TRI3 , ELEMENT_TRI6 , ELEMENT_QUAD4 , ELEMENT_QUAD9 ,
  ELEMENT_TET4 , ELEMENT_TET10 , ELEMENT_HEX8 , ELEMENT_HEX27
}
 
enum  CubitFaceType {
  FACE_EDGE2 , FACE_EDGE3 , FACE_TRI3 , FACE_TRI6 ,
  FACE_QUAD4 , FACE_QUAD9
}
 

Functions

mfem::ElementNewElement (Mesh &mesh, Geometry::Type geom, const int *vertices, const int attribute)
 
mfem::ElementCreateCubitElement (Mesh &mesh, const int cubit_element_type, const int *vertex_ids, const int block_id)
 Returns a pointer to a new mfem::Element based on the provided cubit element type. This is used to create the mesh elements from a Genesis file.
 
mfem::ElementCreateCubitBoundaryElement (Mesh &mesh, const int cubit_face_type, const int *vertex_ids, const int sideset_id)
 Returns a pointer to a new mfem::Element based on the provided cubit face type. This is used to create the boundary elements from a Genesis file.
 
void FinalizeCubitSecondOrderMesh (Mesh &mesh, const int cubit_element_type, const int num_element_blocks, const int num_nodes_per_element, const int *start_of_block, const double *coordx, const double *coordy, const double *coordz, const vector< vector< int > > &element_blocks)
 The final step in constructing the mesh from a Genesis file. This is only called if the mesh order == 2 (determined internally from the cubit element type).
 

Variables

const int mfem_to_genesis_tet10 [10]
 
const int mfem_to_genesis_hex27 [27]
 
const int mfem_to_genesis_tri6 [6]
 
const int mfem_to_genesis_quad9 [9]
 
const int cubit_side_map_tri3 [3][2]
 
const int cubit_side_map_quad4 [4][2]
 
const int cubit_side_map_tri6 [3][3]
 
const int cubit_side_map_quad9 [4][3]
 
const int cubit_side_map_tet4 [4][3]
 
const int cubit_side_map_tet10 [4][6]
 
const int cubit_side_map_hex8 [6][4]
 
const int cubit_side_map_hex27 [6][9]
 

Enumeration Type Documentation

◆ CubitElementType

Enumerator
ELEMENT_TRI3 
ELEMENT_TRI6 
ELEMENT_QUAD4 
ELEMENT_QUAD9 
ELEMENT_TET4 
ELEMENT_TET10 
ELEMENT_HEX8 
ELEMENT_HEX27 

Definition at line 2943 of file mesh_readers.cpp.

◆ CubitFaceType

Enumerator
FACE_EDGE2 
FACE_EDGE3 
FACE_TRI3 
FACE_TRI6 
FACE_QUAD4 
FACE_QUAD9 

Definition at line 2955 of file mesh_readers.cpp.

Function Documentation

◆ CreateCubitBoundaryElement()

mfem::Element * mfem::cubit::CreateCubitBoundaryElement ( Mesh & mesh,
const int cubit_face_type,
const int * vertex_ids,
const int sideset_id )

Returns a pointer to a new mfem::Element based on the provided cubit face type. This is used to create the boundary elements from a Genesis file.

Definition at line 3468 of file mesh_readers.cpp.

◆ CreateCubitElement()

mfem::Element * mfem::cubit::CreateCubitElement ( Mesh & mesh,
const int cubit_element_type,
const int * vertex_ids,
const int block_id )

Returns a pointer to a new mfem::Element based on the provided cubit element type. This is used to create the mesh elements from a Genesis file.

Definition at line 3441 of file mesh_readers.cpp.

◆ FinalizeCubitSecondOrderMesh()

void mfem::cubit::FinalizeCubitSecondOrderMesh ( Mesh & mesh,
const int cubit_element_type,
const int num_element_blocks,
const int num_nodes_per_element,
const int * start_of_block,
const double * coordx,
const double * coordy,
const double * coordz,
const vector< vector< int > > & element_blocks )

The final step in constructing the mesh from a Genesis file. This is only called if the mesh order == 2 (determined internally from the cubit element type).

Definition at line 3493 of file mesh_readers.cpp.

◆ NewElement()

mfem::Element * mfem::cubit::NewElement ( Mesh & mesh,
Geometry::Type geom,
const int * vertices,
const int attribute )

Definition at line 3430 of file mesh_readers.cpp.

Variable Documentation

◆ cubit_side_map_hex27

const int mfem::cubit::cubit_side_map_hex27[6][9]
Initial value:
=
{
{1,2,6,5,9,14,17,13,26},
{2,3,7,6,10,15,18,14,25},
{4,3,7,8,11,15,19,16,27},
{1,4,8,5,12,16,20,13,24},
{1,4,3,2,12,11,10,9,22},
{5,8,7,6,20,19,18,17,23}
}

Definition at line 2932 of file mesh_readers.cpp.

◆ cubit_side_map_hex8

const int mfem::cubit::cubit_side_map_hex8[6][4]
Initial value:
=
{
{1,2,6,5},
{2,3,7,6},
{4,3,7,8},
{1,4,8,5},
{1,4,3,2},
{5,8,7,6}
}

Definition at line 2922 of file mesh_readers.cpp.

◆ cubit_side_map_quad4

const int mfem::cubit::cubit_side_map_quad4[4][2]
Initial value:
=
{
{1,2},
{2,3},
{3,4},
{4,1},
}

Definition at line 2883 of file mesh_readers.cpp.

◆ cubit_side_map_quad9

const int mfem::cubit::cubit_side_map_quad9[4][3]
Initial value:
=
{
{1,2,5},
{2,3,6},
{3,4,7},
{4,1,8},
}

Definition at line 2898 of file mesh_readers.cpp.

◆ cubit_side_map_tet10

const int mfem::cubit::cubit_side_map_tet10[4][6]
Initial value:
=
{
{1,2,4,5,9,8},
{2,3,4,6,10,9},
{1,4,3,8,10,7},
{1,3,2,7,6,5}
}

Definition at line 2914 of file mesh_readers.cpp.

◆ cubit_side_map_tet4

const int mfem::cubit::cubit_side_map_tet4[4][3]
Initial value:
=
{
{1,2,4},
{2,3,4},
{1,4,3},
{1,3,2}
}

Definition at line 2906 of file mesh_readers.cpp.

◆ cubit_side_map_tri3

const int mfem::cubit::cubit_side_map_tri3[3][2]
Initial value:
=
{
{1,2},
{2,3},
{3,1},
}

Definition at line 2876 of file mesh_readers.cpp.

◆ cubit_side_map_tri6

const int mfem::cubit::cubit_side_map_tri6[3][3]
Initial value:
=
{
{1,2,4},
{2,3,5},
{3,1,6},
}

Definition at line 2891 of file mesh_readers.cpp.

◆ mfem_to_genesis_hex27

const int mfem::cubit::mfem_to_genesis_hex27[27]
Initial value:
=
{
1,2,3,4,5,6,7,8,9,10,11,
12,17,18,19,20,13,14,15,
16,22,26,25,27,24,23,21
}

Definition at line 2854 of file mesh_readers.cpp.

◆ mfem_to_genesis_quad9

const int mfem::cubit::mfem_to_genesis_quad9[9]
Initial value:
=
{
1,2,3,4,5,6,7,8,9
}

Definition at line 2871 of file mesh_readers.cpp.

◆ mfem_to_genesis_tet10

const int mfem::cubit::mfem_to_genesis_tet10[10]
Initial value:
=
{
1,2,3,4,5,7,8,6,9,10
}

Definition at line 2848 of file mesh_readers.cpp.

◆ mfem_to_genesis_tri6

const int mfem::cubit::mfem_to_genesis_tri6[6]
Initial value:
=
{
1,2,3,4,5,6
}

Definition at line 2866 of file mesh_readers.cpp.