CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

UDF F_PROFILE problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 4, 2012, 05:35
Default UDF F_PROFILE problem
  #1
New Member
 
Zhi-Gang Zhai
Join Date: Sep 2012
Location: karlsruhe, Germany
Posts: 7
Rep Power: 14
zgzhai is on a distinguished road
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
zgzhai is offline   Reply With Quote

Old   September 5, 2012, 06:09
Default I find the some reason
  #2
New Member
 
Zhi-Gang Zhai
Join Date: Sep 2012
Location: karlsruhe, Germany
Posts: 7
Rep Power: 14
zgzhai is on a distinguished road
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?
zgzhai is offline   Reply With Quote

Old   September 5, 2012, 08:21
Default
  #3
Member
 
eng_s_sadeghi's Avatar
 
Join Date: Mar 2011
Posts: 64
Rep Power: 15
eng_s_sadeghi is on a distinguished road
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
eng_s_sadeghi is offline   Reply With Quote

Old   September 5, 2012, 13:06
Default
  #4
New Member
 
Zhi-Gang Zhai
Join Date: Sep 2012
Location: karlsruhe, Germany
Posts: 7
Rep Power: 14
zgzhai is on a distinguished road
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!
zgzhai is offline   Reply With Quote

Reply


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 Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 22:50.