cylinderAnnulusToCell.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) 2011 OpenFOAM Foundation
9  Copyright (C) 2018-2022 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::cylinderAnnulusToCell
29 
30 Group
31  grpCellSources
32 
33 Description
34  A \c topoSetCellSource to select all cells with centres
35  inside a given bounding cylinder annulus.
36 
37  Identical behaviour and parameters as Foam::cylinderToCell
38  except the outer radius is mandatory in interactive mode.
39 
40 See also
41  - Foam::topoSetSource
42  - Foam::topoSetCellSource
43  - Foam::cylinderToCell
44 
45 SourceFiles
46  cylinderAnnulusToCell.C
47 
48 \*---------------------------------------------------------------------------*/
49 
50 #ifndef Foam_cylinderAnnulusToCell_H
51 #define Foam_cylinderAnnulusToCell_H
52 
53 #include "cylinderToCell.H"
54 
55 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
56 
57 namespace Foam
58 {
59 
60 /*---------------------------------------------------------------------------*\
61  Class cylinderAnnulusToCell Declaration
62 \*---------------------------------------------------------------------------*/
63 
65 :
66  public cylinderToCell
67 {
68  // Private Data
69 
70  //- Add usage string
71  static addToUsageTable usage_;
72 
73 public:
74 
75  //- Runtime type information
76  TypeName("cylinderAnnulusToCell");
77 
78 
79  // Constructors
80 
81  //- Construct from components
83  (
84  const polyMesh& mesh,
85  const point& point1,
86  const point& point2,
87  const scalar radius,
88  const scalar innerRadius = 0
89  );
90 
91  //- Construct from dictionary
93 
94  //- Construct from Istream
96 
97 
98  //- Destructor
99  virtual ~cylinderAnnulusToCell() = default;
100 };
101 
102 
103 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
104 
105 } // End namespace Foam
106 
107 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108 
109 #endif
110 
111 // ************************************************************************* //
dictionary dict
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Definition: Istream.H:57
A topoSetCellSource to select all cells whose cell centre inside a given bounding cylinder or cylinde...
cylinderAnnulusToCell(const polyMesh &mesh, const point &point1, const point &point2, const scalar radius, const scalar innerRadius=0)
Construct from components.
virtual ~cylinderAnnulusToCell()=default
Destructor.
const polyMesh & mesh() const noexcept
Reference to the mesh.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
A topoSetCellSource to select all cells with centres inside a given bounding cylinder annulus...
Class with constructor to add usage string to table.
TypeName("cylinderAnnulusToCell")
Runtime type information.
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:74
Namespace for OpenFOAM.