engineeringthermodynamics

pressure

Freely available under GPL terms only
get a GPL licence
viewed 14 times and licensed 1 times
www.codecogs.com/d-ox/engineering/thermodynamics/pressure.php
Controller: lodmore    Contact Controller

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.
Click for details on using CodeCogs in ExcelReal cc_thermodynamicsPressure (Real p1, Real v1, Real v2, Real gamma)
This function is available as a Microsoft Excel add-in.

Function Documentation

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

Therefore
(2)
\displaystyle p _1= p_2 \frac{v_2}{v_1}^\gamma

where γ is the gas constant, equal to 1.4 for air.
Example:
The follow graph show the change pressure when an initial 2m3 air is expanded or contracted:
\graph  p1=14.7, v1=2, v2=0.1:4, gamma=1.4
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]
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.
Authors:
James Bateman (March 2008)
Source Code:
Register

- To get code register with CodeCogs. Already a Member, then Login.


Last Modified: 5 Mar 08 @ 14:00     Page Rendered: 2008-05-08 07:27:11

Page Comments

  You must login to leave a messge


Valid CSS!   Valid XHTML 1.0 Transitional