CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

RealizableKE & nutkAtmRoughWallFunction

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

Like Tree1Likes
  • 1 Post By Sylvain

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 28, 2025, 11:19
Default RealizableKE & nutkAtmRoughWallFunction
  #1
Member
 
Sylvain Aguinaga
Join Date: Feb 2010
Posts: 44
Rep Power: 17
Sylvain is on a distinguished road
Good afternoon,

We found a bug when using the RealizableKE turbulence model together with the nutkAtmRoughWallFunction.

With a very simple test case of a parallelepiped domain with an ABL profile at the inlet, such as in the TurbineSitting tutorial, one can see that the velocity profile is maintained throughout the domain.

When switching to realizable KE, the profile changes throughout the domain, with the velocity decreasing too quickly near the ground.
A slice at z=10m from the ground shows it well.

This problem was not happening in OpenFOAM 10. It is present in both OpenFOAM 12 and OpenFOAM 13.

If anyone has experienced such a problem, any insight would be appreciated.

Best regards
Sylvain is offline   Reply With Quote

Old   November 10, 2025, 07:34
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 869
Rep Power: 19
Tobermory will become famous soon enough
There are a number of possible reasons for the boundary layer developing over the length of the domain, none of which are "bugs in the turbulence model".

In fact, a constant profile is an unnatural state for a zero pressure gradient boundary layer - like any boundary layer, it wants to grow in height with downstream distance. However, this evolution will generally take a number of boundary layer heights of downstream distance to occur, so is unlikely to be the cause here.

Things for you to check: do your inlet boundary profiles match the wall roughness? What boundary condition have you applied at the top of the domain and is this consistent with the height of your domain and height of your boundary layer? This "simple" test case is very sensitive to the boundary conditions that you have applied.
Tobermory is offline   Reply With Quote

Old   November 12, 2025, 06:12
Default
  #3
Member
 
Sylvain Aguinaga
Join Date: Feb 2010
Posts: 44
Rep Power: 17
Sylvain is on a distinguished road
Well, there was actually a bug, but it was solved

https://bugs.openfoam.org/view.php?id=4165

I didn't check out, my bad

You have to add "nutMaxCoeff 1e8" in "constant/momentumTransport"

It was not present in the turbineSitting tutorial in the early releases of OF12, and i didn't check back the tutorial in OF13, my bad again...

It was due the addition of the boundEpsilon function in the kEpsilon model

Thank you very much Henry Weller for helping us on this subject

Once you add "nutMaxCoeff 1e8" in "constant/momentumTransport" it works perfectly fine

Hope the post might be helpfull anyway
dlahaye likes this.
Sylvain is offline   Reply With Quote

Old   November 12, 2025, 06:25
Default
  #4
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 869
Rep Power: 19
Tobermory will become famous soon enough
Aaah - I had forgotten about that - I was the one who actually put the bug request in to Henry to get that fixed in the tutorial!
Tobermory is offline   Reply With Quote

Reply

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
Issue compiling solver for OF 2.4 klausb OpenFOAM Programming & Development 8 August 1, 2018 20:15
Variation between kEpsilon and realizableKE Thangam OpenFOAM Running, Solving & CFD 1 January 5, 2014 05:29
realizableKE hanging and then exploding vaina74 OpenFOAM Running, Solving & CFD 4 January 10, 2013 09:54
RealizableKE cfdengineering OpenFOAM Running, Solving & CFD 9 March 31, 2011 04:45


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