1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2004-2010 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
13 the Free Software Foundation, either version 3 of the License, or
14 (at your 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, 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
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);
119 //- Insert mesh changes into meshMod.
120 // cellToMidPoint : cell to cut and position of its new midpoint
123 const Map<point>& cellToMidPoint,
124 polyTopoChange& meshMod
127 //- Force recalculation of locally stored data on topological change
128 void updateMesh(const mapPolyMesh&);
133 //- Per cell the mid point added.
134 const Map<label>& addedPoints() const
141 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143 } // End namespace Foam
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
149 // ************************************************************************* //