# EcoStruxure™ Control Expert - Flow Calculation Library

AGA Standard Gas Flow Calculation Library

# EcoStruxure™ Control Expert - Flow Calculation Library

### Features

#### Library Content

EcoStruxure Control Expert - Flow Control Library consist of Function blocks for below 3 family
• AGA
• API
• Flow Calculation Extensions
• ##### AGA Family Block List
• AGA3: Orifice Meter Gas Calculation
• AGA5: Calculation of Gross Heating Value, Relative Density and Compressibility Factor for Natural Gas Mixtures
• AGA7: Turbine Meter Gas Calculation
• AGA8: Compressibility Factor Calculation of Natural Gas and Related Hydrocarbon Gases
• AGA9: Ultrasonic Meter Gas Calculation
• AGA11: Coriolis Meter Gas Calculation
• VCONE: V-Cone Meter Gas Volumes
##### API Family Block List
• API_C11_1: Calculations for Generalized Crude Oils, Refined Products, and Lubricating Oils
• API_C11_2: Calculations for NGL and LPG
• API2540CTL: Calculations Temperature Correction Factor for Liquids
• API2540CPL: Calculations Pressure Correction Factor for Liquids
##### Flow Calculation Extensions Family Block List
• TOTALS: Accumulation of Instantanious Flow Rate Input
• TOTALS_UDA: Accumulation of Instantanious Flow Rate
• MULTIPLIER: Converter for Meter Input

#### AGA#3 Orifice Meter Gas Calculation Function

The Orifice Meter Gas Calculation Function object
• Uses the AGA Report #3 1995 standard
• This function calculates gas volumes using an orifice plate along with input meters for temperature, pressure and differential pressure
• #### AGA #7 Turbine Meter Gas Volume Calculation

This function is used to calculate Turbine Meter Gas Volumes for Pulse, Frequency and Analog Inputs using the AGA Report #7 2002 standard.

#### AGA #8  Gas Compressibility Factor Calculation Function

AGA #8:  Calculates the Compressibility Factor of Natural Gas and Related Hydrocarbon Gases - 1994 Detailed Method

The compressibility factors are ZFLOW, ZBASE, DFLOW, and DBASE and are calculated based on the "Gas Analysis" data entered into the "ANALYSIS" input data structure of the AGA8 EFB

The AGA8 EFB provides data to AGA3 EFB in order to adjust the AGA3 calculation to account for compressibility of the gas being measured

#### TOTALS EFB for Totalization of Instantaneous Flow Values

Function block is used to totalize or accumulate the instantaneous flowing volume provided by AGA3 and AGA7. This can be used to totalize other process values as well, i.e. not limited to use with AGA3 and AGA7. The input value can be in units/hour or units/day and the value will be totalized over time

There are various types of outputs, these are:

• running total
• running total (with reset)
• current day volume
• previous day volume
• 