Skip to content

Commit dd8d981

Browse files
committed
do not recompute y+ when wall functions are used
1 parent 17e52ea commit dd8d981

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

SU2_CFD/include/solvers/CFVMFlowSolverBase.inl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2554,7 +2554,10 @@ void CFVMFlowSolverBase<V, FlowRegime>::Friction_Forces(const CGeometry* geometr
25542554
/*--- Compute non-dimensional velocity and y+ ---*/
25552555

25562556
FrictionVel = sqrt(fabs(WallShearStress[iMarker][iVertex]) / Density);
2557-
YPlus[iMarker][iVertex] = WallDistMod * FrictionVel / (Viscosity / Density);
2557+
2558+
if (!wallfunctions) {
2559+
YPlus[iMarker][iVertex] = WallDistMod * FrictionVel / (Viscosity / Density);
2560+
}
25582561

25592562
/*--- Compute total and maximum heat flux on the wall ---*/
25602563

0 commit comments

Comments
 (0)