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

urgent help parabolic velocity profile in 3D

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 27, 2011, 08:49
Default urgent help parabolic velocity profile in 3D
  #1
New Member
 
Angie
Join Date: Nov 2010
Posts: 17
Rep Power: 6
Angeline is on a distinguished road
Hi guys ,

i need one urgent help. i want to write the UDF for parabolic velocity profile for a flow in pipe. Z-is the axis. I define the profile in x and y direction. It doesn't work. Please read it and help out.



#include "udf.h"

DEFINE_PROFILE(inlet_z_velocity, thread, position)
{
real z[ND_ND];
real x,y;
face_t f;

begin_f_loop(f, thread)
{
F_CENTROID(z,f,thread);
x = z[1];
y = z[2];

F_PROFILE(f, thread, position) = 10*pow(1-(x/0.15),1/7);
F_PROFILE(f, thread, position) = 10*pow(1-(y/0.15),1/7);
}
end_f_loop(f, thread)
}
Angeline is offline   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
[UDF] Relative coordinates in logarithmic velocity profile cfdworker Fluent UDF and Scheme Programming 24 February 23, 2015 05:33
velocity and temperature profile vickrenz FLUENT 0 August 30, 2009 23:58
Logarithmic velocity profile cfdworker Fluent UDF and Scheme Programming 0 April 23, 2009 19:09
[boundary condition] logarithmic velocity profile cfdworker FLUENT 2 April 17, 2009 23:36
problem with velocity inlet profile file Duncan FLUENT 3 November 21, 2005 08:28


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