OpenFOAM: API Guide
v2112
The open source CFD toolbox
cellShapeControlMeshI.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) 2012-2015 OpenFOAM Foundation
9
-------------------------------------------------------------------------------
10
License
11
This file is part of OpenFOAM.
12
13
OpenFOAM is free software: you can redistribute it and/or modify it
14
under the terms of the GNU General Public License as published by
15
the Free Software Foundation, either version 3 of the License, or
16
(at your option) any later version.
17
18
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21
for more details.
22
23
You should have received a copy of the GNU General Public License
24
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26
\*---------------------------------------------------------------------------*/
27
28
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
29
30
Foam::cellShapeControlMesh::Vertex_handle
Foam::cellShapeControlMesh::insert
31
(
32
const
Foam::point
& pt,
33
const
scalar& size,
34
const
triad
& alignment,
35
const
Foam::indexedVertexEnum::vertexType
type
36
)
37
{
38
Vertex_handle
v =
CellSizeDelaunay::insert
39
(
40
Point
(pt.
x
(), pt.
y
(), pt.
z
())
41
);
42
v->type() =
type
;
43
v->index() = getNewVertexIndex();
44
v->procIndex() = Pstream::myProcNo();
45
v->targetCellSize() = size;
46
v->alignment() =
tensor
(alignment.
x
(), alignment.
y
(), alignment.
z
());
47
48
return
v;
49
}
50
51
52
Foam::cellShapeControlMesh::Vertex_handle
Foam::cellShapeControlMesh::insertFar
53
(
54
const
Foam::point
& pt
55
)
56
{
57
Vertex_handle
v =
CellSizeDelaunay::insert
58
(
59
Point
(pt.
x
(), pt.
y
(), pt.
z
())
60
);
61
v->type() = Vb::vtFar;
62
// v->type() = Vb::vtExternalFeaturePoint;
63
v->index() = getNewVertexIndex();
64
v->procIndex() = Pstream::myProcNo();
65
66
return
v;
67
}
68
69
70
// ************************************************************************* //
insert
srcOptions insert("case", fileName(rootDirSource/caseDirSource))
Foam::Vector::x
const Cmpt & x() const
Access to the vector x component.
Definition:
VectorI.H:73
Foam::cellShapeControlMesh::insertFar
Vertex_handle insertFar(const Foam::point &pt)
Definition:
cellShapeControlMeshI.H:53
Foam::indexedVertexEnum::vertexType
vertexType
Definition:
indexedVertexEnum.H:52
Foam::Vector::z
const Cmpt & z() const
Access to the vector z component.
Definition:
VectorI.H:85
Foam::cellShapeControlMesh::Vertex_handle
CellSizeDelaunay::Vertex_handle Vertex_handle
Definition:
cellShapeControlMesh.H:71
Foam::triad
Representation of a 3D Cartesian coordinate system as a Vector of row vectors.
Definition:
triad.H:64
Foam::Vector::y
const Cmpt & y() const
Access to the vector y component.
Definition:
VectorI.H:79
Foam::Vector< scalar >
Foam::roots::type
type
Types of root.
Definition:
Roots.H:54
Point
CGAL::Point_3< K > Point
Definition:
CGALIndexedPolyhedron.H:53
Foam::tensor
Tensor< scalar > tensor
Tensor of scalars, i.e. Tensor<scalar>.
Definition:
symmTensor.H:61
Foam::cellShapeControlMesh::insert
Vertex_handle insert(const Foam::point &pt, const scalar &size, const triad &alignment, const Foam::indexedVertexEnum::vertexType type=Vb::vtInternal)
Definition:
cellShapeControlMeshI.H:31
applications
utilities
mesh
generation
foamyMesh
conformalVoronoiMesh
cellShapeControl
cellShapeControlMesh
cellShapeControlMeshI.H
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.