diff --git a/modules/navier_stokes/src/auxkernels/RANSYPlusAux.C b/modules/navier_stokes/src/auxkernels/RANSYPlusAux.C index b3acec76ad1e..362a7ac7cd44 100644 --- a/modules/navier_stokes/src/auxkernels/RANSYPlusAux.C +++ b/modules/navier_stokes/src/auxkernels/RANSYPlusAux.C @@ -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.;