|
[Sponsors] |
April 13, 2013, 16:47 |
problem in udf
|
#1 |
New Member
pratik
Join Date: Apr 2013
Location: India
Posts: 6
Rep Power: 13 |
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.. |
|
April 13, 2013, 17:08 |
|
#2 |
Senior Member
A-A Azarafza
Join Date: Jan 2013
Posts: 226
Rep Power: 14 |
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
__________________
Regard yours Last edited by A CFD free user; April 29, 2013 at 14:31. |
|
April 13, 2013, 17:55 |
Udf
|
#3 |
New Member
pratik
Join Date: Apr 2013
Location: India
Posts: 6
Rep Power: 13 |
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. |
|
April 14, 2013, 00:49 |
|
#4 |
Member
CAO Liushuai
Join Date: Apr 2012
Posts: 30
Rep Power: 14 |
You can find the similar example in FLUENT UDF HELP, make some corrections and you can use it in your own case.
|
|
Tags |
udf |
|
|
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 |