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

k-equation in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 18, 2017, 18:14
Default k-equation in OpenFOAM
  #1
Member
 
Join Date: Jun 2017
Posts: 73
Rep Power: 9
Friendly is on a distinguished road
Hi,

I have some question about the k-equation implementation. I have found the following source code in force kEpsilon.C:

Code:
// Turbulent kinetic energy equation                           
tmp<fvScalarMatrix> kEqn                           
(                               
fvm::ddt(alpha, rho, k_)                             
+ fvm::div(alphaRhoPhi, k_)                             
- fvm::laplacian(alpha*rho*DkEff(), k_)                            
==                               
alpha()*rho()*G                             
- fvm::SuSp((2.0/3.0)*alpha()*rho()*divU, k_)                             
- fvm::Sp(alpha()*rho()*epsilon_()/k_(), k_)                             
+ kSource()                             
+ fvOptions(alpha, rho, k_)
1.Why is there an alpha respectivly alphaRhoPhi in the equation? Does it have something to do with heat transport? I suppose is alpha is equal to 1 if heat transport is ignored. But also I exptected instead of alpharRhoPhi the mean mean velocity infront of the div(k_). Why is it missing?

2. What does SuSp and Sp mean? And why are there additional "+ kSource() + fvOptions(alpha, rho, k_)"? What do they mean?

Can anyone help?

EDIT: I just remembered that alpha might be from boussinesq. But I am still missing the meaning of alphaRhoPhi


Greetings,
Friendly
Friendly is offline   Reply With Quote

Old   December 21, 2017, 09:25
Default
  #2
Senior Member
 
shereez234's Avatar
 
M Sereez
Join Date: Jan 2014
Location: England
Posts: 353
Blog Entries: 1
Rep Power: 13
shereez234 is on a distinguished road
Quote:
Originally Posted by Friendly View Post
Hi,

I have some question about the k-equation implementation. I have found the following source code in force kEpsilon.C:

Code:
// Turbulent kinetic energy equation                           
tmp<fvScalarMatrix> kEqn                           
(                               
fvm::ddt(alpha, rho, k_)                             
+ fvm::div(alphaRhoPhi, k_)                             
- fvm::laplacian(alpha*rho*DkEff(), k_)                            
==                               
alpha()*rho()*G                             
- fvm::SuSp((2.0/3.0)*alpha()*rho()*divU, k_)                             
- fvm::Sp(alpha()*rho()*epsilon_()/k_(), k_)                             
+ kSource()                             
+ fvOptions(alpha, rho, k_)
1.Why is there an alpha respectivly alphaRhoPhi in the equation? Does it have something to do with heat transport? I suppose is alpha is equal to 1 if heat transport is ignored. But also I exptected instead of alpharRhoPhi the mean mean velocity infront of the div(k_). Why is it missing?

2. What does SuSp and Sp mean? And why are there additional "+ kSource() + fvOptions(alpha, rho, k_)"? What do they mean?

Can anyone help?

EDIT: I just remembered that alpha might be from boussinesq. But I am still missing the meaning of alphaRhoPhi


Greetings,
Friendly

alpharhophi has rhophi which has the flux which has the velocities in it.
shereez234 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
Porous Modeling of Energy equation in OpenFOAM mohammad_kordo OpenFOAM Running, Solving & CFD 9 November 22, 2020 08:18
OpenFOAM 5.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 11 June 6, 2018 00:48
OpenFOAM 4.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 2 October 6, 2017 06:40
Population Balance Equation in OpenFOAM Amjad Asad OpenFOAM Programming & Development 0 January 19, 2016 06:14
Solving Advection-reaction Equation using OpenFoam arijith OpenFOAM Programming & Development 1 October 13, 2014 11:02


All times are GMT -4. The time now is 06:32.