Professional Documents
Culture Documents
Implementation of API2540 To LGX
Implementation of API2540 To LGX
API2540
Implementation OF API2540
In OMAR-LGx Flow Computer
Conversion of Hydrocarbon Liquids to Net Volumes at Reference Conditions
IA002-V9509
OMAR-LGx Measurement
API2540
IA002-V9509
OMAR-LGx Measurement
API2540
Equivalent Liquid Volumes. (Value of physical constants as per GPA Standard 2145).
2 - The API 2540 standard for Hydrocarbon Liquids flow measurement with density from 500
kg/m3 to 1075 kg/m3. The calculation supports the complete density range by
implementation of the full API Tables (Table 23/53 for density correction and Table 24/54 for
Ctl computation) in the Coprocessor.
3 The AGA3, AGA7 and AGA8 standards for the measurement of Hydrocarbon fluids.
Note: See Appendix A for details of references.
IA002-V9509
OMAR-LGx Measurement
API2540
Line Temperature
Line Pressure
Line Density
Flow Meter pulses
Differential Pressure (Orifice)
The above process conditions are sampled by the PLC on a continuous basis and made
available to the Coprocessor for the API 2540 calculations.
The measurement process may be broken down into four main stages described below.
2.1 Stage 1: Convert the flowing density to density at 15 Deg.C.
Depending on the value of the Line Density, appropriate subroutines are selected to carry out
the Density correction. If the Line Density is between 500 kg./ou.m and 610 kg./cu.rn, the
API Table 23A/53A is used to look up the density at 15 Deg.C.
If the Line Density is greater than 610 kg./cu.m but less than 1075 kglcu.m, then the API
algorithms are used to reference the density to 15 Deg.C. The subroutine adheres strictly to
the API standard ensuring that the calculations are done within the density and temperature
constraints specified by the standard. If these constraints are violated by the process inputs,
the measurement subroutines are designed to annunciate this condition and use default
values.
Note: The logic of the OMAR Measurement system allows the user to input density
already referenced to 15 Deg.C (instead of the density at flowing conditions). When this
is done, Stage I is completely bypassed by the Coprocessor logic.
The subroutines utilize table look up for product density between 500 kg/cu.m and 610
kg/cu.m. For densities higher than 610 kg/cu.m and less than 1075 kg/cu.m, algorithms are
used within the API specified temperature and density constraints. If the process conditions fall
outside of these constraints, then this condition is annunciated and a user defined default
numeric value is used for Ctl.
IA002-V9509
OMAR-LGx Measurement
API2540
Note 1: The OMAR measurement system logic allows the user to bypass the Ctl
calculation entirely and utilize a user defined default numeric value for Ctl.
2.3 Stage 3: Calculate Compressibility Factor Cpl
In order to calculate the Compressibility factor, the algorithms require the following input variables:
Line Temperature
Line pressure
Equilibrium Vapour Pressure (Note 2)
Density corrected to 15 Deg C / 60 Deg F
The algorithm adheres strictly to the API Standard to ensure that all the specified constraints
are implemented. Provided the corrected input density is between 350 kg/cu.m and 1047
kg/cu.m, the measurement routines calculate a value for the compressibility factor Cpl. If any
of the specified limits are violated, this condition is annunciated and a user defined default
numeric value for Cpl is used in the calculations.
Note 1: The OMAR measurement system logic allows the user to bypass the Cpl
calculation entirely and use a fixed numeric value of 1.
Note 2: The system software allows for the automatic calculation of the product
Equilibrium Vapour Pressure per the GPA-TP15 technical paper (A simplified Vapour
Pressure Correlation for Commercial NGLs. See OCTAL Information Abstract IA004V9509.)
IA002-V9509
OMAR-LGx Measurement
API2540
Where:
UVgrs
Note: The OMAR measurement system includes the facility to characterize the Meter Base
K Factor relative to the measured flow rate of the product using the Lagrange or the Linear
Curve Fit method. The user may use or bypass this option on a per meter basis. ( See
OCTAL Information Abstract IA005-9505)
Where:
Qhg
C
Hw
Density
:
:
:
:
UT
IA002-V9509
OMAR-LGx Measurement
API2540
Where:
UVnet : incremental Net Volume
Where:
UMass
Where:
Mtotal : Product Mass Accumulated Total
Note: Alternate method for calculating product mass uses Gross Volume and Flowing Density
IA002-V9509
OMAR-LGx Measurement
API2540
APPENDIX A
American Petroleum Institute
Manual of Petroleum Measurement Standards
Metering of NGLs & Crude Oils (API 2540)
a.
b.
c.
d.
e.
f.
IA002-V9509