# Boundary conditions at inlet/outlet of a pipe with compressible flow

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

 November 19, 2015, 06:04 Boundary conditions at inlet/outlet of a pipe with compressible flow #1 New Member   Join Date: Nov 2015 Posts: 10 Rep Power: 10 Hi Gentlemen, a question for you: I have a compressible gas flowing in a pipe (with in the middle of it a valve), I'm trying to impose the boundary coinditions at the inlet/outlet of the pipe, but something is wrong. Operating conditions: - 29.6 bar - 30 °C - 20.96 kg/m3 (@ 29.6 bar and 30 °C) - 5694 m3/h (@ 29.6 bar and 30 °C) I'm imposing for the INLET CONDITION a static pressure of 29.6 bar with 30 °C, and for the OUTLET CONDITION a mass flow rate (20.96*5694). The results are completely wrong, it results a velocity of 400 m/s, etc.. What is wrong? Where is the mistake? Can someone please help me? Thanks

 November 19, 2015, 07:14 #2 Senior Member   Laurent DASTUGUE Join Date: May 2014 Location: Chartres, France Posts: 122 Rep Power: 11 Hi Nicola (Yvelines?), you speak about wrong results, but what tool are you using to obtain these results ? Laurent

 November 19, 2015, 07:32 #3 New Member   Join Date: Nov 2015 Posts: 10 Rep Power: 10 I'm using, not by choice, Flow Works (SolidWorks). Results have no sense, I know that, for example, velocity should be around 10/20 m/s and not 400 m/s. Maybe there's some initial wrong setting. I also tried another way to resolve the problem: I imposed a mass flow rate at the INLET and a pressure of about 0 bar (1*^(-10)) at the OUTLET, but using a fluid with the properties calculated at my operating conditions (@29.6 bat and 30 °C)

 November 19, 2015, 08:12 #4 Senior Member   Filippo Maria Denaro Join Date: Jul 2010 Posts: 6,737 Rep Power: 71 compressible, unsteady subsonic flows require special care in setting the BC.s. You need to take into account the role of the characteristic curves (defined for inviscid flows) that say you have one BC at inlet coming from the interior. Similar care must be taken for the outlet where not all the BC.s can be taken from the interior but one has to be fixed. Many textbooks and papers illustrate the correct BC.s

 November 19, 2015, 08:30 #5 New Member   Join Date: Nov 2015 Posts: 10 Rep Power: 10 I took care about the things you said.

 November 19, 2015, 09:30 #6 Senior Member   Filippo Maria Denaro Join Date: Jul 2010 Posts: 6,737 Rep Power: 71 If you fix p and T at inlet you are also fixing the BC.s for the density = p /RT. What about the condition you let from the interior, velocity?

 November 19, 2015, 10:03 #7 New Member   Join Date: Nov 2015 Posts: 10 Rep Power: 10 I didn't impose any velocity, shouldn't it be automatically evaluated if I impose a boundary at the outlet?

 November 19, 2015, 11:49 #8 New Member   Sarang Join Date: Oct 2015 Posts: 22 Rep Power: 10 Since your velocity is so high. The first thing that I would check it that the diameter of the pipe is in the right units.

 November 19, 2015, 12:15 #9 New Member   Join Date: Nov 2015 Posts: 10 Rep Power: 10 The diamensions are correct

 November 19, 2015, 12:18 #10 New Member   Sarang Join Date: Oct 2015 Posts: 22 Rep Power: 10 What is the numerical value of the area with units ?

 November 19, 2015, 12:20 #11 Senior Member   Filippo Maria Denaro Join Date: Jul 2010 Posts: 6,737 Rep Power: 71 Maybe I have not fully understand how your code set the BC.s, I did some simple evaluation: fixind the static pressure p, assuming a crude approximation in terms of energy you have that the total pressure p0 and the kinetic energy are not prescribed individually but only their difference. Therefore, your solution can get any level of kinetic energy (and therefore of velocity magnitude) according to your setting shakabrade and Sarang V like this.

 Tags boundary, compressible, gas, pipe, pressure