Skip to content

Commit

Permalink
refactors mach / re scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Park authored and Mike Park committed Apr 7, 2022
1 parent 97918c6 commit bd744f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ref_phys.c
Expand Up @@ -648,8 +648,8 @@ REF_STATUS ref_phys_yplus_dist(REF_DBL mach, REF_DBL re, REF_DBL reference_t_k,
REF_DBL mu, nu, tau_wall, u_tau;
*yplus_dist = -1.0;
RSS(viscosity_law(t, reference_t_k, &mu), "sutherlands");
tau_wall = mu * dudn;
u_tau = sqrt(tau_wall / rho) * sqrt(mach / re);
tau_wall = mu * dudn * mach / re;
u_tau = sqrt(tau_wall / rho);
nu = mu / rho;
*yplus_dist = nu / u_tau * (re / mach);
return REF_SUCCESS;
Expand Down

0 comments on commit bd744f2

Please sign in to comment.