CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   udf help (https://www.cfd-online.com/Forums/fluent/43367-udf-help.html)

brusly January 16, 2007 22:25

udf help
 
hi all any one having boiling and condensation udf plz send me.my email id is brusly_solomon@yahoo.co.in

thanx

brusly January 17, 2007 03:15

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

Sujith January 17, 2007 23:40

Re: udf help
 
fabs means absolute value fabs(a) = | a |

brusly January 18, 2007 00:00

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); }

Sujith January 18, 2007 13:20

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.