wallLayerCells.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::wallLayerCells
28 
29 Description
30  After construction is a list of <refineCell> of cells within a certain
31  distance to the wall and with the wall normal direction.
32 
33 SourceFiles
34  wallLayerCells.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef wallLayerCells_H
39 #define wallLayerCells_H
40 
41 #include "edgeVertex.H"
42 #include "refineCell.H"
43 #include "typeInfo.H"
44 
45 
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 
48 namespace Foam
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class wallLayerCells Declaration
53 \*---------------------------------------------------------------------------*/
54 
55 class wallLayerCells
56 :
57  public edgeVertex,
58  public List<refineCell>
59 {
60  // Private Member Functions
61 
62  //- Check if any of the faces of celli is on processorPatch
63  bool usesCoupledPatch(const label celli) const;
64 
65 public:
66 
67  //- Runtime type information
68  ClassName("wallLayerCells");
69 
70 
71  // Constructors
72 
73  //- Construct from components
75  (
76  const polyMesh& mesh,
77  const List<word>& patchNames,
78  const label nLayers
79  );
80 };
81 
82 
83 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
84 
85 } // End namespace Foam
86 
87 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
88 
89 #endif
90 
91 // ************************************************************************* //
Foam::wallLayerCells::wallLayerCells
wallLayerCells(const polyMesh &mesh, const List< word > &patchNames, const label nLayers)
Construct from components.
Definition: wallLayerCells.C:67
typeInfo.H
Foam::edgeVertex
Combines edge or vertex in single label. Used to specify cuts across cell circumference.
Definition: edgeVertex.H:55
Foam::wallLayerCells
After construction is a list of <refineCell> of cells within a certain distance to the wall and with ...
Definition: wallLayerCells.H:54
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:77
patchNames
wordList patchNames(nPatches)
refineCell.H
Foam::wallLayerCells::ClassName
ClassName("wallLayerCells")
Runtime type information.
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::List
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: BitOps.H:63
edgeVertex.H
Foam::edgeVertex::mesh
const polyMesh & mesh() const
Definition: edgeVertex.H:101