I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
get GPL

pressure

Compute the pressure due to a volume of gas.
Controller: lodmore

Interface

C++
Excel

Pressure

 
doublepressuredoublep1
doublev1
doublev2
doublegamma = 1.4 )
Compute the pressure due to a change in volume of gas, based on the adiabatic expansion

Therefore

where γ is the gas constant, equal to 1.4 for air.

Example 1

The follow graph show the change pressure when an initial 2m3 air is expanded or contracted:
There is an error with your graph parameters for pressure with options v1=2 p1=14.7 v2=0.1:4

Error Message:Function pressure failed. Ensure that: Invalid C++

Note

The units for pressure and volume can be interchanged with SI or Imperial systems, so long as the units used for p1 are the same as those in p2; and equally the units of v1 = v2. i.e. You are consistent.

Parameters

p1The initial pressure [psi]
v1The initial volume [ft3]
v2The new volume [ft3]
gammaThe gas constant. Default value = 1.4 (for air)

Returns

The new pressure at volume v2. [psi]

Authors

James Bateman (March 2008)
Source Code

Source code is available when you agree to a GP Licence.

Not a member, then Register with CodeCogs. Already a Member, then Login.