Introduction

The number of new field discoveries has been declining in recent years, and the remaining oil after the application of common recovery methods is also significant in existing fields (Manrique et al. 2010). To keep up with the rising demand for energy, various technologies that can improve oil recovery need to be investigated.

Enhanced oil recovery (EOR) refers to the augmentation of natural energy through the injection of fluids to displace oil toward producing wells (Babadagli 2020). The injected fluids create favorable conditions for oil recovery such as oil swelling, oil viscosity reduction, and wettability alteration (Manrique et al. 2010). EOR methods include gas flooding, chemical flooding, steam flooding, and low salinity water (LSW) flooding (Bera and Belhaj 2016). Moreover, the ultimate goal of any EOR method is to reduce the residual oil saturation which is controlled by the interactions at the pore scale.

Gas flooding involves injecting gasses such as hydrocarbon gas, nitrogen, carbon dioxide, or flue gas into oil reservoirs that have been waterflooded (Whorton and Kieschnick 1950; Liu et al. 2011). Whorton et al. (1952) were granted the first patent introducing the concept of CO2 as a means for producing oil. While gas injection in theory can displace virtually all the oil in the volume swept by the gas, this technique suffers from some major drawbacks such as inadequate mobility control and poor reservoir conformance. The high mobility and low density of gas compared to reservoir fluids can potentially lead to gravity override, viscous fingering, and channeling through high permeability streaks or fractures (Campbell and Orr 1985; Masalmeh et al. 2010).

Foam is defined as dispersion of gas in continuous liquid phase (Falls et al. 1988; AlYousef and Schechter 2019). Because foams are thermodynamically unstable, surfactants are usually used to make them stable. Surfactants can adsorb at the gas–liquid interface, reducing the interfacial tension and generating the foam. Foam generation generally increases with surfactant concentration up to the critical micelle concentration (CMC) above which surfactant concentration has little impact (Chiang et al. 1980). Several parameters could impact foam generation and stabilization including: surfactant type and concentration, temperature, pressure, gas saturation, water salinity and chemistry, presence of crude oil, rock–fluid interactions, and capillary forces (Figdore 1982; Al-Hashim et al. 1988; Mannhardt et al. 1993; AlYousef et al. 2020a, b; Almobarky et al. 2020; Wang et al. 2018, Ranjan et al. 2020). Foams are typically described in terms of their foamability and stability. Foamability is the ability of the gas–liquid system to generate the foam, whereas the stability describes the variation of foam height or volume with time, immediately after foam generation. Foam stability is dependent on electric double-layer repulsion, gravity drainage, capillary suction, surface elasticity, dispersion force, steric repulsion, and surface and bulk viscosity (Malysa and Lunkenheimer 2008, Schramm and Wassmuth 1994).

The in-situ generation of foam offers a potential solution to the shortcomings of gas injection (Holbrook 1958; Kovscek and Radke 1994; Enick et al. 2012). Foam can deliver a more favorable mobility ratio by increasing the gas apparent viscosity and reducing its relative permeability (Almajid and Kovscek 2020; AlYousef et al. 2020a, b). However, the mobility of foam is highly vulnerable at harsh temperature, pressure, and salinity conditions (Grigg et al. 2004; Almajid and Kovscek 2016; Almobarky et al. 2020; Fuseni et al. 2018).

Waterflooding has been extensively practiced worldwide for oil recovery (Nasralla et al. 2011). It consists of injecting water to pressurize the reservoir and sweep oil via piston-like displacement. Waterflooding uses large quantities of water and researchers have studied the applicability of seawater as a source of injection water in this method (Osode et al. 2015). Injecting seawater can cause inorganic scale precipitation, thereby necessitating the treatment of seawater to remove harmful ions and prevent them from precipitating and causing reservoir damage (Almubarak et al. 2019).

Tailoring injection water salinity and ionic composition have shown significant potential in both sandstone and carbonate reservoirs to improve recovery (Yousef et al. 2012; Yousef and Ayirala 2014; Teklu et al. 2016). Webb et al. (2004) reported a 25–50% reduction in residual oil saturation after injecting LSW. Even though the main recovery mechanisms of LSW injection are still debated, the general consensus among researchers is that modifying the ionic composition of the injected water can create a wetting state more favorable for oil recovery (Alotaibi et al. 2011; Nasralla et al. 2011; Lee et al. 2010).

The “hybrid approach” of combining EOR processes has been gaining a lot of interest lately (Manrique et al. 2010; Ayirala and Yousef 2015; Singh and Mohanty 2016; AlSofi et al. 2018; Shabib-AsL et al. 2019; AlYousef et al. 2020a, b). The chemical structure of foaming agent, rock minerals and composition, type of gas, reservoir fluids and conditions as well as water chemistry are the critical parameters that can determine the stability and mobility control of foam floods (Farajzadeh et al. 2010; Farajzadeh et al. 2012; Kapetas et al. 2015; Eide et al. 2018; AlMatouq et al. 2020). The synergy of LSW and foaming agents may offer a novel technique of altering the rock wettability for EOR in addition to generating stronger and stable foams for gas mobility applications. A recent study by AlYousef et al. (2020a, b) suggested that depending on the surfactant type, ten times dilution of the high salinity water (HSW) can produce foam with the highest stability and strength. Furthermore, the synergistic effect of LSW and foaming agents can be used to enhance foam stability, and consequently improve oil recovery.

The objective of this study is to extensively evaluate the effect of different aqueous ions in the selected tailored water chemistry formulations that were previously described and used by AlYousef et al. (2020a, b) on foam stabilization and mobility control. Both static bulk tests and dynamic foam tests in porous media were conducted at ambient conditions using several tailored brine recipes comprising of different aqueous ions to achieve this objective. The temperature and pressure have significant impact on foam stability wherein both can influence the phase behavior of fluids, and the temperature can significantly impact the thermal stability of solutions. As a result, similar tests will be conducted for the next phase of this study at elevated temperature and pressure conditions.

Materials

Three different surfactants were used in this study. One of the surfactants used is an anionic surfactant, which contains alpha olefin sulfonate, isopropyl alcohol, and citrus terpenes. Also, amphoteric alkyl amine and commercially available 100 wt.% active nonionic surfactant (NEODOL 25–12) are used for comparative evaluation. Table 1 reports these surfactants and their naming conventions used in this study. Three different brine recipes of different individual ions (W1, W2, and W3) are used to investigate the effect of individual aqueous ions in the selected tailored water chemistry formulations on foam stabilization and mobility control. More details on the brine compositions can be found in Table 2. As stated earlier, a previous study (AlYousef et al. 2020a, b) suggested that ten times dilution of the HSW (LSW3) can produce the most stable and viscous foams when compared to the other low salinity brine formulations (LSW1 and LSW2). The compositions of the HSW and tailored water chemistry formulations (LSW1, LSW2, and LSW3) used in that study are also listed in Table 2. The gas used for foam generation is carbon dioxide gas (CO2), industrial grade.

Table 1 List of foaming agents (surfactants)
Table 2 Brine compositions

Methodology

The effect of different aqueous ions: sodium ions (Na+), chloride ions (Cl), magnesium ions (Mg2+), and calcium ions (Ca2+) in the selected tailored water chemistry formulations on foam stabilization and strength was studied using both static and dynamic foam tests. Sodium chloride (NaCl), calcium chloride (CaCl2), and magnesium chloride (MgCl2) salts were used to prepare the water formulations. The static test includes foam bulk test, while foam dynamic tests include foam apparent viscosity in porous media (microfluidic chip). The objectives and detailed descriptions for each of these tests are stated below.

Static tests

Static foam tests are generally used to conduct fast screening on foam stability, especially when new chemicals or solutions are being evaluated for the first time. The objectives of this test here are to assess surfactant solutions stability and evaluate foam stability and strength by quantifying the foam life over time. To prepare the solutions, a total of 12 samples of 15 ml solutions were first prepared by mixing the foaming agent (surfactant) with water 1 (W1), water 2 (W2), water 3 (W3), and HSW at 300 RPM for few hours using a magnetic stirrer. The surfactant solutions were prepared using 5 gallons per thousand gallons (gpt) of surfactant 1 and surfactant 2, while 0.20 wt.% was used to prepare the solutions of surfactant 3. Then, 5 ml of each solution was poured into a 13 ml vial. This results in a foam quality (ratio of gas to fluids) of around 62%. The foam was generated by shaking each test tube for 2 min, and then the foam images over time were captured. Foam images were uploaded to Image-J software to measure the foam height over time and determine the foam half-life. These tests were conducted at 25 °C.

Foam in porous media

Foam generation and stabilization in porous media are different than that generated in bulk (static foam). Consequently, it is very important to evaluate the dynamic foam properties in porous media and compare it to that generated in bulk foam. The major objectives of dynamic foam tests were to ensure the foam generation and also evaluate the effect of different aqueous ions on foam stability and apparent viscosity in porous media. The effectiveness of foam to reduce gas mobility in porous media is mostly evaluated using the dynamic foam tests. The evaluation of the impact of different individual aqueous ions on foam stability and strength in porous media was conducted using CO2 gas.

The strength and stability of CO2 foams generated using surfactant 1, surfactant 2, and surfactant 3 in various water formulations: W1, W2, and W3 (listed in Table 2) were measured using microfluidics device as shown in Fig. 1. The microfluidic chip used in this study has a uniform network, porosity of 57%, and permeability of 2.50 Darcy. The dimensions of chip used are 20 × 10 × 0.02 mm. The experiments were conducted at atmospheric pressure and room temperature (25 °C). To evaluate the impact of different ions on foam strength, pressure drop across the microfluidic chip was measured for 70% and 90% foam quality, and the total injection rate was set to 50 µL/min.

Fig. 1
figure 1

Microfluidic apparatus

Results and discussion

Static tests

In this study, the static foam tests were conducted for three surfactants to investigate the effect of different aqueous ions: Na+, Cl, Mg2+, and Ca2+ on foam stability and strength. The surfactant solution prepared using HSW was used for comparison purpose. For surfactant 1, the results demonstrated that different ions can strongly affect the foam stability and thus the foam life. As shown in Fig. 2, all surfactant solutions were able to produce full columns of foam as the relative foam height (foam height/maximum foam height) is equal to one for studied cases. The results also demonstrated that the surfactant solution prepared using W2 produced foam with the highest stability followed by W1 and W3 solutions. Surfactant solution prepared using HSW produced the foam with the least stability and strength when compared to the three water solutions. The foam half-life for each solution was estimated from the data plotted in Fig. 2. As depicted in Fig. 3, the foam half-life for W1, W2, W3, and HSW were 54, 89, 56, and 42 h, respectively. As reported earlier, surfactant 1 is an anionic surfactant. W2 solution contains Ca2+ and Cl, and the results showed that CaCl2 produced the foam with the highest stability, almost 60–65% higher than the other solutions comprising of MgCl2 and NaCl salts. Also, the solutions containing NaCl and MgCl2 had almost the same impact on foam stability. The presence of different multi-ions, as those in HSW, had negative impact on foam stability and seems to destabilize the foam faster when compared to the other water solutions. The bulk foam results presented here clearly reflect the role of different ions on foam stability.

Fig. 2
figure 2

Relative foam height for surfactant 1 with W1, W2, W3, and HSW formulations

Fig. 3
figure 3

Foam half-life for surfactant 1 with W1, W2, W3, and HSW formulations

The results obtained with surfactant 2, an amphoteric surfactant, also demonstrated the influence of different individual aqueous ions on foam stability. As shown in Fig. 4 and similar to what have been reported for surfactant 1 solutions, all surfactant solutions were able to produce full columns of foam. The results showed that W1 had the highest foam stability when compared to the other water solutions. It has also been demonstrated that W2 and W3 solutions had better stability than HSW solution. Both W2 and W3 solutions produced almost the similar foam with same stability. According to these results, the solutions containing MgCl2 and CaCl2 tend to destabilize the foam faster when compared to the solution prepared using NaCl salt. This means that the divalent cations will have significant impact on foam stability when compared to the monovalent cations for this type of surfactant. Even though the three formulations (W1, W2, and W3) comprised the same total dissolved salts (TDS), each formulation showed different foam stability behavior. Such difference is mainly due to the variations in ionic content and ionic strength for each water formulation. Figure 5 presents the summary of foam half-life results obtained for different surfactant 2 cases. The foam half-life for W1, W2, W3, and HSW were 60, 36, 32, and 23 h, respectively. For HSW solution, the presence of different multi-ions tends to destabilize the foam faster when compared to the other water solutions. The foam half-life of HSW solution is about one-third that of W1 solution.

Fig. 4
figure 4

Relative foam height for surfactant 2 with W1, W2, W3, and HSW formulations

Fig. 5
figure 5

Foam half-life data for surfactant 2 with W1, W2, W3, and HSW formulations

Surfactant 3 is a non-ionic surfactant. The results on generated foam with this type of surfactant using four different water formulations showed that the different ions used in this study had an impact on foam stability, especially when CaCl2 salt was used. Compared to surfactant 1 and surfactant 2, surfactant 3 influenced significantly by all tested ions. As shown in Fig. 6, the foam height dropped significantly within the first 30 h. Also, the results revealed that W1, W3, and HSW solutions had almost the same response, while W2 formulation showed the lowest foam stability. In addition to the weak foam stability behavior reported for W2 formulation, its foamability (ability to generate foams) was also poor since its initial relative foam height was relatively low when compared to the other water solutions. Figure 7 shows the summary of foam half-life results obtained for different surfactant 3 cases. The foam half-life for W1, W2, W3, and HSW were 23.5, 5, 23.5, and 22.5 h, respectively.

Fig. 6
figure 6

Relative foam height for surfactant 3 with W1, W2, W3, and HSW formulations

Fig. 7
figure 7

Foam half-life data for surfactant 3 with W1, W2, W3, and HSW formulations

Foams in porous media

As mentioned previously, foam generation and stabilization in porous media are different than that generated in bulk. In addition to the solution’s properties and experimental conditions, the porous media features considerably impact the foam characteristics (generation and stabilization). CO2 foam strength produced using surfactant 1, surfactant 2, and surfactant 3 formulations in various brines (W1, W2, and W3) was measured using microfluidic device. Pressure drop values across the microfluidics chip as a result of the generated foam within the porous structure of microfluidic chip are measured for each surfactant using the three water formulations. Higher pressure drops correspond to higher resistance to gas flow and, hence, foams with higher apparent viscosity. The baseline experiment was conducted by injecting only water into the microfluidic chip. The measured pressure drop across the microfluidic chip was around 5 psi. For surfactant 1 solutions and as presented in Fig. 8, it can be seen that almost all water formulations produced the same pressure responses. The average pressure drops for foam generated at 70% foam quality using W1, W2, and W3 water formulations were about 21.8, 22.6, and 20.6 psi, respectively. This means all tested ions in the three salts NaCl, CaCl2, and MgCl2 had the same impact on foam stability in porous media. Similar results were obtained for foam generated using 90% foam quality. Figure 9 summarizes the average pressure drop for foam generated at 70% and 90% foam quality using the three water formulations. Even though the bulk foam results presented earlier showed that W2 solution produced the most stable foams with this type of surfactant, the results of foam in porous media suggest that all tested ions had the same impact on foam stability. These findings agree with the previously reported results of AlYousef et al. (2020a, b) by using LSW2 and LSW3 brines. It was also inferred from this previous study that foam generation and stability are influenced by the interactions of all ions present in the aqueous phase and that there is no specific ion which can significantly impact the foam behavior. All these observations intuitively suggest the balance among all aqueous ions existing in the brine solution is the key for foam stabilization.

Fig. 8
figure 8

Pressure drop values recorded across microfluidic chip during flow of CO2 foam produced using surfactant 1 solution at 70% foam quality in different aqueous solutions

Fig. 9
figure 9

Average pressure drop values recorded across microfluidic chip during flow of CO2 foam produced using surfactant 1 solution at 70% and 90% foam quality in different aqueous solutions

The results for surfactant 2 solutions tested at 70% and 90% foam quality showed that each tested ion can fairly impact the foam stability. As plotted in Fig. 10 for the foam generated using 70% foam quality, the highest pressure drops were observed when the CO2 foam was produced using W3 formulation. The average pressure drop for this case was about 48.5 psi. The second highest was reported when the CO2 foam was produced using W2 formulation. The average pressure drops for foam generated using W2 water formulations were about 40 psi. The least viscous foams were generated for W1 formulation with an average pressure drop of 36 psi. The calculated foam apparent viscosity for W1, W2, and W3 water formulations were 7.5 cP, 8.5 cP, and 10 cP, respectively. The average pressure drops for surfactant 2 solutions tested at 70% and 90% foam quality are summarized in Fig. 11. This surfactant is known to have good tolerance to salinity. As a result, it can be seen clearly that it produced more stable foams in porous media when divalent ions Mg2+ and Ca2+ were used. The results obtained with this type of surfactant provided an excellent example to clearly demonstrate the differences of foam behavior in bulk and porous media. The results for the bulk foam showed that W1 formulation produced the foam with the highest stability, whereas the results in porous media demonstrated that W1 formulation had the least stable and viscous foam.

Fig. 10
figure 10

Pressure drop values recorded across microfluidic chip during flow of CO2 foam produced using surfactant 2 solution in different aqueous solutions

Fig. 11
figure 11

Average pressure drop values recorded across microfluidic chip during flow of CO2 foam produced using surfactant 2 solution at 70% and 90% foam quality in different aqueous solutions

CO2 foam strength produced using surfactant 3 solutions in various water formulations was also measured and foam apparent viscosities were also calculated. From the data presented in Fig. 12 for 70% foam quality, it can be seen that the highest steady state pressure drop was observed when the CO2 foam was produced using W3 formulation. This means the water containing magnesium ions (Mg2+) and chloride ions (Cl) produced the most stable foams among all the other tested water formulations. Interestingly, almost similar pressure difference data were obtained for foams generated using the solutions in W1 and W2 formulations. Such result indicates similar effects of these two water formulations on foam stability and eventually mobility in porous media. The average pressure drops for foam generated using W1 and W2 water formulations were about 17 psi, while the average pressure drop for W3 water formulation was about 28 psi. The calculated foam apparent viscosity for W1, W2, and W3 water formulations were around 3.5 cP, 3.5 cP, and 6 cP, respectively. Figure 13 also presents the average pressure drop measured at 70% and 90% foam quality. There is good agreement between the two results obtained at 70% and 90% foam quality. Again, the foam behavior observed in porous media is different than that in bulk tests. In the static foam tests, W2 formulation produced very weak foams when compared to all other water formulations. However, the results of foam in porous media revealed that W1 and W2 formulations had almost same responses.

Fig. 12
figure 12

Pressure drop values recorded across microfluidic chip during flow of CO2 foam produced using surfactant 3 solution in different aqueous solutions

Fig. 13
figure 13

Average pressure drop values recorded across microfluidic chip during flow of CO2 foam produced using surfactant 3 solution at 70% and 90% foam quality in different aqueous solutions

The results reported from this study suggested that the divalent ions have a stronger influence on foam stabilization when compared to monovalent ions. Also, it was found that the surfactant type can significantly influence the foam stability in the presence of different type of aqueous ions. Moreover, the results obtained from the bulk foam test are different than those reported from the tests in porous media. It is well-known that the foam generation and stabilization in bulk are different than that in porous media. Such understanding means the results obtained from these tests might not correlate with each other, and this is the case here. The bulk foam results pointed out that the aqueous solutions containing CaCl2 salt showed longer foam life with the anionic surfactant and very weak foam with the nonionic surfactant. The solutions with MgCl2 and CaCl2 salts displayed higher impact on foam stability in comparison with NaCl with the amphoteric alkyl amine surfactant. Less stable foams were generated with aqueous solutions comprising of both magnesium and calcium ions. In the microfluidic model, the solutions containing MgCl2 salt produced more stable and viscous foams when compared to those produced using NaCl and CaCl2 salts.

The impact of electrolyte concentration as well as electrolyte nature on foam stability is ambiguous (Majeed et al. 2020). This is mainly due to the existence of so many parameters other than the electrolyte concentration and electrolyte type that can influence the foam generation and stabilization. Surfactant type, critical micelle concentration (CMC) of surfactants, and the used concentration of surfactants are some of these parameters that can affect foam stability in the presence of electrolytes. However, the important point to note here is that the present study clearly demonstrated the impact of different aqueous ions in the tailored water chemistry formulation on foam generation and stabilization. These new findings obtained with different aqueous ions in the injection water on foam stabilization with different type of surfactants could enable the selection and optimization of the right injection water chemistry and suitable chemicals for foam field applications.

Conclusions

In this study, three water recipes (W1, W2, and W3) and three surfactants (surfactant 1, 2 and 3) were used to evaluate the effect of different aqueous ions in the selected tailored water chemistry formulations on foam stabilization and mobility control. Static (bulk foam test) and dynamic (mobility in porous media) foam tests were conducted to perform the comparative assessment among different water recipes. The results clearly demonstrated the effect of different aqueous ions on both foam stability and strength. Based on the analyses of experimental data, the major findings can be summarized as the following.

  • Different foam behaviors were observed from the bulk foam tests and the foam in porous media.

  • The bulk foam results revealed that the aqueous solutions containing calcium chloride salt (CaCl2) showed better foam stability and longer foam life with the anionic surfactant and less stable foams with the nonionic surfactant solutions.

  • Less stable foams were generated with aqueous solutions containing magnesium chloride (MgCl2) and calcium chloride salts in comparison to sodium chloride (NaCl) with the amphoteric surfactant.

  • In the microfluidic model, the solutions containing MgCl2 produced more stable and viscous foams when compared to those produced using NaCl and CaCl2. The foam solutions obtained using MgCl2 showed higher resistance to gas flow and subsequently higher mobility reduction factor for the injection gas.