Introduction

Surfactants formulated into the emulsifier additives, which are used to stabilize oil-based drilling fluids, and as wetting agents can change the wettability of water-wet sandstones to a preferentially oil-wet state. Changes in wettability caused by adsorption of surfactant molecules to pore surfaces could be part of formation damage (Solling et al., 2021) by altering the oil relative permeability (Kro) and residual oil saturation (Sor) of the reservoir invaded region near a producing well. In this case, an increase in the water cut could be observed just after the completion of the well. (Ibrahim et al., 2017) are considered that selecting the right composition of drilling fluid can be a key factor in minimizing formation damage and obtaining desired productivity index.

Research on reservoir formation damage mechanisms and their prevention is increasingly widespread (Civan, 2016; Mohammadi & Mahani, 2020) and must therefore be understood as a priority in order to guide the development and the design of reservoir protection measures (He, 2021).

According to Zhao et al (2019), the main formation damage mechanisms that could be expected in the field are fluid–fluid incompatibilities, rock-fluid incompatibilities, solids invasion, phase trapping or blocking, chemical adsorption or wettability alteration, fines migration, and biologic activity.

Several studies have been performed on the formation damage mechanisms by surfactant in oil-based muds (Bishop, 1997; Menezes, 1989; Civan, 2007; Xu et al., 2016; Hursan et al., 2018), and on the evaluation of the degree to which wettability alteration is affected by drilling fluid composition (Abdollah-Pour et al., 2016).

Most of these studies focused on the measurement of contact angles (Lei et al., 2017). Fluid displacement tests involving forced displacement and spontaneous imbibition have also been used to quantify wettability alteration caused by drilling fluids (Amott, 1959; Chen et al., 2006).

Result from core tests indicates that wettability alteration and permeability impairment can be influenced substantially by the type and concentration of surfactant in oil-based drilling fluid. Therefore, surfactant adsorption in oil reservoirs as a mechanism of formation damage is driven by various factors such as surface charge of reservoir, type of surfactant, temperature, pH and salinity of formation water (Kumar & Mandal, 2019).

Amirmoshiri et al (2020) mentioned that electrostatic attraction, van der Waals interactions between the nonpolar surfactant chains, hydrophobic tail−solid interactions, chemisorption, surface precipitation, hydrogen bonding, and adsorption via ion exchange are, however, the different mechanisms for surfactant adsorption on the rock surface. In addition, surfactant retention in porous media occurs according to three essential mechanisms: precipitation, adsorption and phase trapping (Belhaj et al., 2020).

In the literature, illustrating a curve between the amounts of adsorbate adsorbed on the adsorbent and the concentration represent isothermal model. During the last decade, a large variety of isotherm models such as Langmuir, Freundlich, Dubinin-Radushkevich, Temkin, Toth and various other isotherms (Al-Ghouti & Da’ana, 2020).

The purpose of the work described in this paper was to assess the effect of surfactant adsorption on petrophysical parameters as a mechanism of formation damage. Wettability and relative permeability changes at connate water saturation caused by oil-based mud emulsifiers have been measured. The experiments specifically investigate surfactant adsorption to pore surfaces of unconsolidated sandstones (drilling cutting samples were used). Initially, formulation of Versawet and Versacoat commercial emulsifier commonly used in oil-based drilling fluids in Berkine field was used to simulate invading mud filtrate. The amount of surfactant retained in unconsolidated sandstone samples after contacting emulsifier formulation was estimated from the adsorption study based on Langmuir isotherm. In later experiments, wettability and relative permeability changes induced by surfactant in prepared oil-based mud formulation were investigated through fabricated micromodels as a function of time. As results, the effect of commercial surfactant on the wettability and relative permeability of drilling cutting sandstone samples was obtained, and a novel mechanism of formation damage by emulsifiers in oil-based muds was established to assess the effect of surfactant adsorption on petrophysical parameters.

Materials and experimental methods

Drilling cutting

Experiments were carried out on drilling cutting as a porous medium from an Algerian oil reservoir in the Berkine region. Samples were taken from a depth of 4727 to 4732 m. The average porosity of samples is 17.54%.

Our choice focused for the drilling cuttings because they present similar characteristics and surface chemistry to sandstones reservoir rocks.

Samples preparation and cleaning

The American Petroleum Institute RP-40 standards were used as a guide (McPhee et al., 2015). The drilling cutting samples were first cleaned with toluene for 24 h and then were rinsed with distilled water to remove the residual fluid.

The cleaned samples were dried in a vacuum oven at 105 °C for one day to remove the used solvents in the cleaning process.

Drilling cuttings were powdered (crushed) with Fritsch Pulverisette 2 to obtain uniformly powdered samples. Then sieved with vibratory sieve shaker As 200 Control. After studying the grain size distributions of the powder, a fraction collected in the range of (0.1 − 0.5) mm was used in the experiments.

The results of the grain size analysis of powdered drilling cutting are presented in Fig. 1. The X-ray analysis of samples was performed by Seifert XRD 3003 TT X-ray diffraction system. The XRD pattern of the samples in the range of 10° to 60° for 2θ was measured to determine the mineralogical composition of samples. The X-ray diffractometer (Fig. 2) indicates that samples are mainly composed of quartz (71.9%), with some impurities that consist of dolomite (12.2%), calcite (2.5%) and clay minerals kaolinite (11%), chlorite (2.3%).

Fig.1
figure 1

Histogram representation of grain size distribution of powdered drilling cutting samples

Fig. 2
figure 2

The X-ray diffraction image of drilling cutting sample

Flame Photometer

Flame photometer analysis is that auxiliary measurement was performed to assess the calcium content in the drilling cutting samples used by Jenway Pfp7. 1 g of powdered sample was dissolved in HCL in a 50 ml volumetric flask. The standard curve of calcium concentration against intensity was plotted, from the recorded reading and the calibration graph, the samples concentration is 0.0655 g of calcium (6.55%).

Gasoil

The used oil is gasoil, which is acquired by Naftal Company. The properties of gasoil are shown in Table 1.

Table 1 Properties of gasoil (Bergane & Hammadi, 2020)

Surfactants

Two different commercial emulsifiers (surfactants) offered by MI-SWACO companies were used in our tests: Versacoat is a non-ionic surfactant that serves as an emulsifier and wetting agent. Versawet is a cationic surfactant (organic) that serves as a concentrated and powerful oil-wetting agent for oil-based mud. Table 2 presents chemical and physical properties of the used surfactants.

Table 2 Physical properties of Versacoat and Versawet

The infrared spectroscopic measurement of surfactants was obtained using an Agilent Technologies Carry 660-FTIR spectrometer at 30 °C. The spectrum was collected over the spectral range of 4000 − 400 cm−1. The IR spectrum of surfactants is shown in Fig. 3.

Fig. 3
figure 3

FTIR spectrum of surfactants a Versawet and b Versacoat

The wavenumbers at 1460.073 and 1460.369 cm−1 are attributed to the stretching vibrations of methylene scissoring vibrational. The wavenumbers at 2922.777, 2852.01, 2923.166 and 2854.054 cm−1 are attributed to the asymmetric and symmetric CH3/CH2 stretching vibrational frequencies, respectively (Viana et al., 2012).

The wavenumbers located at 1703.967 are attributed to ammonium amines quaternaries –NH2 (Kowalczyk, 2008) Fig. 3a.

The wavenumber at 1735.298, 2854.054 and 2923.166 cm−1 corresponds to carboxyl group (COOH) C–O and O–H, respectively Fig. 3b.

Brine

A sodium chloride was used to prepare synthetic brine solution. 320 g of NaCl was dissolved in 1000 ml of distilled water to obtain a saturated brine solution, which is used throughout all experiments.

Lime

It is a powder and an inorganic compound Ca (OH)2. It is used as a surfactant-activating agent and hydrophilic-lipophilic balance ‘HLB’ reducer to obtain reverse emulsion with a concentration of 19.92 g/l. Table 3 shows the property of used lime.

Table 3 Properties of used lime

Experimental procedures

In this work, experiments were performed in a micromodel (Fig. 4) involving, transfer vessels, cylindrical sample holder with approximately 65 mm length, 35 mm radius, outlet/input pressure gauge, thermometer and graduated cylinder to receive the fluid. The differential pressure was obtained based on direct reading of elevation.

Fig. 4
figure 4

Micromodel of experimental setup for the displacement tests (experiments were performed at 40 °C, 5.101 kPa)

Before running each test, the micromodel was cleaned to assure no oil is remained after previous run. Toluene and distilled water were injected into the micromodel for several cycles during the cleaning process;

Fluids formulation

In this study, we propose the formulation described in Table 4, and these formulations are prepared by successively adding the products under agitation (800 rpm) carried out by an AREC magnetic stirrer for 1 h at 25 °C, with a density of 0.850 g/cm3. When mixing the formulations, the following order of addition is followed:

  • Gasoil

  • Surfactant

  • Lime

Table 4 Formulation used in the experiment

Relatives permeability measurement

In this study, the steady state method is used to measure the oil − water relative permeability in the experiments. The steady state method is one of the desired methods in the literature and considered more accurate and reliable. (Nazari Moghaddam & Jamiolahmady, 2019).

The experiment is conducted at 40 °C, and under the pressure of 5.101 kPa in the micromodels (Fig. 4).

The key point of the experiment is to obtain the relative permeability curve after the reaction of the samples with the different formulation during 24 h.

The relative permeability experiment has the following steps:

The first step would be to saturate the sample 100% with brine to measure the absolute permeability.

Then, gasoil is injected to drain the brine out of the rock to reach the irreducible water saturation. (This condition represents the initial reservoir condition.)

After that, both gasoil and brine are injected simultaneously.

After the system reaches the steady state and the data are recorded, generalized Darcy’s law (Darcy’s law for single-phase fluid flow in porous media is extended to two-phase flow) is used to determine water–oil relative permeability according to Eqs. 1 and 2. The average saturation in the sample was calculated directly by the volumes of the injected and product fluids measured.

The empirical model of Darcy in horizontal flow is written:

$${{\rm Q}}_{o} = \frac{{{{\rm Kro}}{{\rm .K}}{{\rm .A}}}}{{\mu o{{\rm .L}}}}.\;\Delta {{\rm P}}_{{{\rm o}}}$$
(1)
$${{\rm Qw}} = \frac{{{{\rm Krw}}{{\rm .K}}{{\rm .A}}}}{{\mu w{{\rm .L}}}}.\;\Delta {{\rm P}}_{w}$$
(2)

where Qo is volumetric oil flow rate (cm3/s), Qw is volumetric water flow rate (cm3/s), Krw is relative permeability of water, Kro is relative permeability of oil, A is cross-section area of the sample (cm2), ΔPw is ΔP of water (atm), ΔPo is ΔP of oil (atm), L is sample length (cm), µw is water viscosity (atm/s), µo is oil viscosity (atm/s).K is the absolute permeability (D).

Wettability tests (Amott method)

The wettability index was evaluated by preparing 26 samples.

Experiments started with saturation of all porous media with saturated brine that was used throughout all experiments and then is flooded by gasoil until no more water is produced.

This process aims to establish initial condition of samples. Then, powdered samples in core holder were aged in the formulations prepared (VWF VCF WCF) at 40 °C for 24 h, 46 h, 72 h, 168 h and 720 h.

Finally, after aging, the following experimental protocol is adopted:

  • The samples were submerged in brine in Amott cells and the spontaneously produced oil was recorded after 20 h (volume V1 = gasoil spontaneously displaced by brine)

  • The brine is forced into the sample by injection at a constant rate (volume V2 = gasoil displaced by brine)

  • The sample is immersed into gasoil (volume V3 = brine spontaneously displaced by gasoil)

  • Then gasoil is forced into the samples by injection at a constant rate (volume V4 = water displaced by oil).

The Amott cell used for spontaneous imbibition (Fig. 5) is funnel-shaped lucite tubes calibrated so that the volume of fluid released can be read easily.

Fig. 5
figure 5

Schematic drawing of an Amott imbibition cell with PVC perforated sample holder fill (left) and empty (right)

The sample holders were made of PVC “polyvinyl chloride” for powder samples, then it was perforated from all sides and is placed at the middle of the lower part of Amott cell.

The Amott wettability index has been calculated according to Eq. 3:

$$WI = Iw - Io = \frac{V1}{{V1 + V2}} - \frac{V3}{{V3 + V4}}$$
(3)

where Io is the oil wettability index and Iw is the water wettability index.

Interfacial tension measuring

The drop-weight method is an accurate yet simple technique for determining surface tension (Lee et al., 2008; Butt et al., 2013). This method was fist time described by Tate in 1864 who formed an equation, which is now called the Tate’s law:

$${{\rm mg}} = 2\pi r\gamma$$
(4)

where m is the drop weight (to get a precise measure, this is done for a number of 15 drops and this number divides the total weight), g the acceleration of gravity, r is the external radius of the capillary, and γ is the surface tension of the liquid.

The surface tension with different concentrations of surfactants in the gasoil formulations was measured to plotting the calibration curve of Versawet and Versacaot (Fig. 6).

Fig. 6
figure 6

Calibration curve: surface tension plot of surfactants with varying concentration

Adsorption measurements

The adsorption study involves interaction of VCF and VWF formulations with powdered samples leading to loss of surfactant due to adsorption. It was conducted by mixing 1 g of powdered rock sample with 50 ml of gasoil formulation with different concentrations of the surfactants.

The solutions and powdered samples were aged for 24 h and then mixed at 30 °C. The floating liquid was collected after centrifugation for 15 min at 5000 rpm. The unknown concentration of surfactant in the supernatant solution was determined using the calibration curve shown in Fig. 6. The adsorption density was calculated using the initial and final bulk concentrations of surfactant as (Kumar & Mandal, 2019):

$$qe = \frac{{\left( {{{\rm Ci}} - {{\rm Ce}}} \right){{\rm V}}}}{{{\rm m}}}$$
(5)

where qe is the adsorption density (mg/g), Ci is the initial concentration of the surfactant (mg/l), Ce is the equilibrium concentration of the surfactant (mg/l), V is the volume of the surfactant solution (L) and m is the mass of the powdered sample (g).

The amount of surfactant adsorbed per gram of cutting was then calculated at different surfactant concentrations and a Langmuir isotherm was used to model the adsorption data. The equilibrium concentration of surfactant (Ce) and adsorption typographical error density of surfactant (\(qe\)) obtained after adsorption studies were fitted to the isotherm equation of the Langmuir model and it was transformed into its linear form Eq. 6. To assess the adsorption behaviour  of surfactants on the surfaces of drilling cuttings samples (Ayub et al., 2020).

$$\frac{1}{qe} = \frac{1}{{{{\rm KL}} .qmax }}.\frac{1}{{{{\rm Ce}}}} + \frac{1}{{{{\rm qmax}} }}$$
(6)

where qmax represents the maximum adsorption capacity (mg/g) and KL (l/mg) is the Langmuir's isotherm constant.

Results and discussion

Result of relative permeability measurements

It can be seen from the oil–water relative permeability curves shown in Fig. 7 that the relative permeability of brine increases rapidly, the relative permeability of gasoil decreases. The gasoil relative permeability has been low while the brine will have higher mobility when compared to gasoil.

Fig. 7
figure 7

Relative permeability as a function of the liquid saturation

The brine relative permeability end-point will be at a maximum of 0.75, and the crossover will occur at a water saturation of < 0.5.

According to (Craig, 1971), this scenario indicates that the system is oil-wet, and the relative permeability curves act in the opposite manner when compared to water-wet systems. The gasoil occupies smaller flow channels (trapped in the centers of the small pore) and coats the walls of the larger ones, causing a higher brine relative permeability.

The brine, on the other hand, will fill the large pores, giving low flow conductance to gasoil.

The relative permeability is dependent upon both the fluid saturation and the distribution of the various fluids in the interstices of the porous network. The interaction of Versacoat and Versawet surfactants in the formulation contributing to the permeability impairments observed by the interactions with the porous medium and the adsorption to pore wails altering the wettability of the system. This alteration is explained at the pore scale by the Jamin effect, phase trapping of oil due to snap-off, and bypassing by the wetting phase (see Fig. 8) (Liu et al., 2021). This is why the oil reservoir will be oil production poorly (productivity indexes drop), with the rapid increase in water cut, and high residual oil saturation, after formation damage by oil-based mud.

Fig. 8
figure 8

Figure illustrated phase trapping of oil due to bypassing effects in pores that divide into two branches with different diameters (a), snap-off effect occurs in pores with large diameter (b) and Jamin effect (c)

Wettability index measurement

The results displayed in Table 5 are also plotted in Fig. 9 (Amott wettability index, against aging time) for better visualization of the data. Results clearly show that the Amott wettability index decries with time from 0.354 to 0.010 for the samples aged with VWF,—0.040 for VCF and—0.402 for WCF. In the initial state, the Amott index is 0.300 this is demonstrate that all the samples tested departed from a water-wet condition.

Table 5 Results from the AMOTT wettability test
Fig. 9
figure 9

Amott wettability index against time

All the systems with aging times of 720 h or less gave Amott wettability indexes less than 0.3. Systems with Amott indexes of—0.402 are oil-wet and in the range of—0.04, 0.01 are usually classified as intermediate to neutral oil-wet. After the aged with surfactant, the wettability of all samples was altered by the adsorption of polar compounds of surfactants molecules on the surface of samples forming a hydrophobic film (surfactant adsorption on drilling cuttings surface) due to various attractions such as electrostatic pairing between the charged head of surfactant and charged surface. For the mixture of surfactants WCF, the alterations are more than individual surfactants VWF and VCF. This difference in surfactant behavior reflects a difference in the adsorption sites of these surfactants in a porous medium Fig. 10 and explained by the synergistic effect between the surfactants (Bagheri & Khalili, 2017), generated by the molecular interactions between the nonpolar parts of Versawet and Versacoat and therefore the increase in wettability alteration.

Fig. 10
figure 10

Schematic showing adsorption sites to clarifying the basic assumptions: occupied sites with Versawet (blue) and occupied sites with Versacoat (green)

Mechanism of surfactant adsorption on the surface of drilling cutting

The adsorption of surfactants on drilling cutting was measured by recording the surfactant concentrations before and after equilibrium with drilling cutting. The adsorbance of surfactant equilibrated with cutting was analyzed and compared to the calibration curve. Adsorption behavior of surfactant on cutting samples is shown in Fig. 11 a, and it can be seen from the figure that: the amount of surfactant adsorbed on the drilling cutting samples increases with increase in the equilibrium concentration of the surfactants in the formulation. The adsorption process of Versawet and Versacoat carried out according to the Langmuir isotherm is localized monolayer adsorption (see Fig. 11 b). The parameters of the Langmuir model obtained are shown in Table 6. Versawet emulsifier adsorbs more rapidly than Versacoat with a maximum adsorption capacity of 0.9223 mg/g.

Fig. 11
figure 11

Surfactant adsorption density on drilling cutting samples at 30 °C (a) with linear form of Langmuir isotherm (b)

Table 6 Langmuir isotherm parameter

According to the results of FITR, Versawet is a cationic wetting agent with quaternary ammonium cations –NH2.

Versawet ammonium is fixed in particular on the negative quartz silanole Sio2 sites of the drilling cuttings samples (Fig. 12 a). Versacoat surfactant contains a carboxylic group COOH, and its activation is carried out by the existence of lime. The results of flame photometer confirm the existence of calcium atoms in the cutting samples.

Fig. 12
figure 12

Schematic of adsorption mechanism of surfactant in the surface of drilling cutting A/Versawet and B/Versacoat

According to the rule of selective adsorption of Panetta-faience Versacoat, calcium molecules are selectively adsorbed on the surface of drilling cuttings (Fig. 12 b).

Conclusion

The use of oil-based muds in petroleum formations is in some cases accompanied by an alteration of the petrophysical properties of the reservoir rocks. This alteration is the result of the adsorption of oil-based mud surfactant. The change of polarity of the reservoir rock will induce a modification of oil relative permeability Kro and residual oil saturation Sor. In this case, a drop in oil productivity and an increase in water cut are observed just after the completion of production well.

In this study, the alteration of petrophysical properties of sandstone reservoir rocks due to the adsorption of oil-based mud surfactants has been systematically investigated.

Based on the experimental results, the following conclusions can be made:

  • The drilling cutting samples from sandstone reservoir formation are characterized by the predominance of quartz 71.9% with clay mineral, dolomite and calcite content. Drilling cutting samples effectively evaluate relative permeability and wettability alteration caused by surfactants in oil-based mud; the results are in qualitative agreement with the core sample observations.

  • Rock-fluid incompatibilities occur due to the interaction of Versawet and Versacoat surfactant with the formation leading to permeability impairment with a maximum water relative permeability end point of 0.75 and a rapid decrease in oil relative permeability.

  • Versawet and Versacoat emulsifiers in oil-based mud greatly changed the wettability of drilling cutting surface from water-wet (Amott index in initial state of 0.354) to oil-wet with the increase in contact period. The most dramatic effects were those found for the samples contaminated with both surfactant with Amott index of − 0402. The alteration of wettability caused by Versawet and Versacoat separately was not as large as that with the mixture of surfactants.

  • The alteration of properties is the consequence of the adsorption and retention of surfactants in the surface of drilling cutting forming a hydrophobic layer. Langmuir adsorption isotherm study showed that the interaction of Versawet and Versacoat with the powdered cutting surface from sandstone reservoir is a localized monolayer adsorption. The ability of Versawet to adsorb at liquid/solid interfaces is high then Versacoat kL = 0.0100.

  • The proposed mechanism for the adsorption of Versawet and Versacoat depending on the polar part of the surfactants NH2 for Versawet and COOH for Versacoat these groups have an affinity with the silanol group Sio-4 and the calcium atoms Ca included in the structure of the reservoir rocks successively.

  • To avoid the selective adsorption of Versacoat, it is recommended to use zinc hydroxide (as an activating agent) instead of lime.