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 Class 00025 Foam::mergePolyMesh 00026 00027 Description 00028 Add a given mesh to the original mesh to create a single new mesh 00029 00030 SourceFiles 00031 mergePolyMesh.C 00032 00033 \*---------------------------------------------------------------------------*/ 00034 00035 #ifndef mergePolyMesh_H 00036 #define mergePolyMesh_H 00037 00038 #include <OpenFOAM/polyMesh.H> 00039 #include <dynamicMesh/polyTopoChange.H> 00040 00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00042 00043 namespace Foam 00044 { 00045 00046 // Forward declaration of classes 00047 00048 /*---------------------------------------------------------------------------*\ 00049 Class mergePolyMesh Declaration 00050 \*---------------------------------------------------------------------------*/ 00051 00052 class mergePolyMesh 00053 : 00054 public polyMesh 00055 { 00056 // Private data 00057 00058 //- Topological change to accumulated all mesh changes 00059 polyTopoChange meshMod_; 00060 00061 //- Patch types 00062 DynamicList<word> patchTypes_; 00063 00064 //- Patch names 00065 DynamicList<word> patchNames_; 00066 00067 //- Point zone names 00068 DynamicList<word> pointZoneNames_; 00069 00070 //- Face zone names 00071 DynamicList<word> faceZoneNames_; 00072 00073 //- Cell zone names 00074 DynamicList<word> cellZoneNames_; 00075 00076 00077 // Private Member Functions 00078 00079 //- Disallow default bitwise copy construct 00080 mergePolyMesh(const mergePolyMesh&); 00081 00082 //- Disallow default bitwise assignment 00083 void operator=(const mergePolyMesh&); 00084 00085 00086 //- Return patch index given a name and type 00087 label patchIndex(const polyPatch&); 00088 00089 //- Return zone index given a list of active zones and a name 00090 label zoneIndex(DynamicList<word>&, const word&); 00091 00092 00093 public: 00094 00095 //- Runtime type information 00096 TypeName("mergePolyMesh"); 00097 00098 00099 // Constructors 00100 00101 //- Construct from IOobject 00102 mergePolyMesh(const IOobject& io); 00103 00104 00105 // Destructor 00106 00107 virtual ~mergePolyMesh() 00108 {} 00109 00110 00111 // Member Functions 00112 00113 //- Add a mesh 00114 void addMesh(const polyMesh& m); 00115 00116 //- Merge meshes 00117 void merge(); 00118 }; 00119 00120 00121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00122 00123 } // End namespace Foam 00124 00125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00126 00127 #endif 00128 00129 // ************************ vim: set sw=4 sts=4 et: ************************ //