cylinderAnnulusToFace.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) 2017 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::cylinderAnnulusToFace
29 
30 Description
31  A \c topoSetFaceSource to select all faces with centres
32  inside a given bounding cylinder annulus.
33 
34  Identical behaviour and parameters as Foam::cylinderToFace
35  except the outer radius is mandatory in interactive mode.
36 
37 See also
38  - Foam::cylinderToFace
39 
40 SourceFiles
41  cylinderAnnulusToFace.C
42 
43 \*---------------------------------------------------------------------------*/
44 
45 #ifndef Foam_cylinderAnnulusToFace_H
46 #define Foam_cylinderAnnulusToFace_H
47 
48 #include "cylinderToFace.H"
49 
50 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 
52 namespace Foam
53 {
54 
55 /*---------------------------------------------------------------------------*\
56  Class cylinderAnnulusToFace Declaration
57 \*---------------------------------------------------------------------------*/
58 
60 :
61  public cylinderToFace
62 {
63  // Private Data
64 
65  //- Add usage string
66  static addToUsageTable usage_;
67 
68 public:
69 
70  //- Runtime type information
71  TypeName("cylinderAnnulusToFace");
72 
73 
74  // Constructors
75 
76  //- Construct from components
78  (
79  const polyMesh& mesh,
80  const point& point1,
81  const point& point2,
82  const scalar radius,
83  const scalar innerRadius = 0
84  );
85 
86  //- Construct from dictionary
88 
89  //- Construct from Istream
91 
92 
93  //- Destructor
94  virtual ~cylinderAnnulusToFace() = default;
95 };
96 
97 
98 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
99 
100 } // End namespace Foam
101 
102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
103 
104 #endif
105 
106 // ************************************************************************* //
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
TypeName("cylinderAnnulusToFace")
Runtime type information.
cylinderAnnulusToFace(const polyMesh &mesh, const point &point1, const point &point2, const scalar radius, const scalar innerRadius=0)
Construct from components.
A topoSetFaceSource to select all faces with centres inside a given bounding cylinder annulus...
A topoSetFaceSource to select all faces whose face centre inside a given bounding cylinder or cylinde...
virtual ~cylinderAnnulusToFace()=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...
Class with constructor to add usage string to table.
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:74
Namespace for OpenFOAM.