1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation, either version 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
25 SAMM cell shape lookup table
27 \*---------------------------------------------------------------------------*/
33 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
36 // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
38 void sammMesh::fillSammCellShapeTable()
40 // Fill the list by hand
42 // SAMM trim type 1: 8 models
43 sammShapeLookup[1] = sammTrim1Ptr_;
44 sammShapeLookup[2] = sammTrim1Ptr_;
45 sammShapeLookup[4] = sammTrim1Ptr_;
46 sammShapeLookup[8] = sammTrim1Ptr_;
47 sammShapeLookup[16] = sammTrim1Ptr_;
48 sammShapeLookup[32] = sammTrim1Ptr_;
49 sammShapeLookup[64] = sammTrim1Ptr_;
50 sammShapeLookup[128] = sammTrim1Ptr_;
52 //SAMM trim type 2: 12 models
53 sammShapeLookup[3] = sammTrim2Ptr_;
54 sammShapeLookup[12] = sammTrim2Ptr_;
55 sammShapeLookup[192] = sammTrim2Ptr_;
56 sammShapeLookup[48] = sammTrim2Ptr_;
57 sammShapeLookup[9] = sammTrim2Ptr_;
58 sammShapeLookup[144] = sammTrim2Ptr_;
59 sammShapeLookup[96] = sammTrim2Ptr_;
60 sammShapeLookup[6] = sammTrim2Ptr_;
61 sammShapeLookup[17] = sammTrim2Ptr_;
62 sammShapeLookup[34] = sammTrim2Ptr_;
63 sammShapeLookup[68] = sammTrim2Ptr_;
64 sammShapeLookup[136] = sammTrim2Ptr_;
66 // SAMM trim type 3: 24 models
67 sammShapeLookup[7] = sammTrim3Ptr_;
68 sammShapeLookup[14] = sammTrim3Ptr_;
69 sammShapeLookup[13] = sammTrim3Ptr_;
70 sammShapeLookup[11] = sammTrim3Ptr_;
71 sammShapeLookup[112] = sammTrim3Ptr_;
72 sammShapeLookup[224] = sammTrim3Ptr_;
73 sammShapeLookup[208] = sammTrim3Ptr_;
74 sammShapeLookup[176] = sammTrim3Ptr_;
75 sammShapeLookup[38] = sammTrim3Ptr_;
76 sammShapeLookup[70] = sammTrim3Ptr_;
77 sammShapeLookup[100] = sammTrim3Ptr_;
78 sammShapeLookup[98] = sammTrim3Ptr_;
79 sammShapeLookup[25] = sammTrim3Ptr_;
80 sammShapeLookup[137] = sammTrim3Ptr_;
81 sammShapeLookup[152] = sammTrim3Ptr_;
82 sammShapeLookup[145] = sammTrim3Ptr_;
83 sammShapeLookup[49] = sammTrim3Ptr_;
84 sammShapeLookup[50] = sammTrim3Ptr_;
85 sammShapeLookup[35] = sammTrim3Ptr_;
86 sammShapeLookup[19] = sammTrim3Ptr_;
87 sammShapeLookup[200] = sammTrim3Ptr_;
88 sammShapeLookup[196] = sammTrim3Ptr_;
89 sammShapeLookup[76] = sammTrim3Ptr_;
90 sammShapeLookup[140] = sammTrim3Ptr_;
92 // SAMM trim type 4: 8 models
93 sammShapeLookup[27] = sammTrim4Ptr_;
94 sammShapeLookup[39] = sammTrim4Ptr_;
95 sammShapeLookup[78] = sammTrim4Ptr_;
96 sammShapeLookup[141] = sammTrim4Ptr_;
97 sammShapeLookup[177] = sammTrim4Ptr_;
98 sammShapeLookup[114] = sammTrim4Ptr_;
99 sammShapeLookup[228] = sammTrim4Ptr_;
100 sammShapeLookup[216] = sammTrim4Ptr_;
102 // SAMM trim type 5: 24 models
103 sammShapeLookup[248] = sammTrim5Ptr_;
104 sammShapeLookup[241] = sammTrim5Ptr_;
105 sammShapeLookup[242] = sammTrim5Ptr_;
106 sammShapeLookup[244] = sammTrim5Ptr_;
107 sammShapeLookup[143] = sammTrim5Ptr_;
108 sammShapeLookup[31] = sammTrim5Ptr_;
109 sammShapeLookup[47] = sammTrim5Ptr_;
110 sammShapeLookup[79] = sammTrim5Ptr_;
111 sammShapeLookup[217] = sammTrim5Ptr_;
112 sammShapeLookup[185] = sammTrim5Ptr_;
113 sammShapeLookup[155] = sammTrim5Ptr_;
114 sammShapeLookup[157] = sammTrim5Ptr_;
115 sammShapeLookup[230] = sammTrim5Ptr_;
116 sammShapeLookup[118] = sammTrim5Ptr_;
117 sammShapeLookup[103] = sammTrim5Ptr_;
118 sammShapeLookup[110] = sammTrim5Ptr_;
119 sammShapeLookup[206] = sammTrim5Ptr_;
120 sammShapeLookup[205] = sammTrim5Ptr_;
121 sammShapeLookup[220] = sammTrim5Ptr_;
122 sammShapeLookup[236] = sammTrim5Ptr_;
123 sammShapeLookup[55] = sammTrim5Ptr_;
124 sammShapeLookup[59] = sammTrim5Ptr_;
125 sammShapeLookup[179] = sammTrim5Ptr_;
126 sammShapeLookup[115] = sammTrim5Ptr_;
128 // SAMM hexagonal prism (trim type 8): 1 model
129 sammShapeLookup[255] = sammTrim8Ptr_;
133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 // ************************************************************************* //