MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
gmsh.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  mfem
 

Functions

int mfem::BarycentricToGmshTet (int *b, int ref)
 
int mfem::CartesianToGmshQuad (int idx_in[], int ref)
 
int mfem::CartesianToGmshHex (int idx_in[], int ref)
 
int mfem::WedgeToGmshPri (int idx_in[], int ref)
 
int mfem::CartesianToGmshPyramid (int idx_in[], int ref)
 
Gmsh High-Order Vertex Mappings

These functions generate the mappings needed to translate the order of Gmsh's high-order vertices into MFEM's L2 degree of freedom ordering. The mapping is defined so that MFEM_DoF[i] = Gmsh_Vert[map[i]]. The map array must already be allocated with the proper number of entries for the element type at the given element order.

void mfem::GmshHOSegmentMapping (int order, int *map)
 Generate Gmsh vertex mapping for a Segment.
 
void mfem::GmshHOTriangleMapping (int order, int *map)
 Generate Gmsh vertex mapping for a Triangle.
 
void mfem::GmshHOQuadrilateralMapping (int order, int *map)
 Generate Gmsh vertex mapping for a Quadrilateral.
 
void mfem::GmshHOTetrahedronMapping (int order, int *map)
 Generate Gmsh vertex mapping for a Tetrahedron.
 
void mfem::GmshHOHexahedronMapping (int order, int *map)
 Generate Gmsh vertex mapping for a Hexahedron.
 
void mfem::GmshHOWedgeMapping (int order, int *map)
 Generate Gmsh vertex mapping for a Wedge.
 
void mfem::GmshHOPyramidMapping (int order, int *map)
 Generate Gmsh vertex mapping for a Pyramid.