Air density $\rho = 1.225$ kg/m³ is fixed. $u_\tau = U_\infty\sqrt{c_f/2}$, $y^+ = y\,u_\tau/\nu$.
Schematic from the wall (left) outward. Green = viscous sublayer (y+ < 5) / orange = buffer (5 to 30) / blue = log law (30 to 300) / red = unresolved (y+ >= 300). Yellow arrow marks the current y+ location.
x-axis = $\log_{10}(y^+)$ from -1 to 3 / y-axis = $u^+ = U/u_\tau$ / blue = viscous sublayer law $u^+ = y^+$ / orange = log law $u^+ = (1/\kappa)\ln(y^+) + B$ with $\kappa = 0.41$, $B = 5.0$ / yellow dot = theoretical $u^+$ at the current $y^+$.
Definition of the dimensionless wall distance ($y$ = wall to first cell center, $u_\tau$ = friction velocity, $\nu$ = kinematic viscosity):
$$y^+ = \frac{y\,u_\tau}{\nu}$$For a flat-plate boundary layer the friction velocity follows from the wall shear stress $\tau_w$, density $\rho$ and skin-friction coefficient $c_f$:
$$u_\tau = \sqrt{\frac{\tau_w}{\rho}},\qquad \tau_w = \tfrac{1}{2}\,c_f\,\rho\,U_\infty^2,\qquad u_\tau = U_\infty\sqrt{\frac{c_f}{2}}$$The near-wall dimensionless velocity $u^+ = U/u_\tau$ obeys different laws in each region:
$$u^+ = \begin{cases} y^+ & (y^+ < 5,\ \text{viscous sublayer}) \\ \dfrac{1}{\kappa}\ln(y^+) + B & (y^+ \ge 30,\ \text{log law}) \end{cases}$$$\kappa \approx 0.41$ (von Karman constant), $B \approx 5.0$ (smooth wall). For CFD use $y^+ < 1$ with SST k-omega or Spalart-Allmaras in low-Re mode, and $30 \le y^+ < 300$ with k-epsilon plus wall functions. The buffer layer ($5 \le y^+ < 30$) violates both assumptions and is the region where a first cell must not be placed.