DEFINE_SOURCE
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 |
Re: DEFINE_SOURCE
what error message do you get ?
|
Re: DEFINE_SOURCE
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
|
All times are GMT -4. The time now is 19:53. |