OpenFOAM wall functions
Hello All,
I am working with pisoFoam solver and running several RANS turbulence models (k-e, RNG, ...). I believe that these turbulence models use the standard wall functions for near wall regions. For instance, when I look at inside the nut dictionary at 0 in k-e turbulence modeling, it uses nutkWallFunction. I have two questions: 1. What is this nutkWallFunction exactly (the concept, the formulation, and where can I find the implementation in OF)? 2. How can I change the roughness of the wall function within OpenFOAM? I believe that wall functions must have a roughness coefficient for the model calculation that we should be able to change it. More specifically, I want to see the effect of changing the roughness in my model! How is it possible to change this coefficient? Thank you for reading this thread and thanks for your time. Gildeh |
1) your answer is in the source code:
OpenFOAM-2.1.x / src / turbulenceModels / incompressible / RAS / derivedFvPatchFields / wallFunctions / nutWallFunctions / nutkWallFunction / nutkWallFunctionFvPatchScalarField.H ,gives you: Code:
Description Code:
forAll(nutw, faceI) https://github.com/OpenFOAM/OpenFOAM...hScalarField.H 2) check the relative wall function for rough wall. You will find the description in the .H file and the formula used in the .C file. |
I just saw your answer while I was doing another research:
http://foam.sourceforge.net/docs/cpp/a01446.html |
All times are GMT -4. The time now is 13:10. |