OpenFOAM: API Guide
v2012
The open source CFD toolbox
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
-------------------------------------------------------------------------------
11
License
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
27
Class
28
Foam::extrudeModels::linearNormal
29
30
Description
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
51
namespace
Foam
52
{
53
namespace
extrudeModels
54
{
55
56
/*---------------------------------------------------------------------------*\
57
Class extrudeModels::linearNormal Declaration
58
\*---------------------------------------------------------------------------*/
59
60
class
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_;
74
75
76
public
:
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
// ************************************************************************* //
Foam::scalarList
List< scalar > scalarList
A List of scalars.
Definition:
scalarList.H:64
Foam::extrudeModel
Top level extrusion model class.
Definition:
extrudeModel.H:76
point.H
scalarList.H
Foam::extrudeModels::linearNormal::~linearNormal
virtual ~linearNormal()=default
Destructor.
Foam::extrudeModels::linearNormal
Extrudes by transforming points normal to the surface by a given distance.
Definition:
linearNormal.H:74
extrudeModel.H
dict
dictionary dict
Definition:
searchingEngine.H:14
Foam::extrudeModels::linearNormal::TypeName
TypeName("linearNormal")
Runtime type information.
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition:
dictionary.H:121
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.C:33
Foam::Vector< scalar >
Foam::List< scalar >
Foam::extrudeModels::linearNormal::linearNormal
linearNormal(const dictionary &dict)
Construct from dictionary.
Definition:
linearNormal.C:48
src
mesh
extrudeModel
linearNormal
linearNormal.H
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.