@@ -469,21 +469,19 @@ void CTurbSSTSolver::BC_HeatFlux_Wall(CGeometry *geometry, CSolver **solver_cont
469469 su2double wall_dist = GetNearest_Neighbor (geometry,iPoint,val_marker, iVertex);
470470
471471 const auto jPoint = geometry->vertex [val_marker][iVertex]->GetNormal_Neighbor ();
472- su2double distance2 = GeometryToolbox::SquaredDistance (nDim,
473- geometry->nodes ->GetCoord (iPoint),
474- geometry->nodes ->GetCoord (jPoint));
472+ // su2double distance2 = GeometryToolbox::SquaredDistance(nDim,
473+ // geometry->nodes->GetCoord(iPoint),
474+ // geometry->nodes->GetCoord(jPoint));
475475 /* --- Set wall values ---*/
476476
477- if (wall_dist < 1.0e-12 ) {cout <<" setting walldist to " << sqrt (distance2) << endl; wall_dist = sqrt (distance2);}
478-
479477 su2double density = solver_container[FLOW_SOL]->GetNodes ()->GetDensity (jPoint);
480478 su2double laminar_viscosity = solver_container[FLOW_SOL]->GetNodes ()->GetLaminarViscosity (jPoint);
481479
482480 su2double beta_1 = constants[4 ];
483481 su2double solution[MAXNVAR];
484482 solution[0 ] = 0.0 ;
485- // solution[1] = 60.0*laminar_viscosity/(density*beta_1*wall_dist*wall_dist);
486- solution[1 ] = 60.0 *laminar_viscosity/(density*beta_1*distance2);
483+ solution[1 ] = 60.0 *laminar_viscosity/(density*beta_1*wall_dist*wall_dist);
484+ // solution[1] = 60.0*laminar_viscosity/(density*beta_1*distance2);
487485
488486 /* --- Set the solution values and zero the residual ---*/
489487 nodes->SetSolution_Old (iPoint,solution);
@@ -1042,8 +1040,6 @@ su2double CTurbSSTSolver::GetNearest_Neighbor(CGeometry *geometry, unsigned lon
10421040 su2double distance = 0.0 ;
10431041 unsigned long Point_Normal, jPoint;
10441042
1045- const su2double* Coord_i = geometry->nodes ->GetCoord (iPoint);
1046-
10471043 /* --- Compute closest normal neighbor, note that the normal are oriented inwards ---*/
10481044 Point_Normal = 0 ;
10491045 // we use distance
@@ -1062,39 +1058,21 @@ su2double CTurbSSTSolver::GetNearest_Neighbor(CGeometry *geometry, unsigned lon
10621058 }
10631059
10641060
1065- // if (jPoint==0) {
10661061 if (Point_Normal==0 ) {
10671062 cout << " no point found at i = " << iPoint << endl;
10681063 su2double Area = 0.0 ;
10691064 su2double TwoVol = 2.0 * (geometry->nodes ->GetVolume (iPoint) + geometry->nodes ->GetPeriodicVolume (iPoint));
10701065 for (size_t iNeigh = 0 ; iNeigh < geometry->nodes ->GetnPoint (iPoint); ++iNeigh) {
10711066 size_t iEdge = geometry->nodes ->GetEdge (iPoint, iNeigh);
1072-
1073- /* --- Determine if edge points inwards or outwards of iPoint.
1074- * If inwards we need to flip the area vector. ---*/
1075-
1076- // su2double dir = (iPoint < jPoint) ? 1.0 : -1.0;
1077- // su2double weight = dir * TwoVol;
1067+ size_t jPoint = geometry->nodes ->GetPoint (iPoint, iNeigh);
10781068 const su2double* Normal = geometry->edges ->GetNormal (iEdge);
10791069 Area = GeometryToolbox::Norm (nDim, Normal);
10801070
10811071 dist_min += TwoVol / Area;
10821072 cout << " distmin = " << dist_min << " , vol = " <<TwoVol << " , Area=" << Area<< endl;
10831073 }
10841074 cout << " distmin = " << dist_min << " , vol = " <<TwoVol << " , Area=" << Area<< endl;
1085- dist_min = 0.0 ;
10861075 }
10871076
1088- // // old value of yplus
1089- // su2double yplus = GetYPlus(iMarker,iVertex);
1090- // unsigned long iPointNormal = geometry->vertex[iMarker][iVertex]->GetNormal_Neighbor();
1091- // const su2double *Coord_Normal = geometry->nodes->GetCoord(iPointNormal);
1092- // const su2double *Coord = geometry->nodes->GetCoord(iPoint);
1093-
1094- // su2double WallDistMod = GeometryToolbox::Distance(nDim, Coord, Coord_Normal);
1095- // // new value of y+
1096- // yplus = dist_min * (yplus / WallDistMod);
1097- // SetYPlus(yplus,iMarker,iVertex);
1098-
10991077 return (dist_min);
11001078}
0 commit comments