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

add a phase diffusion term in k-epsilon turbulence model

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 12, 2020, 12:23
Question add a phase diffusion term in k-epsilon turbulence model
  #1
Senior Member
 
kimy
Join Date: Mar 2019
Location: https://t.me/pump_upp
Posts: 164
Rep Power: 7
qi.yang@polimi.it is on a distinguished road
Send a message via ICQ to qi.yang@polimi.it Send a message via AIM to qi.yang@polimi.it Send a message via Yahoo to qi.yang@polimi.it
Hi guys,

I would like to add a diffusion term into the k-epsilon equations so I wrote the following code:

- fvm::div(fvc::snGrad(alpha)*mesh.magSf()*fvc::inte rpolate(nut*rho), k_)

tmp<fvScalarMatrix> epsEqn
(
fvm::ddt(alpha, rho, epsilon_)
+ fvm::div(alphaRhoPhi, epsilon_)
- fvm::laplacian(alpha*rho*DepsilonEff(), epsilon_)
==
C1_*alpha()*rho()*G*epsilon_()/k_()
- fvm::SuSp(((2.0/3.0)*C1_ - C3_)*alpha()*rho()*divU, epsilon_)
- fvm::Sp(C2_*alpha()*rho()*epsilon_()/k_(), epsilon_)
- fvm::div(fvc::snGrad(alpha)*mesh.magSf()*fvc::inte rpolate(nut*rho), epsilon_)

However it cannot be compiled. Please help me to check where I need to modified. Thanks a lot!
Attached Images
File Type: jpg Picture3.jpg (16.9 KB, 4 views)
qi.yang@polimi.it is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
k and Epsilon is not converging in kEpsilon Turbulence model Raza Javed OpenFOAM Running, Solving & CFD 2 March 2, 2022 22:34
Define different turbulence model for each phase (multiphaseEulerFoam) remidemol OpenFOAM Running, Solving & CFD 2 February 27, 2018 18:57
Error in Two phase (condensation) modeling adilsyyed CFX 15 June 24, 2015 20:42
Adding an energy source term to a phase with reactions lxlxlxt Fluent Multiphase 0 February 10, 2014 21:42
Discussion: Reason of Turbulence!! Wen Long Main CFD Forum 3 May 15, 2009 10:52


All times are GMT -4. The time now is 19:07.