1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
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 list of face labels.
33 \*---------------------------------------------------------------------------*/
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 /*---------------------------------------------------------------------------*\
46 Class faceSet Declaration
47 \*---------------------------------------------------------------------------*/
57 //- Runtime type information
64 //- Construct from IOobject
65 faceSet(const IOobject& obj);
67 //- Construct from objectRegistry and name
72 readOption r=MUST_READ,
73 writeOption w=NO_WRITE
76 //- Construct from additional size of labelHashSet
82 writeOption w=NO_WRITE
85 //- Construct from existing set
91 writeOption w=NO_WRITE
94 //- Construct from additional labelHashSet
100 writeOption w=NO_WRITE
110 //- Sync faceSet across coupled patches.
111 virtual void sync(const polyMesh& mesh);
113 //- Return max index+1.
114 virtual label maxSize(const polyMesh& mesh) const;
116 //- Update any stored data for new labels
117 virtual void updateMesh(const mapPolyMesh& morphMap);
119 //- Write maxLen items with label and coordinates.
120 virtual void writeDebug
123 const primitiveMesh&,
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 } // End namespace Foam
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 // ************************************************************************* //