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

epsilon as implicit term in kEqn's

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Tobermory

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 3, 2021, 11:06
Default epsilon as implicit term in kEqn's
  #1
Senior Member
 
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 313
Rep Power: 15
agustinvo is on a distinguished road
I have remarked that in several turbulence models where the turbulent kinetic energy is solved, the dissipation term appears as:


Code:
 - fvm::Sp(alpha*rho*epsilon_/k_, k_)

and I was wondering the reason behind this piece of code. ¿Does it give some stability? As far as I see, if all the left input is constant, it means that the contribution of epsilon on the equation will be affected by the factor k_calculated/k.


¡Thank you for your answers!
agustinvo is offline   Reply With Quote

Old   March 3, 2021, 12:02
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 669
Rep Power: 14
Tobermory will become famous soon enough
Yes, stability is the reason I believe. Remember that for the source term linearisation, you must ensure that Su is positive and Sp negative in order to preserve stability (check out Patankar's book, for example). Here we have a -\epsilon term, and so we cannot put it into Su, but instead put it into Sp ... but that means that the Sp coefficient must be -\epsilon/k since the linearised source is S = S_p k + S_u.
Tobermory is offline   Reply With Quote

Old   March 3, 2021, 12:52
Default
  #3
Senior Member
 
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 313
Rep Power: 15
agustinvo is on a distinguished road
So, do you think this is the best way to introduce the dissipation rates on turbulence models?
agustinvo is offline   Reply With Quote

Old   March 3, 2021, 13:01
Default
  #4
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 669
Rep Power: 14
Tobermory will become famous soon enough
Yes. Indeed, I think it is the only way to do it without risking instability.

Okay, well strictly speaking if you have other Su source terms with positive coefficients you could try implement a scheme where you put part of the dissipation term in Su (making sure that Su stayed positive) and put the rest in Sp ... but I don't see any benefit from doing that, and it's certainly a lot of work.
Tobermory is offline   Reply With Quote

Old   March 3, 2021, 13:21
Default
  #5
Senior Member
 
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 313
Rep Power: 15
agustinvo is on a distinguished road
What disturbs me in this approach is that in the k equation you should the dissipation term as \epsilon\frac{k}{k_{init}}, where the k on the numerator changes as solving the equation. It means that in certain regions this dissipation term might be larger than the existing epsilon value (as it is multiplied by a factor k_{new}/k_{init}).


This method helps to ensure stability but I find it not so physical because of this factor.

Last edited by agustinvo; March 4, 2021 at 06:32. Reason: LaTeX
agustinvo is offline   Reply With Quote

Old   March 3, 2021, 13:28
Default
  #6
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 669
Rep Power: 14
Tobermory will become famous soon enough
Yes, understood and agreed, it is an approximation. However, it will only matter in parts of the flow where \partial k / \partial t is large; for most flows k^{n+1}/k^n \approx 1 and a good approximation to the solution is better than no solution!
agustinvo likes this.
Tobermory is offline   Reply With Quote

Old   March 4, 2021, 06:34
Default
  #7
Senior Member
 
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 313
Rep Power: 15
agustinvo is on a distinguished road
Quote:
Originally Posted by Tobermory View Post
Yes, understood and agreed, it is an approximation. However, it will only matter in parts of the flow where \partial k / \partial t is large; for most flows k^{n+1}/k^n \approx 1 and a good approximation to the solution is better than no solution!

Indeed, specially when running steady state simulations as me... I had a look on Patankar's book and I found what you meant about the source terms... I will revise my implementations! I actually had some other divergence problems, and they might be caused by this... Thank you!
agustinvo is offline   Reply With Quote

Old   March 4, 2021, 06:54
Default
  #8
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 669
Rep Power: 14
Tobermory will become famous soon enough
My pleasure! Glad to be of help.
Tobermory 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
Implicit term in the continuity equation pod OpenFOAM Running, Solving & CFD 3 March 29, 2019 13:07
Implicit source term and porousInterFoam Andrea_85 OpenFOAM Programming & Development 0 August 30, 2013 04:30
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 15:45
Extra term in Epsilon equation Valdemir G. Ferreira Main CFD Forum 0 April 30, 2000 08:57
bouyancy term in epsilon equation Michael Main CFD Forum 1 June 25, 1999 10:20


All times are GMT -4. The time now is 14:17.