CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Turbulence models implementation (https://www.cfd-online.com/Forums/openfoam-solving/58916-turbulence-models-implementation.html)

gschaider December 11, 2006 04:39

About the "I don't want to rec
 
About the "I don't want to recompile the Original-Libs if I test a new turbulence model" problem mentioned above. I did a small patch the supports that:

http://openfoamwiki.net/non_cdl/Open...ib_plugInPatch

With that patch you develop your turbulence model in a separate library (for instance libKOmega.so). If you want to use the new turbulence model with your case you add a file constant/plugInDict to it which has an entry that tells the executable to load the library. From then on all the turbulence models in the library are usable like the "regular" ones in the distribution (due to the technical wonder that is called runTime-selection). And there is no need to recompile Executables like rhoTurbFoam. (But you have to recompile libOpenFOAM.so once)

(BTW: this works for everything that is runTime-selectable: BCs, thermoPhysical-models etc)

gschaider December 11, 2006 12:17

Hi Daniele! As another guy
 
Hi Daniele!

As another guy here wants to test-drive your k-omega-Implementation and I don't want to modify our OpenFOAM-installation, I took the liberty and reorganized the code a bit into a library. Now the k-omega model should live in peace with the other incompressible turbulence models. You can either add it to a solver with -lkOmegaIncompressible or use the plugIn-patch described above.

What I did was add an intermediate class turbulenceModelOmega and let all kOmega-Models inherit from that. The class adds a method to calculate epsilon (because turbulenceModel expects that) from omega (I'm not sure about that. Maybe there is a Cmu missing in there).

Apart from that I didn't touch the physics (I hope).



regards
Berhard

gschaider December 11, 2006 12:25

The message-board hates me (an
 
The message-board hates me (and won't let me load up an attachment). The code of the library can be found at:
http://openfoamwiki.net/index.php/Im...essible.tar.gz
(but I'll try to upload the file once more)

gschaider December 11, 2006 12:27

Another try at uploading: htt
 
Another try at uploading: http://www.cfd-online.com/OpenFOAM_D...hment_icon.gif kOmegaIncompressible.tar.gz

myting December 22, 2006 02:21

Hi, I compiled the k-Omega
 
Hi,

I compiled the k-Omega Model successful.My question is how I can use it in FoamX?

Thank you
Myting

gschaider December 22, 2006 07:00

You can't. You'll have to edit
 
You can't. You'll have to edit constant/turbulencePropertiesDict

panara January 9, 2007 17:01

Dear all, I have uploaded i
 
Dear all,

I have uploaded in the openFoam wiki the k-omega SST sas model.
I tested the model and the results seem to be quite ok..

have fun

Daniele

braennstroem August 1, 2007 05:38

Hi Daniele, just a small qu
 
Hi Daniele,

just a small question about the k-omega SST SAS model. Do you think that it can be used for room airflow calculations with mixed convection?

Regards!
Fabian

qtian August 5, 2007 11:02

Hi Daniele, Can you please an
 
Hi Daniele,
Can you please answer some my questions about your comments regarding "no it works without wall functions you have to specify omega at the boundary equal to 10*6*nu/(beta deltay^2)"?
Is the SST model in OPFoam 1.4 from this thread?

Do I have to refine my mesh near the wall accordingly: Y+>40 for high Reynolds RANS models, like for the K-epsilon model?

I am running a simulation of three dimensional flow over a hill with k-epsilon and k-omega model. I am very interested in the near wall pressure (adverse pressure gradient) and velocity results. Will this SST model behave well for this kind of flow, without wall function treatment?

Thank for your help and comment! If anyone can answer my question, please do so and I really appreciate it.

Quinn

waynezw0618 April 29, 2008 10:28

Hi Daniele where should i d
 
Hi Daniele

where should i download you code of SST-SAS model and is there any tutorial of that?
or could you please send me a copy?

thanks!

wayne


All times are GMT -4. The time now is 05:26.