CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Modifying default k-epsilon equation (https://www.cfd-online.com/Forums/openfoam-programming-development/137866-modifying-default-k-epsilon-equation.html)

leexit June 24, 2014 10:13

Modifying default k-epsilon equation
 
Hi,
I use Openfoam Version 1.5.
I was trying to edit the k-epsilon equation for buoyancy case.
Basically I have to add a term on the k equation:
mueff/sigma*g/rho*di(rho)/di(xj).
I got mueff/sigma*rho part, but having some trouble with g and di(rho)/di(xj).
I think I have to add a nonscalar variable g in the kEpsilon.C file, but need some help. Can somebody give me some resources to make this work?
Thank you in advance.

Kevin


All times are GMT -4. The time now is 01:16.