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. |
 | Real | cc_thermodynamicsPressure (Real p1, Real v1, Real v2, Real gamma) This function is available as a Microsoft Excel add-in. |
Function Documentation
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:
- The follow graph show the change pressure when an initial 2m3 air is expanded or contracted:
Parameters:
| p1 | The initial pressure [psi] |
| v1 | The initial volume [ft3] |
| v2 | The new volume [ft3] |
| gamma | The 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:
-
Last Modified: 5 Mar 08 @ 14:00 Page Rendered: 2008-05-08 07:27:11
Page Comments
You must login to leave a messge