CPCCellToCellStencil.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) 2011-2016 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 Class
27  Foam::CPCCellToCellStencil
28 
29 Description
30 
31 SourceFiles
32  CPCCellToCellStencil.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef CPCCellToCellStencil_H
37 #define CPCCellToCellStencil_H
38 
39 #include "cellToCellStencil.H"
40 #include "boolList.H"
41 #include "HashSet.H"
42 #include "Map.H"
43 
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 
46 namespace Foam
47 {
48 
49 /*---------------------------------------------------------------------------*\
50  Class CPCCellToCellStencil Declaration
51 \*---------------------------------------------------------------------------*/
52 
54 :
55  public cellToCellStencil
56 {
57  // Private Member Functions
58 
59  //- Calculates per point the neighbour data (= pointCells)
60  void calcPointBoundaryData
61  (
62  const boolList& isValidBFace,
63  const labelList& boundaryPoints,
64  Map<labelList>& neiGlobal
65  ) const;
66 
67  //- Calculates per cell the neighbour data
68  // (= cell or boundary in global numbering).
69  // First element is always cell itself!
70  void calcCellStencil(labelListList& globalCellCells) const;
71 
72 
73 public:
74 
75  // Constructors
76 
77  //- Construct from all cells and boundary faces
78  explicit CPCCellToCellStencil(const polyMesh&);
79 
80 };
81 
82 
83 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
84 
85 } // End namespace Foam
86 
87 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
88 
89 #endif
90 
91 // ************************************************************************* //
cellToCellStencil.H
boolList.H
Foam::Map
A HashTable to objects of type <T> with a label key.
Definition: lumpedPointController.H:69
Foam::CPCCellToCellStencil
Definition: CPCCellToCellStencil.H:52
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:77
Map.H
HashSet.H
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::CPCCellToCellStencil::CPCCellToCellStencil
CPCCellToCellStencil(const polyMesh &)
Construct from all cells and boundary faces.
Definition: CPCCellToCellStencil.C:156
Foam::List< bool >
Foam::cellToCellStencil
baseclass for extended cell centred addressing. Contains per cell a list of neighbouring cells and/or...
Definition: cellToCellStencil.H:56