Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
freiler committed Jun 17, 2024
1 parent af9bcf8 commit cab9c69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/navier_stokes/src/auxkernels/RANSYPlusAux.C
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,10 @@ RANSYPlusAux::computeValue()
// Equilibrium / Iterative
y_plus = NS::findyPlus(mu, rho, std::max(parallel_speed, 1e-10), distance);
}
y_plus_vec.push_back(raw_value(y_plus));
}
return raw_value(y_plus);
// Return average of y+ for cells with multiple wall faces
return 1.0 * std::accumulate(y_plus_vec.begin(),y_plus_vec.end(),0.0) / y_plus_vec.size();
}
else
return 0.;
Expand Down

0 comments on commit cab9c69

Please sign in to comment.