CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Boundary conditions at inlet/outlet of a pipe with compressible flow (https://www.cfd-online.com/Forums/main/162859-boundary-conditions-inlet-outlet-pipe-compressible-flow.html)

nicola_78 November 19, 2015 05:04

Boundary conditions at inlet/outlet of a pipe with compressible flow
 
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

laurentD November 19, 2015 06:14

Hi Nicola (Yvelines?),
you speak about wrong results, but what tool are you using to obtain these results ?
Laurent

nicola_78 November 19, 2015 06:32

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)

FMDenaro November 19, 2015 07:12

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

nicola_78 November 19, 2015 07:30

I took care about the things you said.

FMDenaro November 19, 2015 08:30

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?

nicola_78 November 19, 2015 09:03

I didn't impose any velocity, shouldn't it be automatically evaluated if I impose a boundary at the outlet?

Sarang V November 19, 2015 10:49

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.

nicola_78 November 19, 2015 11:15

The diamensions are correct

Sarang V November 19, 2015 11:18

What is the numerical value of the area with units ?

FMDenaro November 19, 2015 11:20

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


All times are GMT -4. The time now is 04:40.