# velocity inlet using udf

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 LinkBack Thread Tools Display Modes
 May 5, 2012, 12:22 velocity inlet using udf #1 New Member   hilla tor Join Date: Jun 2009 Posts: 10 Rep Power: 10 Sponsored Links i have an velocity inlet profile u(y) but this profile isn't Analytical (i have an array u) how can I put it as a udf function? the final result should be a u(y)u(t) so i can't use the regular profile at (define-> profiles) thanks for the help
 Sponsored Links

May 10, 2012, 00:37
#2
New Member

Patrick
Join Date: Apr 2012
Posts: 28
Rep Power: 7
Quote:
 Originally Posted by hillator i have an velocity inlet profile u(y) but this profile isn't Analytical (i have an array u) how can I put it as a udf function? the final result should be a u(y)u(t) so i can't use the regular profile at (define-> profiles) thanks for the help
You can use a UDF with lots of IF statements. For example, if you have 4 mesh points in your inlet face at y=0,1,2,3 the UDF will be:

if y<3 then;
velocity=ArrayU(1)
if y<2 then;
velocity=ArrayU(2)
if y<1 then;
velocity=ArrayU(3)
if y<0 then;
velocity=ArrayU(4)

Obviously making this kind of UDF is best suited to a computer program if you have many mesh points, so you need to write a computer program to write your UDF for you

I think Fluent will interpolate the velocity profile if you don't have data for each meshpoint.

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post haihek FLUENT 5 December 15, 2010 19:58 sara FLUENT 0 October 11, 2007 18:04 Ray Hong FLUENT 4 December 30, 2005 13:32 Faruk Beyca FLUENT 3 November 28, 2005 15:25 Ronak Shah FLUENT 0 June 4, 2003 09:44

 Sponsored Links

All times are GMT -4. The time now is 22:38.

 Contact Us - CFD Online - Top