1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
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 Does pyramidal decomposition of selected cells. So all faces will become
30 base of pyramid with as top a user-supplied point (usually the cell centre)
35 \*---------------------------------------------------------------------------*/
37 #ifndef cellSplitter_H
38 #define cellSplitter_H
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 // Forward declaration of classes
55 /*---------------------------------------------------------------------------*\
56 Class cellSplitter Declaration
57 \*---------------------------------------------------------------------------*/
64 const polyMesh& mesh_;
66 //- Per cell the mid point added.
67 Map<label> addedPoints_;
70 // Private Member Functions
72 //- Get patch and zone info for face
81 //- Find the new owner (if any) of the face.
85 const Map<labelList>& cellToCells
88 //- Find the new neighbour (if any) of the face.
92 const Map<labelList>& cellToCells
95 //- Disallow default bitwise copy construct
96 cellSplitter(const cellSplitter&);
98 //- Disallow default bitwise assignment
99 void operator=(const cellSplitter&);
103 //- Runtime type information
104 ClassName("cellSplitter");
108 //- Construct from mesh
109 cellSplitter(const polyMesh& mesh);
121 //- Insert mesh changes into meshMod.
122 // cellToMidPoint : cell to cut and position of its new midpoint
125 const Map<point>& cellToMidPoint,
126 polyTopoChange& meshMod
129 //- Force recalculation of locally stored data on topological change
130 void updateMesh(const mapPolyMesh&);
135 //- Per cell the mid point added.
136 const Map<label>& addedPoints() const
143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145 } // End namespace Foam
147 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
151 // ************************************************************************* //