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

velocity inlet using udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 5, 2012, 13:22
Wink velocity inlet using udf
  #1
New Member
 
hilla tor
Join Date: Jun 2009
Posts: 10
Rep Power: 17
hillator is on a distinguished road
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
hillator is offline   Reply With Quote

Old   May 10, 2012, 01:37
Default
  #2
New Member
 
Patrick
Join Date: Apr 2012
Posts: 28
Rep Power: 14
Patrick1 is on a distinguished road
Quote:
Originally Posted by hillator View Post
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.
Patrick1 is offline   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
udf parabolic velocity inlet with unsteady case Faruk Beyca FLUENT 4 June 24, 2022 11:45
UDF for Velocity change at inlet haihek FLUENT 7 August 2, 2019 08:45
USED UDF for inlet velocity in 3D sara FLUENT 0 October 11, 2007 19:04
Urgent! Help on UDF to set inlet velocity Ray Hong FLUENT 4 December 30, 2005 13:32
UDF paraboloid velocity inlet Ronak Shah FLUENT 0 June 4, 2003 10:44


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