CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   A interesting question for multiphase experts!? (https://www.cfd-online.com/Forums/fluent/44344-interesting-question-multiphase-experts.html)

Asghari April 4, 2007 07:51

A interesting question for multiphase experts!?
 
Hi;

I wrote a UDF for indirect accessing to mass imbalance and energy residual in two phase flow with VOF model.

There isn't any mass transfer between phases . Also, I access to mass imbalance directly through Display--> contours-->mass imbalance and accessing to energy residual is possible through saving of cell residuals and keeping temporary solver memory from being freed using following TUI command:

/solve/set> expert Change no to yes at: Save cell residuals for post-processing? [yes] Keep temporary solver memory from being freed? [yes]

and then using following macro for energy residual access directly:

C_STORAGE_R(c,t,SV_T_R)

But results show that residuals using my udf (direct access) is wrong ?

Why it happend?

Would somebody like to recieve my udf code and help me?

Thanks in advance for everybody help me.



All times are GMT -4. The time now is 05:51.