Login| Sign Up| Help| Contact|

Patent Searching and Data


Title:
A METHOD AND APPARATUS FOR COMPOSITION BASED COMPRESSOR CONTROL AND PERFORMANCE MONITORING
Document Type and Number:
WIPO Patent Application WO/2012/007553
Kind Code:
A1
Abstract:
The present invention relates to a method and an apparatus for control of a compressor, where the compressor inlet gas may contain water and/or non-aqueous liquid. The method comprises the steps of measuring temperature at the compressor (1) inlet and/or outlet side, measuring pressure at the compressor (1) inlet and outlet side in order to determine a compressor pressure ratio, measuring fluid mixture density at the compressor (1) inlet and/or outlet side, measuring individual volume fractions of gas, water and non- aqueous liquid at the compressor inlet and/or outlet side, measuring fluid velocity at the compressor inlet and/or outlet side, determining individual flow rates of gas, water and non-aqueous liquid on the basis of the measured individual volume fractions of gas, water and non-aqueous liquid and the fluid velocity at the compressor inlet and/or outlet side, based on the determined individual flow rates of gas, water and non-aqueous liquid, determining an actual fluid mixture total volumetric flow rate of gas and liquid at the compressor inlet and/or outlet side, and on the basis of the determined compressor pressure ratio and the determined actual fluid mixture total volumetric flow and/or the measured temperature and/or the measured fluid mixture density at the compressor (1) inlet and/or outlet side according to steps a-g, controlling (7, 8) a recirculation valve position of at least one recirculation valve (5, 6) arranged between the inlet and outlet side of said compressor (1) in order to ensure that the compressor does not enter into a surge regime.

Inventors:
BRENNE LARS (NO)
HOEYDAL JAN (NO)
Application Number:
PCT/EP2011/062078
Publication Date:
January 19, 2012
Filing Date:
July 14, 2011
Export Citation:
Click for automatic bibliography generation   Help
Assignee:
STATOIL ASA (NO)
BRENNE LARS (NO)
HOEYDAL JAN (NO)
International Classes:
F04D27/02
Domestic Patent References:
WO2010040734A12010-04-15
Foreign References:
US4825380A1989-04-25
US3292846A1966-12-20
US3424370A1969-01-28
US3292846A1966-12-20
CA2522760A12004-11-04
US6213724B12001-04-10
US4156578A1979-05-29
US4825380A1989-04-25
US4971516A1990-11-20
US4399548A1983-08-16
Attorney, Agent or Firm:
ZACCO NORWAY AS (Oslo, NO)
Download PDF:
Claims:
C l a i m s A method for surge protection of a compressor (1 ) with an inlet and outlet side, wherein an inlet gas flow or stream of the compressor comprises time- varying amounts of water and/or non-aqueous liquid, by continuously or discontinuously measuring and/or determining various parameters of the fluids passing through said compressor (1 ), the method comprising the steps of:

a) measuring temperature at the compressor (1 ) inlet and/or outlet side, b) measuring pressure at the compressor (1 ) inlet and outlet side in order to determine a compressor pressure ratio,

c) measuring fluid mixture density at the compressor (1 ) inlet and/or outlet side,

d) measuring individual volume fractions of gas, water and non-aqueous liquid at the compressor inlet and/or outlet side,

e) measuring fluid velocity at the compressor inlet and/or outlet side, f) determining individual flow rates of gas, water and non-aqueous liquid on the basis of the measured individual volume fractions of gas, water and non-aqueous liquid and the fluid velocity at the compressor inlet and/or outlet side,

g) based on the determined individual flow rates of gas, water and nonaqueous liquid, determining an actual fluid mixture total volumetric flow rate of gas and liquid at the compressor inlet and/or outlet side, and h) on the basis of the determined compressor pressure ratio and the

determined actual fluid mixture total volumetric flow and/or the measured temperature and/or the measured fluid mixture density at the compressor (1 ) inlet and/or outlet side according to steps a-g, controlling (7, 8) a recirculation valve position of at least one recirculation valve (5, 6) arranged between the inlet and outlet side of said compressor (1 ) in order to ensure that the compressor does not enter into a surge regime. A method according to claim 1 , wherein the compressor performance is determined on the basis of the measured fluid mixture total density and determined parameters such as gas composition, gas and liquid properti

A method according to claim 2, wherein the compressor performance is determined by means of a polytropic head equation:

where

and where compressor efficiency is then calculated according to: where /TTP2 (n=2) and /TTPI (n=1 ) are defined as:

4. A method according to one of the previous claims, wherein gas is

recirculated from the outlet side to the inlet side of the compressor (1 ) when the liquid fraction exceeds a maximum determined value and/or pulsates.

5. An apparatus for surge protection of a compressor (1 ), where the

compressor inlet gas flow or stream contains time-varying amounts of water and/or non-aqueous liquid, by continuously or discontinuously measuring and/or determining various parameters of the fluids passing through said compressor (1 ), the apparatus comprising:

a) means (20) for measuring the temperature at the compressor (1 ) inlet and/or outlet side,

b) means (20) for measuring the pressure at the compressor (1 ) inlet and outlet side in order to determine the compressor pressure ratio, c) means (19) for measuring the fluid mixture density at the compressor (1 ) inlet and/or outlet side,

d) means (18) for measuring individual volume fractions of gas, water and non-aqueous liquid at the compressor inlet and/or outlet side,

e) means (17) for measuring fluid velocity at the compressor inlet and/or outlet side,

f) computing means (21 ) for determining individual flow rates of gas, water and non-aqueous liquid on the basis of the measured individual volume fractions of gas, water and non-aqueous liquid and fluid velocity at the compressor inlet and/or outlet side, and for determining an actual fluid mixture total volumetric flow rate of gas and liquid at the compressor inlet and/or outlet side on the basis of the determined individual flow rates of gas, water and non-aqueous liquid, and

g) controlling means for controlling (7, 8) a recirculation valve position of at least one recirculation valve (5, 6) arranged between the inlet and outlet side of said compressor (1 ) in order to ensure that the compressor does not enter into a surge regime on the basis of the data from the computing means (21 ).

6. An apparatus according to claim 5, wherein the compressor (1 ) comprises two or more recirculation valves (5, 6).

7. An apparatus according to claim 5 or 6, wherein the determination and/or controlling means (21 ) is located near or in the vicinity of the measuring means (3, 4, 17, 18, 19, 20).

8. An apparatus according to claim 5 or 6, wherein the determination and/or controlling means (21 ) is located remotely from the measuring means (3, 4, 17, 18, 19, 20). 9. An apparatus according to any one of claims 5-8, wherein the computing or determination means and the controlling means are integrated in one unit or device.

10. An apparatus according to any one of claims 5-8, wherein the computing or determination means and the controlling means are two separate units or devices communicating with each other.

Description:
A method and apparatus for composition based compressor control and performance monitoring

The present invention relates to a method and apparatus for detecting

impending surge conditions in a gas compressor and for anti-surge control and mapping of a gas compressor based on real time measurement of gas compositions and/or individual gas and/or liquid flow rates of the working fluid. Mapping is recognized as identifying the compressor working points inside the compressor operating envelope, and parameters, such as actual volumetric flow rate and/or pressure ratio, are often used for this purpose.

Surge, or stall, is the lower limit of stable operation of a compressor where a further reduction in the volumetric flow rate will create a surge incident. Onset of surge is associated with flow instabilities, flow reversal in the compressor and a complete breakdown of the compressor performance. Surge can be caused by changes in flow rate, changes in fluid compositions, changes in operation conditions, or due to flow disturbances. It is important to be able to avoid surge to take place by corrective actions since surge can cause severe damage to the compressor internals. A boundary limit denoted surge line is created based on the pressure ratio and volumetric flow rate where onset of stall is identified inside the machine. Such a surge line is covering all combinations of pressure ratios and volumetric flow rates that are possible to obtain within the speed range of the machine. The surge line represents the lower volumetric flow rate limit where it is possible to operate the compressor.

The surge limit is an experimentally determined curve which relates pressure ratio versus actual volumetric flow rate at the point where stall is detected for different compressor rotational speeds. A further reduction in volumetric flow rate at this point with a constant rotational speed will initiate surge:

Surge curve = (1 ) where QQ is the gas volumetric flow through the compressor, and pi and p 2 are the pressures measured respectively before and after the compressor. The flow rate given in (1 ) could alternatively be represented by the differential pressure against the flow device normally installed upstream of the machine.

The main objective for an anti-surge system is to maintain high system robustness and cost effective operation of the compressor system. Such implementation of an accurate control routine increases the machine operating envelope, and less recycle flow is required when operating at the control line. Favorable control routines ensure that the compressor can be utilized close to the surge and choke limit with only a small safety margin. An increase of the operating envelope is favorable for long term operation with high variation of flow and pressure ratios since this variation often tends to require a redesign of the machine if the envelope is limited.

Common approaches for preventing a compressor to enter the surge regime include speed control and increase of volumetric flow rate at the compressor inlet by recirculation of gas from the discharge by opening an anti-surge valve. Fast anti-surge routines are normally based on recirculation of compressed gas that is re-fed into the compressor, the recirculation being controlled in real time by a recirculation valve (US3424370, Centrifugal Compressors - a basic guide, Penwell Corporation 2003).

All surge control systems depend on the measurement of one or several signals that contain(s) information that can be used to give a warning about onset of surge. Various means have been employed to monitor various operational parameters of a compressor, and to use these measurements to control the operation of the compressor to avoid surge. The signals that are being used to control surge can be based on measurements of temperatures and pressures upstream and/or downstream the compressor unit, vibration monitoring, or by measuring the actual gas flow rate on the compressor inlet or outlet. There are numerous systems in the prior art for control of the flow of gases in a recycle line connected between the discharge and inlet of a centrifugal compressor for the purpose of positively preventing the compressor from going into surge. U.S. Pat. No. 3,292,846 dated Dec. 20, 1966, shows a control system of this type in which flow in the recycle line is made responsive to density of the discharge gas and the speed of the compressor to maintain a sufficient flow through the compressor to prevent surging thereof.

Some methods are based on measurements of pressure and temperatures at inlet and outlet section of the compressor where the measured profile is compared to a known behavior of the compressor. An anti-surge system based on the measurement of temperature is e.g. described in CA 2522760, whereas a system based on the measurement the rate of change of characteristic variables like temperature, differential pressure, power consumption is described in US 6,213,724. These types of measurements are however too slow in many real situations where flow properties may change rapidly.

Many prior art systems measure and compute the compressor's operating point relative to a surge line that is determined based on conventional performance curves for various conditions, and measured volumetric flow rate of the gas is used as a the basis for the control routines. One example of such a system is described in US 4,156,578 where surge is avoided by the measurement across the inlet and discharge side of a compressor of such variables as compressor inlet pressure, compressor outlet pressure, and the differential pressure across a flow device disposed in an inlet duct of the compressor. The surge conditions are also dependent on the gas properties, especially the molecular weight of the gas. US 4,825,380 describes a method where the real time molecular weight of the gas is estimated on-line from actual measurements of flow, pressure, temperature and speed along with compressor performance data. Even though the most common method for measuring flow rate through a gas compressor is by use of differential pressure devices, also other flow metering devices can be used. US 4,971 ,516 describes a method and apparatus for operating compressors based on the measurement of the volumetric flow rate of gas through the compressor via the use of an acoustic flow meter. Acoustic based flow metering systems will however not work properly if the gas contains liquids because the liquid droplets or liquid film will cause scattering of sound waves that disturbs the measurements significantly.

In addition to the mentioned methods that are based on measurement of characteristics of the working fluid flowing through the compressor another method is to base the control on the monitoring of the status of the compressor machinery. US 4,399,548 describes anti-surge routines that are based on measurement of the machinery vibration level. This approach suffers the limitation that different compressors have different signature patterns of pressure fluctuations and the method is hence associated with large

uncertainties.

Common for all the methods above is that they suffer from reduced accuracy and reliability if the gas contains liquids or the gas composition is changing during operation of the compressor. For certain applications, for example for compression of a wet gas that contains a certain amount of liquid, the prior art control systems will usually have significant measurement errors that can result in inefficient compressor operation and/or failure to prevent surge. This is because these prior art systems do not take into account the presence of liquid in the gas. Conventional flow rate measurement systems are not able to discriminate between gas and liquids and are consequently associated with a significant volumetric flow rate uncertainties. E.g. for a measurement system that is based on the measurement of differential pressure as the fluid is accelerated through a flow constriction, presence of liquids with a high density will increase the differential pressure as if the volumetric flow rate of gas was higher than actual and create large uncertainties between the measured and actual volumetric flow rate. In wet gas compressor applications, where the working fluid consists of a gas containing certain amounts of liquid, such increased uncertainties are particularly pronounced due to the combination of high liquid rate and large density difference between the gas and the liquid phase. In traditional systems, this can be interpreted as a large variation of the volumetric gas flow rate which does not necessarily represent the physical reality.

The result, when using conventional compressor control systems, for cases where the gas composition is changing or the gas is containing certain amounts of liquids, might be that the compressor is entering the surge regime for no apparent reason because the surge line being used to control the compressor becomes incorrect. It might also be that too large safety margins will have to be introduced, causing an operation regime that is not optimal.

Condition monitoring of compressors in operation is important in order to observe degradation due to changed process boundaries, fouling and internal damages. Calculation of the polytropic head that represents the calculated work done by the compressor is normally performed according to equation (2):

where R 0 is the universal gas constant, MW G is the molecular weight of the gas, Z 1 is the gas compressibility factor, Ti is the suction side temperature, PGI is the inlet gas density, pi is the inlet pressure, p 2 is the outlet pressure, and n P is the polytropic exponent.

Alternatively the polytropic head can also be calculated according to equation (3):

where,

The gas density on the compressor outlet is represented by pG2 in equation (3) and (4).

Further the compressor polytropic efficiency is determined by where h G ^ and h G2 represent the gas enthalpy on the compressor inlet and outlet, respectively. This change in enthalpy reflects the actual fluid energy given to the fluid through the compressor.

In conventional compressor application no measurement of the gas density is performed so this property is calculated with use of a selected equation of state (EOS) and is sensitive to change in the actual gas composition that normally changes in time.

Present state of the art compressor performance calculation is not applicable when liquid is present in the gas, since equations (2), (3), (4) and (5) are restricted to gas only and may be incorrect even for gas as the gas composition changes over time.

It is one aim of this invention to overcome the above mentioned limitations of existing solutions and to integrate a composition and flow measurement solution into the compressor control system in order to achieve a more accurate, more robust and more efficient operation of gas compressors.

It is another aim of the invention to provide accurate measurement of the liquid fraction of a wet gas flowing through a gas compressor.

It is yet another aim of the invention to provide accurate measurement of the gas and total density of the working fluid flowing through a gas compressor.

It is a further aim of the invention to provide accurate measurement of the molecular weight of the working fluid flowing through a gas compressor.

It is yet a further aim of the invention to provide accurate measurement of the total volumetric flow rate of the working fluid flowing through a gas compressor.

It is another aim of the invention to provide accurate real time measurement of the total volumetric flow rate of the working fluid flowing through a gas compressor when the gas composition is changing over time.

It is an additional aim of the invention to provide real time values for fluid properties like molecular weight, density and compressibility of the working fluid flowing through a gas compressor when the gas composition is changing over time.

It is a further additional aim of the invention to use measured total volumetric flow rate, measured machine pressure ratio or calculated head, and measured working fluid properties to accurately determine the operation point of a gas compressor when the composition of the working fluid contains uncertainties.

It is yet another aim of the invention to use measured total volumetric flow rate, measured machine pressure ratio or calculated head, and measured working fluid properties to accurately determine the operation point of a gas compressor when the gas contains uncertain amounts of liquids.

It is a further aim of the invention to use measured real-time total volumetric flow rate, measured machine pressure ratio or calculated head, and measured working fluid properties to accurately determine the operation point of a gas compressor when the working fluid composition is changing over time.

It is another aim of the invention to measure the liquid fraction flowing through the compressor and thereby be able to have a floating control line used for surge protection that will depend on the liquid fraction entering the machine.

It is an additional aim of the invention to use the measured machine pressure ratio or calculated head and flow rate dependent real time operation point to determine the set point of a gas compressor when the gas composition contains uncertainties or uncertain amounts of liquids.

It is yet another additional aim of the invention to improve the accuracy and robustness of surge prevention routines by use of the accurately measured total volumetric flow rate to start recirculation of the working fluid if the operation point is too close to the compressor surge regime.

It is another aim of the invention to utilize the flow meter computer to perform the active anti-surge control and directly control valves used to re-circulate gas from the discharge to the inlet to the compressor.

It is another aim of the invention to use measured total volumetric flow rate, measured gas properties and measured pressure ratios at different flow rates and pressure ratios to accurately determine the surge limit for a gas

compressor. It is yet another aim of the invention to use the determined surge limit and a given safety margin at different flow rates and different fluid compositions to accurately determine a multidimensional surge control surface.

It is a further aim of the invention to use measured total volumetric flow rate, measured gas composition, measured gas properties and measured pressure ratios at different flow rates and pressure ratios to accurately determine the choke limit for a gas compressor.

It is yet a further aim of the invention to use measured total volumetric flow rate, and measured gas properties at different flow rates and different fluid

compositions to accurately determine an equivalent volume flow rate for a gas compressor.

It is another aim of the invention to define new compressor performance equations being able to calculate parameters such as polytropic head, polytropic exponent and efficiency when liquid is present in the gas flow.

It is yet another aim of the invention to detect compressor performance changes due to liquids present in the feeding flow.

It is a further aim of the invention to determine how the total volumetric flow rate of liquid and gas is changing through the compressor flow path.

These and other aims are achieved by means of a method according to independent claim 1 and an apparatus according to the independent claim 5. Further advantageous and/or alternative embodiments and features are set out in the dependent claims.

In the following is a detailed description of the present invention under reference to the drawings, where: Fig. 1 shows a schematic illustration of the compressor system that includes the main elements of the invention.

Fig. 2 shows a schematic longitudinal sectional view of the main elements of the flow measurement device.

Fig. 3 shows the measured liquid fraction of a wet gas versus a reference value as a function of time.

Fig. 4 shows an illustration of a typical compressor map with operation point, surge curve, surge region, choke region, and control line (safety margin).

The present invention relates to a method and an apparatus for controlling the operation and performance of a gas compressor 1 when the gas properties are unknown or changing in time, or when the gas contains liquid. The invention is used to ensure optimum operation of a compressor system 15 of the kind shown in figure 1 . A fluid containing gas and liquid is brought to the system 15 through a pipeline 1 1 and optionally enters a cooler 12. A flow meter 2 measures the actual volumetric flow rate of the gas and liquid upstream of the compressor 1 . The fluid pressure and temperature are measured by a fluid pressure and temperature measuring device 4 upstream and a fluid pressure and temperature measuring device 3 downstream the compressor 1 , whereas pressure and temperature readings from the fluid pressure and temperature measuring devices 4, 3 are sent to the flow meter 2. Two different and optional recycle lines are shown: an anti-surge line 9 containing an anti-surge valve 5, and a hot gas bypass line containing a hot gas bypass valve 6. Both valves 5 and 6 are connected to the flow meter 2, enabling control of the valves directly from the flow meter 2. The fluid entering into the compressor system 15 is pressurized by the compressor 1 and leaves the compressor system 15 through a check valve 13 and a pipeline 14. The flow meter 2 controls the compressor 1 operating point by measuring the actual volumetric flow rate entering the compressor 1 and by calculating the pressure ratio derived from measuring devices 3 and 4. By way of example, if recycle of fluid is required to ensure stable operation or/and protection of the compressor 1 , the flow meter 2 may open the anti-surge valve 5 in the anti-surge line 9 or, alternatively, open the hot gas bypass valve 6 in the hot gas bypass line 10. The flow metering device 2 can alternatively be installed in the vicinity of the compressor outlet or one or more similar flow meter devices may be installed both in the vicinity of the compressor inlet and outlet. Measured properties from the flow metering device(s) are then used to calculate the compressor performance parameters such as polytropic head (ref. equation 6 below) and polytropic efficiency (ref. equation 12 below). Control lines 7, 8 communicate with

determination/computer and/or controlling means (fig. 2).

An object of the present invention is to accurately determine the actual flow rate through the compressor 1 even in cases where the gas molecular weight changes over time or if the gas contains unknown amounts of liquid, either water or non-aqueous liquid. Such measurements are important in order to determine accurately the working fluid density, the working fluid molecular weight, and the total volumetric flow rate that includes both the gas and liquid phase.

The flow metering device 2 contains devices for determining the individual fraction of gas, water, and non-aqueous liquids, devices for measurement of temperature and pressure for compensation purposes, as well as devices for measurement of fluid velocity.

The invention also relates to a method for using the measured fractions and flow velocities to determine the individual flow rates of gas, water, and nonaqueous liquids, total fluid density and molecular weight.

Referring to fig. 2, the flow measurement device 22 may comprise six main elements as shown: a tubular section 16, a device 1 7 for measuring the velocity of the working fluid, a device 18 for measuring the water fraction of the working fluid, a device 19 for measuring the density of the working fluid, a device 20 for measuring the pressure and temperature of the working fluid. A computer device (computing means) 21 and/or controlling means receives data from measuring devices 17, 18, 19, 20 in addition to pressure and temperature data measured by devices 3 and 4 inside the compressor system 15 shown in figure 1 . The computing means and the controlling means can be one device or two separate devices. In case of two separate units or devices, they should be linked and able to communicate with each other. The surge protection algorithm based on the measured total volumetric flow rate and the compressor pressure ratio is implemented into the computer and/or controlling means 21 that is an integral part of the flow meter. Based on data received, the computer and/or controlling means 21 is determining the fluid composition and is sending data to other control systems that are connected thereto. The flow direction may be either upward or downward. The device may also be located either horizontally or having any other inclination. The device can be located at the compressor suction or discharge side or both sides of the machine.

For application of composition dependent compressor control, it is crucial that the accuracy of liquid fraction measurement is high, and that the flow meter 2 is able to detect sudden fluid changes to ensure safe machine operation and control. Figure 3 shows examples of performance obtained in a flow laboratory for an actual flow metering device.

Fig. 3 is self-explaining and shows the measured liquid fraction (rates) 24 (y- axis) of a wet gas versus a reference value (a reference liquid rate line) 25 as a function of time (x-axis).

The present invention includes a new set of equations used to calculate the compressor performance where the main parameters are measured by a flow metering device 2 as shown in figure 1 . Such equations are also valid when liquid is present in the gas flowing through the machine and are suggested used for performance monitoring of the machine. A polytropic head equation that is valid for dry gas and when liquid and gas are mixed on the compressor inlet is introduced as:

_ "TP-2

where

Equation (6) is denoted single-fluid model as the densities of various fluids are combined into a bulk density of the mixture representing one fluid. Subscript TP used reflects that the equation is valid also for two-phase flow (mixture of gas and liquid).

The bulk density of the gas and liquid mixture are represented by

PHI = a Gl Pa + a Cl Pel + nonAl ' PnonAl + <*Wl Pwl ( 8 ) and

PHI ~ ¾2 ' Pel + ^C2 ' Pel + ^nonAl ' PnonAl + &W2 ' Pwl (^) where the void fraction of each phase is recognized as

¾= A C^R (10)

Each phase has in equations (8) and (9) a hold-up area represented by AF H occupied in the pipe cross-sectional area A C R. Subscript F in equation (10) represents the different fluids present, and in this case gas (G), condensate (C), non-aqueous (nonA), and water (W). Similar subscript n represents the inlet 1 and outlet 2. If no slip exists among the different phases (same velocity), equation (10) could be based on the volumetric flow rates of the different phases:

The total volumetric flow rate is represented by C ot in equation (1 1 ).

Compressor efficiency is then calculated according to:

where /TTP2 (n=2) and /TTPI (n=1 ) are defined as:

^ΤΡη ~ βθι ' h-Gn + en ' ^Cn + nonAn ' onAn + Awi ' ^Wn 0 ^)

Calculation of the enthalpy based on equation (13) utilizes the mass fraction of each phase present in the flow at the inlet (n=1 ) and outlet (n=2) of the machine: m Fn (14) mTo,

Mass flow rate is denoted m and subscript Tot reflects the total flow in equation (14). Subscript F in equation (10) represent the different fluids present, and in this case gas (G), condensate (C), non-aqueous (nonA), and water (W).

For dry gas only, equations (6) and (7) are identical to equations (3) and (4) respectively since all liquid fractions are zero and will not contribute in the equations. The use of the flow metering device 2 in figure 1 ensures that the gas density is measured and the molecular weight of the gas is known and hence the calculated work done by the machine is accurately determined. If a flow metering device 2 is utilized both on the compressor inlet and outlet side, all relevant parameters needed to calculate the compressor head (equations (6) and (7)) may be measured and the uncertainties in the known equations of states (EOS) and possible changed gas composition is eliminated.

Similarly, if the process gas contains water (W), condensate (C) or/and other non-aqueous (nonA) liquids the calculated head is still valid with use of equations (6) and (7) since all liquid fractions are measured by the flow metering device 2 in figure 1 . The bulk density of the mixture is measured by the flow metering device 2, measuring all parameters used in equations (6) and (7), which reduces the uncertainties in the calculation.

An object of the present invention is to avoid surge by control of the

recirculation valve or an on/off valve known as hot-gas bypass valve based on a real-time measurement of the compressor performance and the actual volumetric flow rate of gas and liquids through the machine.

The surge phenomenon in a gas compressor depends on total volumetric flow rate, pressure ratio, machine condition, and on the composition and molecular weight of the gas.

The polytropic head Yp is a function of gas composition through the molecular weight, compressibility and the compression coefficient and is also a function of the pressure ratio and the inlet temperature:

The surge limit is an experimentally determined curve which relates pressure ratio versus actual volumetric flow rate at the point where stall is detected for different compressor rotational speeds. A further reduction in volumetric flow rate at this point with a constant rotational speed will initiate surge: Surge curve = /

alternatively

Surge curve = f [Y P , Q Tot ] (15) where Qjot is the total volumetric flow through the compressor: and the liquid flow rate (QL) can be divided into non-aqueous liquid and water:

Q L = Q V + Qc + Q -,non A (17)

The surge line, which normally is defined by the use of the differential pressure from a flow meter device and the pressure ratio across the machine, is not applicable if liquids are present in the gas flow. By using the flow metering device 2 in figure 1 the actual volumetric flow rate could be used as a surge control parameter together with the pressure ratio since the total volumetric flow rate is measured and thereby valid for both a dry gas and a mixture consisting of gas and liquid. In the case that the flow metering device 2 is utilized on both the inlet and outlet side of the machine, the polytropic head could be used instead of the pressure ratio in the surge control since the density of gas and liquids is measured directly and is not dependent on a temperature

measurement that has a slow response when gradients occur.

The actual operation point for the gas compressor is defined by the actual polytropic head or the pressure ratio and the actual total flow rate at a certain point in time.

Referring now to fig. 4, an operation point 31 in a compressor map with a surge line 30, and a control line 29 is illustrated. Furthermore, the x-axis 26 shows the total volumetric flow rate, the y-axis 27 shows the pressure ratio across the machine, and the bands of curved lines 28 show the constant speed lines. If the pressure ratio at the actual operation point 31 exceeds the surge control line 29 towards left, the recirculation valve is opened. The surge control line 29 is given as the surge line 30 plus a safety margin. Actuating of the recirculation valve could be done directly by the flow meter computer or by an external control system that receives data from the flow meter 2.

In the case that the flow metering device is utilized on both the inlet and outlet side of the machine, the liquid fraction can be measured on the inlet and outlet side of the compressor 1 . Fouling of the compressor internals may take place as liquid is evaporates in the machine, and such fouling may significantly effect the compressor operating envelope. Hence the surge line may change as evaporation of liquid takes place. According to one embodiment of the present invention, a routine could be incorporated into the anti-surge control logic and give warning if the liquid fraction results in short term degradation by measuring the liquid rates entering and leaving the machine. Alternatively, a floating control line logic could be implemented to control the machine while the liquid is evaporated through the compressor.

In the case that the flow metering device is utilized on both the inlet and outlet side of the machine, the fluid density change due to evaporation of liquid through the compressor could be utilized to determine the fluid composition.

If large quantities of liquid (slug) arrives or appears in the machine during operation, two flow metering devices could be utilized upstream the machine. The distance between these two flow meters must be selected to ensure that enough time is available to open the recycle valve 5, ref. figure 1 , or reduce the compressor operating speed before the liquid slug enters the machine. Such flow metering devices could be connected to each other to ensure a fast response.