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

nutRoughwallfunction arguments

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By case
  • 1 Post By vonboett

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 17, 2011, 06:25
Default nutRoughwallfunction arguments
  #1
New Member
 
George
Join Date: Oct 2010
Posts: 18
Rep Power: 16
GGerber is on a distinguished road
Hi Openfoamers,

I would like to know what the last item represents in the following dictionary entry in 0/nut:
walls { type nutRoughWallFunction; Ks uniform 1e-5; Cs uniform 0.5; value uniform 1.0;}

Does it mean that nut is assigned a fixed value of 1 on the 'walls' patch throughout the entire simulation and Ks and Cs completely ignored? Or is nut assigned a value of 1 for the first time-step on the 'walls' patch?

I took a look at nutRoughWallFunctionFvPatchScalarField.C and nutRoughWallFunctionFvPatchScalarField.H, but could not see how the last dictionary entry was used.

Thank you,
George
GGerber is offline   Reply With Quote

Old   August 16, 2011, 04:28
Default
  #2
New Member
 
Case Bakker
Join Date: Mar 2011
Location: Cape Town, South Africa
Posts: 5
Rep Power: 15
case is on a distinguished road
Hi
It seems like in OF 2.0.1 the function nutRoughWallFunction is now nutURoughWallFunction, and the arguments have changed. They are now
value
roughnessHeight
roughnessFactor
roughnessConstant


I understand what roughnessHeight refers to, but can anyone explain what exactly the other arguments change. Can't find a definitive answer anywhere in the forums.
Thanks
Case
luismsc likes this.
case is offline   Reply With Quote

Old   August 22, 2011, 07:02
Default
  #3
New Member
 
Jochem
Join Date: May 2010
Posts: 28
Rep Power: 16
Jochem is on a distinguished road
Hi,

You can also use nutkRoughWallFunction in OF2.0. I use the turbineSiting tutorial and just change Ks and Cs to my case.

Regards
Jochem is offline   Reply With Quote

Old   August 22, 2011, 07:29
Default
  #4
New Member
 
Case Bakker
Join Date: Mar 2011
Location: Cape Town, South Africa
Posts: 5
Rep Power: 15
case is on a distinguished road
I tried to run one of my old cases made when I was using OF1.7.1 that uses nutRoughWallFunction, butgot an error message, giving me a list of the possible patches that are allowed, with nutURoughWallFunction being one of them. Had to change to nutURoughWallFunction, and also change the arguments.
case is offline   Reply With Quote

Old   July 31, 2012, 22:03
Default
  #5
hfs
Member
 
Join Date: Jul 2012
Posts: 66
Rep Power: 14
hfs is on a distinguished road
Quote:
Originally Posted by case View Post
Hi
It seems like in OF 2.0.1 the function nutRoughWallFunction is now nutURoughWallFunction, and the arguments have changed. They are now
value
roughnessHeight
roughnessFactor
roughnessConstant


I understand what roughnessHeight refers to, but can anyone explain what exactly the other arguments change. Can't find a definitive answer anywhere in the forums.
Thanks
Case
Hello!

Did you get an answer?
Thanks for sharing!
hfs is offline   Reply With Quote

Old   January 29, 2013, 10:57
Default
  #6
Senior Member
 
Albrecht vBoetticher
Join Date: Aug 2010
Location: Zürich, Swizerland
Posts: 240
Rep Power: 17
vonboett is on a distinguished road
I give it a try: scalarField& y = rasModel.y()[patchI]...that returns the near wall distances.

scalar dKsPlusdYPlus = roughnessHeight_/y[facei]

...is the ratio of roughness heigt to the near wall distance of patchI

dKsPlusdYPlus *= roughnessFactor_

...used for tuning this ratio to finally:

yp*dKsPlusdYPlus

...get the nondimensional roughness heigt based on the y+ value of the latest timestep.

I use roughnessFactor = 1.

roughnessConstant is only applied (as a multiplier) if the nondimensional roughness is bigger than 90, so I guess it is
about the issue of where the different regions of the wall velocity profiles are placed, viscid layer, log layer etc.

These are guesses by reading the source code. For generally understanding of the rough wall function, see the Thesis of
John O’Sullivan, February 2012, "MODELLING WIND FLOW OVER COMPLEX TERRAIN", especially eq. (2.55). He worked with OpenFOAM
y_jiang likes this.

Last edited by vonboett; January 29, 2013 at 11:18.
vonboett is offline   Reply With Quote

Old   June 2, 2013, 18:21
Default
  #7
New Member
 
Ksenia Kurischenko
Join Date: Jun 2013
Posts: 1
Rep Power: 0
Ksenia is on a distinguished road
Dear all,
Tell me where I can find the theoretical description of function nutURoughWallFunction?
Ksenia is offline   Reply With Quote

Old   September 17, 2014, 21:43
Default
  #8
Member
 
Gregoire Junqua
Join Date: Jun 2011
Location: China
Posts: 58
Blog Entries: 1
Rep Power: 15
gregjunqua is on a distinguished road
Dear all
I got the same question as Ksenia
where is there any bibliography about this wall function
__________________
-------------------------------------------------------
Gregoire Junqua
Ocean University of China
PhD Oceanography/ABL turbulence
-------------------------------------------------------
gregjunqua is offline   Reply With Quote

Old   June 5, 2015, 10:03
Default
  #9
Member
 
Lourenço SM
Join Date: Jul 2014
Location: Lisboa, Portugal
Posts: 41
Rep Power: 12
lourencosm is on a distinguished road
Same question!

Anyone knows where to find info on the nutURoughWallFunction?
lourencosm is offline   Reply With Quote

Reply

Tags
nutroughwallfunction


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
nutRoughWallFunction and Surface Roughness Documented AlanR OpenFOAM Programming & Development 64 January 6, 2024 08:13
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 19:44
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 07:42
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 07:25
compile errors of boundary condition "expDirectionMixed" liying02ts OpenFOAM Bugs 2 February 1, 2010 21:11


All times are GMT -4. The time now is 07:48.