1 Introduction

Huge amounts of water are injected into reservoirs to maintain the reservoir pressure at the required level, whereby salt deposition occurs as a result of water combination (Fan et al. 2012). As the reservoirs continue to deplete and more and more wells are experiencing increasing high water cut, the scaling problem is aggravated. Besides, there is a need for withdrawal of residual oil, requiring the use of modern technologies to improve oil recovery, including physical and chemical methods, which also stimulate the deposition of salts (Demadis et al. 2007; Awan and Al-Khaledi 2014). The dynamics of gas–liquid mixtures in wellbores, degassing, and various flow rates, which are determined by the flow rate of wells and the construction of the lifting equipment, affect the balance of a salt solution. Therefore, precipitation of salts can occur. This can be promoted by ingress of mechanical impurities, corrosion products as crystallization centers, various chemical treatments, and other mechanisms (Al-Tammar et al. 2014). The main reasons for deposition of salts are the changing of pressure–temperature conditions in the process of production and the incompatibility of injection water and formation water. Salt precipitation can damage the formation by permeability reduction (Moghadasi et al. 2004).

Inorganic salts may be deposited on the inner surface of the oilfield equipment during production. Salt precipitation occurs in all operations of wells, but the most negative consequences of scaling occur during oil production using electric submersible pumps (ESPs) (Poynton et al. 2008; Chen et al. 2013). Intense deposition of calcium carbonate on impellers of ESPs results from an increase in the produced fluid temperature, which is caused by the heat generated by the operating submersible motor. Along with salt deposition in wells, intense salt precipitation is observed in the wellhead, oil pipeline gathering, metering devices, facilities for the preparation of oil, and in reservoirs in waterflooding operations (Mackay 2005).

The process of precipitation of calcium carbonate occurs in three stages. In the first step, calcium ions combine with carbonate ions to form calcium carbonate (CaCO3) microparticles. Next, CaCO3 particles combine in microcrystals that serve as crystallization centers for the remainder of the solution. Crystal aggregates grow and precipitate or attach to the walls of the equipment at certain sizes (Tomson et al. 2003; El-Said et al. 2009; Kelland 2011). Calcium carbonate is found in the form of white crystals. The main factor influencing the formation of carbonate deposits is that the formation water must be supersaturated with calcium, carbonate, or bicarbonate ions (Kumar et al. 2010; Bezerra et al. 2013; Mavredaki and Neville 2014). More, inorganic calcium carbonate precipitates from the supersaturated solution of salts as a result of changes in temperature and pressure during oil–water flow in the wellbore. Temperature and pressure have a great effect on CaCO3 formation and precipitation. An increase in temperature causes the outgassing of CO2 contained in water, raising the pH, and this provokes the calcium carbonate precipitation.

All scaling control technology is divided into either prevention or removal of scaling. Chemical methods for preventing scale formation by use of scale inhibitors are more effective than other possible methods (Lakshmi et al. 2013). Basic technologies of inhibitor injection are divided as follows: reagent delivery into the wellbore and into the formation. Delivery into the wellbore is carried out by means of a dosing pump at the surface, into a given point along the well and the periodic injection into the annulus through aggregators. Scale inhibitor delivery into the formation is done through squeeze treatments via injection wells (in the pressure maintenance system), injection of the inhibitor with the fracturing fluid during fracturing (ScaleFrac), or addition of the inhibitor to the proppant (ScaleProp) (Levanyuk et al. 2012; Khormali and Petrakov 2014).

In this paper, the ongoing development of a new scale inhibitor for preventing calcium carbonate deposition during the production from oil wells is explained and a range of experimental work is described to evaluate the new inhibitor.

2 Experimental

In this study, the following experimental work has been carried out:

  • Optimization of the hydrochloric acid (HCl) concentration in the developed scale inhibitor by measuring surface tension on the boundary layer between the oil and the aqueous scale inhibitor solution.

  • Jar test (static test for scale inhibition efficiency).

  • Compatibility of the scale inhibitors with formation waters.

  • Change in absorbance of the aqueous scale inhibitor solution.

  • Improvement in induction time of calcium carbonate formation in presence of scale inhibitors.

  • Corrosiveness of the scale inhibitors.

  • Investigation of adsorption–desorption properties of the scale inhibitors in real core samples.

2.1 Experimental materials

2.1.1 Synthetic formation waters

Three different synthetic formation waters, the ionic composition of which is similar to actual formation waters, are shown in Table 1. Table 1 indicates that the synthetic waters had high concentrations of bicarbonate, carbonate, and calcium ions, which are the main factors of CaCO3 precipitation in water because the formation water must be supersaturated with these ions to precipitate this salt (Chen et al. 2005). The ions were contained in the formation waters in various concentrations and ratios of their mutual concentrations.

Table 1 Characteristics of synthetic formation waters

There are different formation water classification systems. Sulin’s system, among other systems, is more descriptive of petroleum formation waters (Ostroff 1967). According to the Sulin’s system, all the synthetic formation waters are a calcium chloride type.

2.1.2 Preparation of aqueous scale inhibitor solution

The following chemical reagents were used as the scale inhibitor components in the developed inhibitor: 1-hydroxyethane-1, 1-diphosphonic acid (HEDP), ammonium chloride, hydrochloric acid, isopropyl alcohol, polyethylene polyamine-N-methylphosphonic acid, and water. In addition, an industrial scale inhibitor, which is based on compounds of phosphorus, was used to compare with the developed inhibitor.

The aqueous scale inhibitor solution was prepared by dissolving the chemical reagents at different mass concentrations. Distilled water was used to prepare chemical solutions of scale inhibitor in laboratory experiments. This was done to eliminate the influence on properties of the composition and the results of experiments of ion determination. Medical syringes and high precision laboratory balances were used for the exact values of the reagents masses. This ensures the precision of the required volume of the composition, as well as the precision of concentrations of components, in the preparation of the aqueous scale inhibitor solution.

2.2 Experimental methods

2.2.1 Scale inhibitor performance measurement

The effectiveness of the inhibitor can be evaluated by its effect on real formation water or synthetic formation water. However, the use of synthetic formation water provides a more comprehensive assessment for a specific type of salt (Matty and Tomson 1988; Tortolano et al. 2014). The effectiveness of an inhibitor was evaluated by the mass change of precipitates, which were formed in mineralized water in the presence of inhibitor with respect to water with no inhibitor (Drela et al. 1998). The protective effect of an inhibitor is calculated by the following equation:

$$ E = \frac{{m_{0} - m}}{{m_{0} }}\; \times \;100\;{\text{\%}} , $$
(1)

where E is the scale inhibitor efficiency; m and m 0 are the mass of salt precipitates in water with and without inhibitor, respectively, mg.

Working solutions were prepared for studying the spontaneous process of CaCO3 precipitation in the aqueous solutions. CaCl2 solutions of different concentrations have been used in the experiments. Throughout the experiment, the solutions were mixed constantly with a magnetic stirrer.

To determine the efficiency of the scale inhibitors, two narrow neck flasks of 200 mL were used. The first flask consisted of formation water without inhibitor, and the second consisted of formation water with 30 mg/L scale inhibitor. The flasks were closed by a lid and heated to 80 °C. Then, the solutions were filtered through a 0.45-μm filter paper. The weight of crystals on the filter paper was measured.

2.2.2 Optical density of the inhibitor solution and induction period of CaCO3

The developed inhibitor was evaluated by determining the residual content of scale inhibitors in liquid samples. For this purpose, the concentration of the developed inhibitor in the formation water was determined based on the reaction of the ions with molybdate in an acid medium (MacAdam and Parsons 2004). The absorbance (optical density) of the obtained solutions was measured with a photo colorimeter at a wavelength λ = 540 nm because the most frequent absorbance of the inhibitor occurred at this wavelength. It was done in cells with a layer thickness of 30 mm at different concentrations of the developed scale inhibitor. The optical density should not exceed one. A control sample was taken as a standard solution. Optical density is defined as the logarithmic ratio of the intensity of the incident light to the intensity of the transmitted light through the aqueous scale inhibitor solution.

Induction time is a major factor in studying the prevention of the deposition of inorganic salts. The induction time was determined by measuring the changes in the intensity of the transmitted light through the formation waters with and without the scale inhibitor. For this purpose, a laser analyzer was used to analyze the microparticle size distribution. In addition, a photoelectric nephelometer-absorptiometer was used to obtain curves, which show the dependency of the light absorption on the testing time. The period, at which the light absorption is constant, displays the induction time of the salt formation.

2.2.3 Corrosion rate of the scale inhibitor

The corrosion activity of the inhibitors was evaluated by the gravimetric method—by measuring weight loss of the metal samples (with dimensions of 1.92 cm × 1 cm × 0.2 cm length, width, and thickness, respectively) before and after soaking in the aqueous inhibitor solution for 72 h at 80 °C. The corrosion rate of samples (density of the steel samples is 7821 kg/m3) is calculated as follows (Osokogwu and Oghenekaro 2012):

$$ v_{\text{c}} = 1. 1 2\times 1 0^{ - 3} \times \frac{{m_{1} - m_{2} }}{St} , $$
(2)

where v c is the corrosion rate of the used metal sample, mm/year; m 1 and m 2 are the mass of the metal sample before and after the corrosion test, respectively, mg; S is the surface area of the metal sample, m2; and t the test time, h.

2.2.4 Adsorption–desorption properties of the scale inhibitor under dynamic conditions

The adsorption and desorption ability of the inhibitors was studied by injecting aqueous scale inhibitor solution into the core samples. Figure 1 illustrates an apparatus for injecting formation waters and the aqueous scale inhibitor solution into the core samples at desired reservoir conditions. This apparatus is composed of a core holder, a pressure transducer, dosing pumps for injecting formation waters and inhibitors into the core samples, an oven, a vacuum pump, and a brine collection tank.

Fig. 1
figure 1

Apparatus for injecting the inhibitor and water into a core

The adsorption–desorption characteristics of the scale inhibitors and the volume of the scale inhibitors or formation water injected were evaluated in the core samples using this apparatus. Therefore, a relative concentration of the inhibitor solution at the core outlet during adsorption and desorption processes was measured at different injection volumes. The relative concentration of the inhibitor was defined as a ratio of the inhibitor concentrations after and before injecting the inhibitor solution into the core samples.

The volume of the solution injected is defined as follows:

$$ V_{\text{inj}} = 100\; \times \;\frac{Qt}{LA\phi}, $$
(3)

where V inj is the volume of the solution injected into the core sample, PV (pore volume of the core sample); Q is the volumetric flow rate of the injected solution, m3/h; t is the time, h; L is the length of the core sample, m; A is the cross-sectional areas of the core sample, m2; and ϕ is the porosity, %.

The tests were performed at 80 °C in an open system with a jacketed crystallizer; the exposure time was 72 h. During the tests, a pressure of 8.1 MPa and concentration of 30 mg/L of scale inhibitors were applied. The pH value of the system was 6.9. The flow rate was 0.0006 m3/h. The core samples used had an average porosity of 20 %, a length of 0.035 m, a cross-sectional area of 0.000625 m2, and a permeability of 70 mD. The used core samples were carbonate type from an Iranian carbonate reservoir (limestone and dolomite were about 79 % and 13 %, respectively). They were saturated with oil.

3 Results and discussion

3.1 Hydrochloric acid content in the developed scale inhibitor

In the investigation of the scale inhibitor, the optimum mass concentration of 5 % hydrochloric acid (HCl) solution in the inhibitor was determined by measuring the change in the surface tension on the boundary layer between oil and the aqueous scale inhibitor solution. The used crude oil was an Iranian light type, with a density of 852 kg/m3 under reservoir conditions and an oil viscosity of 0.89 cP at 80 °C. The content of sulfur in the oil was about 1.08 wt%. Experimental results of this test are shown in Fig. 2. The figure shows that a significant reduction in the surface tension occurred with an addition of 5 % HCl solution up to 8 %. The surface tension reduced slightly when adding 8–10 mass percent of 5 % HCl solution, indicating a further increase in the mass fraction of 5 % HCl solution practically did not reduce this parameter. It can be concluded that the mass percentage of 5 % HCl solution in the range of 8–10 % is suitable for the preparation of an inhibitor composition for preventing the formation and deposition of CaCO3.

Fig. 2
figure 2

Surface tension on the boundary layer between oil and the aqueous scale inhibitor solution at different mass concentrations of 5 % HCl solution in the inhibitor

3.2 CaCO3 scaling inhibition under static conditions

3.2.1 Effectiveness of inhibitors and their compatibility with formation waters

In the laboratory, the protective performance of scale inhibitors was evaluated in synthetic formation water because using synthetic formation water, instead of actual formation water, can improve the reproducibility of test results. The synthetic formation water was prepared based on the chemical compositions of the produced water.

Experimental results of the efficiency of inhibitors are listed in Table 2, which reveals that the developed chemical compositions had the necessary protective effect (effectiveness of more than 85 %) for calcium carbonate. Inhibitor No. 1 had the highest effectiveness for preventing calcium carbonate precipitation in all formation waters. The difference between inhibitors No. 1 and No. 2 is the change in the mass fraction of inhibitor components. Inhibitor No. 3 is an industrial inhibitor for preventing calcium carbonate formation, which is commonly used in oilfields. Table 2 clearly illustrates that inhibitor No. 3 could prevent the formation of calcium carbonate up to 87 %.

Table 2 Effectiveness of scale inhibitors

The scale inhibitor should be fully compatible with formation water without any precipitate formation (Dawe and Zhang 1997). Studies have been conducted to determine the compatibility of scale inhibitors with formation waters. All inhibitors were compatible with the three synthetic formation waters, and the experimental results show that all the above chemical compositions could be prepared with formation waters. In case of formation water containing high concentrations of Ca2+, the scale inhibitor is considered compatible with the formation water if turbidity is not observed within 24 h. In addition, the inhibitor effectiveness largely depends on Ca2+ concentration in formation waters.

3.2.2 Optical density of the aqueous scale inhibitor solution

To determine the optical density of the developed aqueous scale inhibitor solution, each tested sample was measured with a photo-electrocalorimeter two or three times, and the arithmetic mean was calculated. From the obtained data, a calibration curve was plotted, where the inhibitor concentration in mg/L was plotted on the horizontal axis, and the magnitude of its corresponding optical density on the vertical axis as shown in Fig. 3. The figure displays the high coefficient of determination for the dependency of the optical density on the inhibitor concentration. In this curve, knowing the value of the absorbance, it is possible to find the required scale inhibitor concentration for further development by initiating a new aqueous scale inhibitor solution.

Fig. 3
figure 3

Change in the optical density of the solution, depending on the inhibitor concentration in water

3.2.3 Effect of the scale inhibitor on induction time of CaCO3 scale formation

Figure 4 illustrates the curves of light transmission before and after the inhibition treatment of the salt solution with time. In these curves, transmittance (light absorption) was constant with time from the start of the test until inorganic salt is formed. After salt precipitation, the light absorption reduced with time. The period from the beginning until the salt is deposited is called the induction time. This figure indicates that the induction period of CaCO3 crystallization in the supersaturated aqueous solution was increased in the presence of scale inhibitors. As shown in the figure, inhibitor No. 1 had the longest induction period of all the inhibitors.

Fig. 4
figure 4

Dependence of the induction period of calcium carbonate on the curves of light transmission

3.2.4 Corrosion assessments of scale inhibitors

Scale inhibitor must have low corrosiveness. The corrosion activity of the used scale inhibitors was evaluated through the mass reduction of reference samples after their immersion in the aqueous scale inhibitor solution. A scale inhibitor is anticorrosion if pitting does not exist on the surface of the sample and the corrosion rate does not exceed 0.1 mm/year. Table 3 shows that all the chemical compositions exhibited an allowable corrosion rate (less than 0.1 mm/year). Therefore, these reagents can be considered as reagents to prevent scaling in wells.

Table 3 Corrosion rates of scale inhibitors

3.3 Dynamic core testing analysis

Scale inhibitors should have good adsorption–desorption characteristics, heat resistance, and minimal toxicity (García et al. 2006). The scale inhibitor solutions were injected into the carbonate core samples to study adsorption–desorption properties of the scale inhibitors. The results of this study are shown in Figs. 5 and 6. Figure 5 shows the relative concentrations of inhibitors depending on the volume of the inhibitor solution injected into the core sample in the adsorption process at 80 °C and at 8.1 MPa. The relative inhibitor concentrations were determined by a ratio of the current (after injecting) to initial (before injecting) concentrations of the inhibitor. Laboratory studies show that the limiting adsorption value (relative concentration of the inhibitor is 1) was achieved at 14 PV inhibitor solution injected for inhibitors No. 1 and No. 2, and at 15 PV for inhibitor No. 3. Figure 5 illustrates the achievement to the equilibrium adsorption on the surface of porous media under dynamic conditions after injecting the inhibitors into the core samples. As shown in Fig. 5, inhibitor No. 1 had a more uniform curve of changes in the relative concentration than inhibitors No. 2 and No. 3 during the adsorption process.

Fig. 5
figure 5

Change of the inhibitor concentration at the core outlet in the adsorption process

Fig. 6
figure 6

Change of the inhibitor concentration at the core outlet in the desorption process

Once the core was left for 24 h to attain adsorption equilibrium, the formation water was pumped into the core to displace the inhibitor components. The relative concentrations of inhibitors are shown during the desorption process in Fig. 6. The desorption process can be performed for the optimal concentration of the scale inhibitor in field conditions, when it corresponds to the relative concentration of 0.0001. Figure 6 illustrates that inhibitor No. 1 could effectively protect the precipitation of CaCO3 in the carbonate core sample before 37 PV water was injected into the core in the desorption process. The values for inhibitors No. 2 and No. 3 were 32 PV and 27 PV, respectively. This demonstrates that the developed inhibitor has 1.37 times greater duration of desorption than inhibitor No. 3.

Data on the removal of considered inhibitor components show that a significant portion of the free inhibitor (non-adsorbed) passed through the core during pumping the first 2 PV of the inhibitor solution. HCl solution is necessary to maintain the increased acidity of the medium in the solution. HCl solution is also capable of changing the wettability of rocks, and clearing the surface of the oil (the core samples were saturated with the oil). This ensures a uniform and more complete adsorption of the scale inhibitor. During the injection of the scale inhibitor solution into the core samples, the presence of HCl provides an increase in the desorption degree of the inhibitors on the rock surfaces. Thus, the desorption property of the new inhibitor has been investigated by considering the influence of the acidic components of the inhibitor on the rock. The inhibitor components formed a contact layer between the scale inhibitor and mineral surfaces. Owing to this, desorption occurs slowly in reservoir rocks because the inhibitor layer on the rock surface is substantially resistant to leaching. This characteristic of the inhibitor leads to the fact that the period of desorption is increased, and from this, it can be concluded that the effectiveness of the scale inhibitor is increased. Thus, the developed inhibitor effectively protects the downhole equipment and reservoir from deposition of CaCO3 for a long time.

4 Conclusions

  1. (1)

    Comprehensive experimental work was carried out to study CaCO3 scaling inhibition by the developed inhibitor in production equipment and carbonate oil reservoirs. Based on the experimental results, it can be concluded that the new scale inhibitor can be used in oilfields.

  2. (2)

    The mass fractions of the components in the aqueous scale inhibitor solution, at which the developed scale inhibitor was effective for preventing scale formation of CaCO3 up to 92 %, were determined.

  3. (3)

    Surface tension between the oil and the aqueous scale inhibitor solution was reduced by increasing the mass percentage of 5 % HCl solution in the inhibitor until its value has reached 10 %, after which the surface tension remained constant.

  4. (4)

    The induction period of CaCO3 scale formation in the supersaturated formation brine water increased in the presence of the scale inhibitor. The corrosion rate of the developed scale inhibitor was in the range of 0.04–0.053 mm/year (less than the maximum allowable corrosion rate—0.1 mm/year).

  5. (5)

    Adsorption of the developed inhibitor onto the formation rock occurred more rapidly than the used industrial inhibitor. Also, the new inhibitor was more slowly and in larger pore volume of injected synthetic formation water desorbed in comparison with the tested industrial inhibitor.