cylindricalRadial.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2013-2023 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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
19  for more details.
20 
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/>.
23 
24 Class
25  Foam::extrudeModels::cylindricalRadial
26 
27 Description
28  Extrudes by transforming points in the cylindrical radial direction
29 
30  Generates layers at radii specified by a Foam::Function1
31  of the layer index.
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef cylindricalRadial_H
36 #define cylindricalRadial_H
37 
38 #include "extrudeModel.H"
39 #include "Function1.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 namespace extrudeModels
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Class cylindricalRadial Declaration
50 \*---------------------------------------------------------------------------*/
51 
53 :
54  public extrudeModel
55 {
56  // Private Data
57 
58  //- Point on axis
59  const point axisPt_;
60 
61  //- Normalised axis
62  vector axis_;
63 
64  //- Radial distribution of layers
66 
67 
68 public:
69 
70  //- Runtime type information
71  TypeName("cylindricalRadial");
72 
73  // Constructors
74 
75  //- Construct from dictionary
77 
78 
79  //-Destructor
80  virtual ~cylindricalRadial();
81 
82 
83  // Member Operators
84 
85  //- Return the new point corresponding to the surfacePoint
86  // on the specified layer.
87  // The surfaceNormal is not used.
88  point operator()
89  (
90  const point& surfacePoint,
91  const vector& surfaceNormal,
92  const label layer
93  ) const;
94 };
95 
96 
97 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
98 
99 } // End namespace extrudeModels
100 } // End namespace Foam
101 
102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
103 
104 #endif
105 
106 // ************************************************************************* //
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:162
Top level extrusion model class.
Definition: extrudeModel.H:52
Extrudes by transforming points in the cylindrical radial direction.
TypeName("cylindricalRadial")
Runtime type information.
cylindricalRadial(const dictionary &dict)
Construct from dictionary.
Namespace for OpenFOAM.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
dictionary dict