FUNCTION
pressure
Compute the pressure due to a volume of gas.
Interface
#include <codecogs/engineering/thermodynamics/pressure.h>
using namespace Engineering::Thermodynamics;
Compute the pressure due to a change in volume of gas, based on the adiabatic expansion
(1)
Therefore
(2)
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 v1=2 p1=14.7 v2=0.1:4
Parameters
p1
The initial pressure [psi]
v1
The initial volume [ft\^3]
v2
The new volume [ft\^3]
gamma
The gas constant. Default value = 1.4 (for air)
Returns
The new pressure at volume v2. [psi]
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.
Interactive Calculator
p1
v1
v2
gamma
Result
Computing…
Set a range above first to export a graph.
This function's source code is only visible to registered users — documentation and the calculator above are free to use either way. Sign in to see it.