Introduction

The successful filtercake removal near the wellbore in horizontal oil–gas wells has been a critical issue in drilling and well completion operations as failure to effectively remove it would result to and reduction of permeability hence low as reported in various field cases (Leschi et al. 2006; Ding et al. 2006; Almond et al. 1995). In addition, the existing filtercake might lead to poor cementing job by preventing the cement material to effectively react with rock material of formation to form a strong bond at the interface between cement sheath and formation hence leading to poor zonal isolation. More than 8,000 wells in the Gulf of Mexico and 18,000 of the wells in Alberta, Canada have been exhibiting have leak related problem (Federal 2010; Agbasimalo and Radonjic 2014; Kiran et al. 2017). Moreover, during acidizing treatment of formation to make the formation more productive, if oil-based contaminants enter the formation interval and are not removed therefrom the effectiveness of the acidizing treatment can be substantially reduced (Yuan et al. 2002; Chan et al. 1998). Thus, the cost of remedial action for any of the above-mentioned failures can be substantial in both onshore and offshore well operations.

A number of cleaning methods particularly chemical methods such as enzymes, acids, oxidizers, or their hybrids, have been used (Nasr-El-Din and Samuel 2007; Nasr-El-Dinet al. 2004, 2005; Malone et al. 2000; Zain and Sharma 1999; Wang et al. 2001). However, due to the presence of a number of factors prior to its removal, there are still many challenges in cleaning oil-based filtercake from the wellbore surface. Oxidizing agents and acidic materials are very reactive, whereby they may lead to improper cleaning of filtercake residue, since minerals such as illites in sandstone reservoir are highly sensitive to acids. This would cause formation damage near the wellbore. Enzymes have difficulty degrading starch and xanthan polymers under certain conditions (heterogeneous formations with high permeability streaks), necessitating large volumes of treatment fluid. Furthermore, enzyme has a difficult time dissolving calcium carbonate particle (Al-Otaibi et al. 2004a, b).

In addition, a number of challenges are still existing in cleaning of oil-based filtercake from the wellbore surface due to the presence of a number of factors prior to its removal. One of the factors is wettability whereby the filtercake near-wellbore should be changed from oil-wet phase to water-wet phase. This is accomplished by incorporating a large number of volumes of mutual solvents, and surfactant in a supporting fluid. As a result, the oil well drilling and completion operations by using oil-based fluid tend to be time consuming and expensive compared to the conventional treatment. (Khalid et al. 2009).

A drilling fluid, according to the American Petroleum Institute (API), is any fluid that is circulated in the borehole to aid in the execution of a cost-effective and efficient drilling operation that results in a stable and gauged borehole to the targeted depth with minimum possible damage to prospective formations (Gandhi and Sarkar 2016). They are divided into two categories: water-based drilling fluids and oil-based drilling fluids. They act as coolant, lubricant, cleaner, carrier, formation pressure control, and enhance the function of the drill string and tools in the hole (Drilling Muds 2015). Oil-based fluids are thought to be used in formation where water-based fluid (WBFs) cannot withstand certain environmental conditions, such as high temperatures where WBF may degrade thermally (Fontenot and Simpson 1998).

During drilling operations, the filtrate from the drilling fluids enters the formation due to differential pressure between the wellbore and formation rock. As a result, less solid particulates collect at the surface of the wellbore surface, forming a filtercake ranging in size from 2 to 5 mm (Mushtaq 2013). However, the typical rational real thickness of oil-based and water-based filtercake should be between 0.5 and 1.5 mm (Ladva et al. 2004, 2005). For less stable wellbores, this acts as a wellbore stabilizer, preventing the formation fluids from entering the wellbore (Rostami and Nasr-EI-Din 2010).

Upon well completion operations, the penetrated filtercake at the near-wellbore formation tends to alter the near-well flow properties, resulting in significantly reduced well productivity. Furthermore, the presence of such filtercake prevents the formation of strong bonds between cement and rock, resulting in weak points where failure can occur (Lichinga et al. 2020). The most important practice during oil–gas well drilling and completion designs for optimizing oilfield development is the effective cleanup of oil-based filtercake from the wellbore (Al-Otaibi et al. 2010).

When designing specific treatment fluids, several factors must be considered. These include the type of drilling fluid (mud), salinity, temperature, and reservoir, as well as compatibility between treatment fluid, formation fluid and drilling fluids, as incompatibility could result in deposition/precipitation, resulting in formation/reservoir damage (Moore et al. 1996; Malone et al. 2000) and lowered well productivity.

The interaction between oily phase and alkaline is of utmost important in the cleaning process of oily-phase attacked materials. It is extensively believed that the effect of alkaline on decreasing the interfacial tension (IFT) is in the sense that alkaline tends to react with the polar components in oil to form surface-active agents (Guo et al. 2005). These agents adsorb at the interface to lower the oil/water (O/W) IFT. The dynamic characters of IFT between oil and water are caused by the reaction and diffusion of different reagents at the interface, which can reflect the roles of different species at the O/W interface to some extent.

Some research works (Chan et al. 1981, 1982; Chatterjee et al. 1998; Touhami et al. 19982001; Rudin and Wasan 1992a, b) proposed that the dynamic behavior is caused by a time-dependent concentration of surface-active species at the interface. Acids in the oil diffuse to the O/W interface and react with alkaline species in the aqueous phase to produce in situ surface-active species, which lower the IFT. As the reaction proceeds, more surface-active species accumulate at the interface and, hence, decreasing IFT. The ionized acids may also form soap with sodium ions in the aqueous phase at high ionic strength, which may enhance the transfer of the surfactant from the aqueous phase to oily-phase (Taylor et al. 1996) and result in increasing the IFT.

Surfactants (surface-active agents) are organic compounds with two parts: a hydrophobic tail (Burnham et al. 2013) and a hydrophilic head. Surfactants are classified into four types according to the charge on the hydrophilic head. As shown in Fig. 1, these charges are non-ionic (without any charge), anionic, cationic, and zwitterionic (carrying both negative and positive charges) (Kume et al. 2008). A surfactant’s tail group is frequently composed of a short polymer chain, a long hydrocarbon chain, or a fluorocarbon chain, whereas the head group is composed of moieties such as sulfates, sulfonates, polyoxyethylene chains, carboxylates, alcohols or quaternary ammonium salts. The presence of these components determines the surface-active agents’ amphiphilic nature. (Gbadamosi et al. 2019).

Fig. 1
figure 1

Structure of surfactant, cationic (B), anionic (C), non-ionic (A), and zwitterionic (D)

For the coeffect of alkaline and surfactant, it can reduce the IFT of O/W to an ultralow level (Zhang et al. 2010). Some authors suggested that the synergistic effect resulting from both alkaline and surfactant reduces the IFT more effectively (Liu et al. 2005). According to Touhami et al. 1998, the combination of alkaline and surfactant reduced IFT more rapidly than alkaline alone whereby the time required to meet the minimum IFT for NaOH solution was longer than that for NaOH/surfactant mixtures. This means that IFT is lowered more significantly by chemical reaction than by adding ready-made surfactant below the critical micelle concentration (CMC); the dynamic IFT behavior is dampened by adding the surfactant above the CMC.

The selected nonionic surfactant (Alkyl polyglycosides (APG)) is a nonionic surfactant (Fig. 2), which is synthesized from the renewable raw materials such as plant starch and fatty alcohol from coconuts. Its significance stems from the fact that it is non-toxic, mild, safe, requires little stimulation, and is completely biodegradable (Sułek et al. 2013; El-Sukkary et al. 2008; Von Rybinski and Hill 1998). It has a high potential for development in a variety of fields, including the food industry, waste treatment, medicine, and cosmetics. In recent decades, the petroleum industry has been considering it as the environmentally compatible surfactant candidates for cleaning applications (Wei et al. 2020). This is because it still remains effective at relatively high temperatures, up to about 177 °C, as well as high salinity and harness conditions found in sea water and surface brines (Lichinga et al. 2019; Chan et al. 1998, 1991).

Fig. 2
figure 2

Structure of Alkyl Polyglycoside (APG)

The main objective of this study is to improve the oil-based filtercake removal at the wellbore second interface through chemical method whereby an environmentally friendly solution (KV-MA) containing Alkali (NaOH) and Non-ionic surfactant (Alkyl Polyglycoside). In this experiment, surfactant is aided by an alkali solution (NaOH) which tends to remove the filtercake by inducing the in situ surface-active agent within the cake after it has penetrated inside to react with organic acid material (Fig. 3) while leaving the surface water-wet. The effective removal of filtercake in the wellbore is of utmost important because it prepares the wellbore wall surface (formation) to strongly bind with the cement slurry material through hydration process during the cementing hence improving the bond strength along the interface to ensure the long-term zonal isolation, helps to effect acidizing treatment hence sustainable well productivity.

Fig. 3
figure 3

Chemical wellbore cleaning of a horizontal oil well. (Zhang et al. 2020)

Materials and methods

Materials

The experimental materials were taken from oilfields and some were prepared in the laboratory. They include Oil-Based Mud (1.52 g/cm3) from Jiaoshiba Oilfield (Well DND circulated oil-based drilling fluid) containing diesel oil as base oil at 50% and other additives such as weighting material, water, emulsifying agent (surfactant), KV-MA solution containing NaOH 20% wt, and Alkaly Polyglycosides 15% wt (C14–C16), Defoamer 0.1% wt (from Shandong Obot Petroleum Technology Co., Ltd. in China). Simulated wellbore (SWB) having porosity (18%) and permeability (140 × 10−3 μm2) were made in the laboratory by using available quartz sand, cement and water.

Instruments

The equipment which were used during the experiment were WDW Universal testing machine (Jinan Hensgrand Instrument Co., Ltd China), TG-3060A Constant Speed Agitator (Shenyang tiger petroleum equipment manufacturing co LTD), 600 Series Servo-hydraulic Test Machines (Novatiq Pte Ltd, Singapore), The liquid density meter—YM-2 (Qingdao Hisense optical communication co LTD, specialized factory), ZNN-D6 six kinds of speed rotary viscometer (Qingdao hisense optical communication co., ltd, China), Accurate Strengthen Electronic Stirrer (Changzhou Guo Hua Electrical Equipment Co., Ltd. in China), Atmospheric Pressure Curing Chamber, TG-1280 (Shenyang tiger petroleum equipment manufacturing co LTD), Fourier Transform Infrared (FTIR) (Nicolet instrument company, USA.) and JJ-I Accurate Strengthen Electronic Stirrer (Changzhou Guo Hua Electrical Equipment Co., Ltd. in China).

Methods

Preparation of simulated wellbore and filtercake

The simulated wellbore (SWBs) having 6.5 cm height and diameter of 3.3 cm were prepared by mixing quartz sand, cement and water according to Gu et al. (2015) as shown in Fig. 4. The SWBs were sealed on one side using glass plate with butter to simulate the oil-based filtercake. Oil-based mud was injected into the borehole until it reached its maximum volume and was kept there for 4 h before being poured out. Using a glass rod, the formed cake was scrapped off the borehole wall to obtain the required thickness set for this study which was 0.5 mm.

Fig. 4
figure 4

Simulated wellbore (SWB)

Preparation of KV-MA

The KV-MA (Fig. 5) is formulated by mixing up with sodium hydroxide (NaOH) and a non-ionic surfactant (APG-14–16) of 9.5 to 10.5 HLB at the concentration of 20 and 15% respectively. Furthermore, 0.3% retarder, 3% percent fluid loss agent, and 0.1%defoamer were added to a solution mixture, which was then heated to a specific temperature (55 to 60 °C) to create a uniform mixture.

Fig. 5
figure 5

Alkali-Surfactant Solution (KV-MA)

Rheological characteristics of KV-MA

Rheology is the study of how materials (especially liquids and soft matter) flow or deform under an applied force (Morris 2017). It is used to describe and assess the deformation and flow behavior of materials because solids and fluids that flow at different speeds can be deformed to some extent (Abraham et al. 2017). The shear viscosity of a fluid (μ) at a given shear rate γ is given by Eq. (1):

$${\upmu } = \frac{{\uptau }}{{\upgamma }}$$
(1)

where τ is the shear stress at the given shear rate. For Newtonian fluids μ is constant but for non-Newtonian fluids it varies with shear rate γ, thus, the viscosity computed at any given shear rate is commonly referred to as an ‘apparent’ or ‘effective’ viscosity’. Rotational Viscometer Model-35 (Fig. 7b) was used for determination of rheological properties of the KV-MA.

Apparent viscosity, shear stress (γ), shear rate (τ)

Generally, the correlation of 1 r/min (rpm) = 1.703 s−1 was used to get the shear rate values. The following Eq. (2) is used to directly calculate the apparent viscosity in mPa∙s or (cP) at various rotor speeds:

$${\upmu } = {\text{k}} \times {\text{f}} \times \frac{{\uptheta }}{{\upomega }}$$
(2)

In Eq. (2), k is the total instrument constant and f is the torsion spring factor while ω is the rotor speed (r/min). For the standard rotor-bob combination R1-B1, the value of k is 300 while for standard torsion spring F1, the value of f is 1. Therefore, the fluid viscosity in mPa·s is mathematically equivalent to the dial reading at 300 r/min of viscometer. The shear rate can directly be determined from dial reading by multiplying 0.51 depending on whether θ600 has been corrected.

Yield stress or point (YP) and plastic viscosity (PV)

The Yield Point (YP) and Plastic Viscosity (PV) variables are obtained directly from measured readings through the direct-indicating viscometer using the Bingham plastic model, without the use of graphical plots (Lichinga et al. 2020) as shown in Eqs. (3) and (4);

$$PV = \mu_{p} = \theta_{600} - \theta_{300}$$
(3)
$$YP = \tau_{o} = \theta_{300} - PV = 2\theta_{300} - \theta_{600}$$
(4)

the θ is the dial reading while numeric subscripts shows the rotor speed in r/min. Note PV is in mPa·s and YP in lb/100 ft2.

Determination of flow regime

A flow regime (flow pattern) is essentially a description of the flow structure, or the distribution of one fluid phase relative to another. The regime is determined by the fluid properties, the size of the conduit and the flow rates of the individual phases. The transition between laminar and turbulent flow in classic Newtonian pipe flow is widely reported to be a function of the dimensionless Reynolds number (Re). The classical definition of Re for the Newtonian fluids flowing in a pipe is

$$R_{e} = \frac{\rho \times V \times D}{\mu }$$
(5)

where ρ is the fluid density (lb/ft3), V is the average fluid velocity (ft/s), D is the diameter of the pipe (ft), and μ is the absolute viscosity (lb/100ft2). Using flow rate instead of the more general velocity in conventional US Oilfield units, this equation becomes, with conversion factors Eq. (6)

$$R_{e} = \frac{\rho \times Q}{{\mu \times D}} \times 378.92$$
(6)

where ρ is the fluid density (pounds per gallon), Q is the flow rate (gallons per minute), D is the diameter of the pipe or hole (in.), μ is the absolute/dynamic viscosity (centipoise) (Fann300 dial reading); and 378.92 is the conversion factor. For annular flow, the oilfield version of Reynolds becomes

$$R_{e} = \frac{{\rho \times Q \times \left( {d_{h} - d_{p} } \right)}}{{\mu \times \left( {d_{h}^{2} - d_{p}^{2} } \right)}} \times 378.92$$
(7)

where dh is the inside diameter of the hole or prior casing (in.) and dp is the outside diameter of the inner pipe (in.). According to a publication of the American Petroleum Institute (API13D), the annular flow Reynolds number should be calculated by substituting the difference between the hole diameter and the pipe diameter (hydraulic diameter) for the diameter of the pipe in the classic calculation (Ramsey 2019a, b). Thus, the Reynolds numbers for annular flow is finally given by Eq. 8 below;

$$R_{e} = \frac{\rho \times Q}{{\mu \times \left( {d_{h} + d_{p} } \right)}} \times 378.92$$
(8)

where the flow velocity v is in (ft/s), hole diameter, dh (inch), outside diameter of pipe dp (inch), density ρ (ppg), flow rate Q (gpm), apparent viscosity µ (cP).

Determination of wettability property

Wettability is a fundamental property of the interactions between the reservoir rock components and the pore filling fluids. Wettability is a controlling factor on the location of the reservoir fluids within its porous structure and upon the flow and subsequent distribution of fluids during the dynamic process of production (McPhee, 2015). The sessile drop method is measured by a contact angle goniometer (Fig. 6) using an optical subsystem to capture the profile of a pure liquid on a solid substrate changing.

Fig. 6
figure 6

Laboratory Contact angle goniometer

Cleaning efficiency test of KV-MA

The computational of cleaning efficiency is performed by using a Laboratory Accurate Electric Stirrer/Mixer (Fig. 7A). The SWB containing a simulated oil-based filtercake is set with spindle shaft and the designed KV-MA solution is heated at a temperature of 140°F–160°F to enhance chemical reactions for better cleaning performance. The cleaning efficiency is then calculated by Eq. (9) below; whereby weight of SWB smeared with oil-based filtercake before treated with KV-MA solution is (W1), weight of SWB smeared with oil-based filtercake after employing KV-MA (W2), and the weight of clean SWB is (W0).

$${\upvarepsilon } = \left( {\frac{{{\text{W}}_{1} - {\text{W}}_{2} }}{{{\text{W}}_{1} - {\text{W}}_{0} }}} \right) \times 100{\text{\% }}$$
(9)
Fig. 7
figure 7

Laboratory Accurate Electric Stirrer/Mixer (A) and Rotational Viscometer Model-35 (B) for determination of rheological properties of the KV-MA

Results and discussion

Rheological properties of KV-MA

Shear stress (γ) shear rate (τ) and apparent viscosity

The shear rate and shear stress were calculated by using the above Eqs. 1 and 2 as well as correlation of 1 r/min (rpm) = 1.703 s−1. The experimental data obtained are shown in Table 1 below.

Table 1 Viscosity Results for a KV-MA in relation to shear rate and shear stress

The apparent viscosity of the sample fluid tends to decrease greatly with increasing shear rate. On the other hand, viscosity is observed to increase as the shear rate decreases again (Fig. 8). As the shear rate affects the viscosity of the fluid, thus the shear rate can be used to predict the pumping pressure during the operations (design of the project) only at the shear rate at which it was measured (Caenn et al. 2017).

Fig. 8
figure 8

The influence of shear rate on viscosity of KV-MA solution

Plastic viscosity (PV) and yield stress or point (YP)

The calculated plastic viscosity and Yield Stress of KV-MA solution are given in Table 2 below,

Table 2 Results for Plastic Viscosity, Yield Point and Apparent Viscosity of KV-MA

The plastic viscosity of the designed KV-MA solution was found to be 2 mPa∙s. The chemical washes tend to cause a strong filtercake dispersion as they are efficient when they flow in a turbulent flow regime because of their low plastic viscosity values (Xu et al. 2019). The yield point of KV-MA was 6 lb/100 ft2 as resistance of initial flow of fluid or the stress required in order to move the fluid. This is can therefore be used to determine the pumping pressure of the fluid (KV-MA) during the drilling operations. In addition, it reflects the flow state of fluid during displacement process in the annulus.

Determination of flow regime

The Reynolds number were calculated by using given field data of density ρ (8.6 ppg), flow rate Q (315 gpm), hole or casing diameter, dh (5.5 in), outside diameter of pipe dp (8.65 in), apparent viscosity µa (8 cP) and Eq. 8 above and the results are given in Table 3,

Table 3 Results for Reynolds Number (Re) for the KV-MA

According to the results in Table 3, the Reynold number (Re) for the KV-MA was determined to be 9,068. Because Re is greater than 4000, the flow regime in the wellbore is turbulent. This type of flow facilitates the removal of the embedded in situ filtercake particles from the wellbore surface, thereby improving cleaning efficiency. During the drilling operations, advancing fluids such as KV-MA solution are required to be pumped turbulently to improve the efficiency of mud and filtercake removal while leaving the casing column and the surface of rock formation water-wet in order to improve the binding ability of the injected cement slurry (Blaz et al. 2017; Nelson 1990; McLean et al. 1967).

Determination of wettability property of KV-MA

In order to evaluate the wettability property of the designed alkali-surfactant solution (KV-MA) the contact angle was determined using the sessile water drop method through a contact angle goniometer. The two flat polished glass plates were thoroughly cleaned and treated on their surfaces with the oil-based filtercake and placed in a cell one after the other. The KV-MA solution was applied at the surface of one plate. A droplet of water was then deposited by a syringe and brought into contact with the oily-surface plate surface and allowed to age on the sample surface. A high-resolution camera captured the image which was then analyzed using image analysis software. For blank test, drop of water was injected to oily-surface and contact angle was measured by the same procedure.

When the drop of water touched the oil-wet surface which had not been treated with KV-MA solution, it did not spread evenly over the oily-wet surface (Fig. 9A), resulting in a contact angle of 91°. This indicates that the surface energy/surface tension at the interface of water and oily molecules is extremely high, and thus they cannot interact. When KV-MA solution was applied/injected, it was observed that the applied water drops spread evenly over the oily-phase (Fig. 9B), resulting in a 14° measure contact angle at that point. There are two mechanisms of wettability alteration by surfactant; the first is the removal of the oil-wet layer exposing the underlying originally water-wet surfaces (cationic), while the second is formation of a water-wet layer over the oil-wet layer (anionic) (Standnes et al. 2000). As a result, the KV-MA solution demonstrated the ability to consistently reverse an oil-wet phase to a water-wet phase as shown in Fig. 10a and b.

Fig. 9
figure 9

Water drop on untreated oily-wet surface (A), and Dispersed water on the treated oily-wet surface (B)

Fig. 10
figure 10

Oily-wet phase of oil-based filtercake (a) and Wettability reversal from oil-wet to water-wet by KV-MA solution (b)

The oily-phase film complicates the filtercake removal processes. Due to its chemical nature, oil tends to coat other filtercake composition such as weighting materials and act as a dissolution inhibitor during the cleaning stages (Mohamed et al. 2019; Elkatatny 2019). Wettability alteration of the oil-weighting additive water system is needed prior to treatment (Davidson et al. 2006). The resulted contact angle 14° reveals the surface has been turned to water-wet from oily-wet. This good water-wetting condition indicates that the filtercake can easily be removed from the wellbore wall surface paving the way to increase of permeability, that is allowing water molecules to penetrate in-between oil and solids surfaces, causing the oily particles to spontaneously repel from the hydrophilic solid surfaces. In addition, during the cementing job, the wall surface will be in a good condition to interact with cement slurry components making a complete hydration process which lead to improvement of bonding strength between cement sheath and formation interface.

Compatibility test o KV-MA

From the conducted experiments, it was observed that the designed KV-MA solution did not form any precipitates upon the interaction with the oil-based filtercake (Fig. 11 A&B); hence, the solution was found to be compatible with the oil-based filtercake.

Fig. 11
figure 11

KV-MA is cleaning wellbore (A), The chunky solution of fine filtercake particles after cleaning test (B) by using electric stirrer/mixer. (Compatibility test)

Cleaning efficiency test of KV-MA

The cleaning efficiency was computed using a Laboratory Accurate Electric Stirrer/Mixer (Fig. 7A), in which KV-MA solution was poured into the SWB borehole and waited for 2 min before being stirred continuously for 10 min at 2000 rpm before being poured out. The cleaning efficiency tests were obtained by using Eq. (9) above, and the efficiency was determined to be 86.9%, which is more effective for proper mud removal. Figure 11, depicts the mud removal efficiency test of the KV-MA to remove the oil-based filtercake and the results are shown in Table 4 below,

Table 4 Cleaning efficiency test results for KV-MA

Mechanism reaction of KV-MA

To simulate the filtercake along the wellbore, oil-based mud (drill-in fluid) consisted of diesel oil was used in the experiment. The designed KV-MA solution consisted of a non-ionic surfactant (APG) and alkali (NaOH) to aid the surfactant remove the oily based filtercake particulates on the wellbore surface simulated wellbore (Fig. 12).

Fig. 12
figure 12

Simulated wellbore surface before treatment (A) and Simulated wellbore surface after treatment with KV-MA solution (B)

The composition of KV-MA solution in the simulated wellbore interacted with oil-based filtercake particles, whereby alkali (NaOH) reacted with a part of naphthenic acid groups (as major component of diesel oil) available in the oily-based filtercake to yield additional in situ surfactant Fig. 12. The hydrophobic part of non-ionic surfactant (Alkyl-Polyglycoside) in KV-MA solution interacted with the similar part present in the oily based filtercake pulling them into the flowing alkalialkali-surfactant solution leading to the formation of the in the solution called Oil-in-water emulsion (Fig. 11B), indicating that the chunky, coarse or fine dispersion of oily-filtercake materials are incorporated into the alkali-surfactant solution. The hydration sphere of the surfactant adsorbed onto the wellbore surface prevents the re-buildup of the oily-filtercake along the wall surface particles.

The synergy between the surfactant and alkaline is turned out as follows: NaOH reacts with the polar components in the oil phase (Fig. 13) of the oil-based filtercake to produce ionized surface-active species; hence reducing the Interfacial Tension (IFT) to prolong the oily phase. Surfactant quickens the diffusion of ionized species from the interface to the bulk phase, and then the polar components underneath is exposed to NaOH; therefore, the reaction between NaOH and polar oily phase components can proceed to further reduce the IFT (Zhang et al. 2012).

Fig. 13
figure 13

Reaction of alkali with organic acid in oily based filtercake to form in situ surface-active agent (Lichinga et al. 2019)

The combination of alkaline and surfactant reduced IFT more rapidly than alkaline or surfactant alone whereby the time required to meet the minimum IFT for NaOH solution was longer than that for NaOH/surfactant mixtures (Touhami et al. 1998). This means that IFT is lowered more significantly by chemical reaction than by adding ready-made surfactant below the critical micelle concentration (CMC); the dynamic IFT behavior is dampened by adding the surfactant above the CMC. For the coeffect of alkaline and surfactant, it can reduce the IFT of O/W to an ultralow level (Zhang et al. 2010). Some authors suggested that the synergistic effect resulting from both alkaline and surfactant reduces the IFT more effectively (Liu et al. 2005).

The KV-MA solution contains a non-ionic surfactant (alkyl polygycoside) with a carbon number ranging from 14 to 16, presenting a suitable Hydrophile Lipophile Balance (HLB) of 9.5 to 10.5. As shown in Fig. 14, its hydrophobic part is drawn toward similar parts of the oily-phase molecules by Van der Waal Forces and adsorbs at the oily-phase surface by hydrogen bond (Zhang et al. 2002). In this case, a polar part of the surfactant (hydrophilic) attracts polar water molecules to the oily-phase surface, converting the surface from oil-wet (Fig. 10a) to water-wet (Fig. 10b), which is easily swept away.

Fig. 14
figure 14

Non-ionic surfactant molecules adsorb at oily-phase molecules by hydrogen bond

The alkyl polyglycoside (APG) surfactant as non-ionic in nature, tend to utilize its many hydroxyl groups in the polysaccharide chain to achieve hydrophilicity, in combination with alkali materials (Na+, OH) has effectively cleaned oil-based filtercake along the wellbore surface by lowering the surface tension. This means that the oil soluble portion (hydrophobic) of APG surfactant is controlled by the alkyl chain length varied from C14 to C16, whereby each saccharide group is typically equivalent to 5–7 ethylene oxide groups, and therefore is very effective in forming water-soluble properties to APG surfactant even at high salinity and hardness conditions such as found in seawater (Chan 1991).

The obtained low contact angle as a result of KV-MA solution, indicated that the surface is high wetting, which led to low surface tension and thus making the oil-based filtercake to be readily dissolved and emulsified by the KV-MA solution.

Conclusions

Based on the experimental results, the following firm conclusions are drawn;

  1. 1.

    The oil-based filtercake particles are mostly dispersed and water-wetted by KV-MA solution. The oil-based fluid is compatible with designed KV-MA solution since no precipitates were observed in the mixture solution

  2. 2.

    The KV-MA solution is an effective chemical with cleaning efficiency of 86.9%. This indicates that the solution can effectively clean the wellbore surface hence enhanced oil well productivity. The solution permeated into oily based filtercake material breaking and pulling them into the flowing alkali-surfactant solution leading to the formation of Oil-in-water emulsion, visualized as chunky, coarse or fine dispersion of oily-filtercake materials which are incorporated into the alkali-surfactant solution.

  3. 3.

    The resulted contact angle 14° reveals the surface has been turned to water-wet from oily-wet. This good water-wetting condition indicates that the filtercake can easily be removed from the wellbore wall surface paving the way to increase of permeability, that is allowing water molecules to penetrate in-between oil and solids surfaces, causing the oily particles to spontaneously repel from the hydrophilic solid surfaces.

  4. 4.

    The synergy between the surfactant and alkaline is turned out as NaOH reacts with the polar components in the oil phase of the oil-based filtercake to produce ionized surface-active species; hence reducing the Interfacial Tension (IFT) to prolong the oily phase. Surfactant quickens the diffusion of ionized species from the interface to the bulk phase, and then the polar components underneath is exposed to NaOH.

  5. 5.

    The results indicated that the KV-MA solution, prevailed a Reynold number of 9068. As the Reynold number is greater than 4000, this suggests that the flow regime in the annulus is turbulent. Advancing fluids such as KV-MA solution are required to be pumped turbulently to improve the efficiency of mud and filtercake removal while leaving the casing column and the surface of rock formation water-wet in order to improve the binding ability of the injected cement slurry.