Introduction

In recent years, smart water flooding (also referred to as ion-tuned water or low-salinity water injection) has gained significant attention as an environmentally and economically viable enhanced oil recovery (EOR) technique for sandstone reservoirs1,2,3. This method involves injecting brine solutions with optimized ionic compositions, often including sulfate (SO42−), calcium (Ca2+), and magnesium (Mg2+), to modify the wettability of reservoir rocks and enhance oil displacement efficiency4. The interaction of these ions with the mineral surfaces in sandstone reservoirs can promote the desorption of oil components, thereby improving recovery rates5. However, the success of smart water flooding is highly influenced by several factors, including the reservoir’s mineralogical composition, particularly the presence of clay particles, the type of ions and their concentration in smart water, and polar components of oil, which can significantly affect fluid flow and heavy oil recovery dynamics6,7.

Despite its potential benefits, smart water flooding may have unintended consequences in sandstone reservoirs, particularly emulsification. Emulsification plays a dual role in oil recovery processes. While it can enhance oil displacement in the reservoirs by improving sweep efficiency8, it may introduce operational challenges that vary significantly depending on emulsion type (oil-in-water or water-in-oil)9,10,11. Specifically, emulsification can adversely affect production by increasing the viscosity of the produced fluids12, complicating phase separation, and causing operational challenges such as pipeline blockages and reduced oil quality. These effects impose significant economic and environmental burdens, particularly in surface facilities where costly oil-water separation is required13,14. Therefore, developing strategies to control water-in-oil emulsion formation and stabilize production processes represents a critical need for sandstone reservoirs undergoing smart water flooding.

One significant issue is the exacerbation of emulsion formation due to the interaction of injected brine with clay particles and heavy oil components. Clay minerals, such as kaolinite, illite, and montmorillonite, are commonly found in sandstone reservoirs and play a crucial role in interactions with heavy oil15. These particles can adsorb polar components of crude oil, such as asphaltene molecules, forming stable emulsions16,17.

Asphaltene molecules are fundamental to creating and stabilizing emulsions, especially in systems involving oil and water18,19. Asphaltenes, characterized by their high molecular weight and complex polycyclic aromatic structures, contain polar and non-polar functional groups that allow them to function as natural surfactants9,20. These molecules can accumulate at the interface between oil and water, lowering the interfacial tension21. Literature surveys have demonstrated that a significant fraction of asphaltenes adsorb at the interface, forming a rigid film through an irreversible mechanism.

In this regard, Tajikmansori et al. demonstrated that the interfacial behavior of crude oil is significantly influenced by the molecular structure of asphaltenes and their electrostatic properties22,23. In addition, Liang et al. suggested that the concentration of asphaltenes and the NSO concentration can influence the properties of the oil-water interface24. Hence, investigating the influence of oil components on emulsion properties is of critical importance.

Moreover, numerous studies have been conducted to explore the effects of ion-tuned water and clay particles on the properties of the emulsion phase. Mahdavi et al. examined the simultaneous influence of clay particles and ion-tuned water on emulsion stability. They demonstrated that the interaction between high-salinity water or ion-tuned water and crude oil, particularly in the presence of clay particles, can result in the generation of highly stable emulsions6,25. In another work, Demir et al. emphasized that the synergistic presence of clay particles and ions can reduce interactions between the aqueous phase and asphaltenes, resulting in the formation of significant aggregates composed of asphaltene-clay mixtures26. Consequently, evaluating the interaction of asphaltene, ions, and clay is essential in controlling the production of water-in-oil emulsions.

The injection of surfactants, such as cetyltrimethylammonium bromide (CTAB), has demonstrated significant potential for enhancing oil recovery through three key mechanisms: (1) addressing emulsion-related challenges in oil recovery, (2) inducing wettability alteration (water-wet) in reservoir rocks27, and (3) effectively reducing oil-water interfacial tension28,29,30. CTAB’s unique amphiphilic structure, consisting of a positively charged head group and a long hydrophobic tail, allows it to interact with both polar, such as asphaltene molecules, and non-polar components in the reservoir2. CTAB molecules may tend to migrate toward the oil-water interface. They can disrupt existing emulsions and prevent new emulsion formation23,31. It should be noted that their effectiveness is highly dependent on system characteristics, including oil polarity, ionic strength, pH, and the presence of competing surface-active components27,32,33. The impact of CTAB molecules on emulsion formation and stability has been extensively investigated in various studies.

Researchers conducted a variety of experimental techniques to explore the interactions between surfactants and crude oil components, including Fourier transform infrared (FTIR) spectroscopy34, emulsion stability and interfacial tension (IFT) measurements35, zeta potential, and contact angle analysis36, among others. For example, Seng et al. explored the interactions between heavy oil and different surfactants by employing a combination of core flooding experiments, zeta potential measurements, and optical tests. They concluded that the presence of saturates in crude oil significantly contributed to the formation of smaller, more uniformly dispersed emulsion droplets29.

In a related study, Koreh et al. examined the interfacial performance of different surfactant types and their interactions with crude oil properties. They demonstrated that the type of surfactant has a considerable impact on emulsion formation and stability37. Additionally, Javadi et al. investigated the synergistic effects of CTAB molecules and low-salinity water through a series of experimental tests. Their study demonstrated that CTAB molecules adsorb at the oil/brine interface by embedding their hydrophobic tails into the oil phase. They emphasized that the efficiency of this mechanism depends on both the surfactant concentration and the ionic strength of the brine38. Zallaghi et al. evaluated the synergistic effects of combining surfactants with smart water. Their results indicated that the injection of ion-tuned water-surfactant aqueous phase significantly enhanced recovery factors39.

It is also well-established that surfactant sorption is strongly influenced by factors such as the simultaneous impact of ions and rock mineralogy during smart water flooding in sandstone reservoirs40. Hou et al. demonstrated that surfactant adsorption on sandstone surfaces reduced the asphaltene molecules’ size, thereby increasing the rock’s water-wet characteristics41. In another work, they asserted that synthesized gemini surfactants can enhance oil recovery through significant reduction of oil-water interfacial tension and generation of favorable emulsions42. According to the experimental study by Liu et al., the presence of CaCl2 in solutions significantly influenced the adsorption of surfactants on clay surfaces43.

Besides, investigations by Khezerloo-ye Aghdam et al. clarified that when CTAB is introduced to low-salinity waterflooding systems in clay-rich sandstones, the resulting solution: (i) intensifies electrostatic attraction at fluid-rock interfaces, while (ii) simultaneously modifying wettability characteristics through distinct adsorption mechanisms - binding to rock matrices and interacting with acidic components in the crude oil32. Therefore, a comprehensive investigation is crucial to elucidate the interactions between CTAB, oil components, ions in ion-tuned water, and clay in the emulsion phase. Such understanding could lead to the development of effective strategies to address the challenges posed by water-in-heavy oil emulsions.

In this study, the synergistic interactions between clay particles, ions in smart water, CTAB surfactant, and heavy component of crude oil components was conducted from a new approach. A novel experimental methodology was developed to precisely evaluate the individual and combined roles of these components, including the molecular structure of oil componets, ion-tuned water chemistry, CTAB, and clay. A comprehensive suite of tests—including contact angle measurements, zeta potential analysis, interfacial tension (IFT) determination, and emulsion stability assessment—was employed to explore: (1) the combined effects of divalent cations, anions, and CTAB on IFT; (2) the synergistic interactions between CTAB cationic surfactant and ion-tuned water solutions on zeta potential and wettability alteration; and (3) the influence of ion and CTAB concentration variations, in the presence of clay particles, on emulsion stability. Furthermore, FTIR analysis was utilized to study the contributions of polar and non-polar crude oil components to the phenomena at the oil-water interface.

Materials and methods

Materials

Oil sample

The crude oil sample used in this experimental study was sourced from an Iranian oil field. Its characteristics and SARA (Saturates, Aromatics, Resins, and Asphaltenes) analysis are detailed in Table 1. It is particularly noteworthy that the physicochemical properties of this crude oil align closely with characteristic heavy oil reported in prior studies44,45,46. To assess the stability of heavy oil, the Colloidal Instability Index (CII) was calculated using Eq. 1. Notably, a CII value greater than 0.9 or less than 0.7 indicates the presence of unstable asphaltenes in the crude oil47.

$${\text{CII}}=({\text{saturation}}\,+\,{\text{asphaltene}})/({\text{resin}}\,+\,{\text{aromatic}})$$
(1)
Table 1 Properties of the oil utilized in this study (the crude oil sample was additionally used in our previous work25).

Aqueous phase

This enabled the study of the simultaneous effects of the interactions among clay particles, CTAB, and ion-modified water. Persian Gulf seawater was utilized as the base fluid to prepare the smart water. To avoid salt precipitation during the subsequent increase in ion concentrations, the seawater was first diluted to 50% by the gradual addition of deionized water48,49. Subsequently, the concentrations of magnesium, calcium, and sulfate ions were increased to two and four times their original salinity in seawater. Aqueous solutions, including seawater (SW), two-times diluted seawater (SW2d), and ions-rich seawater, were mixed with the cationic surfactant cetyltrimethylammonium bromide (CTAB). CTAB, a cationic surfactant with a critical micelle concentration (CMC) of approximately 0.386 g/L and a molecular weight (MW) of 348.47 g/mol, was utilized. The compositions of all aqueous solutions are provided in Table 2. The salts and surfactants used in this experimental study were procured from Merck Company, Germany, with a purity of > 99. It is important to note that the concentration of CTAB and clay particles remained constant, while the total dissolved solids (TDS) represent the ion concentration in the aqueous phases.

Table 2 Composition of aqueous solutions (the aqueous phase samples was additionally used in our previous work25).

Clay particle

It has been suggested that clay minerals with high Cation Exchange Capacity (CEC), such as kaolinite, play a significant role in smart water flooding processes7,50,51. Kaolinite is widely recognized as a non-swelling alumina-silicate clay, with the approximate chemical formula Al2Si2O₅(OH)452. For this experimental study, kaolinite was selected to examine the interactions among clay particles, CTAB, ions, and crude oil components. The experiments were conducted using kaolinite powder with an average particle size of 1.1 μm. The mineralogical composition of the kaolinite was analyzed using X-ray fluorescence (XRF), and the detailed results are summarized in Table 3.

Table 3 XRF result of clay sample (the clay samples was also utilized in our previous study6).

Method

Sample Preparation

Initially, mixtures of oil and aqueous phase samples (based on Table 2) were prepared in 50 mL volumes at a 60:40 ratio (water: oil) for the tests of the bottle6,53,54,55. Subsequently, an ultrasonic probe was used to disperse the oil in the water phase, facilitating the mixing of the bulk oil in seawater, CTAB, and clay particles. Following the sonication step, the emulsification of the oil and brine was carried out using a magnetic heat stirrer at 1000 rpm for 6 h at 25 °C, resulting in the formation of a homogenized emulsion phase. This emulsion mixture was placed in an oven at 90 °C for 20 days to simulate reservoir conditions. After collecting the emulsion samples, they were transferred to graduated plastic centrifuge tubes and centrifuged at 4000 rpm for varying durations, with measurements taken at 5-minute intervals. The solutions were monitored every 5 min until complete phase separation was achieved, driven by the centrifugal force. Subsequently, the separated oil phases, water phases, and solid fractions were placed in a dark room at 25 °C for 24 h. The stability of an emulsion under centrifugation was evaluated by measuring the percentage of free oil and solid fractions56.

The oil samples were carefully collected from the top of the bottle for subsequent experiments conducted at 25 °C. To ensure purity, the collected oil was centrifuged twice to eliminate residual water droplets, clay particles, and dissolved gases6,9,12. After the centrifugation step, the oil samples were selected from the tops of the centrifuge vials and named “aged oil-SW”. It is important to note that all experimental tests were repeated at least three times to ensure reproducibility. The sample preparation procedure is illustrated in Fig. 1.

Fig. 1
figure 1

Sample preparation procedure: (a) mixing, (b) aging, (c) separating and stability measurement, (d) sampling process.

IFT (interfacial tension) measurement

To comprehend interfacial phenomena, it is essential to focus on variations in interfacial tension (IFT). The equilibrium IFT value was examined between crude oil and various aqueous phases using the Pendant Drop method for a more thorough analysis of fluid-fluid interactions25,57. In this method, oil samples are injected through a needle into a cell filled with the target aqueous solution. After allowing the oil-water system to equilibrate, the interfacial tension is calculated by analyzing droplet images with specialized software. The image and schematic of interfacial tension measurement are illustrated in Fig. 2. It should be noted that IFT measurements were performed 3 times, with the mean value reported as the final result.

Fig. 2
figure 2

(a) The experimental setups58 and (b) the schematic for contact angle and interfacial tension measurements28.

Zeta potential measurement

The zeta potential of kaolinite particles was identified under controlled experimental conditions, with a temperature of 25 °C and a pressure of 14.7 psi. The pH of the system was maintained at 7 throughout the measurements50,59. A MICROTAC Wave-particle size analyzer was employed to assess the electrophoretic mobility of the kaolinite particles dispersed in various aqueous phases. The electrophoretic mobility values were then converted into zeta potential.

To prepare the samples, a 5% weight% ratio was used, dispersing 5 g of clay in 100 mL of aqueous phase. The mixture was subjected to sonication using an ultrasonic probe to ensure uniform dispersion. Following sonication, the suspension was immediately placed on a magnetic stirrer to maintain homogeneity50,59. The pH of the suspension was carefully adjusted to 7 by adding either 1 M NaOH or 0.1 M HCl, depending on the requirement.

For each sample, the zeta potential was measured five times. The reported zeta potential values represent the average of these five measurements. The measurement error was estimated to be approximately ± 2–3 mV, based on the standard deviation of the five measurements conducted for each sample6,50.

Fourier transform infrared spectroscopy (FTIR)

Fourier Transform Infrared (FTIR) spectroscopy was employed to analyze alteration in the concentration of functional groups of crude and aged oil samples, specifically those separated from the emulsion phase60,61. In this regard, the oil samples were placed on KBr pellets under high pressure for FTIR transmission measurements6,62. The analysis was conducted using a PerkinElmer FTIR spectrometer, which recorded spectra across a wavenumber range of 4000–400 cm− 1. To ensure consistency and comparability, normalization of the FTIR spectra was performed using the peak heights at 2920 cm− 1, corresponding to the C-H stretching vibrations in CH2 structures22. This normalization process allowed for more accurate identification and comparison of functional group alterations in the aged oil samples.

Contact angle measurement

The clay powder was dried in an oven at 80 °C for 24 h to eliminate residual moisture. Subsequently, the dried clay powder was immersed in distilled water for 2 days to ensure complete hydration, a critical step for clay minerals due to their high affinity for water and the need to achieve equilibrium with the aqueous phase63,64,65. The hydrated clay powder was then mixed with crude oil at a mass ratio of 1:2 (clay: oil) to ensure uniform saturation. The mixture was placed in an oven at 80 °C for 5 days to allow the oil to adsorb onto the clay particles. After oil saturation, the clay powder was placed on a paper filter, and a vacuum was applied to remove excess oil, ensuring that only adsorbed oil remained on the clay particles to simulate reservoir conditions. Then, the oil-saturated clay powder was washed with distilled water to eliminate any loosely bound oil.

The samples were dried at 80 °C for 24 h before further analysis. As a result, the dried clay powder was compressed into pellets using a hydraulic press, applying a pressure of 200 kPa.cm⁻² to form pellets with a diameter of 2 cm57,66,67,68. No binding material was used during compression to avoid altering the natural wettability of the clay. The contact angle was measured using the sessile drop method (Fig. 2). A high-resolution camera equipped with a macro lens, a light source, a fluid chamber, and a syringe injection pump were utilized for this purpose. The clay pellets were placed in a chamber filled with distilled water, and a droplet of crude oil was injected onto the pellet surface. This was named as initial contact angle.

The oil-saturated clay powder was divided into several portions and immersed in different aqueous solutions. These samples were placed in an oven at 80 °C for 30 days to simulate long-term exposure to reservoir conditions57,63,64. A portion of the clay powder was investigated every 3 days to monitor changes in wettability, providing secondary contact angle measurements. Images were captured for 1 h to monitor the contact angle over time. Measurements continued until the difference between the last two contact angles was less than 2°, indicating that equilibrium had been reached.

Results

Interfacial tension (IFT)

Interfacial tension is a critical parameter in understanding the behavior of oil-water systems, as it quantifies the force per unit length at the interface between two immiscible fluids and fluid-fluid interaction58,69,70. The IFT is influenced by factors such as the ionic composition of the aqueous phase, the presence of natural surfactants (including asphaltene and resin molecules), and the addition of surfactants like CTAB37,71. In enhanced oil recovery and emulsion stabilization, reducing IFT is desirable as it promotes the formation of smaller droplets and improves oil displacement efficiency57. CTAB plays a significant role in modifying IFT based on previous studies, thereby altering the interfacial properties. In this regard, we measured the IFT of crude oil in various aqueous phases enriched with divalent ions, CTAB molecules and clay particles. The results are presented in Fig. 3.

Fig. 3
figure 3

The results of interfacial tension (IFT) measurements between crude oil and various aqueous phases containing 1 CMC (Critical Micelle Concentration) of CTAB.

As can be seen in Fig. 3, the IFT between crude oil and different aqueous phases, including smart water and CTAB solutions, reduced notably. This variation in IFT is strongly influenced by the ionic composition and CTAB concentration of the aqueous solutions, highlighting the critical role of CTAB and electrolyte interactions in modulating interfacial behavior. For instance, the IFT value for the oil-(SW2d.4Mg) system was recorded at approximately 20.5 mN/m, while the IFT for oil-(SW2d.2SO4) was significantly lower at around 5.3 mN/m.

Furthermore, as the concentration of divalent ions decreased, the IFT approached the value observed for SW2d. This trend underscores the significant influence of divalent ions (Mg2+ and sulfate ions (SO42−) concentration on IFT value. Specifically, higher concentrations of Mg2+ and Ca2+ were found to elevate IFT, whereas the presence of SO42− ions contributed to a reduction in IFT.

The variation in IFT values can be attributed to the chemical composition of the aqueous phase and its interaction with crude oil components. Specifically, the irreversible migration of amphiphilic hydrocarbons (including asphaltene molecules) from the oil bulk to the interface is influenced by the surrounding aqueous phase9. Divalent ions such as Ca2+, Mg2+, and SO42− play a more significant role in altering IFT compared to monovalent ions (such as Na+ and Cl⁻), as they enhance asphaltene aggregation and interfacial film rigidity21,57,72. The addition of CTAB further modifies IFT by disrupting the interfacial network formed by natural surfactants and clay particles. Below, the main mechanisms are discussed in detail:

First, the presence of divalent ions (Mg2+, Ca2+, and SO42−) in smart water leads to the change in thickness of the electrical double layer (EDL) at the interface25. This process highlights how the expansion or compression of the EDL can be altered by the specific ions present in ion-modified water. Consequently, the EDL can create an environment that facilitates interactions between ions, surfactant molecules, clay particles, and the polar constituents of crude oil.

Second, divalent cations (Ca2+ and Mg2+) form complexes with polar components of crude oil, such as asphaltene molecules, at the oil-water interface. These complexes enhance the rigidity of the interfacial film, leading to a change in IFT values. The reactions lead to the formation of complexes are described by the following Eqs.6,73. The subscripts (o) and (aq) demonstrate the oil phase and aqueous phase, respectively.

$$\:{RCOOH}_{\left(O\right)}\leftrightarrow\:{RCOOH}_{\left(aq\right)}$$
(2)
$$\:RCOOH\leftrightarrow\:\:{RCOO}^{-}+\:{H}^{+}$$
(3)
$$\:RCOOH+\:{Ca}^{2+}\leftrightarrow\:\:{RCOOCa}^{+}+\:{H}^{+}$$
(4)
$$\:{2RCOO}_{\left(aq\right)}+\:{Ca}^{2+}\leftrightarrow\:\:{\left(RCOO\right)}_{2}{Ca}_{\left(aq\right)}$$
(5)
$$\:RCOOH+\:{Mg}^{2+}\leftrightarrow\:\:{RCOOMg}^{+}+\:{H}^{+}$$
(6)
$$\:{2RCOO}_{\left(aq\right)}+\:{Mg}^{2+}\leftrightarrow\:\:{\left(RCOO\right)}_{2}{Mg}_{\left(aq\right)}$$
(7)

As detailed in Eqs. 27, divalent cations (Ca2+ and Mg2+) in the brine solution react with carboxyl groups (-RCOOH) in asphaltenes through a complexation mechanism. This interaction results in surface-active complexes (-COOCa+ and -COOMg+) forming via ionic bonding, which subsequently adsorb at the oil-water interface74,75.

Third, the injection brine in heavy oil reservoir in the presence of clay initiates interactions between polar compounds in the oil and clay surfaces, driven by adhesion mechanisms such as cation bridging14,76. A significant aspect of this process is the role of silanol (Si-OH) groups on silica surfaces, which remain negatively charged across a wide spectrum of ionic strengths. This property enhances the tendency of asphaltene molecules to migrate toward the oil-water interface20,76. Therefore, cations can form a bridge between clay particles and a polar fraction of crude oil. The following equations represent the fundamental reactions in this cation-mediated bridging process:

$$\:>{AlOH}_{2}^{+}\leftrightarrow\:>AlOH+\:{H}^{+}$$
(8)
$$\:>AlOH\leftrightarrow\:>{AlO}^{-}+\:{H}^{+}$$
(9)
$$\:>AlOH+\:{Ca}^{2+}\leftrightarrow\:>{AlOCa}^{+}+\:{H}^{+}$$
(10)
$$\:>SiOH\leftrightarrow\:>{SiO}^{-}+\:{H}^{+}$$
(11)
$$\:>SiOH+\:{Ca}^{2+}\leftrightarrow\:>{SiOCa}^{+}+\:{H}^{+}$$
(12)

As described in Eqs. (8)–(12), cation-clay interactions lead to the formation of bridging complexes (AlOCa+ and SiOCa+) at clay particle surfaces6. These modified clay surfaces can subsequently cause asphaltene’ interaction with clay particles at the interface6,20,76.

Another contributing mechanism involves the synergistic effect of CTAB and clay particles. In this process, CTA+ cations from CTAB interact electrostatically with SiO2 moieties on the clay surface, forming a monolayer of CTA+ cations around the clay particles, as indicated in Eq. 13. This leads to the formation of CTA+-clay hemi micelles77. As a result, the surface charge of the clay particles is neutralized, reducing their ability to adsorb oil components at the interface.

$$\:{SiO}^{-}{H}^{+}+{CTA}^{+}\leftrightarrow\:SiOCTA+{H}^{+}$$
(13)

As can be seen in Fig. 3, the IFT of oil in SW2d is lower than in SW, and increasing the concentration of divalent cations (Mg2+ and Ca2+) in seawater elevates the IFT compared to the SW and SW2d samples. This trend can be attributed to the dilution of seawater, which increases the CTAB’s accumulation at the interface. According to the previous studies, reduced interfacial salinity promoted expansion of the electrical double layer9,50,75. This expansion led to the enhancement of the interfacial participation of CTAB molecules at the interface phenomena.

Moreover, clay particles could migrate more extensively at the oil-SW2d interface than at the oil-SW interface. According to equations of 8 to 12, the creation of cationic bridges via ions between clay and polar oil components (such as asphaltene molecules), combined with CTA+-clay interactions, could increase the involvement of polar oil components and surfactant of CTAB at the interface. The increased presence of CTAB molecules, as a highly active surfactant, alongside asphaltene molecules, led to a reduction in the IFT value.

As demonstrated in Fig. 3, the presence of divalent ions substantially increases IFT value due to reduced interfacial activity of CTAB molecules at the oil-water interface. Consistent with established literature, increasing divalent ion concentration enhanced competitive participation with CTAB molecules within the constrained EDL thickness23,28,57. This competition progressively diminished CTAB’s interfacial activity and consequently reduced its effectiveness in lowering IFT. Insufficient EDL thickness could lessen the formation of CTA+-clay micelles, which could also diminish the accumulation of clay and CTAB molecules at the interface.

Interestingly, the presence of active divalent cations increased the migration of polar oil components to the interface2,9. Asphaltenes moved to the interface via cationic bridging and complexation mechanisms76. Although these polar components contributed to a reduction in interfacial tension, the extent of this reduction is relatively modest. Consequently, the dominant mechanism at the oil-water interface shifted to the formation of asphaltene-ion complexes, which cannot considerably alter the IFT compared to SW and SW2d.

It is noteworthy that when interfacial tension was measured in calcium-enriched seawater (SW2d.4Ca), the IFT was observed approximately 18.8 mN/m lower than that of oil in (SW2d.4Mg) (IFT = 20.5 mN/m). The greater reduction in interfacial tension by calcium cations, compared to magnesium, was related to their lower charge density. This could facilitate the accumulation of CTAB molecules at the interface of oil-(SW2d.4Ca).

Moreover, reducing the concentration of magnesium ions from (SW2d.4Mg) to (SW2d.2Mg) caused the interfacial tension to approach that of SW2d. This shift can be related to the relative increase in the EDL thickness, enhanced involvement of CTAB molecules, and the formation of multiple oil-CTA+-clay and asphaltene-ion-clay complexes driven by the activation of the cation bridge mechanism76. A similar trend was observed for calcium ions, where (SW2d.4Ca) exhibited higher IFT (approximately 18.8 mN/m) than (SW2d.2Ca) (IFT = 15.4 mN/m), as can be seen in Fig. 3.

Conversely, when the sulfate-enriched seawater was used, the IFT value was observed at 5.3 mN/m (SW2d.2SO4) and 7.1 mN/m (SW2d.4SO4), respectively. This reduction was more pronounced for the (SW2d.2SO4) sample compared to (SW2d.4SO4). This phenomenon was related to the decreased concentration of divalent cations at the interface, which could enhance CTAB accumulation at the interface23,57. However, as the sulfate concentration increased, the EDL space could contract compared to the (SW2d.2SO4) sample, causing a lower number of CTAB molecules to participate at the interface and forming oil-CTA+-clay complexes.

Furthermore, electrostatic repulsion between negatively charged sulfate ions and the anionic polar components of crude oil (particularly asphaltenes) can significantly hinder their interfacial interactions. It can be concluded that the effectiveness of this mechanism can be reduced25,63. The negative charge of sulfate ions can also hinder the formation of asphaltene-ion-clay complexes. The repulsion between sulfate ions, the negatively charged clay, and the asphaltene molecules noticeably reduced cationic bridge interactions, particularly in the (SW2d.2SO4) solution. As a result, the dominant mechanisms in sulfate-enriched seawater were EDL expansion and the contribution of CTAB molecules, leading to a decrease in IFT value compared SW2d sample.

It is important to note that the clay surface can contribute to the formation of stable emulsions and alter interfacial properties6. However, the results from the IFT analysis did not provide sufficient insight into the influence of charged sites on clay and CTAB, nor their interactions in the aqueous phase. Therefore, zeta potential measurements could serve as a valuable tool to assess the effects of clay, CTAB, and ions on oil property changes, particularly through mechanisms involving clay particles.

Zeta (ζ) potential

Zeta potential is a critical parameter used to evaluate the surface charge and stability of colloidal particles, such as clay, in liquid suspensions78. It provides insights into the electrostatic interactions between particles and their surrounding medium, which are influenced by factors like pH, ionic strength, and the presence of surfactants or specific ions33,57. In this study, the zeta potential of clay particles was measured in solutions containing smart water and CTAB at the same time. By analyzing the zeta potential in these environments, we aim to understand how the surface charge of clay particles is affected by the unique chemical properties of smart water and the adsorption of CTAB molecules. Figure 4 depicts the zeta potential measurements of clay particles in brine and CTAB solutions.

Fig. 4
figure 4

Zeta potential measurements of clay particles in various aqueous phases containing 1 CMC (critical micelle concentration) of CTAB at pH 7.0.

As shown in Fig. 4, the zeta potential of clay particles in different aqueous phases enriched with divalent cations and anions ranged from 31.2 to 46.5 mV. Specifically, the zeta potential values for SW, SW2d, (SW2d.4Mg), (SW2d.4Ca), and (SW2d.4SO4) were observed at 40.4, 46.5, 34.8, 36.1, and 31.2 mV, respectively. This indicates that the highest zeta potential was achieved when the concentration of divalent ions in seawater remained unchanged and the overall seawater concentration was reduced. Additionally, the zeta potential for smart water enriched with (SW2d.2Mg), (SW2d.2Ca), and (SW.2SO4) followed the order: 38.9 mV (SW2d.2Ca) > 37.6 mV (SW2d.2Mg) > 32.7 mV (SW2d.2SO4). When the concentration of cations and divalent anions in the smart water was reduced, the zeta potential was greater compared to samples where their concentration was quadrupled relative to seawater.

As discussed in “Interfacial tension (IFT)”, diluting SW to the SW2d concentration caused a reduction in the concentration of active cations in the aqueous solution. The decrease in cation concentration can weaken the competitive interactions between cations and CTAB molecules in the enlarged EDL, leading to an increased affinity of CTAB for the negatively charged clay surface. It can be concluded that a significant proportion of CTAB molecules can remain adsorbed onto the clay surface, rather than being dispersed in the solution. This phenomenon explains the elevated zeta potential observed in the SW2d solution. Due to electrostatic interactions, CTAB can adsorb onto negatively charged surfaces, such as clay particles. This adsorption can increase the surface charge density of the particles, leading to increases in zeta potential79,80.

When the zeta potential of clay was measured in (SW2d.4Mg) and (SW2d.4Ca) solutions, the increased concentration of divalent cations in the aqueous solution intensified the competition between CTAB molecules and cations at the water-rock interface. Additionally, the EDL was significantly compressed in these solutions. As a result, CTAB molecules were unable to effectively adsorb onto the negatively charged clay surface, leading to a reduction in the zeta potential (magnitude), as represented in Fig. 4. It is important to note that the decrease in zeta potential was more pronounced in the (SW2d.4Mg) solution compared to the (SW2d.4Ca) solution. This difference could be attributed to the higher charge density and smaller ionic radius of magnesium ions compared to calcium ions81, which enables magnesium to more effectively occupy the space within the EDL, further limiting the adsorption of CTAB molecules25,82.

Figure 4 depicts that in (SW2d.2Mg) and (SW2d.2Ca) solutions, the ζ clay exhibited a more positive shift, with values of 37.6 mV and 38.9 mV, respectively. They approached the zeta potential value observed in the SW sample, compared to the values measured in (SW2d.4Mg) and (SW2d.4Ca) solutions. This shift can be attributed to the increased adsorption of CTAB molecules onto the clay surface under these conditions. As the Mg2+ and Ca2+ ions concentration decreases, the EDL can develop, and the competitive interactions between ions and CTAB molecules are reduced. In the (SW2d.2Ca) solution, competitive interactions are reduced relative to the (SW2d.2Mg) solution. This facilitated the formation of more extensive CTA+-clay hemi-micelles, resulting in a more positive zeta potential for clay in this system77.

In contrast to the zeta potential observed in solutions containing divalent cations, the zeta potential of clay in sulfate-enriched solutions exhibited a significant reduction compared to that in seawater, as can be seen in Fig. 4. This observation can be attributed to the reduced interaction between CTAB and clay surface83. More specifically, while the reduction of sulfate concentration can provide sufficient space for the expansion of the electrical double layer, the negatively charged sulfate ions likely compete with the clay surface for interaction with the positively charged CTAB cations84. This competition effectively limited the accumulation of CTAB onto the clay surface, thereby reducing the overall interaction between CTAB and the clay particles. This interaction limited the availability of CTAB molecules to adsorb onto the negatively charged clay surface85,86. It is worth mentioning that CTAB adsorption on clay particles would neutralize some of the negative charges, potentially increasing the net negative charge on the particles86,87. Since both the clay particles and sulfate ions carry a negative charge, there was minimal electrostatic interaction between them. This effect was more pronounced in the (SW2d.4SO4) (ζ = 31.2 mV) solution than in the (SW2d.2SO4) (ζ = 32.7 mV) solution, leading to a greater reduction in the zeta potential of clay in the (SW2d.4SO4) sample.

Emulsion analysis

The presence of CTAB, clay particles, and ions plays a critical role in modifying the properties of the liquid-liquid interface, particularly in emulsion systems. As highlighted in prior studies, the combined influence of ions and clay particles can lead to the formation of highly stable emulsions, which pose significant challenges in the petroleum industry78,88. It is well-established that the electrostatic fields generated by divalent ions or the surface charges of clay particles promote the aggregation and deposition of asphaltene molecules at the interface6. However, the introduction of CTAB can alter the stability of such emulsions89. To explore this effect, the stability of emulsions was systematically evaluated in this study. Emulsion stability was assessed by quantifying the percentage of separated water, oil, and solids in centrifuge tubes, as well as by analyzing the phase separation time of the emulsions. These results are illustrated in Figs. 5 and 6, providing a comprehensive view of the emulsion stability under varying conditions.

Fig. 5
figure 5

The phase separation times for various emulsion samples.

Fig. 6
figure 6

Emulsion compounds after separation through the centrifugation process.

Figure 5 illustrates that the emulsions underwent phase separation within a range of 25 to 70 min. The emulsion formed with (SW2d.2SO4) exhibited the longest phase separation time (70 min), while the emulsion generated by (SW2d.4Mg) highlighted the shortest phase separation time (25 min) for oil-water and solid separation. Also, Fig. 6 depicts that the highest amount of solids and oil was separated from the emulsion formed with SW2d and (SW2d.2SO4), respectively. When seawater was enriched with divalent cations and sulfate, the weight% of solids and oil exhibited notable changes.

As discussed in Sects. “Interfacial tension (IFT)” and “Zeta (ζ) potential”, diluting seawater to the SW2d concentration expands the EDL, allowing CTAB molecules to participate more effectively in emulsion formation. This promotes significant migration of oil components to the interface compared to untreated seawater. Additionally, the presence of divalent cations (Ca2+ and Mg2+) in SW2d activates the cation bridging mechanism, as described in Eqs. 812. This mechanism is well-documented in the literature, where divalent cations form complexes with asphaltenes and clay particles, enhancing their interfacial activity6,20,76. It can be deduced that more asphaltene-ion and asphaltene-ion-clay complexes are formed within the expanded EDL of SW2d than SW sample. These mechanisms drive the migration of clay and asphaltene particles to the interface, resulting in a substantial increase in the solid percentage in the SW2d sample. The increased interactions of oil components at the interface, driven by these mechanisms, lead to a greater concentration of oil involved in interfacial phenomena compared to SW, (SW2d.4Ca), and (SW2d.4Mg). This creates electrostatic repulsion between the asphaltene-ion-clay, asphaltene-ion, and oil-CTA+-clay complexes on the surface. Thus, these interactions could result in the formation of more stable emulsions, consistent with previous research findings6,25,76,90.

Based on Fig. 5, the phase separation times for emulsions formed by SW, SW2d, (SW2d.4Ca), and (SW2d.4Mg) were 50 min, 55 min, 30 min, and 25 min, respectively. SW2d exhibited the longest separation time, demonstrating its ability to form a more stable emulsion owing to the higher presence of CTAB molecules in the emulsion phase.

In the emulsion formed with SW, however, the diminished thickness of the EDL restricted the presence of CTAB molecules relative to SW2d, reducing electrostatic repulsion at the interface. As a result, the emulsion stability in SW was lower than in SW2d, aligning with the results shown in Fig. 5. As elaborated in the zeta potential section, the heightened competition between cations and CTAB molecules in SW hindered CTAB’s interaction with the clay surface. This limited the involvement of clay particles in the emulsion phase, resulting in a lower solid content, as evidenced in Fig. 6.

In the emulsion-(SW2d.4Mg) and emulsion-(SW2d.4Ca), as depicted in Fig. 6, the oil percentages are approximately 32.43% and 33.69%, while the solid percentages are around 7.68% and 7.54%, respectively. This was attributed to the charge density of cations. Regarding the higher charge density of magnesium compared to calcium, a greater concentration of magnesium ions can be incorporated into the emulsion phase. This enhanced the affinity of polar oil components for the interface through the complexation mechanism and clay particles through the cation bridge interaction, resulting in a higher separation of solids in the (SW2d.4Mg) system25. However, CTAB molecules negligibly participated in the emulsion phase formed by (SW2d.4Mg) compared to (SW2d.4Ca), as Mg2+ molecules exhibit stronger competition than Ca2+ molecules for interfacial sites, as discussed in Sect. 3.1 and 3.2. The increased CTAB concentration enhanced the migration of oil components toward the calcium-rich seawater interface. This interfacial accumulation of oil, combined with calcium’s bridging and complexing effects, promoted the formation of more stable emulsions. This is consistent with established literature demonstrating that higher oil content in the emulsion phase correlates with enhanced emulsion stability56. On the other hand, the emulsion-(SW2d.4Mg) represented the lowest stability among the tested formulations, as evidenced by its rapid phase separation time of 25 min (Fig. 5).

Additionally, reducing the concentration of calcium and magnesium cations in the smart water resulted in a higher amount of separated oil compared to the (SW2d.4Mg) and (SW2d.4Ca) samples. This can be attributed to the expansion of the EDL caused by the decrease in salinity. Lower salinity could result in the presence of CTAB molecules at the interface and, in turn, promote stronger interactions with the oil phase components considerably23,28,57. This effect was more pronounced for calcium owing to its lower charge density compared to magnesium. Moreover, clay particles contribute to interfacial interactions, facilitating the formation of more asphaltene-ion-clay complexes. Hence, the emulsion formed with (SW2d.2Ca) exhibited greater stability than that formed with (SW2d.2Mg).

In contrast to seawater enriched with magnesium and calcium, sulfate-rich seawater formed the most stable emulsion. This stability was further exacerbated when the sulfate concentration weakened from (SW2d.4SO4) to (SW2d.2SO4). The higher sulfate concentration significantly compressed the EDL, reducing the presence of CTAB molecules at the interface.

More interestingly, sulfate ions, asphaltenes, and clay particles all carry negative charges, the cationic bridging mechanism was considerably less effective in (SW2d.4SO4) compared to (SW2d.2SO4). Nevertheless, the interaction between CTAB with clay particles can form oil-CTA+-clay complexes. These interactions were more pronounced in the emulsion formed with (SW2d.4SO4), causing the enhanced accumulation of oil components at the interface. It can be concluded that the percentage of solids and oil separated from the (SW2d.2SO4) emulsion was higher than that from (SW2d.4SO4), the electrostatic repulsion between the droplets prevented coalescence, and a more stable emulsion was generated9,75,91. The emulsion separation time corroborates these findings, which are also in agreement with the IFT and zeta potential results.

It is worth mentioning that the emulsification of trapped oil following smart water flooding plays a crucial role in enhancing oil recovery by lowering the IFT value and mobilizing trapped oil92,93. The results indicate that (SW2d.2SO4) generates a highly stable emulsion with reduced solid content compared to other samples, making it effective for improving residual oil recovery.

Fourier-transform infrared (FTIR)

Various polar components of crude oil, including asphaltenes, can migrate toward the interface, influencing emulsion behavior. In addition, non-polar compounds may interact with CTAB molecules at the interface, leading to changes in their concentration within the oil phase. Distinguishing these functional groups is crucial for understanding the interfacial mechanisms governing emulsion formation during smart water flooding, particularly in the presence of clay particles and CTAB molecules. The FTIR spectroscopy technique precisely identifies polar and non-polar functional groups61,94. In this study, FTIR spectroscopy was employed to analyze crude and aged oil samples. The results are shown in Fig. 7.

Fig. 7
figure 7

The FTIR spectra results for crude and aged oil samples.

As illustrated in Fig. 7, the FTIR transmission spectra of crude and aged oils were compared. The FTIR spectra revealed five main peaks, which are the same in all samples and their transmission just changed, and no new peak appeared or was removed. Peaks 1 and 2, observed at 2725–2735 cm− 1 and 2950–2970 cm− 1, were attributed to HC = O (carboxylic acid) and C-H axial stretching, respectively60,95. Peak 3, located at 1450–1480 cm− 1, relates to the stretching vibrations of CH3 groups. Peak 4, at 1350–1380 cm− 1, was associated with the asymmetric stretching of methyl groups. Peak 5, appearing at approximately 710–870 cm− 1, is indicative of aromatic ring vibration, the peak at 3060 cm− 1 is characteristic of aromatic C-H stretching22,60.

A detailed analysis of the results revealed that the peaks at 3000–3100 cm− 1 and 1580–1630 cm− 1 correspond to C-H stretching and C = C stretching in aromatic ring structures, respectively6. The peaks observed at 2935 ± 5 cm− 1 and 2965 ± 5 cm− 1 correspond to the symmetric stretching of CH3 bonds and the asymmetric stretching of CH3 bonds, respectively, both characteristic of alkane groups60. The presence of these peaks confirms the existence of aliphatic chains in the crude oil. Figure 7 illustrates the FTIR spectra of all oil samples within the 2800–2970 cm− 1 range, showing these peaks with relatively low intensity. The characteristic peaks, along with their associated functional groups and potential bonds, are summarized in Table 4.

Table 4 The bonds and functional groups for crude and aged oil samples.

The findings reported in Fig. 7 can be accurately assessed using the indices outlined in Sect. 2.7. These quantitative indices are essential for facilitating comparisons of FTIR spectra across different aged oil samples and crude oil. Various indices, as described in Eq. 14 through 17, correspond to a range of functional groups and can be utilized for this analytical process6,22,60. “A” corresponds to the peak area of the bonds in the FTIR spectra.

$$\:ALI\left(Aliphatic\:Index\right)=\frac{{A}_{1460}+{A}_{1376}}{{A}_{1600}+{A}_{1460}+{A}_{1376}+{A}_{1030}+{A}_{864}+{A}_{814}+{A}_{724}+{A}_{743}+{A}_{2953}+{A}_{2923}+{A}_{2862}}$$
(14)
$$\:LC\:\left(Long\:Chain\right)\:index=\frac{{A}_{724}}{{A}_{1460}+{A}_{1376}}$$
(15)
$$\:Polar\:aromatic\:\left(PA\right)\:index=\frac{{A}_{3100-3450}}{{A}_{1500-1650}}$$
(16)
$$\:ARO\:\left(\text{A}\text{r}\text{o}\text{m}\text{a}\text{t}\text{i}\text{c}\text{i}\text{t}\text{y}\right)index=\frac{{A}_{1600}}{{A}_{743}+{A}_{724}+{A}_{814}}$$
(17)
Table 5 The value of the ALI, PA, LC, ARO, and AS=O indices.

According to Table 5, the change in the LC index was relatively constant in oil contacted with seawater enriched with divalent ions. However, the LC index values for aged oil-SW2d, aged oil-(SW2d.2SO4), and aged oil-(SW2d.4SO4) were 0.284, 0.233, and 0.260, respectively, showing significant variations compared to other oils. As defined by Eq. 14 and Table 5, this index reflects the presence of non-polar components in the oil. Thus, its decrease suggests a reduction in non-polar components in the aged oils. Regarding the results acquired in “Emulsion analysis”, the higher concentration of CTAB molecules in sulfate-containing emulsions facilitated the participation of non-polar oil components and CTAB in interfacial reactions, as observed in these samples. Consistent with previous research23,57,96, an increase in CTAB molecules enhances the affinity of non-polar components for accumulation at the interface, as evidenced in the emulsion formed with (SW2d.2SO4). This phenomenon also lead to a reduction in the adsorption of polar asphaltenes molecules on the clay surfaces97.

The PA index represents polar aromatic groups, and the ARO index corresponds to aromatic rings in components of the oil phase, such as asphaltene molecules60. These molecular characteristics - polarity and aromaticity - collectively govern asphaltene stability, with their relative proportions determining aggregation propensity in emulsion phase98. Therefore, a reduction in peak area indicates a lower concentration of polar and unstable poly-aromatic compounds, including asphaltene, in the aged oil bulk.

The ARO index, measured at 0.565 in crude oil, declined to between 0.308 and 0.410 in aged oils exposed to cation-rich seawaters. Table 5. represents that the PA and ARO indices were lower for aged oil-(SW2d.2Mg), aged oil-(SW2d.2Ca), aged oil-(SW2d.4Mg), and aged oil-(SW2d.4Ca) compared to sulfate-rich seawater and aged oil-SW2d samples. The largest decrease in the ARO and PA indices occurred in aged oil-(SW2d.4Mg), driven by the activation of cationic bridging and asphaltene-ion complexes mechanisms. This indicates that highly polar asphaltene molecules migrated to the emulsion phase, reducing their concentration in the oil phase.

It is important to note that the concentration of polar components in aged oil-SW2d (PA = 0.585, aged oil-(SW2d.2SO4) (PA = 0.682), and aged oil-(SW2d.4SO4) (PA = 0.627) also showed a slight decline, as reported in Table 5. This was related to the inability of polar and heavy components of oil, such as asphaltene molecules, which carry negative charges, to interact with clays or sulfates at the fluid-fluid interface, causing them to remain in the oil phase. Meanwhile, non-polar components were more likely to react with the non-polar chains of CTAB at the interface, as indicated by the LC index.

The ALI is associated with aliphatic compounds in oil, and alteration in this index indicates a reduction in aliphatic components. Significantly aliphatic groups are attributed to alkane chains, with their carbon numbers determined by the long-chain index. Nonetheless, sulfoxides, which are highly polar sulfur compounds found in crude oil, are attached to aliphatic branches, polarizing certain aliphatic groups, including those in asphaltene60. Therefore, a decrease in both the AS=O and ALI indices can be attributed to the adsorption of asphaltene molecules with higher aliphatic groups at the interface, which are mainly polarized by the S = O stretch.

The ALI index and AS=O values for aged oils range from 0.196 to 0.332 and 0.483 to 0.670, respectively. For oils contacted with seawater enriched with 4Mg, 4Ca, and 4SO4, the ALI index and S = O stretching peak area decrease as follows: aged oil-(SW2d.4SO4) (ALI = 0.309, AS=O = 0.656) > aged oil-(SW2d.4Ca) (ALI = 0.222, AS=O = 0.514) > aged oil-(SW2d.4Mg) (ALI = 0.186, AS=O = 0.483), as given in Table 5. A similar trend was observed when the concentrations of Mg2+, Ca2+, and SO42− were reduced. These changes are primarily as a consequence of the migration of polar and heavy asphaltene compounds from the oil phase toward the interface, while non-polar components remained in the oil bulk. This phenomenon was more pronounced in seawater enriched with magnesium, owing to complexation and cationic bridging mechanisms.

Based on the results from Sect. 3.3, among all ion-enriched solutions, magnesium-enriched water produced the highest solid content, indicating significant clay participation in interfacial phenomena. Additionally, as shown in Sect. 3.1, the highest interfacial tension was observed in (SW2d.4Mg), demonstarting a reduced presence of CTAB molecules in the emulsion phase. Hence, magnesium enhanced the contribution of clay and asphaltene at the interface through cationic bridging and complexation mechanisms, increasing the affinity of sulfoxide-polarized asphaltene molecules for the interface while leaving less-polar components in the oil bulk. These findings are consistent with the calculated PA, ARO, and LC indices.

Contact angle

The contact angle of the rock was measured in various solutions to better understand the synergistic effect of ion-tuned water and CTAB molecules on the rock surface and their impact on wettability alteration. Each experiment was repeated three times to ensure reproducibility. Figure 8 presents time-lapse images documenting the wettability alteration process, and Fig. 9 displays the corresponding averaged quantitative results.

Fig. 8
figure 8

Temporal changes in oil droplet contact angle during wettability assessment.

Fig. 9
figure 9

The contact angle results for various solutions after 30 days of exposure.

As shown in Fig. 9, the changes in contact angle for seawater enriched with active cations followed this order: (SW2d.4Mg) > (SW2d.4Ca) > (SW2d.2Mg) > (SW2d.2Ca). Moreover, when sulfate was used and seawater was diluted (SW2d), the contact angles reached 31°, 34°, and 35.5° for (SW2d.2SO4), (SW2d.4SO4), and SW2d, respectively.

As discussed in the previous sections, when the sulfate concentration in seawater was altered, CTAB molecules exhibited a greater tendency to accumulate at the interface. These molecules could approach the rock surface, detaching adherent oil and dissolving it in the aqueous phase57,99. This phenomenon became more pronounced when the sulfate concentration was reduced to (SW2d.2SO4), as the participation of CTAB molecules increases. The results of the LC index indicate the most significant decrease in less polar components of the aged oil in the (SW2d.2SO4) solution, confirming enhanced interactions between CTAB molecules and oil at the interface32. This demonstrates the optimal performance of CTAB in wettability alteration.

According to the PA, ARO, and ALI indices, polar asphaltenes have a stronger tendency to accumulate at the interface, where they interact with magnesium and calcium cations through complexation mechanisms. This cause substantial competition for CTAB molecules at the interface, reducing their ability to adsorb and transport oil to the aqueous phase and diminishing their impact on wettability alteration. Figure 9 demonstrates that the contact angle for (SW2d.4Mg) is the highest. Magnesium’s higher charge density allowed its components to occupy more interfacial space, significantly restricting the aggregation of CTAB molecules.

Another point to be noted is that SW and SW2d were more effective in reducing the contact angle than magnesium- and calcium-enriched seawaters. In the SW solution, the sulfate concentration was higher than in (SW2d.4Mg) and (SW2d.4Ca), which enhanced the migration of CTAB molecules to the interface. On the other hand, diluting seawater to SW2d reduced the contact angle, attributed to the lower cation concentration and the increased space available for CTAB molecules at the interface. These findings are consistent with the results obtained in previous sections.

Conclusions

The goal of this experimental research was to examine the combined effects of ion-tuned water, CTAB, and clay on emulsions and oil behavior. Increasing emulsion stability can facilitate the recovery of trapped oil and enhance overall oil recovery. A variety of experimental tests were performed to analyze oil behavior in the presence of synergistic interactions among brine, CTAB, and clay particles. Furthermore, the emulsion and aged oil were studied to understand the synergistic impact of ion-tuned water, CTAB, and clay on the emulsion phase. The experimental results led to the following conclusions:

  1. 1.

    According to the IFT test results, it was observed that regardless of active ion concentration in the smart water phases, seawater containing divalent sulfate anions considerably reduced IFT, while smart water created by divalent magnesium and calcium cations increased interfacial tension. This behavior is attributed to the reduced presence of CTAB molecules at the oil-water interface in magnesium- and calcium-enriched solutions and the increased presence of CTAB molecules at the oil-water interface in sulfate-enriched solutions.

  2. 2.

    In sulfate-tuned waters, the zeta potential of clay particles was less positive than in other aqueous phases as a consequence of the decrease in the concentration of cations in the aqueous phase. Conversely, in cation-rich seawater, SW, and SW2d solutions, the competition between CTAB and cations for interaction with the clay surface led to a more positive zeta potential, especially in the SW2d solution.

  3. 3.

    The stability of the emulsions increased when sulfate-rich seawater was used, as evidenced by the emulsion separation time and the mass of oil in the emulsion phase. Due to the reduction in asphaltene-ion and asphaltene-ion-clay complexes in sulfate-containing emulsions, the amount of solids was significantly lower compared to other emulsions.

  4. 4.

    As indicated by the FTIR indices, polar asphaltenes demonstrate stronger interactions with cations, whereas non-polar components interact with CTAB molecules in the emulsion phase. The inclusion of sulfate ions in brine solutions intensifies the interaction between CTAB and non-polar oil compounds, especially (SW2d.2SO4).

  5. 5.

    The (SW2d.2SO4) solution exhibited the lowest contact angle, reflecting a higher concentration of CTAB molecules at the fluid-rock interface and substantial improvements in wettability alteration.

  6. 6.

    The synergistic interaction of CTAB molecules, clay particles, and sulfate-enriched seawater achieved maximum emulsion stability and minimal solids in the emulsion phase, the IFT, and contact angle. These outcomes are crucial for enhancing trapped oil recovery and provide substantial advantages to the oil industry.