MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
gmsh.hpp
Go to the documentation of this file.
1// Copyright (c) 2010-2024, Lawrence Livermore National Security, LLC. Produced
2// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
3// LICENSE and NOTICE for details. LLNL-CODE-806117.
4//
5// This file is part of the MFEM library. For more information and source code
6// availability visit https://mfem.org.
7//
8// MFEM is free software; you can redistribute it and/or modify it under the
9// terms of the BSD-3 license. We welcome feedback and contributions, see file
10// CONTRIBUTING.md for details.
11
12#ifndef MFEM_GMSH
13#define MFEM_GMSH
14
15namespace mfem
16{
17
18// Helpers for reading high order elements in Gmsh format
19
20/** @name Gmsh High-Order Vertex Mappings
21
22 These functions generate the mappings needed to translate the order of
23 Gmsh's high-order vertices into MFEM's L2 degree of freedom ordering. The
24 mapping is defined so that MFEM_DoF[i] = Gmsh_Vert[map[i]]. The @a map
25 array must already be allocated with the proper number of entries for the
26 element type at the given element @a order.
27*/
28///@{
29
30/// @brief Generate Gmsh vertex mapping for a Segment
31void GmshHOSegmentMapping(int order, int *map);
32
33/// @brief Generate Gmsh vertex mapping for a Triangle
34void GmshHOTriangleMapping(int order, int *map);
35
36/// @brief Generate Gmsh vertex mapping for a Quadrilateral
37void GmshHOQuadrilateralMapping(int order, int *map);
38
39/// @brief Generate Gmsh vertex mapping for a Tetrahedron
40void GmshHOTetrahedronMapping(int order, int *map);
41
42/// @brief Generate Gmsh vertex mapping for a Hexahedron
43void GmshHOHexahedronMapping(int order, int *map);
44
45/// @brief Generate Gmsh vertex mapping for a Wedge
46void GmshHOWedgeMapping(int order, int *map);
47
48/// @brief Generate Gmsh vertex mapping for a Pyramid
49void GmshHOPyramidMapping(int order, int *map);
50
51///@}
52
53} // namespace mfem
54
55#endif
void GmshHOWedgeMapping(int order, int *map)
Generate Gmsh vertex mapping for a Wedge.
Definition gmsh.cpp:453
void GmshHOTriangleMapping(int order, int *map)
Generate Gmsh vertex mapping for a Triangle.
Definition gmsh.cpp:388
void GmshHOPyramidMapping(int order, int *map)
Generate Gmsh vertex mapping for a Pyramid.
Definition gmsh.cpp:470
void GmshHOTetrahedronMapping(int order, int *map)
Generate Gmsh vertex mapping for a Tetrahedron.
Definition gmsh.cpp:417
void GmshHOSegmentMapping(int order, int *map)
Generate Gmsh vertex mapping for a Segment.
Definition gmsh.cpp:378
void GmshHOQuadrilateralMapping(int order, int *map)
Generate Gmsh vertex mapping for a Quadrilateral.
Definition gmsh.cpp:403
void GmshHOHexahedronMapping(int order, int *map)
Generate Gmsh vertex mapping for a Hexahedron.
Definition gmsh.cpp:436