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 A collection of cell labels.
34 \*---------------------------------------------------------------------------*/
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 /*---------------------------------------------------------------------------*\
47 Class cellSet Declaration
48 \*---------------------------------------------------------------------------*/
54 // Private Member Functions
56 //- Disallow default bitwise copy construct
57 cellSet(const cellSet&);
61 //- Runtime type information
68 //- Construct from IOobject. No checking.
69 cellSet(const IOobject& obj);
71 //- Construct from polyMesh and name. Checks for valid cell ids.
76 readOption r = MUST_READ,
77 writeOption w = NO_WRITE
80 //- Construct empty from size of labelHashSet
86 writeOption w = NO_WRITE
89 //- Construct from existing set
95 writeOption w = NO_WRITE
98 //- Construct from labelHashSet
101 const polyMesh& mesh,
104 writeOption w = NO_WRITE
108 // Used for tetMesh cellSet only.
110 //- Construct from objectRegistry and name.
115 readOption r = MUST_READ,
116 writeOption w = NO_WRITE
119 //- Construct empty from objectRegistry.
125 writeOption w = NO_WRITE
128 //- Construct from labelHashSet
134 writeOption w = NO_WRITE
145 //- Sync cellSet across coupled patches.
146 virtual void sync(const polyMesh& mesh)
149 //- Return max index+1.
150 virtual label maxSize(const polyMesh& mesh) const;
152 //- Update any stored data for new labels
153 virtual void updateMesh(const mapPolyMesh& morphMap);
155 //- Write maxLen items with label and coordinates.
156 virtual void writeDebug
159 const primitiveMesh&,
166 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
168 } // End namespace Foam
170 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
174 // ************************************************************************* //