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-------------------------------------------------------------------------------
11License
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
27Class
28 Foam::cylinderAnnulusToCell
29
30Group
31 grpCellSources
32
33Description
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
40See also
41 - Foam::topoSetSource
42 - Foam::topoSetCellSource
43 - Foam::cylinderToCell
44
45SourceFiles
46 cylinderAnnulusToCell.C
47
48\*---------------------------------------------------------------------------*/
49
50#ifndef Foam_cylinderAnnulusToCell_H
51#define Foam_cylinderAnnulusToCell_H
52
53#include "cylinderToCell.H"
54
55// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
56
57namespace Foam
58{
59
60/*---------------------------------------------------------------------------*\
61 Class cylinderAnnulusToCell Declaration
62\*---------------------------------------------------------------------------*/
65:
66 public cylinderToCell
67{
68 // Private Data
69
70 //- Add usage string
71 static addToUsageTable usage_;
72
73public:
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// ************************************************************************* //
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition: Istream.H:64
A topoSetCellSource to select all cells with centres inside a given bounding cylinder annulus.
virtual ~cylinderAnnulusToCell()=default
Destructor.
TypeName("cylinderAnnulusToCell")
Runtime type information.
A topoSetCellSource to select all cells whose cell centre inside a given bounding cylinder or cylinde...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:81
Class with constructor to add usage string to table.
const polyMesh & mesh() const noexcept
Reference to the mesh.
Namespace for OpenFOAM.
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73