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 pointSet but updates pointZone when writing.
34 \*---------------------------------------------------------------------------*/
36 #ifndef pointZoneSet_H
37 #define pointZoneSet_H
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 /*---------------------------------------------------------------------------*\
48 Class pointZoneSet Declaration
49 \*---------------------------------------------------------------------------*/
57 const polyMesh& mesh_;
59 labelList addressing_;
61 // Private Member Functions
66 //- Runtime type information
67 TypeName("pointZoneSet");
72 //- Construct from objectRegistry and name
77 readOption r=MUST_READ,
78 writeOption w=NO_WRITE
81 //- Construct from additional size of labelHashSet
87 writeOption w=NO_WRITE
90 //- Construct from existing set
96 writeOption w=NO_WRITE
103 virtual ~pointZoneSet();
108 const labelList& addressing() const
113 labelList& addressing()
118 //- Sort addressing and make pointSet part consistent with addressing
121 //- Invert contents. (insert all members 0..maxLen-1 which were not in
123 virtual void invert(const label maxLen);
125 //- Subset contents. Only elements present in both sets remain.
126 virtual void subset(const topoSet& set);
128 //- Add elements present in set.
129 virtual void addSet(const topoSet& set);
131 //- Delete elements present in set.
132 virtual void deleteSet(const topoSet& set);
134 //- Sync pointZoneSet across coupled patches.
135 virtual void sync(const polyMesh& mesh);
137 //- Write maxLen items with label and coordinates.
138 virtual void writeDebug
141 const primitiveMesh&,
146 virtual bool writeObject
148 IOstream::streamFormat,
149 IOstream::versionNumber,
150 IOstream::compressionType
153 //- Update any stored data for new labels
154 virtual void updateMesh(const mapPolyMesh& morphMap);
156 //- Return max index+1.
157 virtual label maxSize(const polyMesh& mesh) const;
165 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
167 } // End namespace Foam
169 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
173 // ************************************************************************* //