|
[Sponsors] |
October 5, 2010, 06:52 |
UDF for 3D velocity profile
|
#1 |
New Member
Join Date: May 2010
Posts: 18
Rep Power: 16 |
Dear all,
Does anyone has a sample of UDF for velocity profile in 3D duct ? Please help me. |
|
October 5, 2010, 07:07 |
|
#2 |
Member
User_CFD
Join Date: Mar 2010
Posts: 48
Rep Power: 16 |
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, 07:48 |
|
#3 |
New Member
Join Date: May 2010
Posts: 18
Rep Power: 16 |
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, 07:51 |
|
#4 |
Member
User_CFD
Join Date: Mar 2010
Posts: 48
Rep Power: 16 |
what did you mean? picture, isn't it?
|
|
October 5, 2010, 07:55 |
|
#5 |
New Member
Join Date: May 2010
Posts: 18
Rep Power: 16 |
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, 08:10 |
|
#6 |
Member
User_CFD
Join Date: Mar 2010
Posts: 48
Rep Power: 16 |
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! |
|
|
|
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 |