1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 option) any later version.
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
21 You should have received a copy of the GNU General Public License
22 along with OpenFOAM; if not, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29 Add a given mesh to the original mesh to create a single new mesh
34 \*---------------------------------------------------------------------------*/
36 #ifndef mergePolyMesh_H
37 #define mergePolyMesh_H
40 #include "directTopoChange.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 // Forward declaration of classes
49 /*---------------------------------------------------------------------------*\
50 Class mergePolyMesh Declaration
51 \*---------------------------------------------------------------------------*/
59 //- Topological change to accumulated all mesh changes
60 directTopoChange meshMod_;
63 DynamicList<word> patchTypes_;
66 DynamicList<word> patchNames_;
69 DynamicList<word> pointZoneNames_;
72 DynamicList<word> faceZoneNames_;
75 DynamicList<word> cellZoneNames_;
78 DynamicList<label> pointZones_;
81 DynamicList<label> faceZones_;
84 DynamicList<bool> faceZoneFlips_;
87 DynamicList<label> cellZones_;
90 // Private Member Functions
92 //- Disallow default bitwise copy construct
93 mergePolyMesh(const mergePolyMesh&);
95 //- Disallow default bitwise assignment
96 void operator=(const mergePolyMesh&);
99 //- Return patch index given a name and type
100 label patchIndex(const polyPatch&);
102 //- Return zone index given a list of active zones and a name
103 label zoneIndex(DynamicList<word>&, const word&);
108 //- Runtime type information
109 TypeName("mergePolyMesh");
114 //- Construct from IOobject
115 mergePolyMesh(const IOobject& io);
120 virtual ~mergePolyMesh()
127 void addMesh(const polyMesh& m);
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 } // End namespace Foam
138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
142 // ************************************************************************* //