udf help
hi all any one having boiling and condensation udf plz send me.my email id is brusly_solomon@yahoo.co.in
thanx |
Re: udf help
can any one tell me what is the meaning of this statement,specially fabs means
source=-con*fabs(C_U(c,t))*C_U(c,t); thank you |
Re: udf help
fabs means absolute value fabs(a) = | a |
|
Re: udf help
thank u sujith i have interpretted one udf,it shows line1 parse error. the case and data files as well as the udf are in the same directory.my udf is
#include "udf.h" DEFINE_EXCHANGE_PROPERTY(liq_gas_source,cell,threa d,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,lig_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,li q)-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); } |
Re: udf help
line1 parse error---can be due to a space in your file-path name. please avoid spaces in filenames
|
All times are GMT -4. The time now is 23:20. |