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

DEFINE_SOURCE

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 17, 2004, 10:33
Default DEFINE_SOURCE
  #1
Dolores
Guest
 
Posts: n/a
Hi,

The intrepreted UDF shows no error during the compilation, but how come i could not see the function in the drop down list when i need to use in in Boundary Condition?

here's the code: #include "udf.h" #define CONSA 2.3462 #define CONSB 37.577 #define CONSC 0.0292 #define CONSD 131.08 #define TOTV 0.023375 DEFINE_SOURCE(heat_sink, cell, thread, dS, eqn) {real t, source; t =RP_Get_Real("flow-time"); if(t<=43.)source = -(CONSA/TOTV)*t+(CONSB/TOTV); if(t>43.)source=-(CONSC/TOTV)*t+(CONSD/TOTV); dS[eqn] = 0.0257; return source;}

Thanks a million
  Reply With Quote

Old   May 17, 2004, 12:05
Default Re: DEFINE_SOURCE
  #2
thomas
Guest
 
Posts: n/a
what error message do you get ?
  Reply With Quote

Old   May 18, 2004, 05:18
Default Re: DEFINE_SOURCE
  #3
kethireddy
Guest
 
Posts: n/a
HI...during running udf's u just keep the option (display assembly listing)on.Then u know whether ur udf is actually working out or not.I think it should work out.please inform back if it works out. kethireddy..RWTH-Aachen..Germany
  Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 21:15.