CECCellToCellStencil.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-------------------------------------------------------------------------------
10License
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
26Class
27 Foam::CECCellToCellStencil
28
29Description
30
31SourceFiles
32 CECCellToCellStencil.C
33
34\*---------------------------------------------------------------------------*/
35
36#ifndef CECCellToCellStencil_H
37#define CECCellToCellStencil_H
38
39#include "cellToCellStencil.H"
40#include "boolList.H"
41#include "HashSet.H"
42#include "Map.H"
43#include "edgeHashes.H"
44
45// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46
47namespace Foam
48{
49
50/*---------------------------------------------------------------------------*\
51 Class CECCellToCellStencil Declaration
52\*---------------------------------------------------------------------------*/
55:
57{
58 // Private Member Functions
59
60 //- Calculates per edge the neighbour data (= edgeCells)
61 void calcEdgeBoundaryData
62 (
63 const boolList& isValidBFace,
64 const labelList& boundaryEdges,
65 EdgeMap<labelList>& neiGlobal
66 ) const;
67
68 //- Calculates per cell the neighbour data
69 // (= cell or boundary in global numbering).
70 // First element is always cell itself!
71 void calcCellStencil(labelListList& globalCellCells) const;
72
73
74public:
75
76 // Constructors
77
78 //- Construct from all cells and boundary faces
79 explicit CECCellToCellStencil(const polyMesh&);
80
81};
82
83
84// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
85
86} // End namespace Foam
87
88// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
89
90#endif
91
92// ************************************************************************* //
Map from edge (expressed as its endpoints) to value. For easier forward declaration it is currently i...
Definition: EdgeMap.H:54
baseclass for extended cell centred addressing. Contains per cell a list of neighbouring cells and/or...
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:81
Namespace for OpenFOAM.