![]() |
|
00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 1991-2005 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 the 00013 Free Software Foundation; either version 2 of the License, or (at your 00014 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, write to the Free Software Foundation, 00023 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00024 00025 Class 00026 tetPolyMeshMapperFaceDecomp 00027 00028 Description 00029 Class holds all the necessary information for mapping fields associated 00030 with tetPolyMeshFaceDecomp. 00031 SourceFiles 00032 tetPolyMeshMapperFaceDecomp.C 00033 00034 \*---------------------------------------------------------------------------*/ 00035 00036 #ifndef tetPolyMeshMapperFaceDecomp_H 00037 #define tetPolyMeshMapperFaceDecomp_H 00038 00039 #include "tetPointMapperFaceDecomp.H" 00040 #include "pointMapper.H" 00041 #include "faceMapper.H" 00042 #include "cellMapper.H" 00043 #include "tetPolyBoundaryMapperFaceDecomp.H" 00044 00045 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00046 00047 namespace Foam 00048 { 00049 00050 // Class forward declarations 00051 class tetPolyMeshFaceDecomp; 00052 class mapPolyMesh; 00053 00054 /*---------------------------------------------------------------------------*\ 00055 Class tetPolyMeshMapperFaceDecomp Declaration 00056 \*---------------------------------------------------------------------------*/ 00057 00058 class tetPolyMeshMapperFaceDecomp 00059 { 00060 // Private data 00061 00062 //- Reference to mesh 00063 const polyMesh& mesh_; 00064 00065 //- Point mapper 00066 pointMapper pointMap_; 00067 00068 //- Face mapper 00069 faceMapper faceMap_; 00070 00071 //- Cell mapper 00072 cellMapper cellMap_; 00073 00074 //- Point mapper (needs to be re-done to insert faces and cells) 00075 tetPointMapperFaceDecomp tetPointMap_; 00076 00077 //- Boundary mapper 00078 tetPolyBoundaryMapperFaceDecomp boundaryMap_; 00079 00080 00081 // Private Member Functions 00082 00083 //- Disallow default bitwise copy construct 00084 tetPolyMeshMapperFaceDecomp(const tetPolyMeshMapperFaceDecomp&); 00085 00086 //- Disallow default bitwise assignment 00087 void operator=(const tetPolyMeshMapperFaceDecomp&); 00088 00089 00090 public: 00091 00092 // Constructors 00093 00094 //- Construct from components 00095 tetPolyMeshMapperFaceDecomp 00096 ( 00097 const tetPolyMeshFaceDecomp& mesh, 00098 const mapPolyMesh& meshMap 00099 ) 00100 : 00101 mesh_(mesh()), 00102 pointMap_(meshMap), 00103 faceMap_(meshMap), 00104 cellMap_(meshMap), 00105 tetPointMap_(mesh, meshMap, pointMap_, faceMap_, cellMap_), 00106 boundaryMap_(mesh, meshMap, pointMap_, faceMap_) 00107 {} 00108 00109 00110 // Member Functions 00111 00112 //- Return mesh 00113 const polyMesh& mesh() const 00114 { 00115 return mesh_; 00116 } 00117 00118 //- Return point mapper 00119 const morphFieldMapper& pointMap() const 00120 { 00121 return tetPointMap_; 00122 } 00123 00124 //- Return element mapper 00125 const morphFieldMapper& elementMap() const 00126 { 00127 return cellMap_; 00128 } 00129 00130 //- Return boundary mapper 00131 const tetPolyBoundaryMapperFaceDecomp& boundaryMap() const 00132 { 00133 return boundaryMap_; 00134 } 00135 }; 00136 00137 00138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00139 00140 } // End namespace Foam 00141 00142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00143 00144 #endif 00145 00146 // ************************************************************************* //