www.squinch.org

AGA7

AGA 7 takes a flowing volume, rate or flowing conditions and calculates base volume, base volume flow rate or volume correction factor.  It requires flowing and base pressure, temperature and compressibility.  Compressibility is calculated by your favourite equation of state, such as AGA 8.

The algorithm for the calculation is extremely straightforward.  It is really just the application of the real gas law to the measured volume.

Pf * Vf = Zf * n * R * Tf 
so
Vf = Zf * n * R * Tf  / Pf

Pb * Vb = Zb * n * R * Tb
so
Vb = Zb * n * R * Tb / Pb

Dividing the equations, we get Vb/Vf = (Zb * n * R * Tb / Pb )/(  Zf * n * R * Tf  / Pf)
so
VbVf *(Zb * n * R * Tb * Pf) / (  Zf * n * R * Tf * Pb)

Changing the pressure and temperature doesn't change the number of moles, and R is a constant, so:

V
bVf *(Zb * Tb * Pf) / (  Zf * Tf * Pb)

S is defined as
Zb / Zf
Fpm is defined as Pf / 101.56 kPa, or Pf / 14.73 PSI
Fpb is defined as 101.56 kPa / Pb, or 14.73 PSI / Pb
Ftm is defined as 288.7056 Deg Kelvin / Tf, or 519.67 Deg. Rankin / Tf
Ftb is defined as Tb / 288.7056 Deg Kelvin, or Tb / 519.67 Deg. Rankin

So
Fpm * Fpb = Pf / Pb
and Ftm * Ftb = Tb / Tf
So Vb = Vf * Fpm * Fpb* Ftm * Ftb * S


AGA7:  Enter a flowing temperature, pressure and compressibility, a base temperature, pressure and compressibility, a flowing volume and a meter factor, then press Calculate. 
Flowing Temp (Deg C) =
Flowing Pressure (kPaA) =
Flowing Compressibility =
Flowing volume (M3) =
Meter Factor =
Base Temp (Deg C) =
Base Pressure (kPaA) =
Base Compressibility =



Results Table