Dune Core Modules (unstable)

types.hh
1// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file AUTHORS.md
2// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception OR LGPL-3.0-or-later
3
4#ifndef DUNE_GRID_IO_FILE_GMSH_TYPES_HH
5#define DUNE_GRID_IO_FILE_GMSH_TYPES_HH
6
7#include <cstdint>
8#include <map>
9#include <string>
10#include <vector>
11
13#include <dune/geometry/type.hh>
14
15namespace Dune::Impl::Gmsh
16{
18 GeometryType gmshNumberToGeometryType (int elementType);
19
21 class CellType
22 {
23 public:
24 CellType (GeometryType const& t);
25
27 GeometryType type () const
28 {
29 return type_;
30 }
31
33 int gmshVertexToDuneVertex (int idx) const
34 {
35 return permutation_[idx];
36 }
37
39 bool identityPermutation () const
40 {
41 return identityPermutation_;
42 }
43
44 private:
45 GeometryType type_;
46 std::vector<int> permutation_;
47 bool identityPermutation_;
48 };
49
50} // end namespace Dune::Impl::Gmsh
51
52#endif
GeometryType
Type representing VTK's entity geometry types.
Definition: common.hh:132
Type traits to determine the type of reals (when working with complex numbers)
A unique label for each type of element that can occur in a grid.
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden & Uni Heidelberg  |  generated with Hugo v0.111.3 (Nov 2, 23:43, 2025)