radial.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) 2013-2016 OpenFOAM Foundation
9 Copyright (C) 2019 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::extrudeModels::radial
29
30Description
31 Extrudes radially according to the Function1 description.
32
33 The radialCoeffs dictionary entries
34 \table
35 Property | Description | Required | Default
36 R | The radii as a Function1 | yes |
37 \endtable
38
39\*---------------------------------------------------------------------------*/
40
41#ifndef radial_H
42#define radial_H
43
44#include "extrudeModel.H"
45#include "Function1.H"
46
47// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48
49namespace Foam
50{
51namespace extrudeModels
52{
53
54/*---------------------------------------------------------------------------*\
55 Class extrudeModels::radial Declaration
56\*---------------------------------------------------------------------------*/
57
58class radial
59:
60 public extrudeModel
61{
62 // Private data
63
64 autoPtr<Function1<scalar>> R_;
65
66
67public:
68
69 //- Runtime type information
70 TypeName("radial");
71
72 // Constructors
73
74 //- Construct from dictionary
75 explicit radial(const dictionary& dict);
76
77
78 //- Destructor
79 virtual ~radial() = default;
80
81
82 // Member Operators
83
84 point operator()
85 (
86 const point& surfacePoint,
87 const vector& surfaceNormal,
88 const label layer
89 ) const;
90};
91
92
93// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
94
95} // End namespace extrudeModels
96} // End namespace Foam
97
98// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
99
100#endif
101
102// ************************************************************************* //
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: autoPtr.H:66
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
Top level extrusion model class.
Definition: extrudeModel.H:77
Extrudes radially according to the Function1 description.
Definition: radial.H:70
virtual ~radial()=default
Destructor.
TypeName("radial")
Runtime type information.
Namespace for OpenFOAM.
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73