OGS
MeshPropertyDataType.cpp
Go to the documentation of this file.
1
12
13// See https://www.xdmf.org/index.php/XDMF_Model_and_Format#Topology (Arbitrary)
14std::pair<std::string, std::size_t> ParentDataType2String(ParentDataType p)
15{
16 // not used in OGS ParentDataType::POLYGON, ParentDataType::POLYHEDRON,
17 // ParentDataType::HEXAHEDRON_24
18 if (p == ParentDataType::MIXED)
19 {
20 return {"Mixed", 1};
21 }
22
24 {
25 return {"Polyvertex", 1};
26 }
28 {
29 return {"Polyline", 2};
30 }
32 {
33 return {"Triangle", 3};
34 }
36 {
37 return {"Quadrilateral", 4};
38 }
40 {
41 return {"Tetrahedron", 4};
42 }
44 {
45 return {"Pyramid", 5};
46 }
47 if (p == ParentDataType::WEDGE)
48 {
49 return {"Wedge", 6};
50 }
52 {
53 return {"Hexahedron", 8};
54 }
56 {
57 return {"Edge_3", 3};
58 }
60 {
61 return {"Quadrilateral_9", 9};
62 }
64 {
65 return {"Triangle_6", 6};
66 }
68 {
69 return {"Quadrilateral_8", 8};
70 }
72 {
73 return {"Tetrahedron_10", 10};
74 }
76 {
77 return {"Pyramid_13", 13};
78 }
80 {
81 return {"Wedge_15", 15};
82 }
84 {
85 return {"Wedge_18", 18};
86 }
88 {
89 return {"Hexahedron_20", 20};
90 }
92 {
93 return {"Hexahedron_27", 27};
94 }
95 return {"Mixed", 1};
96}
std::pair< std::string, std::size_t > ParentDataType2String(ParentDataType p)
Enum for all propertyVector data types and XDMF ParentDataTypes.