Skip to content

Commit 3b5493d

Browse files
committed
revert nearestneighbor
1 parent 011589f commit 3b5493d

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

SU2_CFD/src/solvers/CIncNSSolver.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -686,8 +686,7 @@ void CIncNSSolver::SetTau_Wall_WF(CGeometry *geometry, CSolver **solver_containe
686686

687687
/*--- Compute nearest-neighbor distance of the interior point from the wall ---*/
688688

689-
su2double WallDistMod = geometry->vertex[iMarker][iVertex]->GetNearestNeighborDistance();
690-
689+
su2double WallDistMod = GeometryToolbox::Norm(int(MAXNDIM), WallDist);
691690
su2double Density_Wall = nodes->GetDensity(iPoint);
692691

693692
/*--- Compute the shear stress at the wall in the regular fashion

SU2_CFD/src/solvers/CNSSolver.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -865,8 +865,7 @@ void CNSSolver::SetTau_Wall_WF(CGeometry *geometry, CSolver **solver_container,
865865

866866
/*--- Compute nearest-neighbor distance of the interior point from the wall ---*/
867867

868-
const su2double WallDistMod = geometry->vertex[iMarker][iVertex]->GetNearestNeighborDistance();
869-
868+
const su2double WallDistMod = GeometryToolbox::Norm(int(MAXNDIM), WallDist);
870869
su2double T_Wall = nodes->GetTemperature(iPoint);
871870
const su2double Conductivity_Wall = nodes->GetThermalConductivity(iPoint);
872871

SU2_CFD/src/solvers/CTurbSASolver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ void CTurbSASolver::Postprocessing(CGeometry *geometry, CSolver **solver_contain
275275
FrictionVelocity = sqrt(flowNodes->GetLaminarViscosity(iPoint)*VorticityMag);
276276
}
277277

278-
const su2double wall_dist = geometry->vertex[iMarker][iVertex]->GetNearestNeighborDistance();
278+
const su2double wall_dist = geometry->nodes->GetWall_Distance(jPoint);
279279
const su2double Derivative = nodes->GetSolution(jPoint, 0) / wall_dist;
280280
const su2double turbulence_index = Derivative / (FrictionVelocity * 0.41);
281281

0 commit comments

Comments
 (0)