badQualityToCell.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2012 OpenFOAM Foundation
9  Copyright (C) 2018 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::badQualityToCell
29 
30 Description
31  Selects bad quality cells (using snappyHexMesh/cvMesh mesh quality selector)
32 
33 SourceFiles
34  badQualityToCell.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef badQualityToCell_H
39 #define badQualityToCell_H
40 
41 #include "topoSetCellSource.H"
42 #include "bitSet.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class badQualityToCell Declaration
51 \*---------------------------------------------------------------------------*/
52 
53 class badQualityToCell
54 :
55  public topoSetCellSource
56 {
57 
58  // Private data
59 
60  //- Add usage string
61  static addToUsageTable usage_;
62 
63  //- Mesh quality dictionary
64  const dictionary dict_;
65 
66 
67  // Private Member Functions
68 
69  void combine(topoSet& set, const bool add) const;
70 
71 
72 public:
73 
74  //- Runtime type information
75  TypeName("badQualityToCell");
76 
77  // Constructors
78 
79  //- Construct from dictionary
81 
82  //- Construct from Istream
84 
85 
86  //- Destructor
87  virtual ~badQualityToCell() = default;
88 
89 
90  // Member Functions
91 
92  virtual void applyToSet
93  (
94  const topoSetSource::setAction action,
95  topoSet& set
96  ) const;
97 
98 };
99 
100 
101 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
102 
103 } // End namespace Foam
104 
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 
107 #endif
108 
109 // ************************************************************************* //
Foam::BitOps::set
void set(List< bool > &bools, const labelRange &range)
Set the specified range 'on' in a boolList.
Definition: BitOps.C:37
Foam::badQualityToCell::~badQualityToCell
virtual ~badQualityToCell()=default
Destructor.
Foam::combine
Definition: FaceCellWave.C:57
Foam::badQualityToCell
Selects bad quality cells (using snappyHexMesh/cvMesh mesh quality selector)
Definition: badQualityToCell.H:52
Foam::topoSetSource::setAction
setAction
Enumeration defining the valid actions.
Definition: topoSetSource.H:100
bitSet.H
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:77
Foam::badQualityToCell::badQualityToCell
badQualityToCell(const polyMesh &mesh, const dictionary &dict)
Construct from dictionary.
Definition: badQualityToCell.C:91
Foam::badQualityToCell::TypeName
TypeName("badQualityToCell")
Runtime type information.
Foam::Istream
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition: Istream.H:61
Foam::badQualityToCell::applyToSet
virtual void applyToSet(const topoSetSource::setAction action, topoSet &set) const
Apply specified action to the topoSet.
Definition: badQualityToCell.C:115
Foam::topoSet
General set of labels of mesh quantity (points, cells, faces).
Definition: topoSet.H:63
topoSetCellSource.H
dict
dictionary dict
Definition: searchingEngine.H:14
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:123
Foam::add
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
Definition: FieldFieldFunctions.C:939
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::topoSetCellSource
The topoSetCellSource is a intermediate class for handling topoSet sources for selecting cells.
Definition: topoSetCellSource.H:54
Foam::topoSetSource::mesh
const polyMesh & mesh() const noexcept
Reference to the mesh.
Definition: topoSetSource.H:342