Introduction

Sandstone oil reservoirs are recognized as a strategic subsurface energy resource in the global oil market and are found in various regions worldwide1. These reservoirs often contain significant amounts of residual oil after primary extraction, necessitating the use of enhanced oil recovery (EOR) techniques. Methods such as gas or chemical injection are frequently employed to extract the remaining oil, significantly improving recovery efficiency2,3,4,5,6. However, a major challenge in sandstone reservoirs is reservoir heterogeneity, which can substantially impact the effectiveness of oil recovery processes7,8. During oil production, the presence of high-permeability zones in the sandstone reservoir often leads to water channeling, reducing volumetric sweep efficiency. This issue results in non-uniform fluid distribution within the reservoir, adversely affecting extraction efficiency9,10,11.

The term of reservoir conformance refers to the degree to which the injected fluid can uniformly displace hydrocarbons across the reservoir and direct them toward the production well12. Thus, conformance control encompasses any technique designed to enhance hydrocarbon movement from the reservoir to the production well, particularly in areas where fluid flow is more challenging. Minimizing water production is a crucial step in improving oil recovery efficiency, as excessive and premature water production not only shortens the well’s productive lifespan but also increases the cost of handling produced water13,14. This issue presents a significant economic challenge for oil companies. Controlling excessive water and gas production can enhance profitability by preventing the bypassing of oil due to injected fluids15. To address these challenges, different methods for controlling conformance in oil reservoirs have been introduced16,17,18. Among them, one of the most effective techniques for improving conformance in oil reservoirs is surfactant-based foam injection, which is recognized as a promising method in improving oil recovery (IOR) processes19,20,21. The main advantage of foam over other injection methods is its ability to foam the gas in situ, which can overcome the challenges associated with gas-based injection methods22,23. Foam injection can provide high potential to enhance macroscopic sweep efficiency and microscopic displacement efficiency by increasing effective viscosity, blocking high-permeability zones, redirecting fluid flow, and reducing capillary forces due to surfactant presence24,25,26. In high-permeability layers, foam can exhibit reduced mobility, effectively restricting flow in these zones and directing it towards low-permeability regions. Despite its advantages, foam stability in reservoir conditions remains a critical challenge in utilizing foam for conformance control27. Factors such as oil presence and high salinity can destabilize the foam structure20,28. Foam stability is essential for successful conformance control, as it determines the effectiveness of foam in blocking unwanted fluid flow in porous media29,30.

The presence of salt ions in brine reduces the interfacial potential between the liquid and gas phases, weakening the repulsive forces between foam layers. This promotes film thinning and accelerates liquid drainage, ultimately leading to foam destabilization31. The ionic interactions between foaming agents and salt can have varying effects on foam stability, either enhancing or reducing its stability32. Additionally, the presence of oil in porous media negatively affects foam stability by decreasing the ability of the surfactant solution to generate stable foam33. Thus, understanding foam flow dynamics in porous media is crucial for the success of advanced oil recovery techniques and effective conformance control34. Core flooding experiments are commonly used to provide macroscopic information of foam flow, such as pressure variations and gas/liquid saturation profiles. However, the geometric complexity of core samples makes direct observation of foam flow at the microscopic scale challenging. Imaging techniques such as computed tomography scanning and nuclear magnetic resonance spectroscopy have been utilized35,36, but these methods generally lack the ability to provide high-resolution dynamic images to address the pore-scale events37. In this context, micromodels serve as a powerful tool for a more detailed investigation of conformance control mechanisms and also water blockage at the microscale34. The use of micromodels in this study aims to provide mechanistic insights into the foam flow behavior within porous media. Several studies have explored foam flow behavior for conformance control and oil production enhancement. Multiple field trials using CO₂-generated foam for conformance control have been successfully conducted. For example, the foam pilot implemented in the Salt Creek field in Wyoming demonstrated that foam injection resulted in over 25,000 barrels of additional oil recovery and a 22% reduction in gas injection requirements38. Similarly, successful field trials in heterogeneous carbonate reservoirs in West Texas have shown significant improvements in conformance control39. Another field trial conducted in the Cupiagua oil field in Colombia yielded positive results in terms of pressure maintenance and oil production enhancement40. Laboratory investigations have shown that foam can effectively block high-permeability zones, redirecting fluid flow toward low-permeability regions, thereby improving microscopic displacement efficiency41. Wang et al. conducted experiments in sandpacks and micromodels, revealing that uniform, dense, and fine-textured foam exhibited stronger blocking capabilities42. However, Friedman and Jensen demonstrated that oil saturation exceeding 20% significantly reduces foam stability43. Bello et al. reported foam stability using sodium alpha-olefin sulfonate surfactant at different salinity levels. The results indicated that foam stability increases only at low salinity, while foam stability decreases when the salt concentration exceeds a certain value44. Le et al. investigated foam stability under dynamic conditions with sodium chloride salinity ranging from 5% to 25% by weight. In this study, Atomeen was used as the foaming agent. Their findings showed that the resulting foam exhibited better stability at higher salinity levels45. Although high salinity generally reduces foam stability, in some cases, ionic interactions between foaming agents and salt can influence foam stability under high-salinity conditions. While elevated salinity typically diminishes foam stability, specific ionic interactions between surfactants and salts may enhance foam performance under high-salinity environments.

While the previously reported field and laboratory studies highlighted the potential applications of foam for conformance control, they also underscore the need for a deeper understanding of the factors that limit foam effectiveness under varying reservoir conditions. Despite the significant progress made in understanding foam behavior for conformance control, critical gaps remain regarding the influence of heterogeneity, salinity, and residual oil on foam stability and its flow dynamics. Addressing these gaps, the present study aims to provide a mechanistic insight into foam performance within a two-layer heterogeneous micromodel system that allows for cross-flow between layers. This setup aims to mimic realistic reservoir conditions with distinct permeability contrasts, enabling a detailed investigation of foam’s ability to redirect injected fluids from high-permeability zones to low-permeability regions. To assess the combined effects of salinity and residual oil on foam stability, foam injection experiments were conducted at salinity levels of 5,000 ppm and 35,000 ppm both in the absence and presence of waterflooded residual oil. The experimental data, complemented by microscopic flow visualization, provided an in-depth understanding of the key mechanisms influencing conformance control by foam in a two-layer heterogeneous system.

Materials and methods

Design of a dual-layer micromodel with permeability contrast

A heterogeneous two-layer micromodel with a permeability contrast (a two-fold difference) and hydraulic connectivity was designed to accurately investigate the dominant flow mechanisms during foam injection process. As depicted in Fig. 1, the micromodel structure consists of a heterogeneous dual-layer system with precise dimensions: 3.2 cm in height, 8.12 cm in length, and a channel depth of 0.02 cm, exhibiting an overall porosity of approximately 48%. The entire fabrication process, illustrated in Fig. 2, was meticulously followed to ensure consistency, minimize experimental variability, and enhance the reproducibility of results.

Fig. 1
figure 1

Schematic representation of the designed micromodel used in this study.

Fig. 2
figure 2

Schematic diagram of the fabrication process for the designed micromodel.

Materials and procedures

In this study, the foaming agent solution of sodium dodecyl sulfate (SDS) at the concentration of 0.33 wt% was prepared in brine with salinity of 35,000 ppm and 5,000 ppm sodium chloride. To facilitate micromodel imaging, brine solution and kerosene (the oil phase) were dyed using methylene blue and Sudan red, respectively. Air was used as the gas phase throughout the experiments. To ensure that the dyes did not affect the behavior of the foam agent, preliminary tests such as surface tension measurements were conducted. Also, each micromodel experiment was performed once under identical operating conditions.

The schematic of the experimental setup is shown in Fig. 3. This setup was designed to investigate the simultaneous injection of gas and foaming agent in a two-layered micromodel. In this setup, two syringe pumps were used for fluid injection: one for injecting liquid phase and the other for injecting gas phase. These two fluids were mixed through a T-shaped connector before entering the micromodel. To accurately capture the flow process and fluid saturation distribution within the micromodel, a uniform light source was placed beneath the micromodel. This uniform illumination enhances image contrast and improves the accuracy of image processing. A fixed digital camera was positioned above the model to automatically capture images at predetermined time intervals. These images were then transferred to a computer, where they were analyzed using image processing techniques. In addition to counting foam bubbles, oil recovery was also quantified from the captured images using ImageJ software.

Fig. 3
figure 3

Schematic of the micromodel setup used in this study.

Experimental design

In this study, micromodel experiments were conducted under ambient conditions within a horizontal flow system. The objective of these experiments was to investigate the performance of foam flow for conformance control and to evaluate the role of cross-flow in a two-layered heterogeneous system. To achieve this goal, six injection scenarios were designed in which foam with a constant quality was injected in the presence or absence of waterflooded residual oil and at different salinity levels. Table 1 gives a summary of all experiments performed in this study. The first two experiments were defined as the baseline, in which gas and surfactant solution were co-injected without any prior surfactant injection (no surfactant preflush). These scenarios were carried out in the absence of oil, under two different salinity levels (35,000 ppm and 5,000 ppm), to evaluate the foam flow behavior without surfactant preflush. The remaining four experiments involved surfactant preflush prior to foam injection. These scenarios were also conducted both with and without waterflooded residual oil, and at the salinity of 5,000 and 35,000 ppm. It is noteworthy that in all oil-present experiments, the inlet region of the micromodel was considered oil-free and was used as the in-situ foam generator chamber.

Table 1 Summary of all experiments performed in this study to investigate foam performance for conformance control.

Results

Foam injection into water-saturated heterogeneous porous media

In this section, the behavior of foam flow in a water-saturated porous media was investigated using a two-layer heterogeneous micromodel at two salinity levels (5,000 and 35,000 ppm). Foam injection was performed by simultaneously injecting SDS solution and air, and micromodel images were captured at different time intervals (4, 8, 12, 24 min, and the final time) (Fig. 4). At 35,000 ppm salinity (Fig. 4, a to e), the SDS-stabilized foam tends to advance through the high-permeability layer after 4 min. However, the foam bubbles formed at this salinity were mostly large and uneven, merging quickly. This phenomenon, caused by the bursting of thin foam films (lamellae) and bubble coalescence, led to foam instability. Accordingly, the SDS-stabilized foam at 35,000 ppm salinity was unable to control the gas front effectively, and the gas and surfactant solution moved almost separately through the porous medium, without forming an efficient foam for flow control. After 8 min, the weak foam primarily traversed the high-permeability layer and failed to divert into the low-permeability layer. This trend continued until 12 min, leaving the low-permeability layer almost untouched. However, after 24 min, the SDS foam became further stabilized in particular near the inlet section and then moved into both layers. At the end of the test (final time), the SDS foam covered the entire of micromodel, but due to its initial low stability, weak conformance between the two layers was observed. At 5,000 ppm salinity (Fig. 4, f to j), the SDS foam started advancing through the high-permeability layer after 4 min. In contrast to the higher salinity, it demonstrated better stability from the outset. By 8 min, the SDS foam advanced simultaneously in both high-permeability and low-permeability layers, indicating improved conformance control. After 12 min, the advancing foam front showed more advancement in high permeable layer, but it still directed fluid flow toward low permeable layer as well. After 24 min, the SDS foam provided better conformance, and by the final time, it covered the entire of the micromodel. These results demonstrated that at lower salinity, the SDS foam exhibited better and more uniform fluid distribution.

Fig. 4
figure 4

Micromodel images of foam flow behavior at two different salinity levels (images "a to e" at 35,000 ppm salinity, and images "f to j" at 5,000 ppm salinity) at different time intervals.

The above results indicated that salinity plays a significant role in foam stability and its performance in conformance control. At 35,000 ppm salinity, the high salt concentration reduced the surface potential at the gas-liquid interface, which weakened the repulsive forces between foam lamellae and, consequently, decreased foam stability. In contrast, at 5,000 ppm salinity, the salt concentration was not high enough to severely affect foam stability. This allowed the foam to remain more stable from the beginning and to more effectively direct the flow toward low permeable section. Thus, one can infer that the resulting conformance control in such heterogeneous media depends on the foam’s initial stability. At high salinity condition, the low initial foam stability led to the formation of flow channel in the high-permeability layer, which limited fluid movement into the low-permeability layer. At lower salinity, greater foam stability enabled more uniform fluid distribution and improved displacement efficiency. Although the foam ultimately covered the entire porous medium in both cases, the quality of conformance at 35,000 ppm salinity was significantly lower. These findings suggest that high salinity poses a fundamental challenge for using foam in conformance control, as lower foam stability reduces its ability to block high-permeability zones and direct fluid toward low-permeability layers. Conversely, at 5,000 ppm salinity, foam demonstrated better performance in improving conformance and fluid displacement. These observations are consistent with the results of Bello et al.44, who reported that increasing salinity reduced foam stability for anionic surfactants. In contrast, Le et al.45 observed improved foam stability at high salinity when using a different, cationic foaming agent, indicating that the salinity effect is strongly surfactant-dependent and influenced by specific ion–surfactant interactions. To improve foam performance under high-salinity conditions, pre-injecting the surfactant solution can be considered as an effective strategy. This approach can enhance foam stability during the foam injection process by satisfying the surfactant coverage at the rock surface. According to adsorption principles, in the absence of surfactant preflush, part of surfactant molecules may adsorb onto the rock surface, thereby reducing its effective concentration in the aqueous phase for foam generation. Conversely, when the rock surface is pre-saturated with surfactant solution prior to foam injection, a larger fraction of the surfactant molecules remains active in foam generation, leading to improved foam stability. This hypothesis will be examined in the following section through complementary pore-scale insights.

Foam injection into SDS-saturated heterogeneous porous media

In this section, foam injection was performed into the micromodel pre-saturated with SDS solution. The images in Fig. 5 (a to e) showed foam injection at 35,000 ppm salinity into the surfactant-saturated environment. As the co-injection of gas and SDS solution began, the resulting foam front started advancing through the high-permeability layer (after 4 min). With continued injection, the SDS foam spread into both layers, establishing appropriate conformance (8 min). After 12 min, the leading edge of the foam front, which contained larger bubbles and was considered weaker foam, primarily advanced through the high-permeability layer, causing a reduction in conformance. Further foam injection till 24 min led to filling of high-permeability layer by foam and then diverting flow toward the low-permeability layer, ultimately covering the entire micromodel. Comparing the images in Fig. 4 (a to e) with those in Fig. 5 (a to e) demonstrated that the presence of surfactant preflush before foam injection resulted in more stable foam and improved conformance between low and high permeable layers. In contrast, without surfactant preflush, the foam flow behavior resembled that of weak foam or gas-like flow, and consequently weaker conformance between two layers. Similarly, in Fig. 5 (f to j), foam injection at 5,000 ppm salinity into the surfactant-saturated environment is shown. In this case, the foam initially advanced through the high-permeability layer (after 4 min) and then spread into both layers (at 8 min). As injection continued (till 12 and 24 min), a stable front formed, establishing good conformance in fluid movement, and eventually covered the entire environment. Foam injection in the presence of surfactant preflush increased the foam viscosity and thus more flow diversion toward the low-permeability layer, eventually resulting in good conformance between two layers. However, even in the absence of surfactant preflush and low salinity condition (Fig. 4, f to j), the SDS foam demonstrated satisfactory performance in controlling fluid movement and achieving conformance control. These results indicated that at such low salinity level SDS foam could provide a reasonable capability to control fluid flow the absence and presence of surfactant preflush.

Fig. 5
figure 5

Micromodel images of foam flow behavior with surfactant preflush at two different salinity levels (images "a to e" at 35,000 ppm salinity, images "f to j" at 5,000 ppm salinity) at different time intervals.

Foam injection in the presence of waterflooded residual oil saturation

Figure 6 shows SDS foam injection in the presence of waterflooded residual oil at two different salinity levels. Initially, the micromodel was saturated with NaCl brine (either 35,000 or 5,000 ppm) and then flushed by oil (kerosene). Then, brine was injected at the flow rate of 0.002 mL/min until no oil was observed at the outlet. Then, by increasing the flow rate to 0.02 mL/min (representing the bump flow condition), brine was further injected into the micromodel to establish the residual oil saturation condition. Then, the SDS solution was injected as the preflush into the micromodel before foam injection. Figure 6 (a to e) shows foam injection at the salinity of 35,000 ppm. Upon initiation of gas and surfactant co-injection, the SDS foam was generated in the inlet section (foam chamber part) and then it advanced mainly through the high-permeability layer. When the SDS foam came in contact with the oil phase, foam films (lamellae) collapsed, forming weaker foam with larger bubbles, which leads to foam advancing primarily through the high-permeability layer (see images at 4 and 8 min). After displacing a portion of the waterflooded residual oil from the inlet region, more stable foam propagation was observed. However, the leading edge of the foam front, being more mobile than the rear, continued to advance through the high-permeability layer, resulting in weak conformance between two layers (see image at 12 min). As the stable foam front progressed further, more fluid diversion toward the low-permeability layer was observed. After 24 min, the conformance between two layers was significantly improved by the SDS foam, eventually the SDS foam covered the entire micromodel. Figure 6 (f to j) shows foam injection at 5,000 ppm salinity. At the start of foam injection, the SDS foam front propagates through the high-permeability layer (see image at 4 min). Although at this salinity the SDS foam became weakened upon contact with oil, it successfully maintained its advancement and established acceptable conformance control between two layers (see image after 8 min). Over time, the advancing foam front, which consists of larger bubbles, kept moving through the high-permeability layer (image at 12 and 24 min). Nevertheless, conformance control between two layers was maintained, and ultimately, the SDS foam occupied the micromodel.

Fig. 6
figure 6

Micromodel images of foam flow behavior in the presence of waterflooded residual oil at two different salinity levels (images "a to e" at 35,000 ppm salinity, images "f to j" at 5,000 ppm salinity) at different time intervals.

Discussion

In this section, we examined the comparative analysis of SDS foam structure and its stability, as well as the interaction between foam and emulsions under different salinity conditions. By analyzing the pore-scale images, foam flow dynamics, and oil recovery performance, we aim to demonstrate how salinity affects foam flow dynamics and emulsion interactions. These findings provide a deeper understanding of the mechanisms underlying improved conformance control and oil displacement in a layered porous media.

Effect of salinity on the SDS foam structure under bulk and porous media conditions

Figure 7 shows microscopic images of the SDS foam generated under bulk conditions at two salinity levels (35,000 ppm and 5,000 ppm), along with the corresponding bubble number as a quantitative indicator of foamability. At high salinity, the foam exhibited a highly heterogeneous structure with a broad range of bubble sizes. This pronounced polydispersity stems from the destabilizing effect of high ionic strength on foam films. High salt concentrations compress the electrical double layer, reducing electrostatic repulsion and film elasticity, which accelerates bubble coalescence46,47,48,49. Furthermore, the broad size distribution can be attributed to enhanced Ostwald ripening, where gas diffuses from smaller, high-pressure bubbles to larger, low-pressure ones, promoting the growth of larger bubbles at the expense of smaller ones50,51,52.

Fig. 7
figure 7

Microscopic images of SDS bulk foam generated in the absence of oil at two salinity levels (5,000 ppm and 35,000 ppm). (a) Microscopic images captured at a fixed magnification, (b) Binary images describing SDS foam bubble structure, (c) Comparison of bubble number at two different salinity levels 5,000 ppm (right) and 35,000 ppm (left).

In contrast, at low salinity, the SDS foam exhibited a much more homogeneous structure with uniform bubble diameters. The reduced ionic strength preserves a strong electrostatic repulsion between surfactant-laden interfaces, effectively preventing coalescence and suppressing Ostwald ripening, thereby maintaining a consistent bubble size distribution53,54. Consequently, the bubble number at low salinity is higher and the size distribution is more uniform compared to the heterogeneous, lower-density foam formed at high salinity.

The structural trends observed in bulk were also replicated within the porous medium. Figure 8 shows pore-scale images of SDS foam at the two salinity levels, highlighting substantial differences in morphology and distribution. Under low-salinity conditions, the foam displayed a markedly higher bubble density with smaller diameters, leading to a homogeneous dispersion throughout the pore network. Conversely, high-salinity conditions resulted in a pronounced reduction in bubble number and the formation of larger bubbles, often several times the size of their low-salinity counterparts. This shift is attributed to the same destabilizing effects of high ionic strength on liquid films, which promoted bubble coalescence and degraded the foam stability within the porous network55,56,57,58.

Fig. 8
figure 8

(a) Microscopic images of the SDS foam through an oil-free porous media under two salinity levels (5,000 ppm and 35,000 ppm), (b) Pore-scale images of the SDS foam bubbles, (c) Comparison of bubble number at two different salinity levels 5,000 ppm (right) and 35,000 ppm (left).

Effect of salinity on foam and emulsion performance in conformance control

Figure 9 compares foam flow behavior at two salinity levels (35,000 ppm and 5,000 ppm) at a specific time, both in the presence and absence of waterflooded residual oil. As expected, foam stability decreases at high salinity (35,000 ppm) in the presence of residual oil due to their combined detrimental effects. However, the resulting flow behavior reveals a more complex picture. The advancing foam front, while less stable, initially moves through the high-permeability layer but later achieves significant conformance control with better interlayer coordination compared to the case without residual oil. In fact, in the absence of residual oil, conformance control is weaker and interlayer coordination decreases.

Fig. 9
figure 9

Effect of salinity on foam and emulsion performance in conformance control at two salinity levels (35,000 ppm and 5,000 ppm) at a specific time, and in the presence and absence of waterflooded residual oil. The red arrow indicates the vertical distance between the foam fronts in the high-permeability (top) and low-permeability (bottom) layers, serving as a quantitative measure of interlayer conformance control. Shorter arrows reflect better conformance due to synchronized front advancement.

These counterintuitive results are governed by the formation and properties of oil-in-water emulsions, as shown in Fig. 10. The images indicate a clear difference in emulsion droplet size between the two salinity levels. At high salinity, larger emulsion droplets with a broader size distribution are formed. This occurs because the high concentration of salt ions compresses the electrical double layer, a phenomenon known as the ionic shielding effect. This shielding decreases the electrostatic repulsion among the anionic head-groups of SDS molecules, which diminishes their effective surface activity and reduces adsorption at the oil-water interface. Consequently, the surfactant’s ability to lower interfacial tension is impaired, leading to the formation of larger, less stable droplets that are more prone to coalescence17,59.

This emulsion behavior directly influences SDS foam flow dynamics in the porous medium. At high salinity, the larger emulsion droplets accumulate alongside the foam, temporarily blocking high-permeability pathways, particularly at pore throats. As these large droplets are forced through constrictions, they deform and generate an additional capillary resistance. This phenomenon, known as the Jamin effect, restricts flow through the high-permeability section and diverts the injected fluid toward the lower-permeability zone. This mechanism is consistent with the pore-scale observations in Fig. 9, where enhanced conformance control is seen in the presence of residual oil. The process is dynamic; as foam injection continues and local pressure builds, the trapped emulsions deform and are released, after which the cycle of blockage and release can repeat. This recurring Jamin effect ensures sustained, long-term conformance control.

In contrast, the situation at low salinity (5,000 ppm) is different. The lower ion concentration results in a less compressed electrical double layer, increasing the repulsion among SDS head-groups and promoting more effective surfactant adsorption at the oil-water interface. This results in a greater reduction of interfacial tension and the formation of smaller, more uniform, and highly stable emulsion droplets, as shown in Fig. 10 (right image). These small droplets are less capable of blocking high-permeability zones and can easily pass through the wider pore throats. Therefore, a significant Jamin effect cannot occur in the high-permeability layer. Instead, the oil phase is transported as small, stable droplets through the high-permeability layer. Some of these droplets may enter and become trapped in the narrower pore throats of the low-permeability layer, potentially causing an unwanted Jamin effect that could impair flow in the low-permeability section.

Although both the SDS foam and the emulsions are more stable under low-salinity conditions, the system lacks the synergistic interaction required for effective diversion. The small emulsion droplets are ineffective at generating the necessary blockages in the high-permeability paths. Consequently, conformance control at low salinity reverts to being primarily governed by the foam itself, which proves less effective at achieving the targeted diversion seen in the high-salinity case.

The above results demonstrate that foam stability alone is an insufficient metric for evaluating the effectiveness of a diversion process. Fluid conformance, a key factor in improving displacement efficiency, is critically influenced by the size and stability of emulsion droplets. At high salinity, larger droplets and the dynamic Jamin effect work in concert with the foam to guide fluid flow and enhance conformance control. At low salinity, smaller, more stable droplets fail to block high-permeability pathways, leading to reduced overall conformance. Therefore, optimizing injection salinity is a key control parameter, as it governs not only foam stability but also the emulsion properties and their synergistic interaction with foam, ultimately determining the success of the combined foam-emulsion injection process for conformance control.

Fig. 10
figure 10

In situ emulsion formation in the presence of the SDS surfactant at two salinity levels: 5,000 ppm (right) and 35,000 ppm (left). At the lower salinity, emulsion droplets are smaller, more uniform, and more stable (less prone to coalescence), whereas at the higher salinity, droplets are larger and less stable, with a greater tendency to coalesce.

Effect of salinity on foam and emulsion performance in enhanced oil recovery

The interplay between foam and emulsions, governed by salinity, directly determines the effectiveness of enhanced oil recovery in layered porous media. Figure 11 illustrates foam flow behavior at two salinity levels in the presence of waterflooded residual oil at the end of foam injection stage. While foam in both cases diverts flow into the low-permeability layer and facilitates oil production, a key difference is evident: a greater amount of residual oil remains in the low-permeability layer at low salinity.

This lower recovery is a direct consequence of emulsion morphology. At low salinity, the formation of fine, highly stable emulsions leads to blockage within the narrow pore throats of the low-permeability layer. This unwanted Jamin effect reduces production efficiency and ultimately traps more oil. In contrast, the coarser, less stable emulsions generated at high salinity, prone to coalescence, promote the release and reconnection of the oil phase, facilitating its mobilization and resulting in a higher recovery rate.

Figure 12 quantifies this performance gap, showing a final recovery of 88.02% at high salinity compared to 78.81% at low salinity. This difference, a 9.20% point improvement (equivalent to an 11.7% relative increase), conclusively demonstrates the detrimental impact of stable fine emulsions in narrow pores and the greater displacement efficiency of coarser emulsions. Furthermore, the pore-throat blockage at low salinity risks significant operational challenges, including elevated pressure buildup and reduced injectivity. This indicates that salinity control is a critical parameter not only for maximizing recovery but also for ensuring long-term flow assurance and the effectiveness of subsequent displacement stages in layered reservoirs.

Fig. 11
figure 11

Effect of salinity on foam and emulsion performance in the oil displacement at two salinity levels (35,000 ppm and 5,000 ppm) at the end of foam injection stage. The red circles indicate the Jamin effect at the pore-scale through layered micromodel.

Fig. 12
figure 12

Final oil recovery factor during foam injection at two salinity levels 5,000 ppm (right) and 35,000 ppm (left).

Conclusions

This pore-scale study demonstrated that the performance of foam in heterogeneous porous media is governed not merely by foam stability, but by the complex interplay between foam and in-situ generated emulsions, which is critically controlled by brine salinity. Using a layered micromodel and sodium dodecyl sulfate (SDS) surfactant, we visualized and mechanistically explained how salinity tailors this interaction to control flow diversion. The key findings are:

  • Brine salinity directly controlled foam morphology: low salinity (5,000 ppm) generated a stable, fine-textured foam, while high salinity (35,000 ppm) produced a coarse, less stable foam due to the compression of the electrical double layer.

  • The ultimate conformance control was governed not by foam stability alone, but by the complex interplay between the foam and in-situ generated emulsions.

  • Under high-salinity conditions in the presence of waterflooded residual oil, the formation of large oil-in-water emulsion droplets created a dynamic Jamin effect. This mechanism caused effective temporary blockage in high-permeability pathways, forcing flow diversion into the low-permeability layer and improving sweep efficiency.

  • In contrast, low-salinity conditions with oil generated smaller, more stable emulsions that failed to provide sufficient flow resistance in the high-permeability layer.

  • Integrating all experiments revealed that salinity dictates a functional transition from a foam-viscosity-dominated regime at low salinity to an emulsion-diversion-dominated regime at high salinity. This transition stated that tuning salinity is essential for balancing these contributions to control overall diversion and displacement efficiency in layered systems.

Collectively, these findings establish that optimizing injection salinity is a crucial design parameter for foam processes. It provides a practical method for controlling both foam texture and emulsion droplet size, thereby activating the synergistic blocking mechanism needed for effective conformance control in heterogeneous systems. These insights are vital for designing efficient foam-assisted enhanced oil recovery and gas-based storage strategies in saline, heterogeneous reservoirs. Future work should focus on quantifying these effects at the core scale and developing predictive models that incorporate this newly identified foam-emulsion synergy.