CFD Online Logo CFD Online URL
Home > Forums > FLUENT

urgent help parabolic velocity profile in 3D

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

LinkBack Thread Tools Display Modes
Old   January 27, 2011, 08:49
Default urgent help parabolic velocity profile in 3D
New Member
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)
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


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 23 November 17, 2014 04:14
velocity and temperature profile vickrenz FLUENT 0 August 31, 2009 00:58
Logarithmic velocity profile cfdworker Fluent UDF and Scheme Programming 0 April 23, 2009 20:09
[boundary condition] logarithmic velocity profile cfdworker FLUENT 2 April 18, 2009 00:36
problem with velocity inlet profile file Duncan FLUENT 3 November 21, 2005 08:28

All times are GMT -4. The time now is 12:40.