If statement for time dependent UDF
1 Attachment(s)
Hello my friends;
I am currently working on defroster performance on inclined surfaces and I have the attached temperature warm-up curve for inlet condition. I try to write an UDF but every single time it gives parse error for "else" statement line. Anyone knows the rootcause of this error could help me? ************************************************** ****** #include "udf.h" DEFINE_PROFILE(temperature,thread,position) { face_t f; real t=CURRENT_TIME; begin_f_loop(f,thread) t=t-floor(t); { if (t>=1750.); F_PROFILE(f,thread,position)= 323.; else F_PROFILE(f,thread,position)=6.*0.000000001*t*t*t-3.*0.00001*t*t+0.0636*t+265.; } end_f_loop(f,thread) ************************************************** ****** Thank you.. |
Quote:
|
All times are GMT -4. The time now is 11:10. |