1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
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 topoSetSource to select a faceSet from cells.
31 Either all faces of cell or some other criterion.
33 Note: when picking up coupled faces uses cells on neighbouring processors.
38 \*---------------------------------------------------------------------------*/
43 #include "topoSetSource.H"
44 #include "NamedEnum.H"
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 /*---------------------------------------------------------------------------*\
52 Class cellToFace Declaration
53 \*---------------------------------------------------------------------------*/
60 //- Enumeration defining the valid options
71 static addToUsageTable usage_;
73 static const NamedEnum<cellAction, 2> cellActionNames_;
75 //- Name of set to use
82 // Private Member Functions
84 //- Depending on face to cell option add to or delete from cellSet.
85 void combine(topoSet& set, const bool add) const;
90 //- Runtime type information
91 TypeName("cellToFace");
95 //- Construct from components
100 const cellAction option
103 //- Construct from dictionary
106 const polyMesh& mesh,
107 const dictionary& dict
110 //- Construct from Istream
113 const polyMesh& mesh,
120 virtual ~cellToFace();
125 virtual void applyToSet
127 const topoSetSource::setAction action,
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 } // End namespace Foam
138 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
142 // ************************************************************************* //