Wetgas Venturi Overread - Reader Harris¶
This example demonstrates the calculation of overread correction for wet gas venturi meters using the Reader-Harris/Graham correlation, with sensitivity analysis on gas density and gas volume fraction.
Description¶
The example shows how to:
Calculate wetgas venturi flowrates using the Reader-Harris/Graham correlation
Perform sensitivity analysis varying gas volume fraction (GVF) and gas density
Visualize the Lockhart-Martinelli parameter and overread as functions of GVF and gas density
Wet gas: A gas stream containing small amounts of liquid (typically GVF > 0.95). When measured with a differential pressure meter designed for single-phase gas, the liquid phase causes an overread in the indicated gas flowrate.
Reader-Harris/Graham correlation: An industry-standard method for correcting venturi meter readings in wet gas conditions.
Usage¶
python wetgas_venturi_overread_ReaderHarris.py
Required Packages¶
pvtlibnumpy(for creating value ranges)pandas(for data handling)matplotlib(for visualization)
Output¶
The script generates two plots:
Lockhart-Martinelli parameter vs. Gas Volume Fraction for different gas densities
Gas mass flow overread vs. Lockhart-Martinelli parameter for different gas densities
These plots help understand how the overread correction varies with operating conditions.
Source code¶
"""MIT License
Copyright (c) 2025 Christian Hågenvik
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
"""
# Example: Overread correction for wetgas venturi, using the Reader-Harris, Graham correlation.
# Sensitivity analysis of gas density and gas volume fraction.
from pvtlib.metering import differential_pressure_flowmeters
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
venturi = {
'D': 0.09, # m, inlet inner diameter
'd': 0.09*0.6, # m, throat inner diameter (beta = 0.6)
'P1' : 45.0, # bara, static pressure at inlet
'DP' : 140.0, # mbar, differential pressure
'rho_l' : 750.0, # kg/m3, liquid density
'H' : 1.0, # Dimensionless fluid parameter (1 for hydrocarbon liquids, 1.35 for water)
'kappa' : 1.3, # isentropic exponent
}
GVF = np.linspace(0.95, 0.999, 100) # Gas volume fraction from 0.95 to 0.99
rho_g_range = np.linspace(10, 100, 10) # Gas density from 10 to 100 kg/m3
results = {}
idx = 0
for rho_g in rho_g_range:
for gvf in GVF:
res = differential_pressure_flowmeters.calculate_flow_wetgas_venturi_ReaderHarrisGraham(
D=venturi['D'], # m, inlet inner diameter
d=venturi['d'], # m, throat inner diameter (beta = d/D)
P1=venturi['P1'], # bara, static pressure at inlet
dP=venturi['DP'], # mbar, differential pressure
rho_g=rho_g, # kg/m3, gas density at inlet conditions
rho_l=venturi['rho_l'], # kg/m3, liquid density at inlet conditions
GVF=gvf, # Gas fraction can be entered either as GVF or GMF. If both are given, GMF is used.
H=venturi['H'], # Dimensionless fluid parameter (1 for hydrocarbon liquids, 1.35 for water)
kappa=venturi['kappa'] # isentropic exponent
)
res['GVF'] = gvf
res['rho_g'] = rho_g
results[idx] = res
idx += 1
# Convert results to DataFrame for easier plotting
df = pd.DataFrame(results).T
# Plot Lockhart-Martinelli parameter vs GVF for different gas densities
plt.figure(figsize=(12, 8))
for rho_g in rho_g_range:
df_subset = df[df['rho_g'] == rho_g]
plt.plot(df_subset['GVF'], df_subset['LockhartMartinelli'],
linestyle='-', label=f'ρ_g = {rho_g:.1f} kg/m³')
plt.title('Lockhart-Martinelli Parameter vs Gas Volume Fraction\n(Gas Density Sensitivity)')
plt.xlabel('Gas Volume Fraction')
plt.ylabel('Lockhart-Martinelli Parameter')
plt.legend(bbox_to_anchor=(1.05, 1), loc='upper left')
plt.grid()
plt.tight_layout()
plt.show()
# Plot overread vs Lockhart-Martinelli parameter for different gas densities
plt.figure(figsize=(12, 8))
for rho_g in rho_g_range:
df_subset = df[df['rho_g'] == rho_g]
plt.plot(df_subset['LockhartMartinelli'], df_subset['OverRead'],
linestyle='-', label=f'ρ_g = {rho_g:.1f} kg/m³')
plt.title('Gas Massflow Overread vs Lockhart-Martinelli Parameter\n(Gas Density Sensitivity)')
plt.xlabel('Lockhart-Martinelli Parameter')
plt.ylabel('Venturi Meter Overreading')
plt.legend(bbox_to_anchor=(1.05, 1), loc='upper left')
plt.grid()
plt.tight_layout()
plt.show()