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