Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

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


Sign up now

Calculating pressure transfer between pipes

4: Adsense

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.


  • You cannot reply to this topic
4 replies to this topic

#1 staticVoid2   Members   

377
Like
0Likes
Like

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.



#2 brucedjones   Members   

850
Like
0Likes
Like

Posted 29 May 2014 - 06:58 AM

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



#3 hobogoblin   Members   

179
Like
0Likes
Like

Posted 29 May 2014 - 08:48 AM

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



#4 CombatWombat   Members   

647
Like
1Likes
Like

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.



#5 Mats1   Members   

1043
Like
0Likes
Like

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
Vol3_page_327_eq_001.PNG (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.