Flow Computer Application Architecture
Flow Computer Application Architecture
For the FC the following inputs are used per stream. All inputs are retrieved via the
Ethernet link from the IO Module.
4. Flash Calculation
The FC application will have a dedicated function block that will:
a) Interact with the Multiflash DLL for on-line flash calculation and
b) Perform some calculations itself in order to get the information required such as condensate
density, gas density, flashed composition and product ratios by providing the well composition
and line conditions such as pressure and temperature.
Because the FC can perform on-line flash calculations, the FC does not require for setting up
interpolation tables which need to be updated and downloaded periodically.
The inputs needed (units converted) for the flash calculation are:
Input Units
Upstream Pressure (measured) [barg]
Upstream Temperature (measured downstream, and converted from down- to [deg C]
upstream by ISO 5167
Well composition (key-in value) [Mole fraction]
Gross gas mass fraction relative to the overall composition m gas [-]
From the line density of the gas ρ gas,line , upstream pressure and downstream temperature, the
flow computer will calculate the apparent mass flow rate of the gas fraction in the 2-phase
mixture q gas,uncorr [kg/s] and the upstream temperature [deg C] according to the ISO 5167-
4:2003 standard.
Where:
q g (tp ) Apparent mass flow rate of the gas fraction in the 2-phase mixture, in
[kg/s]
Cd Discharge coeff. of the Venturi (as determined by calibration), in [-]
Ad Area of the Venturi throat at operating conditions, in [mm2]
gas,line Density at operating conditions of the gas in the mixture, in [kg/m3]
ptp Differential pressure induced by the two phase flow, as measured
by the venturi meter, in [mbar]
Hence, De-Leeuw / ISO 11583 algorithm is applied to correct the over-reading value:
q g (tp )
q gas,corr
(1 CX X 2 )
where:
q gas,corr Corrected mass flow rate of the gas fraction (without condensate or
water), in [kg/s]
1 m gas gas,line
X
m gas liquid ,line
with:
n n
liquid ,line gas,line
C
gas, line liquid ,line
with:
Where applicable,
−0.8 𝐹𝑟𝑔𝑎𝑠
𝑛 = max [ 0.583 − 0.18 𝛽 2 − 0.578 exp ( ) , 0.392 − 0.18 𝛽 2 ]
𝐻
H depends on the liquid and is equal to 1 for hydrocarbon liquid, 1.35 for water at ambient
temperature, and 0.79 for liquid water in a wet-steam flow. It is a function of the surface tension
of the liquid.
Confidential – Calculation Block Diagram and Flow Calculation
Frg is the gas Froude number and is given by the following equation:
v gas gas,line
Frg
gD
liquid ,line gas,line
in which:
v gas can be derived by using an iterative method and ‘seeding’ a velocity based on the q g (tp )
. It can be calculated as follows:
q g ( tp )
v gas
D 2
gas,line
4
For further iterations q g (tp ) is replaced by 10 consecutives q gas,corr values. It is assumed that
the equation converges to a solution within 10 iterations.
Further correction is applied on the q gas,corr , qcond,corr and qwater ,corr . The correction factor is
determined from the average (deduced correction factor) measurements, which are performed
periodically through tracer dilution. The factor will be stored in the FC as a parameter for the
computation and can be updated manually via the SynEnergy HMI parameter page.
qgas,corr,CF qgas,corr CF
where:
qgas,corr,CF Corrected gas mass flow rate using correction factor, in [kg/s]
q gas,corr Corrected gas mass flow rate from De-Leeuw equation, in [kg/s]
qcond,corr,CF qcond,corr CF
where:
qcondensate,corr,CF Corrected condensate mass flow rate using correction factor, in [kg/s]
qwater,corr,CF qwater,corr CF
where:
qwater ,corr ,CF Corrected water mass flow rate using correction factor, in [kg/s]
qwater,corr Corrected water mass flow rate from De-Leeuw equation, in [kg/s]
With the condensate-gas-ratio CGR and water-gas-ratio WGR that we obtained from the
MultiFlash calculation, we are able to acquire the mass flow rate for condensate and water
respectively.
where:
qgas,corr,CF Corrected gas mass flow rate using correction factor, in [kg/s]
The CGR and WGR are calculated as follows on a mass basis of the flash computation:
X hl
CGR
X hg
where:
X wl
WGR
X hg
where:
Water Liquid Ratio (WLR) is derived from external watercut meter and is expressed in
percentage (%) value into the system.
𝑊𝐿𝑅 = 𝑃𝑒𝑟𝑐𝑒𝑛𝑡𝑎𝑔𝑒 (%) 𝑣𝑎𝑙𝑢𝑒 𝑓𝑟𝑜𝑚 𝑊𝑎𝑡𝑒𝑟𝑐𝑢𝑡 𝑀𝑒𝑡𝑒𝑟
𝑇𝑜𝑡𝑎𝑙 𝑙𝑖𝑞𝑢𝑖𝑑 𝑥 𝑊𝐿𝑅 = 𝐶𝑜𝑛𝑑𝑒𝑛𝑠𝑎𝑡𝑒 & 𝐴𝑞𝑢𝑒𝑜𝑢𝑠 𝑃ℎ𝑎𝑠𝑒
Confidential – Calculation Block Diagram and Flow Calculation
Remarks:
(1) Pseudo-components are combined to the corresponding reduced gas component in order
to generate the reduced gas composition table
(2) Reduced gas composition table is created to expedite real-time calculations at each
iteration by the FC
Confidential – Calculation Block Diagram and Flow Calculation
Using the ISO 6976 (1995) standard, the base density for gas gas,base is calculated using
the reduced composition as specified in paragraph 7.
The reference conditions are:
Standard conditions will be 15 deg C and 1.01325 bara.
q gas,corr ,CF
Qgas,std
gas,base
where:
Qgas,std Standard volume flow rate for gas, in [Sm3/hr]
qgas,corr,CF Corrected gas mass flow rate using correction factor, in [kg/hr]
gas,base Density of gas at reference conditions, in [kg/Sm3]
q condensate
Qcondensate, std
condensate,base
where:
Qcondensate,std Standard volume flow rate for condensate, in [Sm3/hr]
qcondensate Mass flow rate for condensate, in [kg/hr]
condensate,base Density of condensate at reference conditions, in [kg/Sm3]
q water
Qwater , std
water ,base
where:
Qwater,std Standard volume flow rate for water, in [Sm3/hr]
q water Mass flow rate for water, in [kg/hr]
water,base Density of water at reference conditions, in [kg/Sm3]
Density of water is a parameter and set to 999.102 kg/m3 (15 deg C, 1.01325 bara) in
accordance to API MPMS 11.4.1 (2003). This parameter can be modified via SynEnergy
HMI parameter page. The well specific water density could be obtained from the Process
Datasheet.