def volume_flow(p, G, R, T, Z):
    """
    :param p: Absolute pressure, Pa
    :param G: Mass flow, kg/s
    :param R: Gas constant, J/(kg*K)
    :param Z: Compressibility factor
    :return: Volume flow of the natural gas, m3/s
    """
    return Z * G * R * T / p