UDF F_PROFILE problem
Hello everyone!
These days I meet a fluent udf problem. I want to use the F_PROFILE to set the inlet velocity, but the result is not OK. My case information is as follows. 2D , R-Z coordinate, the horizontal directoin is the Z axis, the vertical direction is the R axis. I use the k-e model. Calculate the energy equation. I set the inlet axial velocity to -0.2m/s as and the radial velocity to 0m/s in the fluent GUI. The result is OK. But I use the udf (DEFINE_PROFILE) to set the inlet velocity. The result is not OK. The velocity is very very low, almost stop. DEFINE_PROFILE(axial_vel, t_face, i) { face_t f; begin_f_loop(f, t_face) { F_PROFILE(f,t_face,i) = -0.2; } end_f_loop(f, t_face) } Pls look the following result figures. Who could tell me the probable reason. Thank you very much in advance. 1. set the inlet velocity to constant in the fluent GUI. http://www.facebook.com/photo.php?fb...type=1&theater 2. use the udf to set the inlet velocity http://www.facebook.com/zhigang.zhai...type=1&theater |
I find the some reason
Hello, everyone.
The above problem, I use the 'interpreted' mode to run it, the result is OK. But the 'compiled' mode is not OK, I don't know why? |
So, the problem is with your compiler. You have not installed compiler correctly or it has not been linked to fluent.
|
Thanks to eng_s_sadeghi , I guess you are right, My OS is win7, but my c compiler is old one, which i copy from the winXP. So maybe it is not compatible. Thank you!
|
All times are GMT -4. The time now is 23:35. |