linearNormal.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-2015 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::linearNormal
29
30Description
31 Extrudes by transforming points normal to the surface by a given distance.
32
33 The linearNormalCoeffs dictionary entries
34 \table
35 Property | Description | Required | Default
36 thickness | Extrusion thickness | yes |
37 firstCellThickness | Thickness of the first layer | no | 0
38 \endtable
39
40\*---------------------------------------------------------------------------*/
41
42#ifndef linearNormal_H
43#define linearNormal_H
44
45#include "point.H"
46#include "extrudeModel.H"
47#include "scalarList.H"
48
49// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50
51namespace Foam
52{
53namespace extrudeModels
54{
55
56/*---------------------------------------------------------------------------*\
57 Class extrudeModels::linearNormal Declaration
58\*---------------------------------------------------------------------------*/
59
60class linearNormal
61:
62 public extrudeModel
63{
64 // Private data
65
66 //- Layer thickness
67 scalar thickness_;
68
69 //- First cell thickness
70 scalar firstCellThickness_;
71
72 //- Layer cell distribution
73 scalarList layerPoints_;
75
76public:
77
78 //- Runtime type information
79 TypeName("linearNormal");
80
81 // Constructors
82
83 //- Construct from dictionary
84 explicit linearNormal(const dictionary& dict);
85
86
87 //- Destructor
88 virtual ~linearNormal() = default;
89
90
91 // Member Operators
92
93 point operator()
94 (
95 const point& surfacePoint,
96 const vector& surfaceNormal,
97 const label layer
98 ) const;
99};
100
101
102// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
103
104} // End namespace extrudeModels
105} // End namespace Foam
106
107// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
108
109#endif
110
111// ************************************************************************* //
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 points normal to the surface by a given distance.
Definition: linearNormal.H:77
TypeName("linearNormal")
Runtime type information.
virtual ~linearNormal()=default
Destructor.
Namespace for OpenFOAM.
List< scalar > scalarList
A List of scalars.
Definition: scalarList.H:64
dictionary dict
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73