nearWallDist.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) 2011-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 Class
25  Foam::nearWallDist
26 
27 Description
28  Distance calculation for cells with face on a wall.
29  Searches pointNeighbours to find closest.
30 
31 SourceFiles
32  nearWallDist.C
33 
34 \*---------------------------------------------------------------------------*/
35 
36 #ifndef nearWallDist_H
37 #define nearWallDist_H
38 
39 #include "DemandDrivenMeshObject.H"
40 #include "volFields.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 /*---------------------------------------------------------------------------*\
48  Class nearWallDist Declaration
49 \*---------------------------------------------------------------------------*/
50 
51 class nearWallDist
52 :
54  <
55  fvMesh,
56  DeletableMeshObject,
57  nearWallDist
58  >
59 {
60  // Private Data
61 
62  //- Near-well distance-to-wall boundary field
64 
65 
66 protected:
67 
68  friend class DemandDrivenMeshObject
69  <
70  fvMesh,
73  >;
74 
75  // Protected Constructors
76 
77  //- Construct from mesh
78  explicit nearWallDist(const fvMesh& mesh);
79 
80 
81 public:
82 
83  // Declare name of the class and its debug switch
84  ClassName("nearWallDist");
85 
86 
87  // Constructors
88 
89  //- Disallow default bitwise copy construction
90  nearWallDist(const nearWallDist&) = delete;
91 
92 
93  //- Destructor
94  virtual ~nearWallDist();
95 
96 
97  // Member Functions
98 
99  //- Access to the near-wall distances
100  const volScalarField::Boundary& y() const
101  {
102  return y_;
103  }
104 
105 
106  // Member Operators
107 
108  //- Disallow default bitwise assignment
109  void operator=(const nearWallDist&) = delete;
110 };
111 
112 
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114 
115 } // End namespace Foam
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 #endif
120 
121 // ************************************************************************* //
MeshObject types:
Definition: MeshObjects.H:67
Templated abstract base-class for demand-driven mesh objects used to automate their allocation to the...
Generic GeometricBoundaryField class.
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:99
Distance calculation for cells with face on a wall. Searches pointNeighbours to find closest.
Definition: nearWallDist.H:58
ClassName("nearWallDist")
void operator=(const nearWallDist &)=delete
Disallow default bitwise assignment.
virtual ~nearWallDist()
Destructor.
Definition: nearWallDist.C:79
nearWallDist(const fvMesh &mesh)
Construct from mesh.
Definition: nearWallDist.C:40
const volScalarField::Boundary & y() const
Access to the near-wall distances.
Definition: nearWallDist.H:99
Namespace for OpenFOAM.