# UDF F_PROFILE problem

 Register Blogs Members List Search Today's Posts Mark Forums Read

 September 4, 2012, 04:35 UDF F_PROFILE problem #1 New Member   Zhi-Gang Zhai Join Date: Sep 2012 Location: karlsruhe, Germany Posts: 7 Rep Power: 7 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, 05:09 I find the some reason #2 New Member   Zhi-Gang Zhai Join Date: Sep 2012 Location: karlsruhe, Germany Posts: 7 Rep Power: 7 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, 07:21 #3 Member     Join Date: Mar 2011 Posts: 64 Rep Power: 8 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, 12:06 #4 New Member   Zhi-Gang Zhai Join Date: Sep 2012 Location: karlsruhe, Germany Posts: 7 Rep Power: 7 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!

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Rizwan Fluent UDF and Scheme Programming 40 October 18, 2017 07:17 zzyan FLUENT 0 November 4, 2010 04:56 july Fluent UDF and Scheme Programming 3 June 20, 2010 06:56 akr FLUENT 3 August 22, 2007 07:14 chiseung FLUENT 4 January 10, 2002 10:58

All times are GMT -4. The time now is 03:36.