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

outlet pressure

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 31, 2010, 19:30
Default outlet pressure
  #1
New Member
 
omid
Join Date: Mar 2010
Posts: 17
Rep Power: 16
om1234 is on a distinguished road
hi all
i'm going to analysis 2d centrifugal pump.in outlet line,i try to define static pressure in a single face of grid. i use this udf,but it doesn't work, but when i try to use it with if else ,answers are correct. i myself think that the problem is that the define-profile macro is a array of data and i must define the pressure in all of the cell faces, but i'm not sure.I wish any one can help me.

DEFINE_PROFILE(outlet_p, thread, position)
{
real x;
real y[ND_ND];
face_t f;

begin_f_loop(f, thread)
{
F_CENTROID(y,f,thread);
if (0.004<x<0.006) /* in this interior there is a face centroid or if (0.004<x & x<0.006)*/
F_PROFILE(f, thread, position) = 1e5;
}
end_f_loop(f, thread)
}
om1234 is offline   Reply With Quote

 


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
Pressure BC for combustion chamber Giuki FLUENT 1 July 19, 2011 11:35
Pressure Drop in outlet Vent Abdul FLUENT 2 October 28, 2008 12:13
Backflow occuring at a pressure outlet? Dave FLUENT 1 August 12, 2004 17:39
Gas pressure question Dan Moskal Main CFD Forum 0 October 24, 2002 22:02
Hydrostatic pressure in 2-phase flow modeling (long) DS & HB Main CFD Forum 0 January 8, 2000 15:00


All times are GMT -4. The time now is 12:30.