OpenFOAM: API Guide
v2112
The open source CFD toolbox
lineDivide.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-2016 OpenFOAM Foundation
9
Copyright (C) 2020-2021 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::lineDivide
29
30
Description
31
Divides a line into segments
32
33
SourceFiles
34
lineDivide.C
35
36
\*---------------------------------------------------------------------------*/
37
38
#ifndef lineDivide_H
39
#define lineDivide_H
40
41
#include "
pointField.H
"
42
#include "
scalarList.H
"
43
#include "
gradingDescriptors.H
"
44
45
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46
47
namespace
Foam
48
{
49
50
// Forward Declarations
51
class
blockEdge;
52
53
/*---------------------------------------------------------------------------*\
54
Class lineDivide Declaration
55
\*---------------------------------------------------------------------------*/
56
57
class
lineDivide
58
{
59
// Private Data
60
61
pointField
points_;
62
63
scalarList
divisions_;
64
65
public
:
66
67
// Constructors
68
69
//- Construct from components
70
lineDivide
71
(
72
const
blockEdge
& cedge,
73
const
label nDiv,
74
const
gradingDescriptors
& gd =
gradingDescriptors
()
75
);
76
77
78
// Member Functions
79
80
//- The points
81
const
pointField
&
points
()
const
noexcept;
82
83
//- The list of lambda values
84
const
scalarList
&
lambdaDivisions
()
const
noexcept;
85
};
86
87
88
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
89
90
}
// End namespace Foam
91
92
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
93
94
#endif
95
96
// ************************************************************************* //
Foam::lineDivide::lambdaDivisions
const scalarList & lambdaDivisions() const noexcept
The list of lambda values.
Definition:
lineDivide.C:149
Foam::lineDivide
Divides a line into segments.
Definition:
lineDivide.H:56
Foam::gradingDescriptors
List of gradingDescriptor for the sections of a block with additional IO functionality.
Definition:
gradingDescriptors.H:58
Foam::lineDivide::lineDivide
lineDivide(const blockEdge &cedge, const label nDiv, const gradingDescriptors &gd=gradingDescriptors())
Construct from components.
Definition:
lineDivide.C:47
Foam::blockEdge
Define a curved edge that is parameterized for 0<lambda<1 between the start/end points.
Definition:
blockEdge.H:63
scalarList.H
gradingDescriptors.H
Foam::Field< vector >
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.C:33
pointField.H
Foam::lineDivide::points
const pointField & points() const noexcept
The points.
Definition:
lineDivide.C:143
Foam::List< scalar >
src
mesh
blockMesh
blockEdges
lineDivide
lineDivide.H
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.