Compute Z Factor



Background

Gas compressibility factor (z-factor) is an important parameter widely used in petroleum and chemical engineering. Accurate and fast calculation of this parameter is of crucial need and challenges a large number of simulators used in petroleum engineering. Here, we are presenting a better way for calculation of this parameter.
This application uses a 2-10-10-1 neural network to calculate compressibility factor (z-factor) of natural hydrocarbon gases based on Standing-Katz and Katz charts. To learn more about this method, see the following paper:
Kamyab et al., "Using artificial neural networks to estimate the Z-Factor for natural hydrocarbon gases", Journal of Petroleum Science and Engineering, 2010, 73, p248-257

In order to compute the compressibility factor, the pseudo reduced pressure (Ppr) and temperature (Tpr) are required. The acceptable range of these two inputs are: 0 ≤ Ppr ≤ 30 and 1 ≤ Tpr ≤ 3

Python, and java code and Excel calculator is available in this github link.

This model is also available as an android app; download it from this play store link.