The following wall functions are those appropriate to a near- wall layer in local equilibrium, which may be written as follows:

Ur/UTAU = ln(E*Y+)/k (Equation 1)

KE = UTAU**2/SQRT(CMUCD) (Equation 2)

EP = (CMUCD)**0.75*KE**1.5/(k*Y) (Equation 3)

where:

- Ur is the absolute value of the resultant velocity parallel to the wall at the first grid node,
- UTAU is the resultant friction velocity ( = SQRT(TAUW/RHO) ),
- Y is the normal distance of the first grid point from the wall,
- Y+ is the dimensionless wall distance ( = UTAU*Y/ENUL ),
- CMUCD is a constant equal to 0.09 in the standard KE-EP model,
- k is the von Karman constant and
- E is a roughness parameter.

In PHOENICS the log-law constants k and E are set in Group 1 Section 1 of GREX3 as follows: AK = 0.41 and EWAL = 8.6, which is appropriate for smooth walls.

Equation (1) is the well-known logarithmic law of the wall.

Strictly this law should be applied to a point whose Y+ value is in the range 30 < Y+ <130.

The user may elicit printout of the Y+ values in the PHOENICS RESULT file by setting YPLS=T or WALPRN=T in the Q1 file.

The boundary condition for KE assumes that the turbulence is in local equilibrium and consequently, this set of wall functions is not really suitable under separated conditions, as turbulent energy diffusion towards the wall is significant, leading to appreciable departures from local equilibrium.

The wall function defined by equation (1) is implemented in the momentum equations by way of source terms which take the form:

Smom = rho*s*abs(Ur)*(Vw-V) (Equation 4)

where rho denotes the fluid density, s the friction factor ( = TAUW/(rho*Ur**2) ), V denotes the in-cell value of velocity, and Vw denotes the value of the velocity at the wall. The friction factor is determined from:

s = max (sturb, slam)
(Equation 5)

where:

- slam = 1./Re (Equation 6)
- sturb = (k/LN(E*Re*SQRT(sturb))**2 (Equation 7)
- Re is the local Reynolds number, defined as

Re = Ur*Y/ENUL (Equation 8)

and the expression for sturb follows from equation (1). The value of sturb is determined by iteration from equation (7).

For heat and mass transfer at the wall, the flux of the variable phi from the wall to the fluid is given by:

Sphi = rho*St*abs(Ur)*(phiw-phi) (Equation 9)

in which phi denotes the in-cell value of the heat- or mass-transfer variable, and phiw denotes the wall value of phi. St is the Stanton number ( = -Qw/(rho*Cp*abs(Ur)*(phi-phiw) ), determined from:

St = max (Stturb, Stlam)
(Equation 10)

where:

- Stlam = 1./(Prt*Re) (Equation 11)
- Stturb = sturb/(Prt*(1.+Pm*SQRT(sturb))) (Equation 12)
- where the Pm is the smooth-wall sublayer-resistance function of Jayatilleke [1969]
- Pm = 9.*(Prl/Prt-1)*(Prt/Prl)**0.25 (Equation 13)
- Prt and Prl denote the turbulent and laminar Prandtl numbers respectively.

Elhadidy [1980] proposed a Pm-function that applies to the whole Prl range, and is given by:

Pm = (Ym)*[b**0.72 - 1] -(1/k)*ln{[1 - k*(Ym)*b**0.72]/[1 + k*(Y+)]} +

(1/k)*ln[(1 + k*(y+)*b)/(1 +
k*(y+)]

where; Ym=11.5 and b =(Prl/Prt). This has been successfully validated for low Prl fluids such as liquid metals, but has yet to be implemented in PHOENICS.