Contrib/roughnessToFoam

From OpenFOAMWiki
< Contrib
Revision as of 12:45, 14 October 2012 by Hananlevy (Talk | contribs)

Valid versions: OF Version 21.png


1 = under construction

2 Short description

A utility for reading a z0 destribution in a WAsP map file writing z0 dictionary file, and copying it into nut nutkAtmRoughWallFunction or other wall boundary conditions requiring z0. The code is a copy of Xabier Pedruelo Tapia's MsC. thesis roughnessToFoam utility, changed to produce z0 rather then Ks and Cs dictionary's.

3 Usage

The original utility is described in the appendix of Xabier Pedruelo Tapia's MsC. thesis. The changes I made to the C code are:

  • Writing z0 dictionary rather then Cs and Ks
  • writing the general z0 value outside of the polygons -
    • For every polygon, two values are expected - z0 inside the polygon , and z0 outside of the polygon.
    • The value outside of the first polygon is used as the value for the entire field, and only then is each polygon probed and the value

Source of example and original code: [http:// example case hill with variable roughness]

4 Download

Get the most recent version here: http://

git clone http://
cd 
wmake

5 History

--Hananlevy (talk) 12:55, 14 October 2012 (CEST)