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 topoSetSource to select faces based on normal.
33 \*---------------------------------------------------------------------------*/
35 #ifndef normalToFace_H
36 #define normalToFace_H
38 #include "topoSetSource.H"
39 #include "NamedEnum.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 /*---------------------------------------------------------------------------*\
47 Class normalToFace Declaration
48 \*---------------------------------------------------------------------------*/
58 static addToUsageTable usage_;
60 //- (unit)vector to compare to
63 //- Tolerance (i.e. cos of angle between normal_ and faceNormal)
67 // Private Member Functions
69 //- Normalize normal and check tolerance
75 //- Runtime type information
76 TypeName("normalToFace");
80 //- Construct from components
88 //- Construct from dictionary
89 normalToFace(const polyMesh& mesh, const dictionary& dict);
91 //- Construct from Istream
92 normalToFace(const polyMesh& mesh, Istream&);
97 virtual ~normalToFace();
102 virtual void applyToSet
104 const topoSetSource::setAction action,
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 } // End namespace Foam
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 // ************************************************************************* //