![]() |
|
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 tetPolyMeshMapperCellDecomp 00027 00028 Description 00029 Class holds all the necessary information for mapping fields associated 00030 with tetPolyMeshCellDecomp. 00031 SourceFiles 00032 tetPolyMeshMapperCellDecomp.C 00033 00034 \*---------------------------------------------------------------------------*/ 00035 00036 #ifndef tetPolyMeshMapperCellDecomp_H 00037 #define tetPolyMeshMapperCellDecomp_H 00038 00039 #include "tetPointMapperCellDecomp.H" 00040 #include "pointMapper.H" 00041 #include "cellMapper.H" 00042 #include "tetPolyBoundaryMapperCellDecomp.H" 00043 00044 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00045 00046 namespace Foam 00047 { 00048 00049 // Class forward declarations 00050 class tetPolyMeshCellDecomp; 00051 class mapPolyMesh; 00052 00053 /*---------------------------------------------------------------------------*\ 00054 Class tetPolyMeshMapperCellDecomp Declaration 00055 \*---------------------------------------------------------------------------*/ 00056 00057 class tetPolyMeshMapperCellDecomp 00058 { 00059 // Private data 00060 00061 //- Reference to mesh 00062 const polyMesh& mesh_; 00063 00064 //- Point mapper 00065 pointMapper pointMap_; 00066 00067 //- Cell mapper 00068 cellMapper cellMap_; 00069 00070 //- Point mapper (needs to be re-done to insert cells) 00071 tetPointMapperCellDecomp tetPointMap_; 00072 00073 //- Boundary mapper 00074 tetPolyBoundaryMapperCellDecomp boundaryMap_; 00075 00076 00077 // Private Member Functions 00078 00079 //- Disallow default bitwise copy construct 00080 tetPolyMeshMapperCellDecomp(const tetPolyMeshMapperCellDecomp&); 00081 00082 //- Disallow default bitwise assignment 00083 void operator=(const tetPolyMeshMapperCellDecomp&); 00084 00085 00086 public: 00087 00088 // Constructors 00089 00090 //- Construct from components 00091 tetPolyMeshMapperCellDecomp 00092 ( 00093 const tetPolyMeshCellDecomp& mesh, 00094 const mapPolyMesh& meshMap 00095 ) 00096 : 00097 mesh_(mesh()), 00098 pointMap_(meshMap), 00099 cellMap_(meshMap), 00100 tetPointMap_(mesh, meshMap, pointMap_, cellMap_), 00101 boundaryMap_(mesh, meshMap) 00102 {} 00103 00104 00105 // Member Functions 00106 00107 //- Return mesh 00108 const polyMesh& mesh() const 00109 { 00110 return mesh_; 00111 } 00112 00113 //- Return point mapper 00114 const morphFieldMapper& pointMap() const 00115 { 00116 return tetPointMap_; 00117 } 00118 00119 //- Return element mapper 00120 const morphFieldMapper& elementMap() const 00121 { 00122 return cellMap_; 00123 } 00124 00125 //- Return boundary mapper 00126 const tetPolyBoundaryMapperCellDecomp& boundaryMap() const 00127 { 00128 return boundaryMap_; 00129 } 00130 }; 00131 00132 00133 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00134 00135 } // End namespace Foam 00136 00137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00138 00139 #endif 00140 00141 // ************************************************************************* //