CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT

Forcing pressure outlet according to pressure prob

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

LinkBack Thread Tools Search this Thread Display Modes
Old   July 29, 2005, 11:49
Default Forcing pressure outlet according to pressure prob
Posts: n/a

I have to force a pressure outlet with the data coming from a probe that is somewhere else is the fluid domain. I want the pressure in the outlet to be the same as the one in a specific surface somewhere else in the domain.

This is what I have tried, but it doesn't work. I can't even manage to get any average pressure on the surface I have selected according to its ID. Could you please help me?

DEFINE_PROFILE(tube_pressure,thread,nv) {

int ID;

int domain_id;

real p;

real ptot;

ID = 22; /* ID ot the probe*/

domain_id =1.0;

p = 0.0;

ptot = 0.0;

domainp = Get_Domain(domain_id);

/ f_threadp = Lookup_Thread(domainp, ID);

begin_f_loop(fp, f_threadp) /* loops over faces in a face thread */

{ i = (i + 1.0);

p += F_P(fp,f_threadp);

Message("i = %f, p = %f\n",i ,p);


end_f_loop(fp, f_threadp);

ptot = (p / i);

Message("Hello world ID= %f\n", ID);

Message ("index = %f, ptot = %f\n", index, ptot);

/* definition of pressure profile */

begin_f_loop (f, thread)


F_CENTROID(x, f, thread);

if (x[1] >= top) /*above=never*/


F_PROFILE(f, thread, nv) = 0.;


else /*below=always*/


F_PROFILE(f, thread, nv) = ptot;



end_f_loop (f,thread) }
  Reply With Quote


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
Outlet pressure for compressible flow Michelle CFX 12 September 1, 2015 18:38
pressure oscillation near pressure outlet boundary kino Main CFD Forum 5 April 13, 2011 11:03
Pressure Outlet setting CoG STAR-CCM+ 4 June 9, 2010 21:47
what actually is the 'zero pressure outlet b. c.' hwe001 CFX 4 June 7, 2010 15:22
UDF in Fluent to Match Mass Flow at Pressure Outlet Jonas Larsson Main CFD Forum 1 April 29, 1999 10:44

All times are GMT -4. The time now is 09:57.