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 A collection of cell labels.
34 \*---------------------------------------------------------------------------*/
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 /*---------------------------------------------------------------------------*\
47 Class cellSet Declaration
48 \*---------------------------------------------------------------------------*/
56 // Private Member Functions
58 //- Disallow default bitwise copy construct
59 cellSet(const cellSet&);
63 //- Runtime type information
70 //- Construct from IOobject. No checking.
71 cellSet(const IOobject& obj);
73 //- Construct from polyMesh and name. Checks for valid cell ids.
78 readOption r=MUST_READ,
79 writeOption w=NO_WRITE
82 //- Construct empty from size of labelHashSet
88 writeOption w=NO_WRITE
91 //- Construct from existing set
97 writeOption w=NO_WRITE
100 //- Construct from labelHashSet
103 const polyMesh& mesh,
106 writeOption w=NO_WRITE
110 // Used for tetMesh cellSet only.
112 //- Construct from objectRegistry and name.
117 readOption r=MUST_READ,
118 writeOption w=NO_WRITE
121 //- Construct empty from objectRegistry.
127 writeOption w=NO_WRITE
130 //- Construct from labelHashSet
136 writeOption w=NO_WRITE
147 //- Sync cellSet across coupled patches.
148 virtual void sync(const polyMesh& mesh)
151 //- Return max index+1.
152 virtual label maxSize(const polyMesh& mesh) const;
154 //- Update any stored data for new labels
155 virtual void updateMesh(const mapPolyMesh& morphMap);
157 //- Write maxLen items with label and coordinates.
158 virtual void writeDebug
161 const primitiveMesh&,
168 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
170 } // End namespace Foam
172 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
176 // ************************************************************************* //