Comprehensive Research of Scaling Prediction for Gas Reservoir Fluid considering Phase State

During the exploitation of a gas reservoir containing water, the scaling problem is usually affecting the gas production in gas wells. Although the scale formation that occurs during oil field development is quite different from the aforementioned gas field, the phase behavior plays a pivotal role in the formation of inorganic scale in gas field development. It is a well-known fact that there is no device that can directly measure the extent of scaling formation in a high-temperature and high-pressure reservoir. At the same time, the commonly applied scaling prediction method does not account for the fluid phase state. In this work, the scaling condition and alteration in controlling parameters in an actual gas reservoir were studied by self-developed high-temperature and high-pressure formation fluid equipments. From thermodynamics, a new scaling prediction model for the multiphase equilibrium of gas reservoir fluid is proposed that considers gas, liquid hydrocarbon, formation water, and inorganic salt scale. For the complexity of the direct solution for a phase equilibrium system with a chemical reaction, a simplified method for calculating the phase change and chemical equilibrium in a multiphase equilibrium system with chemical reactions is proposed based on the conservation of materials and the unification of the physical properties of components. The results show that the predicted value of the model was consistent with the experimental results. The new scaling prediction model considered the influence of the phase state which can accurately predict the change of the fluid phase state and the amount of inorganic salt scaling of actual gas reservoir fluids under the condition of multiphase equilibrium. Moreover, the average deviation of the prediction results is about 3%. The predicted scaling amount of the model without considering the effect of phase change is significantly lower than that of the experimental results. More specifically, the average deviation is around 30%. With the decrease of gas reservoir pressure, formation water evaporation intensifies under the influence of the oil and gas phase state, which leads to the increase of the formation water ion concentration when the influence of the fluid phase change is not considered. Then, the prediction of the inorganic salt scaling will be significantly lower.


Introduction
In the exploration of gas reservoirs containing water, a scaling problem is usually created which severely affects the production of gas wells [1,2].Due to the change of production conditions, such as the chemical reactions in the electrolyte solution and phase changing between oil, gas, and water [3,4], the scaling formation of gas reservoir fluid is very complicated.Not only will the scaling conditions of inorganic salts themselves change with the change of temperature and pressure but also the dissolution, precipitation, and evaporation of oil and gas components will severely affect the scaling trend of inorganic salts.The current scaling prediction method includes the saturation index method, thermodynamic solubility method, saturation coefficient method, and sulfate compound scaling prediction method.Based on the principle of a chemical equilibrium of solution, these methods only consider the change of solubility of acidic gas with a chemical reaction and do not consider the comprehensive effect of phase change on fluid scaling.Therefore, they cannot truly reflect the process of inorganic salt scaling of gas reservoir fluids.
The alteration in temperature and pressure is not the only factor governing the scaling, but the dissolution and precipitation of oil and gas components and the evaporation of water can also severely influence the inorganic scale formation.Due to the involvement of mass transfer and energy conversation (Peyghambarzadeh et al. [5]), there are many factors, such as temperature [6][7][8], pressure (Fu et al. [9]), and water composition [10], that affect the scaling in a gas reservoir.Under this complex scenario, it is a challenge to accurately predict the extent of scaling.The most common scaling prediction techniques are the saturation index method, thermodynamic solubility method, and sulfate solubility product constant method [11][12][13].Therefore, it is a challenge to predict scaling accurately.Among these methods, Ryznar and Langelier [14,15] predicted the scaling of carbonate by the calculating saturation index.Zhang et al. [16,17] predicted the scaling of carbonate by the thermodynamic solubility method.Bourland predicted [18] the scaling tendency by calculating the sulfate solubility product constant.In these prediction models, the influence of temperature and pressure and the composition of the formation water on scaling were taken into consideration, but the phase changes were ignored in the models; thus, they cannot truly reflect the process of the inorganic salt scaling in the gas reservoir fluid.At the same time, it was difficult to measure the amount of formation fluid scaling under a high-temperature and high-pressure condition because the experimental equipment has not yet been developed.It was necessary to establish a model which takes the phase change into account to predict the scaling under a high-temperature and high-pressure condition.
In this research, a set of experimental devices which has taken the phase change of oil, gas, and water into account was developed to understand the scaling law of the fluid in the actual gas reservoir.Based on thermodynamics, a multiphase equilibrium scaling prediction model of gas (natural gas)-liquid (hydrocarbon)-liquid (formation water)-solid (inorganic salt) was proposed that takes into account the change of fluid phase state and the reaction of inorganic salt scaling, and the fluid phase state transformation and scaling law of the actual gas reservoir were investigated.

Experiment Description
2.1.Experimental Equipment and Samples.In this research, a set of experimental devices was developed that was able to simultaneously test the phase change of fluid in gas reservoirs under high-temperature and high-pressure conditions and the amount of formation water ion and scaling.The schematic diagram of the device is shown in Figure 1.The whole system included a liquid supply system, sampling unit, PVT constant temperature and pressure system, separator, fluid property detection system, formation water ion analyzer, and temperature and pressure collection control system.The maximum working pressure of the system was up to 70 MPa, and the temperature range was from -50 to 200 °C.The main equipment was a PVT analyzer, conventional formation water ion analyzer, and relevant physical property testing devices produced by the Canadian DBR Company.The pressure and temperature measurement accuracy of the device were 0.01 MPa and 0.1 °C, respectively.The PID control system was used to adjust the temperature and pressure during the whole experimental process.The temperature control system used the electric heating system to carry out heating and temperature control on the PVT test room.8 heating rods were used to heat the PVT test chamber to 2 Geofluids ensure uniform heating.In the heating process, when the temperature of the test room reached the set temperature of the experiment, the control system would turn off the power; when the temperature of the test room dropped by 0.1 °C, the electric heating system would reconnect the power supply and reheat the test room.The pressure of the PVT test chamber was controlled by piston movement.In the experiment, the electric motor under the piston would drive the piston up and down, so as to realize the change of the volume of the PVT test room and the pressure of the PVT test room.
When the pressure of the PVT test room was higher than the experimental setting value, the electric motor would pull the piston down and increase the volume of the PVT test room, thus reducing the pressure of the test room.When the pressure reached the experimental set point, the control system would turn off the power.When the pressure of the PVT test room was lower than the set value of the experiment, the electric motor would pull the piston upward and compress the volume of the PVT test room, thus increasing the pressure of the test room.The gas, oil, and water samples obtained from the BS8 well in the Qianmiqiao gas reservoir were used in the experiment.The sample composition was shown in Tables 1-3.The initial formation pressure of the well was 43.57MPa, the current formation pressure was 11.5 Mpa, the formation temperature was 171.4 °C, the production water and gas ratio was 4.33 m 3 /10 4 m 3 , and the gas-oil ratio was 11,507 m 3 /m 3 .

Experimental Procedures.
In the experiment, the formation fluid was first compounded according to the production data and pumped to the intermediate container by an automatic pump.Then, the fluid was heated and pressurized under constant temperature and pressure in a cylinder to restore the formation conditions.It was then held for 24 hours to ensure that the phase changes of the oil, gas, and water in the formation fluid and the scaling reaction proceeded sufficiently and achieved equilibrium.The volume of natural gas saturated with water at the top of the PVT cylinder and the volume of formation water that the gas dissolved were then obtained.Finally, the condensate gas of a small amount of saturated water at the upper part of the PVT tube was discharged, and the natural gas and the saturated water content were flashed to the standard condition and measured.The PVT cylinder was set for half an hour; then, the formation water of natural gas dissolved in the lower part was discharged and measured.The ion detection analyzer was used to measure the concentration of each ion in the formation water.According to the change of ionic concentration and formation water physical property before and after the experiment, the scaling amount of the formation fluid was determined.
2.3.Experimental Data Analysis.Beginning from the initial formation conditions, the high-temperature and high-pressure phase analysis and scaling test of the BS8 well fluid were carried out under five pressure and three temperature conditions, respectively.The results of the experiment are shown in Figures 2-5.It is indicated in Figure 2 that the content of dissolved gas in formation water (GWR) increased as the pressure increased under the same temperature.When the pressure is raised from 5 MPa to 20 MPa, the content of dissolved gas ascended dramatically.When the pressure was over 20 MPa, the rise gradually slowed down.Under the same pressure, the content of dissolved gas went up with the increase of temperature.When the pressure was 5 MPa, the content difference of dissolved gas was smaller under the three different temperatures.When the pressure increased to 20 MPa, an obvious difference appeared.When the pressure went up to 45 MPa, the content difference of dissolved gas enlarged continuously.However, the content of saturated water in natural gas (WGR) decreased when the pressure increased under the same temperature.As demonstrated in Figure 2, the WGR increased with the rise of the temperature under the same pressure.With the increase of pressure, the content difference of saturated water between different temperatures in natural gas gradually decreased.From the WGR curve, the WGR curve experienced a dramatic decrease from 5 MPa to 12 MPa, and a huge content difference appeared when the pressure was 5 MPa.When the pressure was 20 MPa, the WGR became stable, and the content difference decreased greatly compared when the pressure was 5 MPa.The curves of formation water salinity and concentration of each ion measured under the standard condition (Figure 3) indicated that with the decrease of experimental pressure, the salinity of the formation water increased obviously.The main reason was that the bubble pressure of the formation was about 11 MPa when the temperature was 171.4 °C.With the drop of pressure, the water was vaporized which caused the volume reduction of formation water.The ions such as Na + , K + , Mg 2+ , Cl -, and NO 3- also showed the same trend.The experimental data showed that these ions had the same concentration change ratio.At high pressure, the changing of the ion content such as Ca 2+ , HCO 3-, and Sr 2+ was similar to Na + , but it decreased suddenly and had a trend of decreasing with decreasing pressure when the pressure decreased further.The content of SO 4 2increased with the decrease of pressure.The experimental results demonstrated that some ions participated in the scaling reaction under certain conditions, and inorganic salt scales were formed in the formation fluid.
Under the experimental condition, the ions such as Na + and K + were not involved in the scaling reaction, and the concentration change was mainly due to the change of water physical properties caused by high temperature and high pressure.Taking the concentration of Na + as a standard, 3 Geofluids the change of scale ions in formation water before and after the experiment can be calculated by the test data as follows: where C is the change of the molar concentration of the scale ions; C Na + is the current molar concentration of sodium ions; C i Na + is the initial sodium ion molar concentration; C 0 is the initial scale ion molar concentration; and C n is the current scale ion molar concentration.
According to the change of ion concentration, the type of scaling and the amount of scaling of the inorganic salt in the formation fluid under the standard condition were determined.The amount of scaling under the experimental conditions was also obtained according to the change of the volume coefficient and density of the formation water.As shown in Figure 4, two kinds of inorganic scales, CaCO 3 and SrSO 4 , were generated in the formation water of BS8 in the experimental condition, while the amount of scales was zero under the initial formation pressure.When the pressure was lower than 20 MPa, the CaCO 3 scale occurred.When the pressure was lower than 30 MPa, the SrSO 4 scale appeared.
At present, as the formation pressure was 11.5 MPa and the formation temperature was 117.4 °C, more CaCO 3 scales and a small amount of SrSO 4 scales appeared in the formation fluid.In addition, the amount of fouling increased with the decrease of experimental pressure and increased with the rise of temperature.
In order to study the influence of fluid phase change on the scaling of inorganic salts, scaling tests were carried out under the same conditions using BS8 degassed formation water.As indicated in Figure 5, it can be concluded that the inorganic scale was generated in the whole experiment.Although the amount of inorganic salt scale in degassed formation water also increased with the decrease of pressure and increased with the rise of the temperature, the change trend was not obvious compared with the formation fluid.This was mainly because the oil and gas components in the actual fluid were more easily dissolved in the formation water under the conditions of high temperature and high pressure.The dissolution of the acid gas CO 2 promoted the reaction of CaCO 3 to be dissolved, which led to the low scale of the inorganic salt scaling in the formation fluid.However, with the decrease of pressure, the solubility of the gas components in water decreased, while the evaporation of water into natural gas obviously increased.

Scaling Prediction Model
3.1.Model Description.The inorganic salt scaling in a gas reservoir was a complex multiphase system consisting of natural gas, liquid hydrocarbons, formation water, and various solid inorganic salt scales with chemical reactions.Under equilibrium conditions, the system should meet the conditions of material conservation and thermodynamic equilibrium.The system consists of N components and P phases, and the chemical reaction balance and phase equilibrium existed simultaneously and follow the law of element conservation: Only the phase equilibrium exists, and the total molar conservation of the components is observed.

Geofluids
For the electrolyte solution with ions, the charge conservation condition should also be satisfied.
For a given temperature and pressure, the system should meet the minimum thermodynamic equilibrium condition of Gibbs free energy.
where n ij is the number of moles of component i in phase j, ω ik is the mole number of the element k in component i; b k is the total mole number of the element k; Z i is the number of charges in component i in the solution; n iw is the number of moles of i in the formation water electrolyte solution; and μ ij is the chemical energy of component i in phase j.

Model Analysis.
The entire gas reservoir multiphase system with inorganic salt scaling was divided into two interactive processes: the first process is the natural gas and liquid hydrocarbon phase change between formation water electrolyte solutions and the other process is the chemical reaction of each ion and inorganic salt in formation water.Further analysis was made on the representation method of the composition of the multiphase system and the calculation method of the thermodynamic equilibrium of the two processes.

Composition Representation Method.
In order to clearly express the composition of the phases in the system, the material representation method of phase equilibrium was adopted.Under certain equilibrium conditions, where V, L, W, and M j are the molar components of natural gas, liquid hydrocarbon, electrolyte solution, and each solid inorganic scaling, respectively; y i , x i , w i , and m i are the molar compositions of component i in gas phase, liquid hydrocarbon, aqueous phase, and solid inorganic salt, respectively; and z i is the molar composition of the components in the total system under a certain condition.

Geofluids
Unlike the conventional phase equilibrium problem, the molar composition of the components in a multiphase system may change continuously due to the chemical reaction.Under different conditions, the total number of moles of the system and the molar composition of each component are shown as follows: where F total and F initial total are the total number of moles of all components of the system at given equilibrium conditions and initial conditions; ΔF is the amount of change in the total moles caused by the chemical reaction; n itotal and n initial itotal are the initial number of moles of component i at the given equilibrium conditions; Δn i is the amount of change in the number of moles of component i; and z i and z initial i are the molar compositions of component i in a given system under given equilibrium conditions and initial conditions.

Phase Equilibrium.
The fugacity of each component in each phase should be equal when the equilibrium of gas, liquid, and liquid was achieved: where In the formula, f V i , f L i , and f W i are the fugacities of component i in the gas phase, liquid hydrocarbon phase, and water phase, respectively; ϕ V i and ϕ L i are the fugacity coefficients of components in the gas phase and liquid hydrocarbon phase; f 0 i is the standard fugacity of pure component i; and r i is the activity coefficient of component i in the electrolyte solution.Among them, PR state equations can be used to calculate the related thermodynamic parameters of components in gas phase and liquid hydrocarbons; the Pitzer method is used to solve the activity coefficients and standard fugacity of components in formation water.

Chemical Equilibrium in Electrolyte Solution.
According to the Gibbs free energy minimum principle and the calculation method of the chemical potential of the solution components, the equilibrium condition in the chemical reaction is as follows: where υ i is the stoichiometric number of component i in the chemical reaction; C i is the concentration of component i in the solution; moles/l; and K sp is the reaction equilibrium constant.
In the field practice, the Oddo-Tomson Saturation Index was commonly used to obtain the equilibrium conditions for inorganic salt scaling:

15
where A n+ and B m− are the positive and negative ions in the inorganic reaction; K sp ′ is a quasiequilibrium constant taking into the activity coefficient; I S is the saturation index of the inorganic salt; T is the temperature in °F; P is the pressure in psi; S i is the solution's ion intensity in moles/l; and a~g is a regression coefficient for various salts.The condition of scaling was judged by the saturation index of the inorganic salt I S of each inorganic salt in the solution.When the I S < 0, the solution is undersaturated 6 Geofluids and no scale appeared in the solution; when the I S = 0, the solution is in a state of saturation but no scaling; when I S > 0, the solution is in a supersaturated state and the scale appeared in the solution.
According to the balance of materials and the equilibrium conditions, the scaling prediction method considering multiphase equilibria in electrolyte solution was deduced.Under equilibrium conditions, the relationship between the amount of inorganic salt scale and solution ion concentration is as follows: where M is the amount of scale in each inorganic salt solution moles/l; C sp represents the concentration of the components under equilibrium conditions in moles/l; C 0 is the initial concentration of the components in moles/l; K H is Henry's constant of CO 2 dissolution; K 1 and K 2 are the primary and secondary ionization constants of carbonic acid; const represents the total initial concentration of CO 3 2-, HCO 3 -, and CO 2 in the solution in moles/l; and y CO 2 and f CO 2 are the molar contents and fugacity of CO 2 in the gas phase, respectively.For its formula or equation of state calculation, this paper uses the PR equation of state for calculation.

Model Solution.
In this research, the entire gas reservoir multiphase system with inorganic salt scaling was divided into two interactive processes: the first process is the natural gas and liquid hydrocarbon phase change between formation water electrolyte solutions and the other process is the chemical reaction of each ion and inorganic salt in formation water.Except for the H 2 O and CO 2 , the other components have only undergone one change process.The problem can be simplified greatly if the phase equilibrium state equation and the chemical reaction calculation method are adopted on the basis of the conservation of material.Meanwhile, the ratio of gas and water in a gas reservoir was very large, and the molar content of ionic components in the whole system was relatively small.The change of the electrolyte solution concentration caused by the phase state change between gas, oil, and water has a greater influence on the scaling of inorganic salt, while the physical property change caused by inorganic salt scaling on the gas, liquid, and liquid phase states is relatively weaker.Therefore, the phase equilibrium of gas, liquid, and liquid in the entire multiphase system is solved firstly, then the chemical equilibrium in the formation water is calculated under the condition of phase equilibrium.Finally, the final condition based on the conservation of materials and the unity of physical properties is determined.The specific solution steps are as follows (Figure 6): Step 1.We input the pressure (P), temperature (T), and the initial composition z i 0 .Assuming that there is no scaling in the formation water, the Michelsen discriminant method is used to determine the three-phase stability of gas, liquid, and liquid.The PR equation is used for flash calculation to determine the molar composition for each of phases V 0 , L 0 , W 0 , the composition of the compositions y i 0 , x i 0 , w i 0 , and the corresponding thermodynamic parameters.
Step 2. The composition of formation water determined by flash calculation is used to predict the tendency of inorganic salt scaling.If I s ≤ 0, it means that there is no scaling in the fluid under the current condition.The calculation result of Step 1 can describe the composition of the entire multiphase equilibrium system, and no further calculation is required.If I s > 0, the solution is in the state of supersaturation.The following calculations need to be continued to determine the equilibrium scale of inorganic salts.
Step 3. If the formation water is not in the chemical equilibrium state, the initial scale of each inorganic salt and the composition of formation water are calculated by equations ( 11)-( 16).If the scale of an inorganic salt accounts for the molar content of the aqueous solution of the formation, the molar content of the inorganic scale in the entire multiphase system is as follows: Step 4. After eliminating the inorganic salt scale, the three-phase flash evaporation was used to determine the molar content (V ′ , L ′ , and W ′ ) of each phase in the new gas, liquid, liquid three-phase fluid, composition (y i ′ , x i ′ , and w i ′ ), and corresponding thermodynamic parameters.
Step 5. We combine the mole content of each phase in the gas, liquid, and liquid three-phase fluid calculated by Step 4 with the inorganic salt scales calculated in Step 3 to preliminarily determine the gas, liquid, liquid, 7 Geofluids and solid phase contents and the composition of the entire multiphase system: Step 6.We calculate the scaling tendency of the solution after flashing calculation in Step 4. If the I s of the existing inorganic salt that has been scaled reached I s = 0 and the I s of the inorganic salt that has not been scaled reached I s ≤ 0, then the formation water was in a chemical equilibrium state and the entire gas-liquid-liquid-solid system has reached equilibrium, and the calculation results from Step 4 was the balanced composition of the multiphase system under the current conditions and it is not necessary to continue calculation.If I s > 0, it means that the formation water was still in a state of supersaturation and the amount of scaling needs to be recalculated.10 Geofluids If I s < 0, the amount of inorganic salt that is calculated in Step 3 is too high and needs to be recalculated.
Step 7. We combine the formation water that was still in a nonchemical equilibrium state with the inorganic salt scale.Then, the formation water that was still in a nonchemical equilibrium state is combined with the inorganic salt scale.
Steps 3-6 are then repeated to have the chemical balance of the formation fluid calculation, and the multiphase flash calculation of gas, liquid, and liquid until the total system is balanced.Based on the data of formation water and injected water in the Qianmiqiao reservoir, the scaling of formation water and injected water mixtures is predicted by using the model established above.Afterwards, the model outcomes were compared with the experimental data and the predicted values of the Oddo-Tomson model, respectively.In the simulation, the pressure and temperature were 10 MPa and 171.4 °C, respectively, and the composition of formation water is shown in Table 1.Besides this, the composition of injection water is shown in Table 4.By comparing the experimental value of electrolyte solution scaling, the predicted value was calculated by applying the Oddo-Tomson model as shown in Table 5.It can be concluded that the predicted values of the Oddo-Tomson model and the established model were close to the experimental value with an error of 9.2% and 3.2%, respectively.The Oddo-Tomson saturation index was a common method to predict the scale amount in an electrolyte solution.However, the new model had a higher accuracy in predicting electrolyte scaling, which indicated that it was feasible to predict inorganic salt scaling in an electrolyte solution by using this model in the Multiphase Equilibrium scaling prediction.

Validation and Application
The proposed model for predicting multiphase equilibrium fouling and the prediction model of formation water scaling based on the Oddo-Tomson saturation index were applied to predict the scale of the fluid in the BS8 well fluid under experimental conditions, and the predicted results were compared with the experimental result to verify the reliability of the proposed model.From the results (Table 6), it is demonstrated that the predictive value of scale in the proposed multiphase equilibrium scaling model was close to the experimental results, with an average deviation of 3.5%.In comparison, the prediction results of the model based on the Oddo-Tomson saturation index was significantly lower than the experimental values, and the average error was 30%.The reliability of the proposed model was verified.The advantage of the proposed model was that the phase change of the reservoir fluid can be described accurately, which was necessary to predict the amount of scaling in a gas reservoir.In comparison, the model based on the Oddo-Tomson saturation index ignored the influence of phase change on scaling.In the simulation, the compositions of formation water, natural gas, and condensate oil are shown in Tables 1-3.When the temperature was 171.4 °C, the scale amount under 5 different pressure values (43.57MPa, 30 MPa, 20 MPa, 11.5 MPa, and 5 MPa) was predicted.When the temperature was 155 °C, the scale amount under 4 different pressure values (30 MPa, 20 MPa, 11.5 MPa, and 5 MPa) was predicted.When the temperature was 135 °C, the scale amount under 5 MPa was predicted.

Application.
The multiphase equilibrium scaling model was used to predict the inorganic salt scaling and fluid phase changes in the BS8 wellbore and formation.At present, the wellhead pressure was 3 MPa and the temperature was 60 °C.The other production data were described above.The prediction results are shown in Figures 7-10.As demonstrated in Figure 7, it could be seen that the pressure of BS8 11 Geofluids decreased continuously from the near-wellbore area, and the pressure reduction caused the formation water to evaporate into the natural gas.The closer to the wellbore, the higher the saturated water content of the natural gas was.According to the prediction, the saturated water content at the bottom of the well reached 12%.As indicated in Figure 8, much CaCO 3 and a little of SrSO 4 scale were generated in the current formation under equilibrium conditions.With the decrease of the formation pressure, the amount of scale increased from the formation to the near-wellbore area, and the total inorganic salt scale at the bottom of the well reached 133.8 mg/l.As indicated in Figure 9, the molar content of the gas phase and inorganic salt in the formation fluid increased with the decrease of pressure, and the molar content of free formation water continuously decreased.From the prediction of the scaling pressure and temperature curve of the inorganic salt in the BS8 formation fluid (Figure 10), it indicated that the temperature of the SrSO 4 scaling point was lower than that of CaCO 3 at the same pressure.When the temperature and pressure curves were above the scaling point, the corresponding inorganic salt scale would be generated in the fluid.Currently, the SrSO 4 scale was formed at the depth of 2700 m in the BS8 well, while the CaCO 3 scale was produced at a well depth of about 3000 m.With the decrease of the wellbore temperature, the amount of inorganic salt from the bottom to the wellhead continuously decreased.

Conclusion
(1) A set of experimental devices for testing the amount of inorganic salt scales in formation fluids under high-temperature and high-pressure conditions was developed.The high-temperature and high-pressure phase analysis and scaling test of the actual gas reservoir fluid in the BS8 well were carried out by the devices.The experimental results demonstrated that with the decrease of formation pressure, the dissolved gas volume of formation water decreased, while the saturated water content in natural gas increased.In addition, two kinds of CaCO 3 scale and SrSO 4 scale were generated in the gas reservoir fluid under experimental conditions.The amount of fouling increased with the decrease of pressure and increased with the increase of temperature.The change of scaling with the pressure and temperature in the actual gas reservoir is more obvious than the degassing formation water (2) A new model for predicting the scale of inorganic salts in gas-liquid-liquid-solid multiphase equilibria is established.According to the composition characteristics of gas reservoir fluid, the chemical equilibrium calculation of the inorganic salt scaling under  12 Geofluids the condition of gas, liquid, and liquid equilibrium is put forward.The method can simplify the complicated problem of directly solving the phase equilibrium system of a chemical reaction (3) The new multiphase equilibrium scaling model was proposed which can accurately predict the amount of inorganic salt scale in the actual gas reservoir fluid.
The prediction results were close to the experimental data with an average deviation of 3%.In comparison, the prediction results of models that did not consider phase changes were significantly lower than the experimental data, and the average deviation was about 30%.To accurately predict the amount of scaling in gas reservoir fluids, it is necessary to consider the changes in the phase state of the fluid (4) Through the prediction of the scaling in the BS8 well, much CaCO 3 and a little of SrSO 4 scale were generated in the current formation under equilibrium conditions.With the decrease of the formation pressure, the amount of scale increased from the formation to the near-wellbore area, and the total inorganic salt scale at the bottom of the well reached 133.8 mg/l

Figure 1 :
Figure 1: Scaling test device under the high temperature and pressure.

3 )Figure 2 :
Figure 2: Gas and water dissolved content change curves of BS8 formation fluid.

Figure 5 :
Figure 5: Contrast curves of the scaling amount of BS8's degassed formation water and the actual formation fluid.
scale, redetermine the three-phase stability of gas, liquid and liquid and molar composition of each phase Determine the three-phase stability of gas, liquid and liquid and molar composition of each phase Eliminating the inorganic scale, redetermine the three-phase stability of gas, liquid and liquid and molar composition of each phaseCombining the mole content of each phase, determine phase contents and composition of the entire multiphase systemCalculating the scaling tendency of the solution after flashing calculation Combining the formation water and inorganic salt scale

4. 1 .
Model Validation.The prediction of inorganic salt scaling in an electrolyte solution is an important part of the Multiphase Equilibrium Prediction model.The accuracy of this part is of great significance to the comprehensive prediction of formation fluid.

Figure 9 :
Figure 9: Phase distribution of BS8 fluid in formation.

Table 1 :
Composition of BS8 formation water.

Table 2 :
Composition of BS8 natural gas.

Table 4 :
Composition of injection water.

Table 5 :
Comparative analysis of scale amount in electrolyte solution.

Table 6 :
Comparative analysis of the predicted scale amount of BS8 reservoir fluid and the experiment data.