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 Like faceSet but updates faceZone when writing.
34 \*---------------------------------------------------------------------------*/
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 /*---------------------------------------------------------------------------*\
48 Class faceZoneSet Declaration
49 \*---------------------------------------------------------------------------*/
57 const polyMesh& mesh_;
59 labelList addressing_;
63 // Private Member Functions
68 //- Runtime type information
69 TypeName("faceZoneSet");
74 //- Construct from objectRegistry and name
79 readOption r=MUST_READ,
80 writeOption w=NO_WRITE
83 //- Construct from additional size of labelHashSet
89 writeOption w=NO_WRITE
92 //- Construct from existing set
98 writeOption w=NO_WRITE
105 virtual ~faceZoneSet();
110 const labelList& addressing() const
115 labelList& addressing()
121 const boolList& flipMap() const
132 //- Sort addressing and make faceSet part consistent with addressing
135 //- Invert contents. (insert all members 0..maxLen-1 which were not in
137 virtual void invert(const label maxLen);
139 //- Subset contents. Only elements present in both sets remain.
140 virtual void subset(const topoSet& set);
142 //- Add elements present in set.
143 virtual void addSet(const topoSet& set);
145 //- Delete elements present in set.
146 virtual void deleteSet(const topoSet& set);
148 //- Sync faceZoneSet across coupled patches.
149 virtual void sync(const polyMesh& mesh);
151 //- Write maxLen items with label and coordinates.
152 virtual void writeDebug
155 const primitiveMesh&,
160 virtual bool writeObject
162 IOstream::streamFormat,
163 IOstream::versionNumber,
164 IOstream::compressionType
167 //- Update any stored data for new labels
168 virtual void updateMesh(const mapPolyMesh& morphMap);
170 //- Return max index+1.
171 virtual label maxSize(const polyMesh& mesh) const;
179 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
181 } // End namespace Foam
183 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
187 // ************************************************************************* //