CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Changing k-e constants to functions (https://www.cfd-online.com/Forums/fluent/67548-changing-k-e-constants-functions.html)

tstorm August 18, 2009 16:59

Changing k-e constants to functions
 
Hi all,

I'm working on a user-defined v2-f turbulence model for FLUENT (I know it has one, but I'm trying to make one with curvature correction.)

The model uses the standard k and e transport equations that the k-e model uses. The transport equations are the same, but the constants are different. In particular, the C_1e constant is different.

For the k-e model, C_1e = 1.44

For the v2f model, C_1e = 1.4*( 1 + .05*sqrt( k/v2 ) )

Does anyone know how to change the C_1e constant to a function?

Thanks in advance.

tstorm August 19, 2009 12:59

Ok, I figured out how to add an additional source term to the epsilon term (DEFINE - BOUNDARY CONDITIONS - FLUID - SOURCE TERMS). I coded my source term, added it as S_e in the epsilon transport equation, and set the C_1e and C_2e constants to 0 in the DEFINE - MODELS - VISCOUS menu.

Now I have another question. I can't figure out how to change C_1e and C_2e using text commands. Is that possible?


All times are GMT -4. The time now is 04:35.