OpenFOAM
5.0
The OpenFOAM Foundation
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
w
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
Enumerator
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
w
+
Enumerations
a
b
c
d
e
f
g
i
k
l
m
o
p
r
s
t
v
w
+
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Related Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
+
Files
File List
+
File Members
+
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
+
Typedefs
b
c
d
f
g
k
l
m
p
r
s
t
v
w
+
Macros
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
src
meshTools
algorithms
MeshWave
MeshWave.C
Go to the documentation of this file.
1
/*---------------------------------------------------------------------------*\
2
========= |
3
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4
\\ / O peration |
5
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
6
\\/ M anipulation |
7
-------------------------------------------------------------------------------
8
License
9
This file is part of OpenFOAM.
10
11
OpenFOAM is free software: you can redistribute it and/or modify it
12
under the terms of the GNU General Public License as published by
13
the Free Software Foundation, either version 3 of the License, or
14
(at your option) any later version.
15
16
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19
for more details.
20
21
You should have received a copy of the GNU General Public License
22
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23
24
\*---------------------------------------------------------------------------*/
25
26
#include "
MeshWave.H
"
27
#include "
polyMesh.H
"
28
29
30
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
31
32
template
<
class
Type,
class
TrackingData>
33
int
Foam::MeshWave<Type, TrackingData>::dummyTrackData_
= 12345;
34
35
36
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
37
38
// Iterate, propagating changedFacesInfo across mesh, until no change (or
39
// maxIter reached).
40
template
<
class
Type,
class
TrackingData>
41
Foam::MeshWave<Type, TrackingData>::MeshWave
42
(
43
const
polyMesh
& mesh,
44
const
labelList
& changedFaces,
45
const
List<Type>
& changedFacesInfo,
46
const
label
maxIter,
47
TrackingData& td
48
)
49
:
50
allFaceInfo_(mesh.
nFaces
()),
51
allCellInfo_(mesh.
nCells
()),
52
calc_
53
(
54
mesh,
55
changedFaces,
56
changedFacesInfo,
57
allFaceInfo_,
58
allCellInfo_,
59
maxIter,
60
td
61
)
62
{}
63
64
65
// Iterate, propagating changedFacesInfo across mesh, until no change (or
66
// maxIter reached). Initial cell values specified.
67
template
<
class
Type,
class
TrackingData>
68
Foam::MeshWave<Type, TrackingData>::MeshWave
69
(
70
const
polyMesh
& mesh,
71
const
labelList
& changedFaces,
72
const
List<Type>
& changedFacesInfo,
73
const
List<Type>
& allCellInfo,
74
const
label
maxIter,
75
TrackingData& td
76
)
77
:
78
allFaceInfo_(mesh.
nFaces
()),
79
allCellInfo_(allCellInfo),
80
calc_
81
(
82
mesh,
83
changedFaces,
84
changedFacesInfo,
85
allFaceInfo_,
86
allCellInfo_,
87
maxIter,
88
td
89
)
90
{}
91
92
93
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
94
95
96
// ************************************************************************* //
Foam::label
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition:
label.H:59
MeshWave.H
polyMesh.H
Foam::List< label >
Foam::primitiveMesh::nFaces
label nFaces() const
Definition:
primitiveMeshI.H:88
Foam::primitiveMesh::nCells
label nCells() const
Definition:
primitiveMeshI.H:94
Foam::MeshWave
FaceCellWave plus data.
Definition:
MeshWave.H:56
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition:
polyMesh.H:74
Generated by
1.8.13