1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2004-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/>.
25 Foam::thresholdCellFaces
28 Selects the mesh cell faces specified by a threshold value.
29 Non-triangulated by default.
34 \*---------------------------------------------------------------------------*/
36 #ifndef thresholdCellFaces_H
37 #define thresholdCellFaces_H
39 #include "MeshedSurface.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 /*---------------------------------------------------------------------------*\
49 Class thresholdCellFaces Declaration
50 \*---------------------------------------------------------------------------*/
52 class thresholdCellFaces
54 public MeshedSurface<face>
56 //- Private typedefs for convenience
57 typedef MeshedSurface<face> MeshStorage;
60 const polyMesh& mesh_;
62 //- For every face the original cell in mesh
65 // Private Member Functions
70 const scalar lowerThreshold,
71 const scalar upperThreshold,
72 const bool triangulate
77 //- Runtime type information
78 TypeName("thresholdCellFaces");
83 //- Construct from mesh, field and threshold value
88 const scalar lowerThreshold,
89 const scalar upperThreshold,
90 const bool triangulate = false
96 //- For every face original cell in mesh
97 labelList& meshCells()
102 //- For every face original cell in mesh
103 const labelList& meshCells() const
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
113 } // End namespace Foam
115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 // ************************************************************************* //