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

UDF Unsteady velocity parabolic profile

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 27, 2008, 16:05
Default UDF Unsteady velocity parabolic profile
  #1
Rashad
Guest
 
Posts: n/a
Hi Is it possible to give parabolic unsteady velocity inlet with the help of UDF. I tried UDf in given in the documentation it works but when i incorporate space variable x in the unsteady UDF it does not work. Any help Regards Rashad
  Reply With Quote

Old   February 28, 2008, 13:27
Default Re: UDF Unsteady velocity parabolic profile
  #2
Paolo Lampitella
Guest
 
Posts: n/a
Just substitute your velocity components to these ones

/************************************************** ******************** UDF for specifying a transient velocity profile boundary condition ************************************************** ********************/

#include "udf.h"

DEFINE_PROFILE(x_velocity, t, i)

{

real x[ND_ND];

real x0, y0, time;

face_t f;

time = CURRENT_TIME;

begin_f_loop(f, t)

{

F_CENTROID(x,f,t);

x0 = x[0];

y0 = x[1];

F_PROFILE(f, t, i) = -cos(x0)*sin(y0)*exp(-2.0*time);

}

end_f_loop(f, t)

}

DEFINE_PROFILE(y_velocity, t, i)

{

real x[ND_ND];

real x0, y0, time;

face_t f;

time = CURRENT_TIME;

begin_f_loop(f, t)

{

F_CENTROID(x,f,t);

x0 = x[0];

y0 = x[1];

F_PROFILE(f, t, i) = cos(y0)*sin(x0)*exp(-2.0*time);

}

end_f_loop(f, t)

}
  Reply With Quote

Old   February 29, 2008, 03:36
Default Re: UDF Unsteady velocity parabolic profile
  #3
Rashad
Guest
 
Posts: n/a
Thankyou Dear Paolo Lampitella Rashad
  Reply With Quote

Reply

Thread Tools
Display Modes

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 On
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 23:20
UDF for a Unsteady velocity change Paul FLUENT 8 August 29, 2011 02:19
Parabolic Velocity profile in a channel mohsen cheraghi OpenFOAM Running, Solving & CFD 3 April 13, 2011 04:21
UDF for 3D velocity profile pichai FLUENT 5 October 5, 2010 07:10
UDF for Velocity profile in 3D rectancular duct Emad FLUENT 0 January 21, 2009 04:11


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