CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

k-epsilon source terms

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 10, 2007, 07:52
Default k-epsilon source terms
  #1
George
Guest
 
Posts: n/a
Hello, I am writing a finite volume code incorporating the k-epsilon turbulence model (so far), and in the source term of the k and epsilon equation the dissipation function (GEN) sometimes gets negative values in the beginning of the simulation (compressible fluid), when the residuals are quite high still. My question is, should I 'let' these negative values enter the Su and Sp, or when GEN becomes negative should I consider it as zero and do not add it in the source terms of the equations?

Thank you in advance!
  Reply With Quote

Old   February 10, 2007, 15:08
Default Re: k-epsilon source terms
  #2
cees
Guest
 
Posts: n/a
George,

For a k-eps model it is very important to have a positive scheme. Instead of introducing a negative source term in the k and eps equation (on the right hand side) you can have a positive matrix coef using the following trick:

In the k - equation you have the term -eps. Suppose you multiply and divide this term with k:

- eps*k/k

This will not help much, but if you use k on two different time steps:

-eps*k(n+1)/k(n)

(where n is the previous and n+1 the next time step) you have changed the explicit term into an implicit positive matrix coeficient, namely +eps/k(n)

The same procedure can be used with the source term in the eps equation.

No more negative values!

Succes,

Cees
  Reply With Quote

Old   February 10, 2007, 18:05
Default Re: k-epsilon source terms
  #3
Bignose
Guest
 
Posts: n/a
You might want to look at a few of the positivity preserving schemes out there, too. The work by Ilinca and Pelletier comes to mind. "Positivity Preservation and Adaptive Solution for the k-epsion model of Turbulence" in AIAA Journal Vol 36, 1998. Ilinca and Pelletier have several other papers out there too, Web of Science or some other paper database should turn up several papers. They all list most of the details of their scheme.

Basically the idea is to write equation for the log of k & e, not k & e themselves.

Another try is to just take the absolute values of the results the first few steps. If you don't need the transient data, this method sometimes works too, though I would consider this a method of absolute last resort.
  Reply With Quote

Old   February 14, 2007, 09:06
Default Re: k-epsilon source terms
  #4
George
Guest
 
Posts: n/a
Thanks for your answer.

You mean to use the k in two different time-steps (k(n+1, k(n)) or in two different iterations? Can you explain a little further this trick?

Thank you in advance!
  Reply With Quote

Old   February 21, 2007, 14:29
Default Re: k-epsilon source terms
  #5
cees
Guest
 
Posts: n/a
George,

In two different time steps.

regards,

Cees
  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
wmake compiling new solver mksca OpenFOAM Programming & Development 14 June 22, 2018 06:29
[swak4Foam] swak4foam building problem GGerber OpenFOAM Community Contributions 54 April 24, 2015 16:02
pisoFoam compiling error with OF 1.7.1 on MAC OSX Greg Givogue OpenFOAM Programming & Development 3 March 4, 2011 17:18
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


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