|
[Sponsors] |
May 17, 2004, 10:33 |
DEFINE_SOURCE
|
#1 |
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 |
|
May 17, 2004, 12:05 |
Re: DEFINE_SOURCE
|
#2 |
Guest
Posts: n/a
|
what error message do you get ?
|
|
May 18, 2004, 05:18 |
Re: DEFINE_SOURCE
|
#3 |
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
|
|
|
|