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

problem in udf

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By A CFD free user

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 13, 2013, 16:47
Default problem in udf
  #1
New Member
 
pratik
Join Date: Apr 2013
Location: India
Posts: 6
Rep Power: 13
pratkb is on a distinguished road
Can anyone please help me in using udf in ansys?basically i have to give a parabolic velocity inlet in 2-d geometry using udf.

will be waiting..
pratkb is offline   Reply With Quote

Old   April 13, 2013, 17:08
Default
  #2
Senior Member
 
A CFD free user's Avatar
 
A-A Azarafza
Join Date: Jan 2013
Posts: 226
Rep Power: 14
A CFD free user is on a distinguished road
Hi Pratik
You only need to define your own code by using DEFINE_PROFILE macro and then interpret or compile it. If you only have this simple macro, I suggest you that use interpret option. Afterwards, you should hook it up through Boundary condition/Inlet/ Velocity (x, y direction). Here's the structure of a DEFINE_PROFILE UDF:
DEFINE_PROFILE(your desired name for UDF, t, i)
{
cell_t c;
real x[ND_ND];
define others parameters
real ...
real ...
real ...
begin_c_loop(c,t)
{
C_CENTROID(x,c,t);
F_PROFILE(c,t,i)=......
}
end_c_loop(c,t)
}

Hope it help
Good luck
pratkb likes this.
__________________
Regard yours

Last edited by A CFD free user; April 29, 2013 at 14:31.
A CFD free user is offline   Reply With Quote

Old   April 13, 2013, 17:55
Default Udf
  #3
New Member
 
pratik
Join Date: Apr 2013
Location: India
Posts: 6
Rep Power: 13
pratkb is on a distinguished road
Thank you very much.I am also following some of the pdf on udf in net.Being very new to this software and eager to learn it,if you please help me about the steps and processings to carry out my job or attach any file,I will be very grateful to you..

The parabolic inlet eqn is 2(1-r/R)^2...

Last edited by pratkb; April 13, 2013 at 18:34.
pratkb is offline   Reply With Quote

Old   April 14, 2013, 00:49
Default
  #4
Member
 
shuai_manlou's Avatar
 
CAO Liushuai
Join Date: Apr 2012
Posts: 30
Rep Power: 14
shuai_manlou is on a distinguished road
You can find the similar example in FLUENT UDF HELP, make some corrections and you can use it in your own case.
shuai_manlou is offline   Reply With Quote

Reply

Tags
udf


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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 07:05
Problem with my udf july Fluent UDF and Scheme Programming 3 June 20, 2010 07:56
UDF problem mansha goraya FLUENT 0 October 29, 2007 01:31
udf compiling problem akr FLUENT 3 August 22, 2007 08:14
UDF problem chiseung FLUENT 4 January 10, 2002 10:58


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