CFD Online Logo CFD Online URL
Home > Forums > FLUENT

UDF for 3D circular inlet

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

LinkBack Thread Tools Display Modes
Old   February 15, 2003, 03:31
Default UDF for 3D circular inlet
Wong Wai Loong
Posts: n/a
I had tried with the below UDF progamme but it cannot produce a parabolic profile at the 3D inlet. So i need some advise on my programme. thanx

#include "udf.h"

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

begin_f_loop(f, thread)



x = y[1];

z = y[2];

r = y[3];

F_PROFILE(f, thread, position) = .07667 - r*r/(.0075*.0075)*.07667;

} end_f_loop(f, thread) }

  Reply With Quote

Old   February 16, 2003, 04:39
Default Re: UDF for 3D circular inlet
Posts: n/a
y is an array which store the centroid coordination(x0,y0,z0),that is,y[0]=x0,y[1]=y0,y[2]=z0, so if your inlet face is parallel to x diretion, for example x=100mm , and you want to use y0 as the r value, you should write the program as:

r=y[1]; if you use r=y[3], maybe you will not get any value for r. hope useful for you.
  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 parallel velocity inlet profile Armengol FLUENT 3 September 30, 2009 15:08
udf for varying inlet temperature aravind FLUENT 0 October 27, 2008 11:08
Fluent UDF load and apply inlet velocity b.c. Knut Lehmann Main CFD Forum 2 June 29, 2007 04:53
UDF for varying inlet velocity with z-distance Peter Wilkins FLUENT 1 May 18, 2006 11:10
find the best inlet with udf Tuckbros FLUENT 0 May 20, 2004 12:56

All times are GMT -4. The time now is 14:50.