# All Articles   # A Deviation In The Deviation

This equation " PV=nRT " is one of the most important equations in petroleum engineering, it is simply the ideal gas law, we use it to calculate amount of gas production in gas reservoirs, but is the gas really ideal?

And this answer is based on many experimental observations which showed that hydrocarbon gas doesn't obey this law ideally but it follows a deviation and the equation can now be (PV=ZnRT) where Z is the compressibility factor .
This factor must be precisely determined because any small error in calculation will cause great problems in production as "petroleum engineers" work with high pressure and temperature so the volume is very high too.
And this problem was solved when Standing And Katz Compressibility Factors Chart was published .
Thanks to these charts calculation are now easier, all what we have to is to follow some steps to calculate the (Z) factor and then put it in the equation to calculate the volume or any other variable of the equation.

The Steps :

1. calculate (Ppc) and (Tpc) from the equations respectively.

Ppc=∑Yi * Pci And Tpc=∑Yi * Pci

2. calculate (Ppr) and (Tpr)

Ppr=pressure/Ppc And Tpr=temperature/Tpc

3. look for the (Z factor) in the charts.
This method is very successful and is still used today
The chart represents compressibility factors of sweet natural gas as a function of (Ppc) and (Tpc). This chart is generally reliable for natural gas with minor amount of nonhydrocarbons. It is one of the most widely accepted correlations in the oil and gas industry.
But, what if there are big percentages of non-hydrocarbon components? Can this cause a deviation in the (Z) factor?
The answer is yes, because when the percentage of H2S and CO2 in the gas mixture is higher than 5% , this causes some errors in calculations, and the higher the percentage of non-hydrocarbon components, the lesser the accuracy of calculations.
So, how can we make our measurements with these errors? Or in another way of questioning "How to overcome the deviation of deviation?"
This question was answered by developing new methods of calculating the compressibility factor.

There are two methods :

• Wichert-Aziz correction method.
• Carr-Kobayashi-Burrows correction method.

But we are explaining here the 1st method only.

The Wichert-Aziz Correction Method

This method permits the use of the Standing-Katz Chart by using a pseudo-critical temperature adjustment factor, which is a function of the concentration of CO2 and H2 in the sour gas. This correction factor is then used to adjust the pseudo-critical temperature and pressure according to the following expressions: 