Introduction

The exploration and development of unconventional sources have received a lot of interest due to the rising energy demand and the depletion of conventional reserves. Low porosity, ultralow reservoir permeability, poor connectivity, non-Darcy flow, and high total organic content are the characteristics of unconventional reservoirs (Hurnaus and Plank 2015; Holditch and Madani 2010; ** et al. 2019). Shale gas, shale oil, tight oil and gas, oil sands, coal bed methane, and gas hydrates are examples of unconventional reservoirs. Shale gas is a key energy source among these unconventional resources due to its large reserve volume. Shales are sedimentary rocks made up of clay minerals (smectite, illite, kaolinite, chlorite, and vermiculite), as well as other minerals like quartz, calcite, and feldspar (Lyu et al. 2015). The permeability of these reservoirs is extremely low (10–12 to 10–6 µm2) (Liu et al. 2018). Due to the exceptional geophysical properties, the production of oil and gas from shale is not similar to that from conventional sources. Fortunately, with the advancement of technologies such as horizontal drilling and fracturing, the industry is shifting toward shale hydrocarbon production (Danso et al. 2020, 2021; Miah et al. 2018; Fujian et al. 2019; Biswas et al. 2020, 2021).

Fracturing involves the high-pressure injection of specially designed fracking fluids to create fractures in the formation (Joshi 1991). It improves the rate at which fluids are recovered from low permeable reservoirs. The fracturing fluids play a vital role during the fracturing process in the shale formation. There are different types of fracturing fluids such as oil-based fluids, foam-based fluids, and water-based fluids. Oil-based fluids are considered efficient fracturing fluids due to their superior lubricity, resistance to swelling, borehole stability, high-temperature resistance, and corrosion inhibitory properties (Villada et al. 2017). However, due to the high initial cost, environmental hazards, operational safety, and disposal, the use of oil-based fluids during drilling and fracturing operations has been limited. Foam-based fluids contain less water and have a high apparent viscosity, which allows for good proppant transportation and reduces formation damage. The disadvantages of foam-based fracturing fluids include low hydrostatic pressure and instability at higher temperatures and pressures (Yekeen et al. 2018; Gupta and Hlidek 2010; Wanniarachchi et al. 2015; Gandossi 2013). Water-based fracturing fluids can cause more fracture networks. Also, water is readily available and inexpensive (Gu and Mohanty 2014). However, when employing water-based fluids, the water-sensitive formation may encounter challenges such as hydration, swelling, and dispersion (Xu et al. 2018). The prevalent operational problems encountered in fracturing unconventional shale reservoirs using water-based fluids are mostly triggered by clay swelling. The severity of clay swelling can limit the wellbore diameter, causing stress distribution around the borehole to change, lowering the mechanical shale strength of the formation, causing borehole instability, and ultimately leading to reduced production (Xu et al. 2018, 2019; Guancheng et al. 2016). Mitigating the swelling of the clay minerals during the fracturing of shale formations is therefore crucial in ensuring a smooth fracturing operation.

Over the last five decades, several conventional and non-conventional inhibitors have been incorporated with water-based fluids to tackle the above-mentioned issues (Muhammed et al. 2021). Some of the conventional additives are inorganic salts, surfactants, polymeric, and amine-based inhibitors. Inorganic salts such as KCl, NaCl, CaCl2, and NH4Cl have been shown to be effective in combating hydration and swelling shale formations at concentrations ranging from 2–20 wt% (O’Brien and Chenevert 1973; AlMubarak et al. 2015; Gholami et al. 2018). Several researchers reported that inorganic salts may cause flocculation of fracturing fluids, which are incompatible with the fracturing fluids at higher concentrations and are harmful to the marine environment (Akhtarmanesh et al. 2013; Patel et al. 2007; Sehly et al. 2015; Quainoo et al. 2020; Zhong et al. 2011). On the other hand, the application of surfactants, polymeric, and amine-based inhibitors is limited due to their dependency on temperature and concentration, along with their lower inhibitive performance (Barati and Liang 2014).

Recent approaches are focusing on non-conventional inhibitors such as nanoparticles (Lara et al. 2017; Saleh and Ibrahim 2019; Yekeen et al. 2019), saccharides and their derivatives (Ma et al. 2019; Ismail and Ann 2009), bio-surfactants (Aggrey et al. 2019), and ionic liquids (ILs) (Rahman et al. 2020a, 2021). ILs are liquid organic salts composing of anions and cations along with substituents attached to the cation (Berry et al. 2008; Bubalo et al. 2014). These segments of the ILs have distinguished effects on clay swelling inhibition mechanisms. Ahmed Khan et al. (2020) studied the effects of halogen group anions and reported that there is negligible difference in their inhibition performances due to different halides (Ahmed Khan et al. 2020). The reason behind these similar inhibition performances is that these anions possess almost similar types of molecular properties. Rahman et al. (2021) investigated the effects of polyatomic anions on clay swelling inhibition and discovered that less electronegative polyatomic anions perform better (Rahman et al. 2021). Yang et al. (2019) investigated the effects of the alkyl side chain attached to the imidazolium cation and suggested that a short alkyl chain exhibited better inhibition performance (Yang et al. 2019). Several studies were done to evaluate the inhibition efficiency of imidazolium- and ammonium-based cations (Li et al. 2019; Zhang et al. 2019; An et al. 2015). However, there is no comparative study between the performances of these cations. Moreover, their inhibition mechanisms are not well-explained. Therefore, this study focuses on investigating the performance of 1-ethyl-3-methylimidazolium chloride (EMIMCl) and tetramethylammonium chloride (TMACl) along with their inhibition mechanisms.

The linear swelling test and rheology test were conducted to evaluate the inhibitive performance of the inhibitors. The inhibition mechanisms were explained by the zeta potential measurement, FT-IR analysis, and contact angle measurement. Furthermore, COSMO-RS simulation studies were done to support the inhibition mechanisms explained by experimental methods.

Materials and methods

Materials

Tetramethylammonium chloride (TMACl), 1-ethyl-3-methylimidazolium chloride (EMIMCl), and potassium chloride (KCl) were purchased from Avantis Laboratory Supply, Malaysia. In this study, the same anion (Cl) and two distinct cations (ammonium and imidazolium) were used for swelling investigation to compare the effects of the two different cations on swelling inhibition. The clay sample used in the experiments was purchased SCOMI Oiltools. The mineralogy of the bentonite powder was studied using X-ray diffraction (XRD) analysis. The bentonite powder was characterized by an X’Pert3 Powder X-ray diffractometer, and the X-ray scans were analyzed by the Highscore (plus) software (PANalytical). The mineralogical composition of the bentonite is given in Table 1.

Table 1 Mineralogical composition of the bentonite powder used in this study

Montmorillonite is comprised of an octahedral sheet sandwiched between two tetrahedral sheets (Uddin 2018). They have a predisposition to swell because of this structural feature. As a result, the bentonite powder, which is primarily constituted of montmorillonite, was chosen for the experiments in this study. The physiochemical properties of the chemicals utilized in this study are given in Table 2.

Table 2 Physiochemical properties of the chemicals that were used in this study

Experimental studies

Linear swelling test

For the linear swelling test, 13 g of dry bentonite powder was taken by using a digital weight measurement tool. Then, the measured bentonite powder was put into a wafer holder of the core wafer compactor. After that, the pressure valve attached to the respective pressure chamber was opened and another pressure valve was closed. Finally, 1450 psi pressure was applied with the hydraulic press and closed the pressure valve and held it for 60 min. After 60 min, the pressure valve was opened and waited until the pressure dropped to 0 psi, and then cylindrical shaped wafer was removed from the pressure chamber. The initial length and diameter of the wafer were measured by a digital caliper.

Figure 1 shows the schematic diagram of the linear swell meter used for this study. After measuring the length and diameter, the compacted bentonite wafer was placed into an automated dual-core HPHT linear swell meter (M46000). Before putting the wafer into the swelling chamber, the swell meter was calibrated with three standard wafers of different lengths. To check the deviation caused by this equipment, three runs using distilled water were performed repeatedly. The variation in results between these three runs was negligible. As a result, no repetitions for the other solutions were performed. A solution was prepared using water and a 2 wt.% inhibitor (KCl/ TMACl /EMIMCl) to check the inhibition performance of the ILs. Also, a fracturing fluid (FF) was prepared by adding 0.40 wt.% of guar gum, 0.20 wt.% of potassium carbonate, 0.10 wt.% of borate, 0.20 wt.% of HPAM, 2 wt.% inhibitor, and water to check the compatibility of the ILs with FF. 75 ml of FF or water-inhibitor solution was put into the swelling cell, and the swelling phenomenon was monitored for 24 h under 1000 psi pressure and room temperature. The swelling heights and percentages were recorded by a data acquisition software which was connected to a computer. The swelling percentage was calculated through the software utilizing the following equation:

$$ {\text{Swelling rate}} = \frac{{\text{Linear height at different time - Initial height}}}{{\text{Initial height}}} \times 100\% $$
(1)
Fig. 1
figure 1

Schematic diagram of the linear swell meter used for this study

Furthermore, to compare the swelling inhibition efficiencies of different ILs, the following equation was utilized:

$$ {\text{elling inhibition efficiency}} = \frac{{S_{w} - S_{i} }}{{S_{w} }} \times 100\% $$
(2)

ere \(S_{w} \). is the swelling height or percentage in water, and \(S_{i}\) is the swelling height or percentage in inhibitor’s solutions.

Rheology test

The rheology of numerous bentonite suspensions was investigated in this study utilizing a high-precision Discovery Hybrid Rheometer (DHR-1) with a cup and bob measuring geometry with a gap of 5917 µm. The sample suspensions were prepared by mixing 4 g of bentonite powder, 2 g of inhibitor (KCl/TMACl/EMIMCl), and 94 g water. The mixers were stirred by using a fann five-spindle multi-mixer for 30 min. The rheometer was set at 25 °C, and several conditioning steps (soaking time of 30 s and equilibration of 60 s) were performed on the samples to bring them into thermal equilibrium. A steady flow sweep was applied with a varying shear rate from 0.01 to 1000 s−1. The tests were conducted at 25 °C and 75 °C to measure the viscosity of the bentonite suspensions. Finally, genetic algorithms (GA) were employed to optimize three parameters of the Herschel–Bulkley flow model: yield stress, flow consistency index, and flow behavior index.

Zeta potential measurement

The samples for zeta potential measurements were prepared by adding 0.2 wt.% bentonite powder, 2 wt.% inhibitor, and 97.80 wt.% water. At first, 0.2 g bentonite powder was measured by a digital weight balance, and 97.80 ml water was measured by a test tube. Then, the water and bentonite powder were mixed and magnetically stirred for 24 h. After that, 19.6 ml of the water-bentonite solution was taken and mixed with 0.4 g of inhibitor (KCl/TMACl/EMIMCl). The water-bentonite-inhibitor solutions were again stirred for 16 h by a magnetic stirrer. Finally, the zeta potential value of the bentonite-water and bentonite-water-inhibitor solutions was measured using a zeta potential analyzer (zeta-sizer Nano ZSP).

FT-IR analysis

At first, 10 g of dry bentonite powder was measured by a digital weight balance. Then, the measured sample was put into the pressure chamber of the compactor and compacted under 1000 psi pressure for 30 min. After the compaction, the bentonite wafers were immersed in water and inhibitor solutions and kept for 24 h. Then, the wet bentonite wafers are taken out of the solutions and dried in an oven at 80 °C for approximately 16 h. After that, the dried bentonite was crushed into fine powder by pestle and mortar. The IR spectral of the powdered bentonite modified with inhibitors was measured by a PerkinElmer Spectrum 400 spectrometer. The experiment was conducted at room temperature within the range of 4000  to 400 cm−1.

Contact angle measurement

The contact angle measurement was conducted to check the clay’s wettability changes which can determine the inhibition mechanisms of the inhibitors. The contact angles for this research were measured by a KRUSS Drop Shape Analyzer (DSA25). At first, 10 g dry bentonite powder was measured by a digital weight balance. Then, the bentonite sample was placed into the pressure chamber and compacted for 30 min at a pressure of 1000 psi. Then for 48 h, the bentonite wafers were immersed in water and inhibitor solutions. The wet bentonite wafer was removed from the solutions and dried at room temperature for approximately 72 h. To make the surfaces smooth, the wafers were again put into the pressure chamber and compacted for 5 min. Upon smoothing, the bentonite wafer was placed on the stage between the camera and light source. Then, the stage’s position was fixed by adjusting its horizontal and vertical positions. Once the wafer’s position is fixed, then the intensity of the light is adjusted. After completing all the settings, a small drop of water placed on the clay wafer’s surface and the value of contact angles along with their images were recorded in the data acquisition unit.

COSMO-RS simulation

Theoretical studies or molecular dynamics simulations are required to overcome the challenges raised by experimental studies such as cost and time (Bains et al. 2001; Al-Arfaj et al. 2015). The swelling inhibition mechanisms of the inhibitors can be explained by zeta potential measurement, FT-IR analysis, and contact angle measurements. However, theoretical studies such as the COSMO-RS simulation study can also support the experimental methods used to explain the inhibition mechanisms. In this study, the computer simulation COSMO-RS (COSMOtherm Version 19.0.0 (Revision 5259)) is utilized to analyze the mechanisms working behind the swelling inhibition processes. This simulation software takes less time and is more effective at predicting the interactions between the water molecules and ILs. Herein, the sigma surfaces and surface area (chain length) of the studied ILs and the water molecules were determined by the COSMO-RS simulation software. The color of sigma surfaces helps to describe the charge distribution of a chemical in its structure. Moreover, the hydrogen bond energy produced between the water molecules and ILs is studied in this work.

3. Results and discussion

Linear swelling test

By comparing the swelling caused by water and ILs, the swelling percentage of the bentonite wafer with and without an inhibitor was determined. Furthermore, these results were compared with the conventional inhibitor KCl. Cations play a vital role during swelling inhibition processes. Herein, the impacts of imidazolium and ammonium cations were studied and presented. Figure 2 and Table 3 show that TMACl depicted superior swelling inhibition performance to EMIMCl from the very beginning.

Fig. 2
figure 2

Swelling percentage for distilled water, KCl, TMACl, and EMIMCl for 24 h

Table 3 Percentage of swelling after 1 h., 6 h., 12 h., and 24 h. for different cations

Figure 2 depicts the swelling rate of bentonite wafer with distilled water, KCl, TMACl, and EMIMCl through 24 h. The bentonite wafer swelled to 59.40% of its original size in water, indicating a significant hydration and swelling tendency. After adding 2 wt.% KCl, the swelling rate was reduced to 53.90%. This reduction indicates the swelling inhibition efficacy of the conventional inhibitor, KCl. The swelling curve for KCl shows that up to 6 h, it promotes the swelling compared to water. This happens due to the slower penetration rate of the potassium ions and the penetration of clay minerals by the massive water volume during the cationic penetration and replacement processes (O’Brien and Chenevert 1973; Agag and Akelah 2011).

When the imidazolium- and ammonium-based ILs were introduced, the bentonite wafer swelled less than when only water was supplied. The swelling reduction occurred because of the ILs adhering to the bentonite surface via electrostatic attraction. This adsorption of the positively charged groups of ILs decreased the bentonite’s negative surface charge, compressing the double electric layers. Some of the adsorbed IL molecules may be intercalated into the vacuum of the bentonite interlayer, where they may eject some water molecules. It decreased bentonite’s water adsorption capability, resulting in reduced hydration and swelling.

Table 3 indicates the swelling rate for water, KCl, EMIMCl, and TMACl at 1 h, 6 h, 12 h, and 24 h. At the beginning (after 1 h), the swelling rates were 10.70% and 6.20%, and after 24 h, the rates were 50.10% and 45.50% for EMIMCl and TMACl, respectively. TMACl showed a lower swelling rate than EMIMCl throughout the whole 24 h. The tetramethylammonium cations can easily and strongly adsorb onto the bentonite clay particles through electrostatic attraction forces and hydrogen bonding. This helped to reduce the surface negative charge and double electric layers, hence reducing the swelling.

Figure 3 shows the swelling inhibition efficiency for EMIMCl and TMACl at 1 h., 6 h., 12 h., and 24 h. At the beginning (at 1 h.), the swelling inhibition efficiency of TMACl was 26.19% and -27.38% was for EMIMCl. At the beginning, TMACl showed higher swelling inhibition efficiency, which indicated the faster penetration rate of tetramethylammonium ions than the imidazolium ions. However, with time (especially up to 12 h), the inhibition efficiency of EMIMCl was increased. On the other hand, the inhibition efficiency for TMACl was following a decreasing trend but still maintained a higher inhibition efficiency than EMIMCl. After 12 h, the inhibition efficiency for TMACl again followed an increasing trend and maintained superior inhibition efficiency until the end of this experiment.

Fig. 3
figure 3

Swelling inhibition efficiency for EMIMCl and TMACl at 1 h., 6 h., 12 h., and 24 h

Figure 4 represents the percentage of swelling for FF, FF + KCl, FF + EMIMCl, and FF + TMACl mixtures. The rate of swelling with FF after 24 h was 46.40%, which was reduced to 43.20%, 38.60%, and 35.20% after adding KCl, EMIMCl, and TMACl, respectively, to the FF. TMACl retained its superior performance with FF in this case as well, which indicates the better compatibility of TMACl with FF. Both ILs (EMIMCl and TMACl) showed superior performance to KCl with the FF. These results indicate that the studied ILs are compatible with the fracturing fluids.

Fig. 4
figure 4

Swelling percentage for FF, FF + KCl, FF + EMIMCl, and FF + TMACl for 24 h

Rheology test

Herein, the rheological parameters of the bentonite-water, bentonite-water-KCl, bentonite-water-EMIMCl, and bentonite-water-TMACl are briefly discussed. The rheological parameters of a drilling or fracturing fluid are investigated in order to determine the flow behavior (Wang et al. 2017). However, in this study, the rheological properties were utilized to assess the swelling inhibition ability of an inhibitor (Rahman et al. 2020b; Xuan et al. 2015). It is believed that the swelling and dispersion of clay minerals increases the viscosity and as a result, increases the yield stress value (**ong et al. 2019; Aubry and Moan 1997; Rubbi et al. 2021). Hence, the viscosity and yield stress measurements can be used to evaluate the chemical’s effectiveness in preventing swelling or dispersion. Higher inhibitory efficiency is indicated by a lower viscosity value for a given chemical.

The viscosity is shown in Fig. 5, and Table 4 summarizes the rheological properties of bentonite-water and bentonite-water-inhibitors containing various cations (calculated by the Herschel–Bulkley model). After integrating KCl, EMIMCl, and TMACl into the bentonite-water suspensions, the viscosity and yield stress were lowered. The yield stresses for KCl-water-bentonite, EMIMCl-water-bentonite, and TMACl-water-bentonite suspensions were 1.2665, 2.9004, and 1.1656 Pa, respectively. On the other side, the value was 2.9443 Pa for the water-bentonite suspension.

Fig. 5
figure 5

Flow behavior of bentonite-water and bentonite-water-inhibitor (with different cations) suspensions; a viscosity vs shear rate at 25 °C and b viscosity vs shear rate at 75 °C

Table 4 Rheological parameters of the bentonite-water and bentonite-water-inhibitors (with different cations) suspensions at 25 °C (calculated by Herschel–Bulkley model)

The reduction in the yield stress value supports the higher swelling inhibition efficiency of the inhibitors. As previously stated, lower yield stress values were obtained by controlling bentonite swelling and dispersion through neutralizing the surface negative charge and decreasing the repulsive force between two clay sheets. While the decreased yield stress and viscosity are advantageous for the swelling inhibition procedure, they might occasionally present problems for the proppant transportation facility. However, there is a good solution to this problem; pre-hydrated bentonite combined with fracturing fluids can demonstrate a high capacity for proppant transporting.

Zeta potential measurement

The zeta potential measurement is an important technique to explain the inhibition mechanisms. Herein, the effect of cations on the reduction in negative surface charges is briefly discussed.

Figure 6 represents the zeta potential value of bentonite-water and bentonite-water-inhibitor suspensions. The zeta potential of bentonite in water was − 33.53 mV, indicating a considerable colloidal system. These negative charges produce opposing forces between two layers of the clay minerals due to their repulsive nature. The repulsive force can cause the separation of two silicate layers, which can result in swelling of the clay minerals. However, after adding KCl, EMIMCl, and TMACl, the zeta potential value changed to − 23.40, − 14.30, and − 9.90 mV, respectively. These zeta potential values indicated the demotion of the colloidal system after adding ILs and KCl. Generally, a low zeta potential value reduces the repulsive forces between the clay layers and accelerates the agglomeration of bentonite particles. Agglomeration of clay mineral is favorable for swelling and dispersion inhibition.

Fig. 6
figure 6

Zeta potential values for bentonite-water and bentonite-water-inhibitor solutions

Figure 7 depicts the negative surface charge reduction efficiency of KCl and ILs. The zeta potential reduction by KCl, EMIMCl, and TMACl was 23.21, 57.35, and 70.47%, respectively. All these inhibitors reduced the negative zeta potential value by more than 20%, indicating that they are effective inhibitors. So far, the ammonium cation has shown excellent efficiency compared to the imidazolium cation. Owing to four methyl chains attached to the cation, TMACl may help to reduce more negative charges than the imidazolium cation. Due to the high electrostatic attraction between the TMACl and bentonite particles, the TMACl readily adsorbs on the bentonite surface, resulting in the reduction in negative surface charge. Moreover, the four methyl chains of TMACl increase the hydrophobicity of the bentonite surface, which helped to decrease the negative zeta potential value.

Fig. 7
figure 7

Efficiency of various inhibitors in negative surface charge reduction

FT-IR analysis

FT-IR analysis was conducted to further investigate the intercalation of ILs on the bentonite clay. This test helps to investigate the adsorption ability of the inhibitors on the clay surface. For the bentonite sample shown in Fig. 8, the spectrum reveals the typical characteristic absorption bands. The noticeable peak at 3621 cm−1 was assigned to the O–H stretching vibration. A large absorption band at 3435 cm−1 was found to correspond to the physisorbed water in the galleries of bentonite, while the H–O–H deformation vibration of water molecules was found at 1641 cm−1. Moreover, a strong absorption band at 1036 cm−1 represented asymmetric stretching vibrations of Si–O and 521 indicated the deformation band of Al–O–Si.

Fig. 8
figure 8

FT-IR spectra of bentonite, KCl-bentonite, EMIMCl-bentonite, and TMACl-bentonite composites

After the effective adsorption of these ILs on bentonite, all FT-IR spectra of bentonite-ILs hybrids exhibited additional absorption peaks at 2970 cm−1 and 2874 cm−1, which corresponded to the stretching vibration of the methyl groups. The presence of these two peaks proved the incorporation of ILs into the bentonite clay. For TMACl-bentonite composite, a significant peak was found at 1487 cm−1 which represents N-CH3 bonds. This peak was absent in the spectra of bentonite, bentonite-KCl, and bentonite-EMIMCl composites. Table 5 shows some of the significant bonds present in bentonite and inhibitor-bentonite composites.

Table 5 Significant bonds present in bentonite and inhibitor-bentonite composites

Contact angle measurement

The wettability of the shale surface is a vital factor in understanding and analyzing the swelling inhibition mechanisms. Contact angle calculation is a simple way to assess wettability changes on a surface. Herein, the effects of cations on contact angle are briefly discussed.

The contact angles between a water drop and a bentonite surface or a water drop and a bentonite surface treated with ILs are shown in Fig. 9. The average contact angles for the bentonite surface treated with TMACl and EMIMCl were 50.35° and 47.4°, respectively. On the other side, the contact angle between water and pure bentonite was 31.45°, which indicated a hydrophilic state of the bentonite surface. The more hydrophilicity of the clay surface accelerates the attraction to water molecules, which promotes the hydration and swelling of the clay. However, after modifying the bentonite surface with TMACl and EMIMCl, the contact angle increased by 60.10% and 50.72%, respectively. This increase in the contact angles indicated the reduction in hydrophilicity or the increase in hydrophobicity. Among these two ILs, TMACl showed better hydrophilicity reduction than EMIMCl. Therefore, it can be concluded that tetramethylammonium cations have more potential to alter the surface hydrophilicity.

Fig. 9
figure 9

Contact angles between water drop and bentonite surface; a bentonite surface modified with TMACl, b bentonite surface modified with EMIM, and c pure bentonite

COSMO-RS simulation studies

The COSMO-RS simulation studies were conducted to better explain the inhibition mechanisms and support the results obtained from experimental studies. In this study, sigma surfaces of the cations and anion of ILs and water, surface area of the studied chemicals, and hydrogen bond energies between water and ILs were investigated. All these properties have a direct relationship with the swelling inhibition mechanisms.

Figure 10 represents the sigma surfaces of water, tetramethylammonium cation, 1-ethyl-3-methylimidazolim cation, and chloride anion. The scale of interpretation shows that deep blue color indicates highly electropositive charge and deep red color indicates highly electronegative charge. When these colors gradually become faded, it means the electropositivity or electronegativity are decreasing. Most of the surface area of the tetramethylammonium cation is electropositive, with only a few minor areas that are highly electropositive and partially electropositive present. Specifically, when it comes to the 1-ethyl-3-methylimidazolium cation, the maximum area is partially electropositive, with only a few minor areas being highly electropositive and electropositive. Accordingly, the positive charge distribution on the tetramethylammonium cation is greater than the positive charge distribution on the 1-ethyl-3-methylimidazolium cation. This somewhat greater positive charge facilitates the adsorption of the tetramethylammonium cation on the clay surfaces, resulting in a reduction in more surface negative charges. This reduction in surface charge eventually contributes to a reduction in clay swelling.

Fig. 10
figure 10

Sigma surfaces of the cations and anion of the studied inhibitors

According to Table 6, the hydrogen bond energies produced by the interaction of water with EMIMCl and water with TMACl were − 26.07573 kcal/mol and − 25.65217 kcal/mol, respectively. Instead of expressing negative numbers, the minus (−) sign represents the production of energy during the bond formation process in this case. This indicates that TMACl forms fewer hydrogen bonds with water molecules than EMIMCl, hence producing less hydrogen bond formation energy. Knowing that both of the ILs contain the same anion, it is reasonable to conclude that the difference in hydrogen bond energy between them is due to differences in the cations present. Whenever the tetramethylammonium cation enters the clay interlayer space, it draws a smaller number of water molecules, resulting in a reduction in swelling.

Table 6 Studied parameters for different inhibitors generated by COSMO-RS computer simulation

Proposed role of cations in swelling inhibition

Numerous chemicals were investigated as swelling inhibitors in order to smooth out the hydraulic fracturing process of the clay-rich shale formation. Each chemical has its own mode of anti-swelling action. For a few years, ILs have been studied for their potential as swelling inhibitors. However, their inhibition mechanisms are not well-understood. Hence, the possible inhibition mechanisms by cations are briefly discussed here. When IL enters the interlayer space, it quickly gets adsorbed on the clay surfaces through electrostatic attraction forces. The hydrogen bonds formed between the positive cations of IL and the silicate tetrahedron of clay particles intensify the adsorption process. The presence of more positive charge on the surface of the cations promotes the adsorption process. Being adsorbed on the clay surface, the cations neutralized the negative surface charges and suppressed the repulsive double electric layer (proved by the zeta potential value). The neutralization of negative charges reduced the hydrophilicity of clay surfaces (proved by the contact angle measurements); hence, they show less attraction to water molecules. Moreover, the coordination of hydrogen bonds and electrostatic attraction forces may expel water molecules from the interlayer spaces and fix the clay plates together. The alkyl chain attached to the cation core of the adsorbed ILs makes a hydrophobic shield and covers the clay surface, which also impedes the water ingress into the interlayer space. More alkyl chains attached to the cation facilitate more swelling inhibition. The higher positive charge on the surface of the tetramethylammonium cation, as well as the presence of more alkyl chains attached to it, contributed to its superior inhibitory performance when compared to the 1-ethyl-3-methylimidazolium cation.

Conclusion and recommendation

The swelling of the ultralow permeability owned shale formation is caused as a result of geochemical interactions between water and clay minerals during hydraulic fracturing processes. This is extremely detrimental to effective shale gas extraction due to the formation damage and production constraints. Numerous additives, including organic salts, inorganic salts, surfactants, polymers, and amine derivatives, have been proposed as fracturing fluids to address this issue, but they all have significant downsides. Recent research has concentrated on ILs composed of a cationic component, an anionic component, and substituents attached to the cationic core. Each of these three components has a considerable effect on the suppression of clay swelling processes. So far, there is no significant comparative work on the impact of cations on clay swelling inhibition. Hence, this research examined the effects of ammonium and imidazolium cations on clay swelling inhibition, as well as the mechanisms underlying their inhibition. The following concluding statements are made in light of the experimental and COSMO-RS simulation investigations conducted on the two ILs as clay swelling inhibitors.

  • Both ILs outperformed the traditional inhibitor KCl in terms of inhibition. As a result, IL may be a potential alternative to conventional inhibitors.

  • Among the two cations evaluated with chloride anion in this research, ammonium-based IL (TMACl) outperformed imidazolium-based IL (EMIMCl).

  • More positive charge on the cation’s surface accelerates the adsorption process and reduces the negative surface charge of the clay mineral, resulting in less clay swelling.

  • More alkyl chains attached to the cation improve inhibitory efficacy.

Based on the research conducted in this study, a few suggestions can improve the research scope in the future.

  • In the simulation study of this work, only the interactions between ILs and water molecules were investigated. However, the interaction between the ILs and clay minerals requires further investigation.

  • In this work, only two types of cations were studied. Some other cations (for example, phosphonium, piperidines, pyridiniums, pyrrolidines, sulfones, morpholines, guanidiniums, choline, oxazolium, triazolium, thiazolium, pyrazolium, N-alkyl-isoquinolinium) need to be studied.