# Closing on wall functions - part 1: Problem statement and general solution

 Register Blogs Members List Search Today's Posts Mark Forums Read

Rate this Entry

# Closing on wall functions - part 1: Problem statement and general solution

Posted April 23, 2022 at 05:36 by sbaffini
Updated May 14, 2022 at 16:55 by sbaffini

This is the last series of posts on wall functions, where I summarize previous findings and give them a broader context. I won't provide derivations (hopefully I'll have time to put this in a larger note), but just few statements with the proper scripts to test them.

This all started with the aim to solve the following problem:

with boundary conditions and . Here, (constant pressure specific heat), (dynamic viscosity), (Prandtl number) and (turbulent Prandtl number) are all constant and is an user specified turbulent viscosity profile better defined later. My previous attempts used a constant too, here the more general case:

is considered. The fact that this equation correctly represents a large set of velocity/temperature viscous boundary conditions should be self-evident (and you can read previous posts on the matter for explanations). Omitting derivations, assuming also , the formal solution to the problem above can be written as:

where (note the sign opposite to the classical thermal convention, but coherent to the velocity one, for ease of exposition):

.

It also imemdiately follows that:

The functions appearing above are defined as follows:

All the expressions above hold true for the velocity case as well, provided that , and are all set to 1 (in this case, for clarity, we denote the functions above as ). The average turbulent kinetic energy production can instead be shown to be:

where:

and the functions appearing above are defined as follows:

It is worth mentioning that, at this point, the formulas above are still exact for the initial problem statement, and all the details of the specific solution method have been moved to the integrals and . This, while kind of obvious, is still remarkable, as it suggests a very specific implementation for wall functions and wall bcs in general, as the formulas above are straightforward generalizations of classical laminar formulas. Note also, that we have introduced an but it just appears as extreme of the integrals and as their denominator (elevated to a certain power). In practice, it is the variable that appears in the formula, but nothing more needed to be specified about it in order to obtain the formulas above. In general, it will have a formula like , but could well just depend from the tubulent model variables.

Leaving aside, for the moment, the solution for the integrals above (we assume the availability of a routine that gives their value for given ), the general solution procedure would be as follows:
1. Solve equation above for (iteratively, if depends from it) using . Note that the equation for is obtained from the one for with , and set to 1 and the functions in place of the .
2. Determine or , depending from the available thermal bc, from the equations above using and the now certainly available (either iteratively from first step or just from turbulent variables).
3. Repeat the previous point for any scalar (with set to 1 and the Schmidt numbers in place of the Prandtl numbers, also within the s integrals)

In practice, as will be clear in a moment, I suggest to have routines that actually return and , as it is their ratio that needs to be computed. Also, for reasons that will be clear in the second post of this series, I anticipate here that for the iterative solution of in step 1 above, it is useful to have the same routine for to also return:

which is the only wall function specific term entering in the derivative for the iterative procedure. I conclude this first post by stating, without proof, that for going to 0 as with , all the above terms can be safely computed also for and their exact limits are:

The second post in the series will formalize the iterative procedure for computing .
Posted in Uncategorized