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

problem in udf

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

Like Tree1Likes
  • 1 Post By A CFD free user

Reply
 
LinkBack Thread Tools Display Modes
Old   April 13, 2013, 15:47
Default problem in udf
  #1
New Member
 
pratik
Join Date: Apr 2013
Location: India
Posts: 6
Rep Power: 4
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, 16:08
Default
  #2
Senior Member
 
A CFD free user's Avatar
 
A-A Azarafza
Join Date: Jan 2013
Posts: 187
Rep Power: 4
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 13:31.
A CFD free user is offline   Reply With Quote

Old   April 13, 2013, 16:55
Default Udf
  #3
New Member
 
pratik
Join Date: Apr 2013
Location: India
Posts: 6
Rep Power: 4
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 17:34.
pratkb is offline   Reply With Quote

Old   April 13, 2013, 23:49
Default
  #4
New Member
 
CAO Liushuai
Join Date: Apr 2012
Posts: 26
Rep Power: 5
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

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


All times are GMT -4. The time now is 21:39.