# UDF for 3D velocity profile

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

 October 5, 2010, 05:52 UDF for 3D velocity profile #1 New Member   Join Date: May 2010 Posts: 18 Rep Power: 8 Dear all, Does anyone has a sample of UDF for velocity profile in 3D duct ? Please help me.

 October 5, 2010, 06:07 #2 Member     User_CFD Join Date: Mar 2010 Posts: 48 Rep Power: 8 This is typical UDF, you can use: -------------------------------------------------------------------------------- #include "udf.h" DEFINE_PROFILE(inlet_x_velocity, thread, position) { real x[ND_ND]; real y,z,Vmax; face_t f; begin_f_loop(f, thread) { F_CENTROID(x,f,thread); y = x[1]; z = x[2]; //Vmax = 20.// F_PROFILE(f, thread, position) = Vmax; } end_f_loop(f, thread) } --------------------------------------------------------------------------------- In this profile velocity is = 20m/s. for other profile(parabol,hyperbol....) chage it in function F_PROFILE. Best wish for you!

 October 5, 2010, 06:48 #3 New Member   Join Date: May 2010 Posts: 18 Rep Power: 8 Thank so much lehoang_mai. do you mind if I need your help agian ? Could you post an example of 3D of velocity boundary layer on flat plate ?

 October 5, 2010, 06:51 #4 Member     User_CFD Join Date: Mar 2010 Posts: 48 Rep Power: 8 what did you mean? picture, isn't it?

 October 5, 2010, 06:55 #5 New Member   Join Date: May 2010 Posts: 18 Rep Power: 8 sorry, I mean UDF of velocity profile on flat plate. I think velocity profile on flat plate is like my problem that is the wind on the earth surface thank in advance for your help.

 October 5, 2010, 07:10 #6 Member     User_CFD Join Date: Mar 2010 Posts: 48 Rep Power: 8 I think, fluent can read UDF for all surfaces(earth,plate...), with them you hook UDF. Try to write your UDF and hook it in Fluent. Nice for 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 Oli Fluent UDF and Scheme Programming 4 September 30, 2013 15:39 Rashad FLUENT 0 February 27, 2008 15:57 Anant FLUENT 1 February 27, 2008 15:54 William177 FLUENT 1 February 3, 2008 07:47 Jongdae Kim FLUENT 0 June 15, 2004 11:21

All times are GMT -4. The time now is 12:06.