|
[Sponsors] |
October 2, 2006, 11:29 |
Udf error, please help me!?
|
#1 |
Guest
Posts: n/a
|
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; |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 07:37 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 22:14 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 21:38 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 04:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 04:01 |