CFCCellToCellStencil.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::CFCCellToCellStencil
28 
29 Description
30 
31 SourceFiles
32  CFCCellToCellStencil.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef CFCCellToCellStencil_H
37 #define CFCCellToCellStencil_H
38 
39 #include "cellToCellStencil.H"
40 
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 
43 namespace Foam
44 {
45 
46 /*---------------------------------------------------------------------------*\
47  Class CFCCellToCellStencil Declaration
48 \*---------------------------------------------------------------------------*/
49 
51 :
52  public cellToCellStencil
53 {
54  // Private Member Functions
55 
56  //- Calculates per face the neighbour data (= cell or boundary face)
57  void calcFaceBoundaryData(labelList& neiGlobal) const;
58 
59  //- Calculates per cell the neighbour data
60  // (= cell or boundary in global numbering).
61  // First element is always cell itself!
62  void calcCellStencil(labelListList& globalCellCells) const;
63 
64 
65 public:
66 
67  // Constructors
68 
69  //- Construct from mesh
70  explicit CFCCellToCellStencil(const polyMesh& mesh);
71 };
72 
73 
74 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
75 
76 } // End namespace Foam
77 
78 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
79 
80 #endif
81 
82 // ************************************************************************* //
Foam::cellToCellStencil::mesh
const polyMesh & mesh() const
Definition: cellToCellStencil.H:123
cellToCellStencil.H
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:77
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::CFCCellToCellStencil
Definition: CFCCellToCellStencil.H:49
Foam::List< label >
Foam::cellToCellStencil
baseclass for extended cell centred addressing. Contains per cell a list of neighbouring cells and/or...
Definition: cellToCellStencil.H:56
Foam::CFCCellToCellStencil::CFCCellToCellStencil
CFCCellToCellStencil(const polyMesh &mesh)
Construct from mesh.
Definition: CFCCellToCellStencil.C:149