FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

fillSammCellShapeTable.C

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2010 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software: you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by
00013     the Free Software Foundation, either version 3 of the License, or
00014     (at your option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM.  If not, see <http://www.gnu.org/licenses/>.
00023 
00024 Description
00025     SAMM cell shape lookup table
00026 
00027 \*---------------------------------------------------------------------------*/
00028 
00029 #include <OpenFOAM/error.H>
00030 
00031 #include "sammMesh.H"
00032 
00033 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00034 
00035 
00036 // * * * * * * * * * * * * * Private Member Functions  * * * * * * * * * * * //
00037 
00038 void sammMesh::fillSammCellShapeTable()
00039 {
00040     // Fill the list by hand
00041 
00042     // SAMM trim type 1: 8 models
00043     sammShapeLookup[1]   = sammTrim1Ptr_;
00044     sammShapeLookup[2]   = sammTrim1Ptr_;
00045     sammShapeLookup[4]   = sammTrim1Ptr_;
00046     sammShapeLookup[8]   = sammTrim1Ptr_;
00047     sammShapeLookup[16]  = sammTrim1Ptr_;
00048     sammShapeLookup[32]  = sammTrim1Ptr_;
00049     sammShapeLookup[64]  = sammTrim1Ptr_;
00050     sammShapeLookup[128] = sammTrim1Ptr_;
00051 
00052     //SAMM trim type 2: 12 models
00053     sammShapeLookup[3]   = sammTrim2Ptr_;
00054     sammShapeLookup[12]  = sammTrim2Ptr_;
00055     sammShapeLookup[192] = sammTrim2Ptr_;
00056     sammShapeLookup[48]  = sammTrim2Ptr_;
00057     sammShapeLookup[9]   = sammTrim2Ptr_;
00058     sammShapeLookup[144] = sammTrim2Ptr_;
00059     sammShapeLookup[96]  = sammTrim2Ptr_;
00060     sammShapeLookup[6]   = sammTrim2Ptr_;
00061     sammShapeLookup[17]  = sammTrim2Ptr_;
00062     sammShapeLookup[34]  = sammTrim2Ptr_;
00063     sammShapeLookup[68]  = sammTrim2Ptr_;
00064     sammShapeLookup[136] = sammTrim2Ptr_;
00065 
00066     // SAMM trim type 3: 24 models
00067     sammShapeLookup[7]   = sammTrim3Ptr_;
00068     sammShapeLookup[14]  = sammTrim3Ptr_;
00069     sammShapeLookup[13]  = sammTrim3Ptr_;
00070     sammShapeLookup[11]  = sammTrim3Ptr_;
00071     sammShapeLookup[112] = sammTrim3Ptr_;
00072     sammShapeLookup[224] = sammTrim3Ptr_;
00073     sammShapeLookup[208] = sammTrim3Ptr_;
00074     sammShapeLookup[176] = sammTrim3Ptr_;
00075     sammShapeLookup[38]  = sammTrim3Ptr_;
00076     sammShapeLookup[70]  = sammTrim3Ptr_;
00077     sammShapeLookup[100] = sammTrim3Ptr_;
00078     sammShapeLookup[98]  = sammTrim3Ptr_;
00079     sammShapeLookup[25]  = sammTrim3Ptr_;
00080     sammShapeLookup[137] = sammTrim3Ptr_;
00081     sammShapeLookup[152] = sammTrim3Ptr_;
00082     sammShapeLookup[145] = sammTrim3Ptr_;
00083     sammShapeLookup[49]  = sammTrim3Ptr_;
00084     sammShapeLookup[50]  = sammTrim3Ptr_;
00085     sammShapeLookup[35]  = sammTrim3Ptr_;
00086     sammShapeLookup[19]  = sammTrim3Ptr_;
00087     sammShapeLookup[200] = sammTrim3Ptr_;
00088     sammShapeLookup[196] = sammTrim3Ptr_;
00089     sammShapeLookup[76]  = sammTrim3Ptr_;
00090     sammShapeLookup[140] = sammTrim3Ptr_;
00091 
00092     // SAMM trim type 4: 8 models
00093     sammShapeLookup[27]  = sammTrim4Ptr_;
00094     sammShapeLookup[39]  = sammTrim4Ptr_;
00095     sammShapeLookup[78]  = sammTrim4Ptr_;
00096     sammShapeLookup[141] = sammTrim4Ptr_;
00097     sammShapeLookup[177] = sammTrim4Ptr_;
00098     sammShapeLookup[114] = sammTrim4Ptr_;
00099     sammShapeLookup[228] = sammTrim4Ptr_;
00100     sammShapeLookup[216] = sammTrim4Ptr_;
00101 
00102     // SAMM trim type 5: 24 models
00103     sammShapeLookup[248] = sammTrim5Ptr_;
00104     sammShapeLookup[241] = sammTrim5Ptr_;
00105     sammShapeLookup[242] = sammTrim5Ptr_;
00106     sammShapeLookup[244] = sammTrim5Ptr_;
00107     sammShapeLookup[143] = sammTrim5Ptr_;
00108     sammShapeLookup[31]  = sammTrim5Ptr_;
00109     sammShapeLookup[47]  = sammTrim5Ptr_;
00110     sammShapeLookup[79]  = sammTrim5Ptr_;
00111     sammShapeLookup[217] = sammTrim5Ptr_;
00112     sammShapeLookup[185] = sammTrim5Ptr_;
00113     sammShapeLookup[155] = sammTrim5Ptr_;
00114     sammShapeLookup[157] = sammTrim5Ptr_;
00115     sammShapeLookup[230] = sammTrim5Ptr_;
00116     sammShapeLookup[118] = sammTrim5Ptr_;
00117     sammShapeLookup[103] = sammTrim5Ptr_;
00118     sammShapeLookup[110] = sammTrim5Ptr_;
00119     sammShapeLookup[206] = sammTrim5Ptr_;
00120     sammShapeLookup[205] = sammTrim5Ptr_;
00121     sammShapeLookup[220] = sammTrim5Ptr_;
00122     sammShapeLookup[236] = sammTrim5Ptr_;
00123     sammShapeLookup[55]  = sammTrim5Ptr_;
00124     sammShapeLookup[59]  = sammTrim5Ptr_;
00125     sammShapeLookup[179] = sammTrim5Ptr_;
00126     sammShapeLookup[115] = sammTrim5Ptr_;
00127 
00128     // SAMM hexagonal prism (trim type 8): 1 model
00129     sammShapeLookup[255] = sammTrim8Ptr_;
00130 }
00131 
00132 
00133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00134 
00135 
00136 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines