WallInfoI.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 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 \*---------------------------------------------------------------------------*/
25 
26 #include "WallInfo.H"
27 #include "polyMesh.H"
28 
29 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
30 
31 template<class WallLocation>
32 template<class TrackingData>
34 (
35  const polyMesh& mesh,
37  const scalar tol,
38  TrackingData& td
39 ) const
40 {
41  return WallLocation::sameGeometry(w2, tol, td);
42 }
43 
44 
45 template<class WallLocation>
46 template<class TrackingData>
48 (
49  const polyPatch& patch,
50  const label patchFacei,
51  const transformer& transform,
52  TrackingData& td
53 )
54 {
56 }
57 
58 
59 template<class WallLocation>
60 template<class TrackingData>
62 (
63  const polyMesh& mesh,
64  const label thisCelli,
65  const label neighbourFacei,
66  const WallInfo<WallLocation>& neighbourWallInfo,
67  const scalar tol,
68  TrackingData& td
69 )
70 {
71  return
72  WallLocation::update
73  (
74  mesh.cellCentres()[thisCelli],
75  neighbourWallInfo,
76  tol,
77  td
78  );
79 }
80 
81 
82 template<class WallLocation>
83 template<class TrackingData>
85 (
86  const polyMesh& mesh,
87  const label thisFacei,
88  const label neighbourCelli,
89  const WallInfo<WallLocation>& neighbourWallInfo,
90  const scalar tol,
91  TrackingData& td
92 )
93 {
94  return
95  WallLocation::update
96  (
97  mesh.faceCentres()[thisFacei],
98  neighbourWallInfo,
99  tol,
100  td
101  );
102 }
103 
104 
105 template<class WallLocation>
106 template<class TrackingData>
108 (
109  const polyMesh& mesh,
110  const label thisFacei,
111  const WallInfo<WallLocation>& neighbourWallInfo,
112  const scalar tol,
113  TrackingData& td
114 )
115 {
116  return
117  WallLocation::update
118  (
119  mesh.faceCentres()[thisFacei],
120  neighbourWallInfo,
121  tol,
122  td
123  );
124 }
125 
126 
127 // ************************************************************************* //
#define w2
Definition: blockCreate.C:32
Holds information regarding nearest wall point. Used in wall distance calculation.
Definition: WallInfo.H:58
bool sameGeometry(const polyMesh &mesh, const WallInfo< WallLocation > &w2, const scalar tol, TrackingData &td) const
Check for identical geometrical data. Used for cyclics checking.
Definition: WallInfoI.H:34
bool updateFace(const polyMesh &, const label thisFacei, const label neighbourCelli, const WallInfo< WallLocation > &neighbourInfo, const scalar tol, TrackingData &td)
Influence of neighbouring cell.
Definition: WallInfoI.H:85
bool updateCell(const polyMesh &, const label thisCelli, const label neighbourFacei, const WallInfo< WallLocation > &neighbourInfo, const scalar tol, TrackingData &td)
Influence of neighbouring face.
Definition: WallInfoI.H:62
void transform(const polyPatch &patch, const label patchFacei, const transformer &transform, TrackingData &td)
Transform across an interface.
Definition: WallInfoI.H:48
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:80
A patch is a list of labels that address the faces in the global face list.
Definition: polyPatch.H:70
const vectorField & faceCentres() const
const vectorField & cellCentres() const
Vector-tensor class used to perform translations, rotations and scaling operations in 3D space.
Definition: transformer.H:84
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
dimensionSet transform(const dimensionSet &)
Definition: dimensionSet.C:504