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

Parabolic Velocity UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 23, 2009, 21:51
Default Parabolic Velocity UDF
  #1
New Member
 
Join Date: Sep 2009
Posts: 2
Rep Power: 0
Marbig is on a distinguished road
Hey guys,
trying to make a UDF for a parabolic velocity profile (that varies in x-direction). But im not sure if this is correct:

#include "udf.h"


DEFINE_PROFILE(inlet_y_velocity, thread, position)
{
real y[ND_ND]; /* this will hold the position vector */
real x;
face_t f;

begin_f_loop(f, thread)
{
F_CENTROID(y,f,thread);
x = y[1];
F_PROFILE(f, thread, position) = "parabolic profile eqn in terms of x";
}
end_f_loop(f, thread)
}
Marbig is offline   Reply With Quote

Old   October 23, 2009, 11:15
Default
  #2
New Member
 
dhahbi
Join Date: Apr 2009
Posts: 2
Rep Power: 0
midoo is on a distinguished road
hi, i thik that this udf is correct so you must try it.
midoo 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
How to make a UDF to have a velocity profile in a square channel Gigis Fluent UDF and Scheme Programming 8 January 13, 2013 22:20
Velocity of Fluid @ different positions of Particle in DPM using UDF pmghadge FLUENT 1 June 16, 2009 19:11
Editing a UDF for a velocity boundary in a multiphase rubenk FLUENT 0 May 7, 2009 15:48
UDF problem : inlet velocity in cyl. coord. system Jongdae Kim FLUENT 0 June 15, 2004 11:21
UDF component in Cyliderical Velocity? Hongchan Kim FLUENT 3 April 24, 2001 12:20


All times are GMT -4. The time now is 10:08.