about udf
hi,
i meet a problem when i use udf. i want to ascertain the heat flux of the wall. but the steel is decreasing with time in the ladle. so the heat flux is different for the wall and steel interface. i write the following order, can you help me check whether it is correct? #include "udf.h" DEFINE_PROFILE(wall_heat_flux,t,i) { face_t f; real y; begin_f_loop(f,t) { y=F_R(f,t); if(y>1.225) F_PROFILE(f,t,i) =20000.0; else F_PROFILE(f,t,i) =900.0; } end_f_loop(f,t) } i am a beginner in learning udf. thank you very much. |
All times are GMT -4. The time now is 11:08. |