CodeCogs - An iteractive open source Numerical library Welcome... Login
CodeCogs
shopping cart
OSXWindowsLinux
Search CodeCogs
Numerical Components

Valid RSS

EngineeringThermodynamics

pressure

Freely available under GPL terms only
get a GPL licence
viewed 68 times and licensed 7 times

Compute the pressure due to a volume of gas.

Controller: lodmore  Contact Controller
+View version details
Contents hide toc
get GPL

Interface

#include <codecogs/engineering/thermodynamics/pressure.h>

double pressure (double p1, double v1, double v2, double gamma=1.4)
Compute the pressure due to a volume of gas.
ExcelReal cc_thermodynamicsPressure (Real p1, Real v1, Real v2, Real gamma)
This function is available as a Microsoft Excel add-in.

Function Documentation

Pressure Calculator
  
Add calculator to website or email
 
doublepressuredoublep1
doublev1
doublev2
doublegamma = 1.4 )
Compute the pressure due to a change in volume of gas, based on the adiabatic expansion
p_1 v_1^\gamma = p_2 v_2^\gamma

Therefore
p _1= p_2 \frac{v_2}{v_1}^\gamma

where γ is the gas constant, equal to 1.4 for air.
Example 1:
The follow graph show the change pressure when an initial 2m^3 air is expanded or contracted:
\graph  p1=14.7, v1=2, v2=0.1:4, gamma=1.4
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 [ft^3]
v2The new volume [ft^3]
gammaThe gas constant. Default value = 1.4 (for air)
Returns:
The new pressure at volume v2. [psi]
Authors:
James Bateman (March 2008)
Source Code:

To view or download source code you need a GP Licence.

get GPL

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


Page Comments

Format Excel Equations

  You must login to leave a messge


Last Modified: 5 Mar 08 @ 14:00     Page Rendered: 2010-03-14 04:42:21

Valid CSS!   Valid XHTML 1.0 Transitional