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

Inlet pressure

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 30, 2010, 12:38
Red face Inlet pressure
  #1
Member
 
ali
Join Date: May 2009
Posts: 58
Rep Power: 16
alikami is on a distinguished road
I simulated over expanded nozzle at 1 bar ambient , steady state with mass flow rate inlet condition. super sonic gauge presure i used 70 bar
now i wanted to change inlet pressure with respect to time .
i give in put using
#include "udf.h"
DEFINE_PROFILE(unsteady_pressure, thread, position)
{
float t, pressure;
face_t f;

begin_f_loop(f, thread)
{
t = RP_Get_Real("flow-time");
pressure = 200000+300*t;
F_PROFILE(f, thread, position) = pressure;
}
end_f_loop(f, thread)
}

and solved for 10 milli second
and saved file..
when i look at result no change in pressure , remains 70 bar
I did change the pressure inlet from constant to ydf pressure
someone can help
Regards
Ali
alikami is offline   Reply With Quote

Old   May 31, 2010, 19:15
Default
  #2
New Member
 
omid
Join Date: Mar 2010
Posts: 17
Rep Power: 16
om1234 is on a distinguished road
maybe it could be helpful

#include "udf.h"

DEFINE_PROFILE(unsteady_pressure, thread, position)
{
face_t f;

begin_f_loop(f, thread)
{
real t = RP_Get_Real("flow-time");
F_PROFILE(f, thread, position) =200000+300*t;
}
end_f_loop(f, thread)
}

Last edited by om1234; May 31, 2010 at 19:39.
om1234 is offline   Reply With Quote

Old   June 2, 2010, 05:34
Default
  #3
Senior Member
 
Max
Join Date: Mar 2009
Posts: 133
Rep Power: 17
coglione is on a distinguished road
If I understand you right, you are using a mass-flow inlet BC. In this case supersonic/initial gauge pressure is only used for initializing the solution and your udf will not have any effect for the rest of the computation.

cherrs
coglione is offline   Reply With Quote

Old   June 2, 2010, 08:01
Default
  #4
Member
 
ali
Join Date: May 2009
Posts: 58
Rep Power: 16
alikami is on a distinguished road
means i should give mass flow inlet using udf?
can you help how?
also if i have particles in flow how to give it using udf also?
plz help
Regards
ali
alikami is offline   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
"Pressure Inlet" Boundary Setup Wijaya FLUENT 15 May 18, 2016 10:08
Pressure Inlet Boundary Condition Prasad FLUENT 6 April 9, 2013 21:32
How to give pressure inlet in Fluent Vijayaragavan FLUENT 2 December 13, 2007 03:21
about pressure inlet boundary Sastry(CFD Forum) FLUENT 0 February 19, 2007 02:55
Neumann pressure BC and velocity field Antech Main CFD Forum 0 April 25, 2006 02:15


All times are GMT -4. The time now is 19:37.