linearRadial.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) 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::linearRadial
29
30Description
31 Extrudes by transforming radially from the surface.
32
33 The linearRadialCoeffs dictionary entries
34 \table
35 Property | Description | Required | Default
36 R | The radial thickness | yes |
37 Rsurface | Surface inner radius | no | -1
38 \endtable
39
40\*---------------------------------------------------------------------------*/
41
42#ifndef linearRadial_H
43#define linearRadial_H
44
45#include "extrudeModel.H"
46
47// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48
49namespace Foam
50{
51namespace extrudeModels
52{
53
54/*---------------------------------------------------------------------------*\
55 Class extrudeModels::linearRadial Declaration
56\*---------------------------------------------------------------------------*/
57
58class linearRadial
59:
60 public extrudeModel
61{
62 // Private data
63
64 scalar R_;
65 scalar Rsurface_;
66
67
68public:
69
70 //- Runtime type information
71 TypeName("linearRadial");
73 // Constructors
74
75 //- Construct from dictionary
76 explicit linearRadial(const dictionary& dict);
77
78
79 //- Destructor
80 virtual ~linearRadial() = default;
81
82
83 // Member Operators
84
85 //- Return point
86 point operator()
87 (
88 const point& surfacePoint,
89 const vector& surfaceNormal,
90 const label layer
91 ) const;
92};
93
95// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
96
97} // End namespace extrudeModels
98} // End namespace Foam
99
100// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101
102#endif
103
104// ************************************************************************* //
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 by transforming radially from the surface.
Definition: linearRadial.H:75
virtual ~linearRadial()=default
Destructor.
TypeName("linearRadial")
Runtime type information.
Namespace for OpenFOAM.
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73