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

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 November 29, 2010, 17:23 How to apply variabe roughness, e.g. to complex terrain? #1 New Member   Fridolin W. Join Date: Nov 2010 Posts: 1 Rep Power: 0 Hello, 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: Code: ``` "terrain_.*" { 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: Code: ``` terrain_patch0 { type nutRoughWallFunction; Cmu 0.09; kappa 0.41; E 9.8; Cs uniform 0.5; Ks uniform 0.2; value nonuniform List [...] } ``` 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

 February 22, 2011, 08:02 #2 New Member   Join Date: Feb 2011 Posts: 2 Rep Power: 0 Hi, 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 John

 September 24, 2012, 06:25 Did you ever reach a solution #3 New Member   Hanan Einav-Levy Join Date: May 2011 Posts: 10 Rep Power: 7 Hello johnblund, Have you ever reached a solution? If so, can u share it? Thanks, Hanan. p.s. - working on the same problem

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post AlanR OpenFOAM Programming & Development 54 September 9, 2016 19:01 Tarnz FLUENT 3 February 25, 2005 05:55 Dai Phoenics 10 June 15, 2003 09:20

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

 Contact Us - CFD Online - Top