CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Udf error, please help me!? (https://www.cfd-online.com/Forums/fluent/42437-udf-error-please-help-me.html)

Asghari October 2, 2006 11:29

Udf error, please help me!?
 
Hi all,

I was encountered with this error (when i used define_exchange_property for mass transfer definition in vof model in phase interaction panel) :

libudf has wrong type: 5 !=3

udf is in following that's a part of UDF manual:

DEFINE_EXCHANGE_PROPERTY(liq_gas_source, cell, thread, liq_i, gas_i) { real m_lg;

real T_SAT = 373.15;

Thread *gas = THREAD_SUB_THREAD(thread, gas_i);

Thread *liq = THREAD_SUB_THREAD(thread, liq_i);

m_lg = 0.;

if (C_T(cell, liq) >= T_SAT)

{

m_lg = -0.1*C_VOF(cell,liq)*C_R(cell,liq)* fabs(C_T(cell,liq)-T_SAT)/T_SAT;

}

if ((m_lg == 0. ) && (C_T(cell, gas) <= T_SAT))

{

m_lg = 0.1*C_VOF(cell,gas)*C_R(cell,gas)* fabs(T_SAT-C_T(cell,gas))/T_SAT;

}

return (m_lg);

}

Why this happended ?

Thanks in advance for your help;


All times are GMT -4. The time now is 23:56.