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

Doubt in GAMMA scheme

Register Blogs Community New Posts Updated Threads Search

Like Tree6Likes
  • 6 Post By hjasak

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 22, 2014, 07:46
Question Doubt in GAMMA scheme
  #1
Senior Member
 
T. Chourushi
Join Date: Jul 2009
Posts: 321
Blog Entries: 1
Rep Power: 17
Tushar@cfd is on a distinguished road
Dear ALL,

In gamma scheme, the gamma coefficient is multiplied with "2" where gamma coefficient varies from 0.1 to 0.5.

Whereas in OpenFOAM, I am finding it difficult to understand why the gamma coefficient is divided by "2". Refer code below for OpenFOAM:

Code:
k_ = max (k_/2.0, SMALL)
Correct me if I am wrong.
Tushar@cfd is offline   Reply With Quote

Old   January 16, 2015, 12:27
Default
  #2
Senior Member
 
dkxls's Avatar
 
Armin
Join Date: Feb 2011
Location: Helsinki, Finland
Posts: 156
Rep Power: 19
dkxls will become famous soon enough
Not the newest thread, I know. But, an OpenFOAM developer (i.e. Henry Weller) gave some clarifications on this issue:
http://www.openfoam.org/mantisbt/view.php?id=1491#c3545

Hope this is of help!
dkxls is offline   Reply With Quote

Old   January 16, 2015, 12:32
Default
  #3
Senior Member
 
dkxls's Avatar
 
Armin
Join Date: Feb 2011
Location: Helsinki, Finland
Posts: 156
Rep Power: 19
dkxls will become famous soon enough
And I found another reference, where Hrvoje Jasak states basically the same:
http://www.cfd-online.com/Forums/ope...tml#post189665

Well, this inconsistency between the implementation and the original paper apparently leads every now and then to some confusion.
dkxls is offline   Reply With Quote

Old   January 17, 2015, 03:12
Default
  #4
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
Actually, I changed it on purpose, after publishing the paper.

The natural range for k (see paper) is between 0 and 0.5. People were using the scheme with any number. The clever ones used the 0-1 range andwe ven got attempts to use 10!

Therefore, I have re-scaled the factor and bound it to 0-1.

In practical simulations, you will not be able to tell the difference.

Hrv
Tushar@cfd, J-P, dkxls and 3 others like this.
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak 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
Why RNGkepsilon model gives floating error shipman OpenFOAM Running, Solving & CFD 3 September 7, 2013 08:00
Question about gamma intgerpolation scheme titio OpenFOAM Running, Solving & CFD 0 July 26, 2010 10:22
Differences between serial and parallel runs carsten OpenFOAM Bugs 11 September 12, 2008 11:16
Fundamental problem with Gamma scheme dominik_christ OpenFOAM Running, Solving & CFD 3 August 29, 2008 08:24
?to implement gamma differencing scheme Gonski Main CFD Forum 15 January 28, 2007 17:00


All times are GMT -4. The time now is 04:12.