CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Typo in alphatWallFunctionFvPatchScalarField.H ?

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

LinkBack Thread Tools Search this Thread Display Modes
Old   June 28, 2020, 16:31
Question Typo in alphatWallFunctionFvPatchScalarField.H ?
alexander thierfelder
Join Date: Dec 2019
Posts: 71
Rep Power: 3
superkelle is on a distinguished road
Hi does someone know if it is on purpose, that in alphatWallFunctionFvPatchScalarField.H calculation example in the description for alpha over Pr is done with mu instead of nu or is it a typo? It should be alpha=nu/Pr in my understanding.

The turbulent thermal diffusivity calculated using:

            \alpha_t = \frac{\mu_t}{Pr_t}
On the other side in the usage part stands the option to specify the field name with nut asn an example.

        Property     | Description             | Required    | Default value
        nut          | turbulence viscosity field name | no  | nut
        Prt          | turbulent Prandtl number | no          | 0.85

In the actual calculation in alphatWallFunctionFvPatchScalarField.C they also use


So it seems that they really calculate it that way.

I do not really get it.
superkelle is offline   Reply With Quote

Old   July 11, 2020, 15:00
alexander thierfelder
Join Date: Dec 2019
Posts: 71
Rep Power: 3
superkelle is on a distinguished road
Ok there is no typo here they also discussed the topic:


In short:

alpha or alphaeff is something like a energy diffusivity not the "textbook" thermal diffusivity and also not the thermal conductivity. It is the thermal diffusivity multiplied by density, or thermal conductivity divided by the isobaric heat capacity. (In most cases, there are some differences depending the energy you are solving for and or if you have a decoupled heat equation -> incompressible ... I think, feel free to correct me)

\alpha = \frac{\lambda}{c_p}=\frac{\rho \nu}{Pr}=\rho a

And the effective value ist the "laminar" value plus the turbulent value.
\alpha_eff = \alpha_{lam} + \alpha_{turb}
superkelle is offline   Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Typo in CFD-Direct Energy equation Tobi OpenFOAM 2 March 6, 2017 04:42
typo in programmers guide? about su and sp sharonyue OpenFOAM 2 March 21, 2015 08:50
Please confirm, if this is a bug or a typo N. A. OpenFOAM 0 August 18, 2010 13:51
Typo in komega.H Adam_Lavely OpenFOAM Bugs 3 April 1, 2010 15:49
Typo in User Guide - Please Check jaswi OpenFOAM Bugs 2 June 29, 2009 18:03

All times are GMT -4. The time now is 14:11.