@@ -45,7 +45,8 @@ class CVertex : public CDualGrid {
4545 long PeriodicPoint[5 ] = {-1 }; /* !< \brief Store the periodic point of a boundary (iProcessor, iPoint) */
4646 bool ActDisk_Perimeter = false ; /* !< \brief Identify nodes at the perimeter of the actuator disk */
4747 short Rotation_Type; /* !< \brief Type of rotation associated with the vertex (MPI and periodic) */
48- unsigned long Normal_Neighbor; /* !< \brief Index of the closest neighbor. */
48+ unsigned long Normal_Neighbor; /* !< \brief Index of the closest, most normal, neighbor. */
49+ su2double NearestNeighborDist = 0.0 ; /* !< \brief Distance to nearest internal neighbor that is not a wall. */
4950 su2double Basis_Function[3 ] = {0.0 }; /* !< \brief Basis function values for interpolation across zones. */
5051
5152 public:
@@ -98,7 +99,7 @@ class CVertex : public CDualGrid {
9899 * \brief Get the normal to a face of the control volume asociated with a vertex.
99100 * \return Dimensional normal vector, the modulus is the area of the face.
100101 */
101- inline su2double* GetNormal (void ) override { return Normal; }
102+ inline su2double* GetNormal () override { return Normal; }
102103
103104 /* !
104105 * \brief Get the ith component of the normal.
@@ -108,7 +109,7 @@ class CVertex : public CDualGrid {
108109 /* !
109110 * \brief Initialize normal vector.
110111 */
111- inline void SetZeroValues (void ) override {
112+ inline void SetZeroValues () override {
112113 for (unsigned short iDim = 0 ; iDim < nDim; iDim++) Normal[iDim] = 0.0 ;
113114 }
114115
@@ -122,7 +123,7 @@ class CVertex : public CDualGrid {
122123 * \brief Get the value of an auxiliary variable for gradient computation.
123124 * \return Value of the auxiliar variable.
124125 */
125- inline su2double GetAuxVar (void ) const { return Aux_Var; }
126+ inline su2double GetAuxVar () const { return Aux_Var; }
126127
127128 /* !
128129 * \brief Add the value of an auxiliary variable for gradient computation.
@@ -167,7 +168,7 @@ class CVertex : public CDualGrid {
167168 * \brief Get the value of the coordinate variation due to a surface modification.
168169 * \return Variation of the coordinate.
169170 */
170- inline su2double* GetVarCoord (void ) { return VarCoord; }
171+ inline su2double* GetVarCoord () { return VarCoord; }
171172
172173 /* !
173174 * \brief Set the value of the cartesian coordinate for the vertex.
@@ -181,7 +182,7 @@ class CVertex : public CDualGrid {
181182 * \brief Get the value of the cartesian coordinate for the vertex.
182183 * \return Value of the cartesian coordinate of the vertex.
183184 */
184- inline su2double* GetCoord (void ) override { return CartCoord; }
185+ inline su2double* GetCoord () override { return CartCoord; }
185186
186187 /* !
187188 * \brief Get the value of the cartesian coordinate for the vertex.
@@ -200,7 +201,7 @@ class CVertex : public CDualGrid {
200201 * \brief Get the type of rotation associated to the vertex.
201202 * \return Value of the rotation that must be applied to the solution of the vertex
202203 */
203- inline short GetRotation_Type (void ) const { return Rotation_Type; }
204+ inline short GetRotation_Type () const { return Rotation_Type; }
204205
205206 /* !
206207 * \overload
@@ -250,49 +251,49 @@ class CVertex : public CDualGrid {
250251 * \brief Get the value of the periodic point of a vertex.
251252 * \return Value of the periodic point of a vertex.
252253 */
253- inline long GetDonorPoint (void ) const { return PeriodicPoint[0 ]; }
254+ inline long GetDonorPoint () const { return PeriodicPoint[0 ]; }
254255
255256 /* !
256257 * \brief Get the value of the periodic point of a vertex.
257258 * \return Value of the periodic point of a vertex.
258259 */
259- inline long GetDonorMarker (void ) const { return PeriodicPoint[4 ]; }
260+ inline long GetDonorMarker () const { return PeriodicPoint[4 ]; }
260261
261262 /* !
262263 * \brief Get the value of the periodic point of a vertex.
263264 * \return Value of the periodic point of a vertex.
264265 */
265- inline long GetDonorVertex (void ) const { return PeriodicPoint[3 ]; }
266+ inline long GetDonorVertex () const { return PeriodicPoint[3 ]; }
266267
267268 /* !
268269 * \brief Get the value of the periodic point of a vertex.
269270 * \return Value of the periodic point of a vertex.
270271 */
271- inline long GetDonorGlobalIndex (void ) const { return PeriodicPoint[2 ]; }
272+ inline long GetDonorGlobalIndex () const { return PeriodicPoint[2 ]; }
272273
273274 /* !
274275 * \brief Get the value of the periodic point of a vertex.
275276 * \return Value of the periodic point of a vertex.
276277 */
277- inline long GetGlobalDonorPoint (void ) const { return PeriodicPoint[2 ]; }
278+ inline long GetGlobalDonorPoint () const { return PeriodicPoint[2 ]; }
278279
279280 /* !
280281 * \brief Get the value of the periodic point of a vertex.
281282 * \return Value of the periodic point of a vertex.
282283 */
283- inline long GetDonorProcessor (void ) const { return PeriodicPoint[1 ]; }
284+ inline long GetDonorProcessor () const { return PeriodicPoint[1 ]; }
284285
285286 /* !
286287 * \brief Get the value of the periodic point of a vertex, and its somain
287288 * \return Value of the periodic point of a vertex, and the domain.
288289 */
289- inline long * GetPeriodicPointDomain (void ) { return PeriodicPoint; }
290+ inline long * GetPeriodicPointDomain () { return PeriodicPoint; }
290291
291292 /* !
292293 * \brief Get the value of the periodic point of a vertex, and its somain
293294 * \return Value of the periodic point of a vertex, and the domain.
294295 */
295- inline bool GetActDisk_Perimeter (void ) const { return ActDisk_Perimeter; }
296+ inline bool GetActDisk_Perimeter () const { return ActDisk_Perimeter; }
296297
297298 /* !
298299 * \brief Set the finite element basis functions needed for interpolation.
@@ -318,5 +319,15 @@ class CVertex : public CDualGrid {
318319 * \brief Get the value of the closest neighbor.
319320 * \return Index of the closest neighbor.
320321 */
321- inline unsigned long GetNormal_Neighbor (void ) const { return Normal_Neighbor; }
322+ inline unsigned long GetNormal_Neighbor () const { return Normal_Neighbor; }
323+
324+ /* !
325+ * \brief Set the distance of the nearest internal neighbor that is not a wall.
326+ */
327+ inline void SetNearestNeighborDistance (const su2double& val) { NearestNeighborDist = val; }
328+
329+ /* !
330+ * \brief Get the distance to the nearest internal neighbor that is not a wall.
331+ */
332+ inline const su2double& GetNearestNeighborDistance () const { return NearestNeighborDist; }
322333};
0 commit comments