1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-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 A collection of cell labels.
33 \*---------------------------------------------------------------------------*/
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 /*---------------------------------------------------------------------------*\
46 Class cellSet Declaration
47 \*---------------------------------------------------------------------------*/
55 // Private Member Functions
57 //- Disallow default bitwise copy construct
58 cellSet(const cellSet&);
62 //- Runtime type information
69 //- Construct from IOobject. No checking.
70 cellSet(const IOobject& obj);
72 //- Construct from polyMesh and name. Checks for valid cell ids.
77 readOption r=MUST_READ,
78 writeOption w=NO_WRITE
81 //- Construct empty from size of labelHashSet
87 writeOption w=NO_WRITE
90 //- Construct from existing set
96 writeOption w=NO_WRITE
99 //- Construct from labelHashSet
102 const polyMesh& mesh,
105 writeOption w=NO_WRITE
109 // Used for tetMesh cellSet only.
111 //- Construct from objectRegistry and name.
116 readOption r=MUST_READ,
117 writeOption w=NO_WRITE
120 //- Construct empty from objectRegistry.
126 writeOption w=NO_WRITE
129 //- Construct from labelHashSet
135 writeOption w=NO_WRITE
146 //- Sync cellSet across coupled patches.
147 virtual void sync(const polyMesh& mesh)
150 //- Return max index+1.
151 virtual label maxSize(const polyMesh& mesh) const;
153 //- Update any stored data for new labels
154 virtual void updateMesh(const mapPolyMesh& morphMap);
156 //- Write maxLen items with label and coordinates.
157 virtual void writeDebug
160 const primitiveMesh&,
167 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
169 } // End namespace Foam
171 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
175 // ************************************************************************* //