CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

udf help

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   January 16, 2007, 23:25
Default udf help
  #1
brusly
Guest
 
Posts: n/a
hi all any one having boiling and condensation udf plz send me.my email id is brusly_solomon@yahoo.co.in

thanx
  Reply With Quote

Old   January 17, 2007, 04:15
Default Re: udf help
  #2
brusly
Guest
 
Posts: n/a
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
  Reply With Quote

Old   January 18, 2007, 00:40
Default Re: udf help
  #3
Sujith
Guest
 
Posts: n/a
fabs means absolute value fabs(a) = | a |
  Reply With Quote

Old   January 18, 2007, 01:00
Default Re: udf help
  #4
brusly
Guest
 
Posts: n/a
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); }
  Reply With Quote

Old   January 18, 2007, 14:20
Default Re: udf help
  #5
Sujith
Guest
 
Posts: n/a
line1 parse error---can be due to a space in your file-path name. please avoid spaces in filenames
  Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
Dynamic Mesh UDF Qureshi FLUENT 1 December 2, 2009 01:27
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


All times are GMT -4. The time now is 03:37.