checkCellConnectionsOverFaces.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  checkCellConnectionsOverFaces
26 
27 Description
28  Checks cells if all cells can be visited over face neighbours. Deletes
29 
30 SourceFiles
31  checkCellConnectionsOverFaces.C
32 
33 \*---------------------------------------------------------------------------*/
34 
35 #ifndef checkCellConnectionsOverFaces_H
36 #define checkCellConnectionsOverFaces_H
37 
38 #include "polyMeshGenModifier.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44 
45 /*---------------------------------------------------------------------------*\
46  Class checkCellConnectionsOverFaces Declaration
47 \*---------------------------------------------------------------------------*/
48 
50 {
51  // Private data
52  //- Reference to polyMeshGen
54 
55  //- each cell is assigned a group
56  //- cells which can be visited over face neighbours are assigned
57  //- to the same group
59 
60  //- number of groups
62 
63  // Private member functions
64  //- decompose marked cells
65  void findCellGroups();
66 
67  //- Disallow default bitwise copy construct
69 
70  //- Disallow default bitwise assignment
72 
73 public:
74 
75  // Constructors
76 
77  //- Construct from polyMeshGen
79 
80  // Destructor
81 
83 
84  // Member Functions
85  //- check if all cells are connected as a single domain
86  //- return true if the mesh has been changed
87  bool checkCellGroups();
88 };
89 
90 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
91 
92 } // End namespace Foam
93 
94 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
95 
96 #endif
97 
98 // ************************************************************************* //
Foam::checkCellConnectionsOverFaces::cellGroup_
labelList cellGroup_
Definition: checkCellConnectionsOverFaces.H:57
Foam::checkCellConnectionsOverFaces::checkCellGroups
bool checkCellGroups()
Definition: checkCellConnectionsOverFaces.C:221
Foam::checkCellConnectionsOverFaces::mesh_
polyMeshGen & mesh_
Reference to polyMeshGen.
Definition: checkCellConnectionsOverFaces.H:52
Foam::checkCellConnectionsOverFaces
Definition: checkCellConnectionsOverFaces.H:48
polyMeshGenModifier.H
Foam::polyMeshGen
Definition: polyMeshGen.H:46
Foam::checkCellConnectionsOverFaces::checkCellConnectionsOverFaces
checkCellConnectionsOverFaces(const checkCellConnectionsOverFaces &)
Disallow default bitwise copy construct.
Foam::checkCellConnectionsOverFaces::nGroups_
label nGroups_
number of groups
Definition: checkCellConnectionsOverFaces.H:60
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
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:18
Foam
Namespace for OpenFOAM.
Definition: combustionModel.C:30
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::checkCellConnectionsOverFaces::~checkCellConnectionsOverFaces
~checkCellConnectionsOverFaces()
Definition: checkCellConnectionsOverFaces.C:216
Foam::checkCellConnectionsOverFaces::findCellGroups
void findCellGroups()
decompose marked cells
Definition: checkCellConnectionsOverFaces.C:186
Foam::checkCellConnectionsOverFaces::operator=
void operator=(const checkCellConnectionsOverFaces &)
Disallow default bitwise assignment.