UDF for a time varying temperature
HI
I intend to writing UDF for tempreture variying time. My equation is: Temperature(t) = -3E-13t6 + 8E-10t5 - 1E-06t4 + 0.0006t3 - 0.1677t2 + 19.257t + 285.41 Is it correct below UDF??? #include "udf.h" DEFINE_PROFILE(HC_temp_BC,thread,i) { face_t f; begin_f_loop(f,thread) { time=CURRENT_TIME; F_PROFILE(f,thread,i)=(-3*(e,-13)*pow(t,6))+(8*(e,-10)*pow(t,5))-(1*(e,-6)*pow(t,4))+(0.0006*pow(t,3))-(0.1677*pow(t,2))+19.257t+285.41; } end_f_loop(f,thread) } Please Help me! |
All times are GMT -4. The time now is 00:26. |