1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend 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 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
28 Does pyramidal decomposition of selected cells. So all faces will become
29 base of pyramid with as top a user-supplied point (usually the cell centre)
34 \*---------------------------------------------------------------------------*/
36 #ifndef cellSplitter_H
37 #define cellSplitter_H
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 // Forward declaration of classes
49 class directTopoChange;
54 /*---------------------------------------------------------------------------*\
55 Class cellSplitter Declaration
56 \*---------------------------------------------------------------------------*/
63 const polyMesh& mesh_;
65 //- Per cell the mid point added.
66 Map<label> addedPoints_;
69 // Private Member Functions
71 //- Get patch and zone info for face
80 //- Find the new owner (if any) of the face.
84 const Map<labelList>& cellToCells
87 //- Find the new neighbour (if any) of the face.
91 const Map<labelList>& cellToCells
94 //- Disallow default bitwise copy construct
95 cellSplitter(const cellSplitter&);
97 //- Disallow default bitwise assignment
98 void operator=(const cellSplitter&);
102 //- Runtime type information
103 ClassName("cellSplitter");
107 //- Construct from mesh
108 cellSplitter(const polyMesh& mesh);
120 //- Insert mesh changes into meshMod.
121 // cellToMidPoint : cell to cut and position of its new midpoint
124 const Map<point>& cellToMidPoint,
125 directTopoChange& meshMod
128 //- Force recalculation of locally stored data on topological change
129 void updateMesh(const mapPolyMesh&);
134 //- Per cell the mid point added.
135 const Map<label>& addedPoints() const
142 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
144 } // End namespace Foam
146 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
150 // ************************************************************************* //