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

UDF for 3D velocity profile

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 5, 2010, 06:52
Default UDF for 3D velocity profile
  #1
New Member
 
Join Date: May 2010
Posts: 18
Rep Power: 16
pichai is on a distinguished road
Dear all,

Does anyone has a sample of UDF for velocity profile in 3D duct ?

Please help me.
pichai is offline   Reply With Quote

Old   October 5, 2010, 07:07
Default
  #2
Member
 
lehoang_mai's Avatar
 
User_CFD
Join Date: Mar 2010
Posts: 48
Rep Power: 16
lehoang_mai is on a distinguished road
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!
lehoang_mai is offline   Reply With Quote

Old   October 5, 2010, 07:48
Default
  #3
New Member
 
Join Date: May 2010
Posts: 18
Rep Power: 16
pichai is on a distinguished road
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 ?
pichai is offline   Reply With Quote

Old   October 5, 2010, 07:51
Default
  #4
Member
 
lehoang_mai's Avatar
 
User_CFD
Join Date: Mar 2010
Posts: 48
Rep Power: 16
lehoang_mai is on a distinguished road
what did you mean? picture, isn't it?
lehoang_mai is offline   Reply With Quote

Old   October 5, 2010, 07:55
Default
  #5
New Member
 
Join Date: May 2010
Posts: 18
Rep Power: 16
pichai is on a distinguished road
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.
pichai is offline   Reply With Quote

Old   October 5, 2010, 08:10
Default
  #6
Member
 
lehoang_mai's Avatar
 
User_CFD
Join Date: Mar 2010
Posts: 48
Rep Power: 16
lehoang_mai is on a distinguished road
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!
lehoang_mai 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
UDF problems - velocity profile Oli Fluent UDF and Scheme Programming 6 October 24, 2016 11:38
UDF Unsteady velocity profile Rashad FLUENT 0 February 27, 2008 15:57
How to specify the Velocity profile (eqn) by UDF Anant FLUENT 1 February 27, 2008 15:54
Multi step transient UDF velocity profile problem William177 FLUENT 1 February 3, 2008 07:47
UDF problem : inlet velocity in cyl. coord. system Jongdae Kim FLUENT 0 June 15, 2004 12:21


All times are GMT -4. The time now is 16:49.