nonConformalMappedWallFvPatch.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2023-2024 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM 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 OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::nonConformalMappedWallFvPatch
26 
27 Description
28  Wall fv patch which can do non-conformal mapping of values from another
29  potentially non-globally conforming wall fv patch. As nonConformalFvPatch,
30  but the neighbouring patch is local and known and is made available by this
31  class.
32 
33 See also
34  Foam::nonConformalFvPatch
35  Foam::nonConformalMappedPolyPatch
36 
37 SourceFiles
38  nonConformalMappedWallFvPatch.C
39 
40 \*---------------------------------------------------------------------------*/
41 
42 #ifndef nonConformalMappedWallFvPatch_H
43 #define nonConformalMappedWallFvPatch_H
44 
45 #include "wallFvPatch.H"
46 #include "nonConformalFvPatch.H"
49 
50 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
51 
52 namespace Foam
53 {
54 
55 /*---------------------------------------------------------------------------*\
56  Class nonConformalMappedWallFvPatch Declaration
57 \*---------------------------------------------------------------------------*/
58 
60 :
61  public wallFvPatch,
62  public nonConformalFvPatch,
64 {
65  // Private Data
66 
67  //- Reference to the polyPatch
68  const nonConformalMappedWallPolyPatch& nonConformalMappedWallPolyPatch_;
69 
70 
71 public:
72 
73  //- Runtime type information
74  TypeName(nonConformalMappedWallPolyPatch::typeName_());
75 
76 
77  // Constructors
78 
79  //- Construct from polyPatch and fvBoundaryMesh
81  (
82  const polyPatch& patch,
83  const fvBoundaryMesh& bm
84  );
85 
86 
87  //- Destructor
89 
90 
91  // Member Functions
92 
93  // Access
94 
95  //- Inherit wallFvPatch patch method
96  using wallFvPatch::patch;
97 
98  //- Poly patch
101 
102  //- Neighbour patch
104 
105  //- Is this patch the owner?
106  bool owner() const;
107 
108  //- Return face face-poly-faces
109  const labelList& polyFaces() const;
110 
111  //- Return the start label of this patch in the polyMesh face list.
112  // Raises an error unless the patch is empty.
113  virtual label start() const;
114 
115  //- Return the size
116  virtual label size() const;
117 
118  //- Return the face-cells
119  virtual const labelUList& faceCells() const;
120 
121  //- Return the face-poly-faces patch field type
122  virtual word polyFacesType() const;
123 };
124 
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 } // End namespace Foam
129 
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 
132 #endif
133 
134 // ************************************************************************* //
Foam::fvBoundaryMesh.
const polyPatch & patch() const
Return the polyPatch.
Definition: fvPatch.H:120
Non-conformal FV patch. Provides the necessary interface for a FV patch which does not conform to the...
const fvPatch & patch() const
Reference to the fvPatch.
Base class for fv patches which provides non-conformal mapping between two potentially non-globally c...
Wall fv patch which can do non-conformal mapping of values from another potentially non-globally conf...
const nonConformalMappedWallPolyPatch & nonConformalMappedWallPatch() const
Poly patch.
bool owner() const
Is this patch the owner?
virtual word polyFacesType() const
Return the face-poly-faces patch field type.
virtual label size() const
Return the size.
const labelList & polyFaces() const
Return face face-poly-faces.
const nonConformalMappedWallFvPatch & nbrPatch() const
Neighbour patch.
TypeName(nonConformalMappedWallPolyPatch::typeName_())
Runtime type information.
virtual const labelUList & faceCells() const
Return the face-cells.
nonConformalMappedWallFvPatch(const polyPatch &patch, const fvBoundaryMesh &bm)
Construct from polyPatch and fvBoundaryMesh.
virtual label start() const
Return the start label of this patch in the polyMesh face list.
Wall poly patch which can do non-conformal mapping of values from another potentially non-globally co...
A patch is a list of labels that address the faces in the global face list.
Definition: polyPatch.H:70
Foam::wallFvPatch.
Definition: wallFvPatch.H:52
A class for handling words, derived from string.
Definition: word.H:62
Namespace for OpenFOAM.
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