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

Help please UDF flow direction

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 3, 2010, 10:19
Default Help please UDF flow direction
  #1
New Member
 
Valentin
Join Date: May 2010
Posts: 12
Rep Power: 8
val17lr is on a distinguished road
Hello

I have a problem, I wrote an UDF file in order to create a pressure gradient on an inlet. Eveything works, except that the direction of my flow is wrong.

In fact, the flow goes to the "+y" axis, but I want it to go to the "-y" axis ( I want to change the sign).

Here is my UDF:

#include "udf.h"
DEFINE_PROFILE(pressure_profile,t,i)
{
real x[ND_ND];
real y;
face_t f;
begin_f_loop(f,t)
{
F_CENTROID(x,f,t);
y = x[1];
F_PROFILE(f,t,i) = -12750*y + 115100;
}
end_f_loop(f,t)
}

Anyone have a solution? I can't change anything on the inlet y-component of flow direction (normal, i select 'UDF pressure_profile') under boundaries conditions..

Thank you (excuse my english is poor, I'm french)
val17lr is offline   Reply With Quote

Old   September 3, 2010, 13:21
Default
  #2
New Member
 
Valentin
Join Date: May 2010
Posts: 12
Rep Power: 8
val17lr is on a distinguished road
Up please!!!!

I just need this to finish my diploma thesis!!!
val17lr is offline   Reply With Quote

Old   September 4, 2010, 05:30
Default
  #3
New Member
 
Valentin
Join Date: May 2010
Posts: 12
Rep Power: 8
val17lr is on a distinguished road
Anybody?

I'm sure the solution is not difficult but I don't find it.
val17lr is offline   Reply With Quote

Reply

Tags
udf flow direction

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
Flow meter Design CD adapco Group Marketing CD-adapco 3 June 21, 2011 08:33
specifying the flow direction in periodic boundary joanna FLUENT 2 February 27, 2006 22:09
Can 'shock waves' occur in viscous fluid flows? diaw Main CFD Forum 104 February 16, 2006 06:44
UDF for pulsing flow. J. Keays FLUENT 0 February 1, 2001 11:19
component flow direction fieldnames for boundary profiles required. Ricky Wong FLUENT 1 May 12, 2000 10:36


All times are GMT -4. The time now is 23:05.