CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Turbulence models implementation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 11, 2006, 04:39
Default About the "I don't want to rec
  #21
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
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)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   December 11, 2006, 12:17
Default Hi Daniele! As another guy
  #22
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
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
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   December 11, 2006, 12:25
Default The message-board hates me (an
  #23
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
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)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   December 11, 2006, 12:27
Default Another try at uploading: htt
  #24
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Another try at uploading: kOmegaIncompressible.tar.gz
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   December 22, 2006, 02:21
Default Hi, I compiled the k-Omega
  #25
myting
Guest
 
Posts: n/a
Hi,

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

Thank you
Myting
  Reply With Quote

Old   December 22, 2006, 07:00
Default You can't. You'll have to edit
  #26
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
You can't. You'll have to edit constant/turbulencePropertiesDict
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   January 9, 2007, 17:01
Default Dear all, I have uploaded i
  #27
Senior Member
 
Daniele Panara
Join Date: Mar 2009
Posts: 101
Rep Power: 17
panara is on a distinguished road
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
panara is offline   Reply With Quote

Old   August 1, 2007, 05:38
Default Hi Daniele, just a small qu
  #28
Senior Member
 
Fabian Braennstroem
Join Date: Mar 2009
Posts: 407
Rep Power: 19
braennstroem is on a distinguished road
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
braennstroem is offline   Reply With Quote

Old   August 5, 2007, 11:02
Default Hi Daniele, Can you please an
  #29
Member
 
Quinn Tian
Join Date: Mar 2009
Posts: 62
Rep Power: 17
qtian is on a distinguished road
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
qtian is offline   Reply With Quote

Old   April 29, 2008, 10:28
Default Hi Daniele where should i d
  #30
Senior Member
 
wayne.zhang
Join Date: Mar 2009
Location: Shanghai, Shanghai, P.R.China
Posts: 309
Rep Power: 18
waynezw0618 is on a distinguished road
Send a message via MSN to waynezw0618 Send a message via Skype™ to waynezw0618
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
waynezw0618 is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
SA Turbulence model implementation ganesh Main CFD Forum 0 March 6, 2006 12:23
k-w Turbulence model implementation suneesh Main CFD Forum 4 November 23, 2005 17:35
Numerical Implementation of LES Wall models dragon Main CFD Forum 2 March 14, 2005 00:53
turbulence models rail cfd Main CFD Forum 7 August 25, 2004 00:20
A reference on implementation of Spalart-Alam. Turbulence Model? Mohammad Kermani Main CFD Forum 2 December 26, 1999 02:56


All times are GMT -4. The time now is 02:45.