Fundamentals of Gas Laws
Fundamentals of Gas Laws
Fundamentals of Gas Laws
John Chisholm
Introduction
In the gas industry a standard unit of measure is required. In the English system it is the standard cubic foot. In the metric, it
is the standard cubic meter. This standard unit is the basis of all exchange in the gas industry. When the unit of purchase is
the energy content (BTU) we achieve it by multiplying the BTU content of a standard cubic foot times the number of cubic
feet delivered to the customer. So we must obtain standard cubic feet or meters.
A standard cubic foot is defined as one cubic foot of gas at a pressure and temperature agreed upon by the buyer and seller.
Common standard conditions are 14.73 psia and 60⁰ Fahrenheit. The gas passing through a meter is rarely at standard
conditions. It is necessary to convert the gas in the meter from the metered conditions to standard cubic feet. The tools we
have for relating volume to pressure and temperature are Equations of State or, simply, the Gas Laws.
The Gas Laws serve two purposes. They allow the conversion of a gas stream from metered conditions to standard
conditions. They also provide an understanding of what the gas is doing and why. This paper will briefly present the Gas
Laws and the physical properties of gas that the Gas Laws describe.
Absolute Units
The very first thing you need to know is that all calculations using the Gas Laws are in Absolute Units. Absolute pressure
starts at zero psia, an absolute vacuum. Absolute temperature starts at zero degrees Rankine, approximately -460⁰F, where
theoretically no molecular motion exists. It is an error to perform calculations using psig or ⁰F.
Matter can exist in three phases, solid, liquid, and vapor. The phase of a pure substance such as water is controlled by the
energy of the molecules. For example, water at low energy forms a crystalline solid, ice.
At higher energy, it is liquid water. The molecules have too much energy to remain bound in a crystalline structure, but the
attractive forces between the molecules cause them to assume a minimum volume. Liquids will conform to the shape of the
lowest parts of a vessel, but maintain the same volume.
As the energy increases the vibration of the molecules overcomes the attractive forces and the water boils. The steam
molecules completely fill the confining vessel. In normal measurement conditions natural gas is always in the vapor phase.
The phase of a pure substance is determined by
the temperature and pressure. Figure 1 is a phase
diagram of a pure substance such as ethane. At
low temperatures the material exists as a liquid
and will occupy a specific volume at the base of
its container. As a pure substance changes from
liquid to vapor there is a sudden change of
volume as the liquid changes from its minimum
volume to the volume of the confining vessel.
As the temperature increases across the line on
Figure 1 the material changes from liquid to
vapor and this sudden change of volume can be
observed. However, there is a pressure and
temperature at which the volume of the gas is
exactly the same as the volume of the liquid.
The liquid completely filled the vessel and then
the vapor completely filled the vessel. So, an
observer cannot tell whether the material is a
liquid or a vapor. This critical pressure, Pc, and
critical temperature, Tc, is specific to a given material. At any pressure or temperature above the critical values only one
phase will exist. However, as the material completely fills the vessel, we can treat it as a vapor either way. The critical
temperature and pressure become important in the determination of the compressibility factor, z, which will be discussed
later.
Natural gas consists of molecules of hydrocarbons. Usually this is predominantly methane. Other gases may be present as
contaminants such as water, oxygen, nitrogen, carbon dioxide, and hydrogen sulfide.
The difference between the ideal and the real gas law is the compressibility factor, z. The ideal gas law assumes that the
molecules of gas have no volume and there are no attractive or repulsive forces acting between the molecules. At very low
pressures z 1.0 and gases behave as if they are ideal gases. At higher pressures the attractive and repulsive forces (often
called the dynamic pressure) are significant and the behavior of gases deviates from the ideal. The compressibility factor is
often called the gas deviation factor or, simply, the z - factor.
Early experiments were conducted at low pressures and the gases tested acted as ideal gases. Boyle’s Law states that at a
constant temperature the product of the pressure and the volume is a constant, so any two conditions, 1 and 2, of a gas were
related by
P1V 1 = P2 V 2 Equation (3)
Charles’ Law states the ratio of volume to temperature is constant at constant pressure,
V1 V2
= Equation (4)
T1 T2
These can be combined into one of the most common expressions of the ideal gas law.
P1V 1 = P2 V 2
Equation (5)
T1 T2
The real gas law simply includes the compressibility factors.
P1V 1 = P2 V 2
Equation (6)
z1 T 1 z 2 T 2
Solving this equation for V2 yields
P1 T 2 z 2
V 2 =V 1 Equation (7)
P2 T 1 z1
This equation is widely used to convert between two conditions as in the calculation of line pack, for example, and to convert
flowing conditions to standard conditions.
Pressure and the Kinetic Theory of Gases
Pressure is the force per unit area. The force on the wall of a container containing gas is the number of impacts of gas
molecules on the wall. So, anything that increases the number of impacts or the velocity of the impacts will increase the
force, and, hence, the pressure.
The Kinetic Theory of Gases states that the kinetic energy (KE) of a molecule is directly proportional to its temperature.
1
KE(T) = m v2 Equation (8)
2
The Ideal Gas Law can be derived using the Kinetic Theory. And the derivation explains a great deal about what pressure is
and how gases react.
L
L
In a container of fixed volume, the velocity controls how long it will take a molecule to travel from one side of the container
to the other and back again.
v
Number of impacts per unit time = Equation (10)
2L
where v is the average velocity of the molecule. Each molecule of gas hits the wall at v and rebounds at -v. The momentum
of the molecules is its mass times its velocity, so the change of momentum at the wall is given by:
where m is the mass of each molecule and the ∆ stands for change, in this case, of momentum.
So, how is this 2mv? Consider a ball thrown at a wall. The wall must first stop the ball’s momentum (mv) and then send it
away again with momentum mv. So from the point of view of the wall, it had to impart to the ball 2mv, half just to stop it and
half to send it away.
v v2
2mv * = m Equation (12)
2L L
n
Only a third of the molecules, , in the box are hitting each wall. The force acting on a wall is the number of molecules
3
times the change in momentum per unit time.
n m v 2
F= Equation (13)
3 L
And pressure is the force per unit area.
n m v2 1 nm v2
P= = Equation (14)
3 L L2 3 L3
nm v 2 nm v 2
P= or PV = Equation (15)
3V 3
The beginning assumption was that the kinetic energy was a function of temperature alone.
where c is a constant.
Then
n
PV = 2cT Equation (17)
3
Before completing the derivation, consider some consequences of the equation above.
n 2
PV = cA T Equation (18)
A3
n 2
Now = n , the number of moles of the gas, and if we set cA = R , the gas constant.
A 3
Then,
The Kinetic Theory shows that each impact contributes to the pressure. If the temperature increases, the velocity increases,
the round trip time goes down, and the number impacts goes up, hence, more pressure. If the number of molecules in the
container increases, the number of impacts increase and the pressure increases. Finally, if the volume of the container is
reduced, it takes less time for the molecules to travel back and forth, so each molecule makes more impacts in a unit of time.
More impacts produced more pressure. The reverse of each of these events produces less pressure.
Both Charles’ and Boyle’s Laws have been derived from the Kinetic Theory. Some other very useful laws can be derived
from the Kinetic Theory. (For the record, the Laws were determined experimentally before the Kinetic Theory was
developed.) Avogadro’s Law states that, at the same temperature and pressure, equal volumes of an ideal gas contains the
same number of molecules. Also the volume containing one molecular weight of a given gas will be equivalent to the
volume containing one molecular weight of another gas at the same temperature and pressure. There are 2.73 x 10 26
molecules per pound mole of an ideal gas.
When the Kinetic Theory is extended to mixtures of gases, Dalton’s Law of Partial Pressures can be found. Dalton’s Law
states that the pressure on a surface by a gas is the sum of the pressures that would be exerted by each component in the gas if
it were alone,
and that the partial pressures are proportional to the mole fractions of each component. The partial pressures become
especially important if liquid water is in contact with the gas. The partial pressures can be used to determine what fraction of
each gas is in solution in the liquid. If significant quantities of CO 2 or H2S are present, they will produce corrosive acids in
solution with water.
The Kinetic Theory assumes no attractive or repulsive forces are acting in the gas. This allows the Kinetic Theory to derive
the ideal gas law. However, these forces do exist and at higher pressures cause gases to deviate from ideal behavior
significantly. These forces are called the dynamic pressure. The gas deviation factor is just the ratio of the actual volume of
a gas to that which would be predicted by the ideal gas law
V ACTUAL
z= Equation (21)
V IDEAL
As the pressure increases from near atmospheric, the molecules are pushed closer together. Both gravitational and electrical
attractions cause the molecules to pull towards one another with the result that the volume occupied by the gas is less than
that predicated by the gas law. The z-factor becomes less than one.
As the pressure continues to increase, the molecules, which have a real volume and velocity, begin to interfere with the other
molecules in the gas. Personifying the gas, one can think of each molecule fighting for its own space. This results in
repulsive forces. So the z-factor begins to increase and returns to and then exceeds 1.0, so that at high pressures the gas will
occupy more volume than that predicted by the ideal gas law.
As many pure gases and mixtures of gases were tested it was observed that their behavior matched that described above.
Although the z-factors for methane followed the same trends as that of ethane, the z-factors were by no means identical. To
unify these relations all the tests were related to the reduced temperature and pressure
T P
Tr= and Pr = Equation (22)
Tc Pc
For mixtures, the pseudo-critical properties can be used in these calculations.
When plotted for each and every hydrocarbon gas the z - factor lines now tracked together. This discovery is commonly
called the Law of Corresponding States. This allowed a generalized compressibility factor chart to be developed.
Many mathematical correlations have been developed to calculate z-factors. The current methodology in AGA 8 should be
used unless another method is specified in a gas contract.
where yj is the mass fraction of each component of the mixture. Values of yj are obtained from gas chromatograph readings.
P MW g g MW g
g= and SG g = = Equation (24)
zRT air MW air
where MWg is the molecular weight of the gas and ρg is the density of the gas. Values of the critical properties and molecular
weights of the individual gases are available from any gas handbook.
EXAMPLE 1 - A turbine meter indicates that 4,000 macf of gas passed through it in one day. The line pressure and
temperature were 500 psia and 122⁰F. The gas stream was 85% methane, 9% ethane, 4% propane, and 2% butane+. What
volume of gas in mscf was delivered that day?
384.5 664.2
Pline T sc z sc
V sc = V line Equation (25)
P sc T line zline
V sc = 131,417mscf
EXAMPLE 2 - LINE PACK
Each day a pipeline must be balanced as to receipts and deliveries. A pipeline also represents a large storage unit for gas. At
a constant temperature, if the pressure of the pipeline is different at the end of the day than at the beginning, then the receipts
and deliveries will not balance because the amount of gas stored in the pipeline has changed. Determining the amount of that
change is often called a line pack calculation.
Consider the gas of Example 1. The pipeline runs 39 miles of 8 inch pipe with a total enclosed volume of 70,000 cubic feet.
If we start the day with an average pressure of 500 psia and 122⁰F and end it at 600 psia and 122⁰F, how much additional gas
is in the pipeline?
P pipe T sc z sc
V sc = V pipe Equation (26)
P sc T pipe z pipe
V sc = 2,127,311cubicft = 2,127mscf
V sc = 2,820,744cubicft = 2,821mscf
So, 2,821 - 2127 = 694mscf more gas is stored in the pipeline at days end than at the
beginning.
References
McCain, William D., Jr., The Properties of Petroleum Fluids, Penn Well Books, Tulsa, Oklahoma, 1990.
Thompson, Roger G., “Fundamental Gas Laws”, Proceedings of the 29th Annual American School of Gas Measurement
Technology, Houston, Texas, September 19-22, 1994.
Gas Processors Suppliers Association, Engineering Data Handbook, Tulsa Oklahoma, 1972.
Standing, M.B. “Volumetric and Phase Behavior of Oil Field Hydrocarbon Systems,” SPE of AIME, Dallas, Texas, 1977.
Standing, M.B. and Katz, D.L., “Density of Natural Gases”, Transactions AIME, 146, 1942.