Professional Documents
Culture Documents
Brent Berry
ABB Automation, Totalflow
Bartlesville, OK
Section 1 - BACKGROUND
This paper is intended to help bridge the gap between
the Old AGA-3 equation (hereafter referred to as
AGA-3-1985) and the New AGA-3 equation
(hereafter referred to as AGA-3-1992). As such the
paper begins with a background section aimed at
assisting those who are mostly familiar with the
factored form of the orifice metering equation.
Factored VS Fundamental flow rate equation form
Of the following two equations, which are published
in the AGA-3-1985 standard?
(a) equation 1
(b) equation 2
(c) both equation 1 and 2
(d) don't know
Cd
QV =
1- E 4
S
4
d 2 2 gc U f 'P
Ub
eq 1
Qv
'
C ' hw Pf
where,
eq 2
Cd
Density
If the old factored equation is all you have been
using, you may have never really dealt with density.
Looking back at Equation 1 of this document you
will notice two symbols, U f and Ub . The symbol U
Uf
Ub
Pf Mrair Gi
Z f R ( Tf N5 )
Pb Mrair Gi
Zb R ( Tb N5 )
eq. 3
eq. 4
Notice Pf , Tf , Z f , Gi , Pb , Tb , and Zb in eq 3
and eq 4. These represent temperatures, pressures,
specific gravities and compressibilities. It is these
variables that eventually make there way into the old
factors Ftb, Fpb, Ftf, Fgr, and Fpv (see Section 3 of
this document for more information). Leaving
densities in the fundamental equation, rather than
hiding them in a plethora (abundance) of factors,
seems less confusing and more instructive.
Gi
Pm Tm N 5 Z m
air
gas
gas
Gr
Pm Tm N 5 Z m
air
air
gas
Pmair
Pmgas
Tmgas
Tb
Zb
Gr gas
Z bair
so that ,
Gi
Pb
and
Tmair
Z bgas
Gr
0.99959
eq. 5
Page 5
Cd
1- E
Qv =
S
4
d2
2 gc U f 'P
Ub
S
Qv = 4
N c Cd Ev Y d 2
U f 'P
Ub
Table 2-1
Fundamental Equation Nomenclature Changes
AGA-3-1985
Equation
1
1 E4
velocity of
approach
equation
gc Dimension
Conversion
Constant
AGA-3-1992
Equation
Ev - Velocity of
Approach Symbol
Nc - Numeric
Constant
>
d r 1 D 1 T f Tr
>
Dr 1 D 2 T f Tr
Pf 1
Pf 2
'P
N
Page 7
NORMAL RANGE
EXPANDED RANGE
0.56 to 0.87
477 to 1150 Btu/scf
45.0 to 100.0
0.0 to 50.0
0.0 to 30.0
0.0 to 10.0
0.0 to 4.0
0.0 to 1.0
0.0 to 0.3
0.0 to 0.2
0.0 to 0.2
Assumed 0.0
Assumed 0.0
Assumed 0.0
Assumed 0.0
0.0 to 0.05
0.0 to 0.02
1200 psia (8.3 MPa)
32 to 130 Deg F (0 to 55 DegC)
0.07 to 1.52
0.0 to 1800 Btu/scf
0.0 to 100.0
0.0 to 100.0
0.0 to 100.0
0.0 to 100.0
0.0 to 12.0
0.0 to 6.0
0.0 to 4.0
0.00 to Dew Point
0.0 to 3.0
0.0 to 100.0
0.0 to 3.0
0.0 to 1.0
0.0 to 21.0
0.0 to Dew Point
0.0 to 100.0
20,000 psia (140 MPa)
-200 to 400 DegF (-130 to 200 DegC)
x
Regarding this issue, a summary of statements taken
from Part 4 of the new standard follows:
The orifice equation in use through AGA-31985 was based on data collected in 1932/33
under the direction of Professor S.R. Beitler at
Ohio State University (OSU). The results of
these experiments were used by Dr. Edgar
Buckingham and Mr. Howard Bean to develop
the coefficient of discharge equation.
old
new
old
Page 7
H d 0. 03 Dm
new
H d
0. 0025 Dm
0.1 2. 3 E m4
Pf Mrair Gi
Uf
Gi
Z f R ( Tf N 5 )
Cd
Qv =
1- E
S
4
d2
Zbgas
Gr
Zbair
Pf Mrair Gi
Uf
Z f R ( Tf N5 )
2 g c U f 'P
Qv = 4
Ub
Ub
Pb Mrair Gi
1E4
Qv
S
4
d2
Zbgas
Gr
Z bair
U f 'P
Ub
Ub
Pb Mrair Gi
Zb R ( Tb N5 )
Equation A-1
Cd
N c Cd Ev Y d 2
Zb R (Tb N5 )
Gi
Z
Pf Mr Gr bgas
air
Zbair
'P
2gc
Zfgas R Tf N5
S
4
Z
Pb Mr Gr bgas
air
Zbair
Zbgas R Tb N5
Page 8
Qv
Nc Cd Ev Y d 2
Z
Pf Mr Gr bgas
air
Zbair
'P
2gc
Zfgas R Tf N5
Z
Pb Mr Gr bgas
air
Zbair
Zbgas R Tb N5
Table 3-1
AGA-3-1985 Fundamental
Term(s). From eq A-1
Cd
S 2
d
1- E 4 4
Mr
air
2 gc
Mr
air
1
Z
bair
AGA-3-1985
Factor
AGA-3-1992 Fundamental
Term(s). From eq A-2
Fb * Fr
Not Applicable
1
Z
bair
AGA-3-1992
Factor (Part
3,AppendixB)
Not Applicable
Zbgas
Zbgas
Z fgas
Gr
Gr
Fpv
Z fgas
Fpv
Fgr
Gr
Gr
Fgr
1
( Tf N 5 )
Pb
Tb
Pf ' P
1
( Tf N 5 )
Ftf
Fpb
Ftb
Extension
Ftf
Fpb
Ftb
Pb
Tb
Pf ' P
Extension
Not Applicable
Not Applicable
Cd
Fc Fsl
Not Applicable
Not Applicable
Ev
Ev
S
4
Not Applicable
Not Applicable
Mr
air
Page 9
M rair
2
Nc
Zbair
R
Fn
Ev
1 E4
L1
N4
D
L2
M2
2 L2
1E
Tu
S2 S3e 8. 5 L1 S4 e 6 . 0 L1
TD
S6 M2 S7 M21. 3 E1.1
If D ! A4 N 4
Then Ts
E4
1 E4
0.0
D
A3 1 E A4
N4
Else Ts
Cd 0
A0 A1E 2 A2 E 8 TU TD TS
Cd1
A5 E 0.7 250
Cd 2
A6 E 4 250
Cd 3
Cd 4
250 0.35
S 5TU S 8TD E 0.8 4.75 0.8
>
d r 1 D 1 T f Tr
Pf
>
Dr 1 D 2 T f Tr
0.35
Pf1
0.8
'P
Pf2
N3
Calculate Beta
0.7
d
D
Page 10
Zb
Gr gas
Zbair
Gi
Pf Mrair Gi
Uf
Z f R ( Tf N5 )
Cd
Cd0
Flowing Density
FI
Cd
Pb Mrair Gi
Ub
Zb R ( Tb N5 )
Base Density
Fc
'P
N3 Pf
If (X Xc)
Dc
.
.
Cd Cd X035
Cd Cd X08. X035
Cd X08.
0
07. C X
035
.
d1
08
.
035
. Cd 115
. Cd X X 08
. Cd X08.
2
035
.
Else
0. 41 0. 35 E
k
Yp
Fc
B
Cd Cd X07. Cd Cd X08. A Cd X08.
X
Dc
. Cd X07. Cd Cd X08.
07
B
B
08
. Cd A X08. 08
. Cd X08.
X
X
3
1 Yp x
Cd Fc
D
1 c
Cd
GCd
5. Determine the converged value of Cd.
5.0 Calculate the iteration flow factor, Fi, and its
component parts, Flc and Flp, used in the Cd
convergence scheme.
Cd
4000 N Ic D P
FIc
5.6 Repeat steps 5.2, 5.3, 5.4 and 5.5 until the
absolute value of GCd is less than 0.000005.
Ev Y d 2
2 U f 'P
If FI 1000 FI
c
Then FI
Else FI
Cd GCd
S
Qv = 4
FI
FI
1000
Page 11
N c Cd Ev Y d 2
Ub
U f 'P
Pf 1 hw
>
d r 1 D 1 T f Tr
>
Dr 1 D 2 T f Tr
Calculate Beta
d
D
Ev
1
1 E4
Calculate Fn
338.196 Ev d 2
Fn
Pf
'P
Pf2
N3
Pf1
Fpb
Ftb
519. 67
Tf 459. 67
Fgr
1
Gr
Fpv
Page 12
Tb 459. 67
519. 67
Ftf
14. 73
Pb
Zbgas
Z fgas
Fsl
1,000,000E
0.000511
Re
0. 7
0 .8
0.35
19,000 E 4 1,000,000 E
0.0210 0.0049
E
Re
Re
'P
N3 Pf
Yp
0. 41 0. 35 E
k
Step 5.5 Repeat steps 5.2 through 5.4 until Cd, e.g.
(Fc + Fsl) changes are acceptibly small
1 Yp x
Qv
Qv
ReD
0. 0114541
Pf hw
Qv Pb Gr
P D Tb Zbair
6.0
D
2
2
0.52
0.0116
D1 E
D1 E
0.8
1 0.23 19,000E E
R
1 E 4
1.3
E 1.1
0.8
19,000E
1 014
.
Re
Fc 0.003 1 E 2.8 D
Pf1 hw
Section 6 - TOTALFLOWs
IMPLEMENTATION OF NEW ORIFICE
EQUATION FOR GAS
S
Qv = 4
N c Cd Ev Y d 2
U f 'P
Ub
Description
Computed once, never change
SEC
(second)
VOLP
(Vol Period)
NEW_VOL_CONST
NEW_COMP
Fip
To begin describing these time domain issues, the
fundamental equation is rewritten such that the
) is
portion of equation 7 under the radical (e.g.
set apart as a separate entity. Part 4 of the standard
refers to this portion of the equation as Fip. For
consistency we refer to it likewise here.
S
Qv = 4
N c Cd Ev Y d 2 Fip
eq. 8
Ub
where,
Fip
U f 'P
eq. 9
Uf
Pf M rair Gi
Z f R (Tf N 5 )
Fip
Pf M r Gi
air
2
Z f R Tf N 5
'P
Fipconst
Fpv
Equation 10 above contains a ideal gas gravity term
Gi that, as also discussed in Section 1 of this
document, is computed using the following equation.
Gi
2 Mrair
Zb
Gr gas
Z bair
Zbgas
Z fgas
Ext pt
Pf 'P
( Tf N5 )
Fip
Z bgas
Pf M rair Gr
Zbair
2
Z f R Tf N 5
'P
Fip
Ext pt Fpv
Fipconst Gr
Zbair
Page 15
Qv , Cd , Ev , Y ,
Ub
Fip
S
4
, and d
Ub
Fip
Pb Mrair Gr
Zb air R ( Tb N5 )
Ext pt Fpv
Fipconst Gr
Zbair
Fipconst
Fpv
Ext pt
Fpv
Ext pt
2 Mrair
R
CONST
Computed once, never changes.
VOLP
Zbgas
Z fgas
Pf 'P
( Tf N5 )
Page 16
SEC
The extension is computed and
integrated each second until VOLP,
when it is used in the volume
calculation.
Pf 1
Pf 2
'P
N
This logic and math execute each second thereby always providing the upstream static pressure for use throughout
the whole equation.
Averaging Techniques
Type 1 Averages
Averages constructed from one second samples taken only during times of flow are maintained for the real time
measured variables of differential pressure, static pressure, and flowing temperature.
Type 2 Averages
Averages constructed from all one second samples (regardless of flow) are also maintained for the same variables.
Type 1 averages are stored in the historical record for periods in which some quantity (volume or mass) accrued.
Type 2 averages are stored for periods in which zero quantity accrued. This technique provides adequate volume
adjustment averages for downstream processing but also supports site operations with averages for pressure and
temperature even when there is no flowrate.
In older Totalflow devices Type 1and 2 averages were always based on linear values. In newer Totalflow devices
either linear or square root averages can be specified.
Other New Implementation Features
x Different Z (compressibility) calculation methods are available. These include the latest AGA-8 methods and
NX-19. Additionally Fpv can be turned off if desired.
x VOLP, Volume calculation period defaults to one hour, but is user selectable. Selections offered are 1, 2, 5, 10,
30, and 60 minutes.
x Up to 23 composition variables for supporting AGA-8 detailed method are supported.
x Selectable static pressure tap location is supported.
x Selectable differential pressure tap type is supported.
x Higher static pressure transducers are supported. Up to 3500 psi is currently in use.
The following is a more detailed summary of periodic computations performed by this implementation for solving
the new orifice equations (AGA-3-1992). The periods referred to in this section are those same periods summarized
in Table 6-1. Please note that the following equations are based on using linear averages, if square root averages are
selected, then square roots are performed before they one second summations take place.
CONST PERIOD
Fipconst
2 Mrair
R
Ub
Pb Mrair Gr
Zb air R ( Tb N5 )
SEC PERIOD
IF (Pressure Tap Downstream)
Pfsec
Pf 1
Pfsec
Pf 2
ELSE
ENDIF
Secs
Pfacc
Tfacc
Secs 1
Pfacc Pfsec
Tfacc Tfsec
Dpsec
N5
Pfsec Dpsec
(Tfsec N5 )
Extacc flow Ext pt
Ext pt
Extacc flow
Dpacc flow Dpacc flow Dpsec
Pfacc flow Pfacc flow Pfsec
Tfacc flow Tfacc flow Tfsec
Secs flow Secs flow 1
ENDIF
Extacc flow
Extvolp
Secs
Dpacc flow
Dpvolp
Secs flow
Pfacc flow
Pfvolp
Secs flow
Tfacc flow
Tfvolp
Secs flow
At Tf, calculate terms that depend only upon orifice geometry: d, D, b, Ev and orifice coefficient correlation
terms.
Calculate corrected diameters and Beta
d
D
>
D >1 D T
@
T @
d r 1 D 1 T f Tr
r
d
D
Ev
1
1 E4
L1
L2
N4
D
M2
2 L2
1E
Tu
S2 S3e 8. 5 L1 S4 e 6 . 0 L1
TD
S6 M2 S7 M21. 3 E1.1
If D ! A4 N 4 Then Ts
Else Ts
E4
1 E4
0.0
D
A3 1 E A4
N4
Cd 0
A0 A1E 2 A2 E 8 TU TD TS
Cd1
A5 E 0.7 250
Cd 2
A6 E 4 250
Cd 3
250 0.35
S 5TU S 8TD E 0.8 4.75 0.8
Cd 4
0.7
0.35
0.8
Calculate Fpv at Tf, Pf and other specified fluid conditions (using NEW_COMP precalcs).
IF (FpvMethod = OFF)
Fpv = 1.0
ELSE IF (FpvMethod = AGA-8gross)
Calculate Zfgas using AGA-8gross method then calculate Fpv
Fpv
Zbgas
Z fgas
Fpv
Zbgas
Z fgas
Dpvolp
N3 Pfvolp
0. 41 0. 35 E 4
k
Yp
1 Yp x
Calculate Fip
Fip
Fipconst Gr
Extvolp Fpv
Zbair
4000 Nic D P
Ev Y d 2
Fic
Fic
Fip
Else FI
1000
Cd
Cd0
FI
Cd
Cd_step.3 Compute the correlation value Fc and it's derivative Dc, of Cd at the assumed flow, X
If ( X X c )
Fc
Dc
Else
Fc
Dc
Cd Cd X 0.7
0
Cd X 0.8 A Cd X 0.8
d2
0.8Cd X
4
0.8
B
B
0.8Cd A X 0.8
X
X
3
Cd Fc
D
1 c
Cd
GCd
Cd
Cd GCd
Calculate the final value of qm, the mass flow rate at line conditions.
qm =
S
4
N c Cd Ev Y d 2 Fip
Calculate the final value of Qv, the volumetric flow rate at base conditions.
Qv
qm
Ub
Calculate the final value of Volb, the volume at base conditions for the Volume Period
Vol b
Qv *
Secs
N vtime
Section 7 - NOMENCLATURE
a1
p
qm
qv
Qv
Pi, 3.14159.......
Mass flow rate at actual line conditions
Volume flow rate at actual line conditions.
Volume flow rate per hour at base conditions.
R
ReD
Base temperature.
Measured temperature of air.
Measured temperature of gas.
Flowing temperature.
Reference temperature of orifice plate bore diameter and/or meter tube internal diameter.
Downstream tap correction factor.
Small meter tube correction factor.
Upstream tap correction factor.
Quantity Volume at base conditions
Reduced reciprocal Reynolds number (4000/ReD).
Value of X where change in orifice plate coefficient of discharge correlation occurs.
Expansion factor.
Expansion factor pressure constant.
Compressibility at base conditions (Pb, Tb).
Air compressibility at air base conditions (Pb, Tb).
Gas compressibility at gas base conditions (Pb, Tb).
Compressibility at flowing conditions (Pf, Tf).
Air compressibility at air measurement conditions, (assumed Pb, Tb).
Gas compressibility at gas measurement conditions, (assumed Pb, Tb).
1.
American Petroleum Institute Measurement on Petroleum Measurement Standards (API MPMS) Chapter 14.3,
Part 1; Also recognized as AGA Report No. 3 Part 1; Also recognized as GPA 8185-92, Part 3; Also
recognized as ANSI/API 2530-1991, Part 1
2.
American Petroleum Institute Measurement on Petroleum Measurement Standards (API MPMS) Chapter 14.3,
Part 2; Also recognized as AGA Report No. 3 Part 2; Also recognized as GPA 8185-92, Part 2; Also
recognized as ANSI/API 2530-1991, Part 2
3.
American Petroleum Institute Measurement on Petroleum Measurement Standards (API MPMS) Chapter 14.3,
Part 3; Also recognized as AGA Report No. 3 Part 3; Also recognized as GPA 8185-92, Part 3; Also
recognized as ANSI/API 2530-1991, Part 3
4.
American Petroleum Institute Measurement on Petroleum Measurement Standards (API MPMS) Chapter 14.3,
Part 4; Also recognized as AGA Report No. 3 Part 4; Also recognized as GPA 8185-92, Part 4; Also
recognized as ANSI/API 2530-1991, Part 4
5.
American Gas Association (AGA) Transmission Measurement Committee Report No. 8; Also recognized as
API MPMS Chapter 14.2.
6.
Teyssandier, Raymond G.; Beaty, Ronald: New orifice meter standards improve gas calculations, Oil & Gas
Journal, Jan. 11, 1993
7.
ANSI/API 2530: Second Edition, 1985, Orifice Metering Of Natural Gas and Other Related Hydrocarbon
Fluids; Also recognized as AGA Report No. 3; Also recognized as GPA 8185-85; Also recognized as API
MPMS Chapter 14.3, API 2530.