OpenFOAM
8
The OpenFOAM Foundation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
MeshWave.C
Go to the documentation of this file.
1
/*---------------------------------------------------------------------------*\
2
========= |
3
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4
\\ / O peration | Website: https://openfoam.org
5
\\ / A nd | Copyright (C) 2011-2018 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::MeshWave
MeshWave(const polyMesh &mesh, const labelList &initialChangedFaces, const List< Type > &changedFacesInfo, const label maxIter, TrackingData &td=dummyTrackData_)
Construct from mesh and list of changed faces with the Type.
Definition:
MeshWave.C:42
Foam::MeshWave
FaceCellWave plus data.
Definition:
MeshWave.H:56
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition:
polyMesh.H:74
src
meshTools
algorithms
MeshWave
MeshWave.C
Generated by
1.8.13