CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   How to realize Boussinesq approximation (buoyancy) in Fluent-UDF (

dochanxu October 14, 2010 14:42

How to realize Boussinesq approximation (buoyancy) in Fluent-UDF
Hello every Colleague!I have been struggling with buoyancy problems for several days, but there is little achievement.I' facing a problem!FLUENT suggests us to solve the buoyancy problems with Boussinesq approximation (buoyancy) which adding a buoyancy term in momentum equation. Then I made a udf to add this term. But I could not get the same result with Fluent Boussinesq of its own!following is my udf! who can help me to improve it??thanks a lot!!!#include "udf.h"#define T0 300.00DEFINE_SOURCE(mom_source,c,t,dS,eqn){ real source; source=9.81*C_R(c,t)*(C_T(c,t)-T0)*(1/T0); dS[eqn]=9.81*C_R(c,t)*(1/T0); return source;}

All times are GMT -4. The time now is 10:59.