Skip to content

Commit

Permalink
revert nearestneighbor
Browse files Browse the repository at this point in the history
  • Loading branch information
bigfooted committed Feb 25, 2025
1 parent 011589f commit 3b5493d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions SU2_CFD/src/solvers/CIncNSSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -686,8 +686,7 @@ void CIncNSSolver::SetTau_Wall_WF(CGeometry *geometry, CSolver **solver_containe

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

su2double WallDistMod = geometry->vertex[iMarker][iVertex]->GetNearestNeighborDistance();

su2double WallDistMod = GeometryToolbox::Norm(int(MAXNDIM), WallDist);
su2double Density_Wall = nodes->GetDensity(iPoint);

/*--- Compute the shear stress at the wall in the regular fashion
Expand Down
3 changes: 1 addition & 2 deletions SU2_CFD/src/solvers/CNSSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -865,8 +865,7 @@ void CNSSolver::SetTau_Wall_WF(CGeometry *geometry, CSolver **solver_container,

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

const su2double WallDistMod = geometry->vertex[iMarker][iVertex]->GetNearestNeighborDistance();

const su2double WallDistMod = GeometryToolbox::Norm(int(MAXNDIM), WallDist);
su2double T_Wall = nodes->GetTemperature(iPoint);
const su2double Conductivity_Wall = nodes->GetThermalConductivity(iPoint);

Expand Down
2 changes: 1 addition & 1 deletion SU2_CFD/src/solvers/CTurbSASolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ void CTurbSASolver::Postprocessing(CGeometry *geometry, CSolver **solver_contain
FrictionVelocity = sqrt(flowNodes->GetLaminarViscosity(iPoint)*VorticityMag);
}

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

Expand Down

0 comments on commit 3b5493d

Please sign in to comment.