gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
ElementType.h
Go to the documentation of this file.
1 // Gmsh - Copyright (C) 1997-2022 C. Geuzaine, J.-F. Remacle
2 //
3 // See the LICENSE.txt file in the Gmsh root directory for license information.
4 // Please report all issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
5 
6 #ifndef ELEMENT_TYPE_H
7 #define ELEMENT_TYPE_H
8 
9 #include <string>
10 
11 namespace ElementType {
12  // Give parent type, order & dimension corresponding to any element MSH type.
13  int getParentType(int type);
14  int getOrder(int type);
15  int getDimension(int type);
16 
17  // Give the number of node corresponding to any element MSH type.
18  int getNumVertices(int type);
19 
20  // Gives > 0 if element MSH type is in Serendipity Family.
21  // Gives < 2 if element MSH type is in 'Normal' Family.
22  // 1 is for element MSH type that is either Serendipity or not !
23  int getSerendipity(int type);
24 
25  // Give element MSH type from parent type, order & serendip
26  int getType(int parentType, int order, bool serendip = false);
27 
28  // Give first order element tag
29  int getPrimaryType(int type);
30  std::string nameOfParentType(int type, bool plural = false);
31 } // namespace ElementType
32 
33 #endif
ElementType::nameOfParentType
std::string nameOfParentType(int type, bool plural=false)
Definition: ElementType.cpp:882
ElementType::getSerendipity
int getSerendipity(int type)
Definition: ElementType.cpp:598
ElementType::getPrimaryType
int getPrimaryType(int type)
Definition: ElementType.cpp:877
ElementType::getType
int getType(int parentType, int order, bool serendip=false)
Definition: ElementType.cpp:757
ElementType::getDimension
int getDimension(int type)
Definition: ElementType.cpp:297
ElementType::getOrder
int getOrder(int type)
Definition: ElementType.cpp:158
ElementType
Definition: ElementType.h:11
ElementType::getNumVertices
int getNumVertices(int type)
Definition: ElementType.cpp:456
ElementType::getParentType
int getParentType(int type)
Definition: ElementType.cpp:10