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

UDF problem- DEFINE_PROFILE

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 18, 2008, 08:52
Default UDF problem- DEFINE_PROFILE
  #1
Chris
Guest
 
Posts: n/a
Dear Friends,

I realize that under the UDF example given for "Parabolic Velocity Inlet Profile in a Turbine Vane", the calculation of velocity boundary profile starts from the center of the "inlet" edge.

I am trying to write an UDF for boundary profile using power law profile but it doesn't seem to work. I noticed that Fluent again treat the center of the inlet as 0.0 and resulted a symmetrical boundary profile at the inlet.

The following is my code: The domain I am simulating is simply a 3D rectangular cube with the left and right faces as inlet and outlet flow while the rest are walls. /*================================================= ========*/ #include "udf.h" #define A1 0.728 #define B2 2

DEFINE_PROFILE(x_velocity,thread,index) { real x[ND_ND]; real y; face_t f;

begin_f_loop(f,thread)

{

F_CENTROID(x,f,thread);

F_PROFILE(f,thread,index) = A1*pow(x[2],B2);

} end_f_loop(f,thread) }

/*================================================= =====*/

Does this happened due to the use of Macro F_CENTROID? Please help me. Thanks in advance for any of your kind help to fine tune my UDF.
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
define_profile ape FLUENT 1 February 2, 2017 05:25
UDF DEFINE_PROFILE manu FLUENT 1 February 25, 2008 06:16
DEFINE_PROFILE Vishal FLUENT 1 February 25, 2006 23:57
DEFINE_PROFILE Tong FLUENT 0 February 17, 2006 09:18
DEFINE_PROFILE problem Giordano Bruno FLUENT 5 February 2, 2005 07:03


All times are GMT -4. The time now is 18:52.