|
[Sponsors] |
September 4, 2012, 05:35 |
UDF F_PROFILE problem
|
#1 |
New Member
Zhi-Gang Zhai
Join Date: Sep 2012
Location: karlsruhe, Germany
Posts: 7
Rep Power: 14 |
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 |
|
September 5, 2012, 06:09 |
I find the some reason
|
#2 |
New Member
Zhi-Gang Zhai
Join Date: Sep 2012
Location: karlsruhe, Germany
Posts: 7
Rep Power: 14 |
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? |
|
September 5, 2012, 08:21 |
|
#3 |
Member
Join Date: Mar 2011
Posts: 64
Rep Power: 15 |
So, the problem is with your compiler. You have not installed compiler correctly or it has not been linked to fluent.
__________________
Saeed Sadeghi Ansys Fluent CFD Consultant |
|
September 5, 2012, 13:06 |
|
#4 |
New Member
Zhi-Gang Zhai
Join Date: Sep 2012
Location: karlsruhe, Germany
Posts: 7
Rep Power: 14 |
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!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM | Rizwan | Fluent UDF and Scheme Programming | 40 | March 18, 2018 07:05 |
what's the problem with my udf | zzyan | FLUENT | 0 | November 4, 2010 04:56 |
Problem with my udf | july | Fluent UDF and Scheme Programming | 3 | June 20, 2010 07:56 |
udf compiling problem | akr | FLUENT | 3 | August 22, 2007 08:14 |
UDF problem | chiseung | FLUENT | 4 | January 10, 2002 10:58 |