CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Running, Solving & CFD

How to apply variabe roughness, e.g. to complex terrain?

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

LinkBack Thread Tools Display Modes
Old   November 29, 2010, 17:23
Question How to apply variabe roughness, e.g. to complex terrain?
New Member
Fridolin W.
Join Date: Nov 2010
Posts: 1
Rep Power: 0
Fridolin is on a distinguished road

I'm new to OpenFOAM and am trying to run wind simulations over complex terrain. I'm just working my way through simpleWindFoam and the turbineSiting tutorial. I understand that in 0/nut a constant roughness is applied to the complex terrain surface:

        type            nutRoughWallFunction;
        Ks              0.2; //Ks = 20 Z0
        Cs              0.5;
        value           uniform 0.0;
Now I would like to apply non-uniform roughness to the terrain. I understand I could set up several patches and apply BC type nutRoughWallFunction to all of them but with varying Ks and Cs. But is it also possible to define variable roughness pointwise, i.e. defining the BC type nutRoughWallFunction as above but set a non-uniform list for Ks and Cs?

NB: I had a look into nut in a later time directory, e.g. 50/nut and there it says:

        type            nutRoughWallFunction;
        Cmu             0.09;
        kappa           0.41;
        E               9.8;
        Cs              uniform 0.5;
        Ks              uniform 0.2;
        value           nonuniform List<scalar>
Cs (and Ks) being set to uniform 0.5 (and 0.2 respectively) suggests that it could also be set to a non-uniform list, i.e. roughness could be defined point-wise. However, I am not sure that doing this in 0/nut would make the nutRoughWallFunction "understand" what I want.

Any help greatly appreciated!!!

Thanks, Fridolin
Fridolin is offline   Reply With Quote

Old   February 22, 2011, 08:02
New Member
Join Date: Feb 2011
Posts: 2
Rep Power: 0
johnblund is on a distinguished road

I am working on this issue now. My first thought was to apply different roughness to different patches, but this solution is not very flexible.

If anyone else have some info or hints on this issue, they will be appreciated

kind regards
johnblund is offline   Reply With Quote

Old   September 24, 2012, 06:25
Default Did you ever reach a solution
New Member
Hanan Einav-Levy
Join Date: May 2011
Posts: 10
Rep Power: 6
hananfoam is on a distinguished road
Hello johnblund,
Have you ever reached a solution?
If so, can u share it?


p.s. - working on the same problem
hananfoam is offline   Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
nutRoughWallFunction and Surface Roughness Documented AlanR OpenFOAM Programming & Development 48 July 31, 2015 02:47
complex roughness pattern Tarnz FLUENT 3 February 25, 2005 05:55
Complex terrain geometry as using AutoCAD? Dai Phoenics 10 June 15, 2003 09:20

All times are GMT -4. The time now is 15:37.