meshOctreeInsideOutside.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | cfMesh: A library for mesh generation
4  \\ / O peration |
5  \\ / A nd | Author: Franjo Juretic (franjo.juretic@c-fields.com)
6  \\/ M anipulation | Copyright (C) Creative Fields, Ltd.
7 -------------------------------------------------------------------------------
8 License
9  This file is part of cfMesh.
10 
11  cfMesh is free software; you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by the
13  Free Software Foundation; either version 3 of the License, or (at your
14  option) any later version.
15 
16  cfMesh 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 cfMesh. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  meshOctreeInsideOutside
26 Description
27  Creates inside/outside information for the octree
28 
29 SourceFiles
30  meshOctreeInsideOutside.C
31 
32 \*---------------------------------------------------------------------------*/
33 
34 #ifndef meshOctreeInsideOutside_H
35 #define meshOctreeInsideOutside_H
36 
37 #include "meshOctreeModifier.H"
38 #include <map>
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 
45 /*---------------------------------------------------------------------------*\
46  Class meshOctreeInsideOutside Declaration
47 \*---------------------------------------------------------------------------*/
48 
50 {
51  // Private data
52 
53  //- meshOctreeAddressing
55 
56  //- group for a given leaf
58 
59  //- cubes belonging to each group of octree boxes
61 
62  //- type for a group
63  std::map<label, direction> groupType_;
64 
65  //- boundary DATA boxes for a given group
67 
68  //- flag for DATA boxes next to the OUTSIDE boxes
70 
71  //- label of cubes at processor boundaries
73 
74  //- labels of cubes marked by different threads
76 
77  // Private member functions
78 
79  //- initialise octree boxes
80  void initialiseBoxes();
81 
82  //- frontal marking algorithm
83  void frontalMarking();
84 
85  //- mark OUTSIDE octree boxes
86  void markOutsideCubes();
87 
88  //- revise DATA boxes
89  void reviseDataBoxes();
90 
91  //- mark INSIDE octree boxes
92  void markInsideCubes();
93 
94  public:
95 
96  // Constructor
97 
98  //- Construct from octree
100  (
101  meshOctree& octree
102  );
103 
104  // Destructor
105 
107 };
108 
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
110 
111 } // End namespace Foam
112 
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114 
115 #endif
116 
117 // ************************************************************************* //
Foam::meshOctreeInsideOutside
Definition: meshOctreeInsideOutside.H:48
Foam::meshOctreeInsideOutside::boundaryDATACubes_
VRWGraph boundaryDATACubes_
boundary DATA boxes for a given group
Definition: meshOctreeInsideOutside.H:65
Foam::meshOctreeInsideOutside::initialiseBoxes
void initialiseBoxes()
initialise octree boxes
Definition: meshOctreeInsideOutside.C:115
Foam::meshOctreeInsideOutside::hasOutsideNeighbour_
boolList hasOutsideNeighbour_
flag for DATA boxes next to the OUTSIDE boxes
Definition: meshOctreeInsideOutside.H:68
Foam::meshOctreeInsideOutside::groupType_
std::map< label, direction > groupType_
type for a group
Definition: meshOctreeInsideOutside.H:62
Foam::meshOctreeInsideOutside::communicationCubes_
labelLongList communicationCubes_
label of cubes at processor boundaries
Definition: meshOctreeInsideOutside.H:71
Foam::meshOctreeModifier
Definition: meshOctreeModifier.H:48
meshOctreeModifier.H
Foam::LongList< label >
Foam::meshOctreeInsideOutside::frontalMarking
void frontalMarking()
frontal marking algorithm
Definition: meshOctreeInsideOutside.C:135
Foam::meshOctreeInsideOutside::reviseDataBoxes
void reviseDataBoxes()
revise DATA boxes
Definition: meshOctreeInsideOutside.C:475
Foam::meshOctreeInsideOutside::~meshOctreeInsideOutside
~meshOctreeInsideOutside()
Definition: meshOctreeInsideOutside.C:109
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
Foam::meshOctreeInsideOutside::cubesInGroup_
VRWGraph cubesInGroup_
cubes belonging to each group of octree boxes
Definition: meshOctreeInsideOutside.H:59
Foam::List
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: HashTable.H:59
Foam::meshOctree
Definition: meshOctree.H:55
Foam::meshOctreeInsideOutside::octreeModifier_
meshOctreeModifier octreeModifier_
meshOctreeAddressing
Definition: meshOctreeInsideOutside.H:53
Foam::meshOctreeInsideOutside::markInsideCubes
void markInsideCubes()
mark INSIDE octree boxes
Definition: meshOctreeInsideOutside.C:635
Foam::meshOctreeInsideOutside::meshOctreeInsideOutside
meshOctreeInsideOutside(meshOctree &octree)
Construct from octree.
Definition: meshOctreeInsideOutside.C:45
Foam::meshOctreeInsideOutside::neighbouringGroups_
VRWGraph neighbouringGroups_
labels of cubes marked by different threads
Definition: meshOctreeInsideOutside.H:74
Foam::meshOctreeInsideOutside::cubeGroup_
labelLongList cubeGroup_
group for a given leaf
Definition: meshOctreeInsideOutside.H:56
Foam::VRWGraph
Definition: VRWGraph.H:101
Foam::meshOctreeInsideOutside::markOutsideCubes
void markOutsideCubes()
mark OUTSIDE octree boxes
Definition: meshOctreeInsideOutside.C:339