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

UDF Boundary Condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 4, 2009, 03:09
Default UDF Boundary Condition
  #1
Marco
Guest
 
Posts: n/a
Dear all, I have a parabolic inlet velocity profile in a 3d laminar flow. The boundary face is on x_y plane ad the duct extend to z. The velocity profile function is z = - 0.0000001446271106·(x^2 + y^2 ) + 0.0000005640230104·(x + y) - 0.0000005498116698 I need an UDF specifing this velocity profile. Many Thank's
  Reply With Quote

Old   February 4, 2009, 04:42
Default Re: UDF Boundary Condition
  #2
Marco
Guest
 
Posts: n/a
I try to use this udf and works fine. #include "udf.h" DEFINE_PROFILE(vel_profile, thread, position) { real x[ND_ND]; /* this will hold the position vector */ real y; real k;

face_t f; begin_f_loop(f, thread) { F_CENTROID(x,f,thread); y = x[1]; k= x[0]; F_PROFILE(f, thread, position) =- 0.0000001446271106*(pow(k*1000.,2.) +pow(y*1000.,2.) ) + 0.0000005640230104*(k + y)*1000. - 0.0000005498116698; } end_f_loop(f, thread) }

  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
Boundary condition for UDS Tomik FLUENT 0 December 5, 2006 17:37
Boundary condition of the third kind or Danckwertz boundary condition plage OpenFOAM Running, Solving & CFD 4 October 3, 2006 12:21
Slip Boundary Condition for Moving Boundary Shukla Main CFD Forum 3 November 11, 2005 15:02
UDF boundary condition Jeff FLUENT 2 November 20, 2003 17:15
Boundary Condition in LES Zhang Tsiang Main CFD Forum 3 February 5, 2002 20:15


All times are GMT -4. The time now is 01:59.