• FEATURED

View more

View more

View more

### Image of the Day Submit

IOTD | Top Screenshots

### The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.

# Calculating pressure transfer between pipes

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

4 replies to this topic

### #1staticVoid2  Members

Posted 29 May 2014 - 04:28 AM

Hi,

I'm trying to write some code that simulates the transfer of pressure from an air compressed tank along a pipe of a certain diameter. I've looked at various different equations and they all have various different flaws, such as assuming incompressible gas etc.

I need to be able to sample the pressure along the pipe at a specific distance and also simulate the pressure drop in the compressed tank over time.

Could someone point me in the right direction?

Thanks.

### #2brucedjones  Members

Posted 29 May 2014 - 06:58 AM

Bernoulli's equation is probably the best place to start.

### #3hobogoblin  Members

Posted 29 May 2014 - 08:48 AM

An assumptionb of an incompressible gas is pretty much standard for this sort of thing.

### #4CombatWombat  Members

Posted 30 May 2014 - 12:27 PM

If it's for a game, it's got to be a pretty strange game where the incompressible assumption causes problems.

If it's for an engineering problem, there are off the shelf products both paid and open to solve fluid problems.  Computational Fluid Dynamics code.

If it's purely to learn and play:

When you lose the incompressible assumption it becomes simultaneously a fluid dynamics and thermodynamics problem.

You will need to learn about:

Bernoulli / Energy equation

Thermodynamic Properties

The basic laws of thermodynamics

It's a big subject and it's hard to advise you more specifically without knowing where you are starting from.

### #5Mats1  Members

Posted 02 June 2014 - 06:50 PM

You can find some useful information here: http://petrowiki.org/Pressure_drop_evaluation_along_pipelines

For practical pipeline purposes, Eq. 11 can be simplified to
(Eq. 12)
where

P1 = upstream pressure, psia, P2 = downstream pressure, psia, S = specific gravity of gas, Qg = gas flow rate, MMscf/D, Z = compressibility factor for gas, dimensionless, T = flowing temperature, °R, f = Moody friction factor, dimensionless, d = pipe ID, in., and L = length, ft.

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.