Introduction

The global demand for oil has increased in recent years, and oil production from existing oilfields is dropping due to reservoir depletion1,2. One of the major research areas of upstream industries in petroleum engineering is improving production and enhanced oil recovery (EOR) from oil reservoirs3.

Typically, there are three steps to the oil recovery process: primary, secondary, and tertiary, or enhanced oil recovery (EOR)4. Primary oil recovery is limited to hydrocarbons that are naturally produced from the existing displacement energy in a reservoir, such as solution-gas drive and natural water drive, etc5. In secondary production, the target formation is often re-pressurized by injecting gas or water, which leads to the movement of the remaining oil towards the production wells5. Tertiary recovery is related to oil production by some means of artificial stimulation after secondary recovery6. After application of primary and secondary oil recovery, two-third of the original oil in place (OOIP) remains in the reservoir4,7, which is trapped in place by surface and interfacial forces in the pore throats. The capillary forces that prevent the oil from moving in the porous medium can be reduced to produce residual oil8. Therefore, by altering the wettability of rock surfaces, capillary forces can be overcome9. The term “wettability” refers to a fluid’s propensity to stick or adsorb to a rock surface in the presence of another immiscible fluid. The position and distribution of reservoir fluids, which have an impact on the relative permeability of fluids and, consequently, on improved production, are determined by wettability. Therefore, the amount of oil that can be extracted from a reservoir depends significantly on wettability10,11,12. The wettability of a reservoir can be assessed by investigating its rock properties, fluid flow within the reservoir, variations in pressure and temperature, fluid production, and chemical substance injections used to improve oil recovery13,14,15. The main and most heavy part of crude oil is asphaltene16. The wettability of the reservoir rock alters due to the adsorption of the heavier and more polar ingredients of oil12. The various factors, including mineralogical structure and solution characteristics like salinity and pH, affect the wettability of minerals. In reality, a complete comprehension of all the intricate interactions and a thorough investigation of wettability offer a well-informed understanding of multiphase flows in oil reservoirs and lead to increased production in oil reservoirs17,18. To quantify the wettability alterations, any of the following methods can be utilized: measures of the surface image test, zeta potential, and contact angle4. Most research on wettability change measurements is performed using contact angle, which is defined by the point where the interface of the oil and water meets at the rock surface4. However, it is highly challenging to investigate contact angles in porous mediums, especially if it is a rock built up of a wide range of distinct minerals of different sizes19. After oil production, significant amounts of oil remain in reservoirs, necessitating the utilization of tertiary oil recovery methods, usually called EOR. Several techniques have been suggested for extracting residual oil17, including alkaline solution, polymer, miscible CO2, cyclic vapor, and bacteria20. Therefore, EOR methods can somewhat increase oil recovery21. The three primary categories of EOR procedures are typically chemical methods, gas injection methods, and thermal methods22. However, EOR methods are still economically, technically, and environmentally challenged because of high heat supply costs, excessive carbon dioxide (CO2) emissions, and costly post-treatment and maintenance23,24. Therefore, new nanomaterials can provide practical ways to overcome the disadvantages of EOR techniques20. One of the most prevalent EOR methods used in oil reservoirs includes water-based techniques like the infusion of NPs, polymers, salt solutions, or a mixture of them. High surface-to-volume ratios of nanoparticles cause more NPs to adsorb on the rock surface, which leads to a decrease in the contact angle25. Compared to the materials utilized in chemical EOR techniques, nanoparticles are more environmentally friendly. Furthermore, they can function more effectively in deep reservoirs that are subject to high temperatures and pressure26. Recently, there has been a lot of attention paid to the use of Fe3O4 nanoparticles for EOR applications27,28,29. Also, the performance of silica nanoparticles to improve the wettability of oil reservoir rocks has been studied30,31,32. Nanoparticles have recently found a specific place for modifying wettability in enhanced oil recovery as a result of progress achieved in the field of nanotechnology19. Polymers, among the EOR methods, have distinguished properties and high performance. Polymers improve the displacement of the oil that is trapped and, eventually, enhance oil recovery by reducing the ratio of the injection water’s mobility to that of the crude oil. Polymers could be generally divided into synthetic polymers and polymers that are natural. Natural polymers are polymers that are produced from natural plants. Hence, they are referred to as eco-friendly33,34.

Many studies showed that the surface modification of nanoparticles leads to improvement of the EOR mechanism, such as wettability alteration to water-wet state. Karimi et al.35 examined the effectiveness of nanofluids based on zirconium oxide (ZrO2) in modifying the wettability of carbonate reservoir rocks. It was demonstrated that developed ZrO2-based nanofluids could considerably change rock wettability from an oil-wet state to a water-wet state. Giraldo et al.36 performed studies on the performance of alumina (Al2O3)-based nanofluids on sandstones. It was shown that the presence of NPs can significantly improve the effectiveness of the surfactant and change the wettability of sandstone cores from an oil-wet state to a water-wet state. In another study, Roustaei and Bagherzadeh37 examined the effect of SiO2 NPs on the wettability of carbonate reservoirs. They declared that SiO2 NPs could alter the wettability of carbonate rocks from a strongly oil-wet condition to a strongly water-wet condition. Li et al.38 examined wettability modification with sandstone samples using nanoparticles. They found that silica-based nanofluid injection effectively enhanced oil recovery in sandstone reservoirs, causing wettability to alter to a neutrally wet condition.

Jang et al.39 wettability change tests on carbonate rocks were performed using silica NPs in reservoir conditions. The outcomes indicated that silica nanoparticles effectively improved dolomite and limestone wettability and reduced the contact angle. Mousavi et al.40 studied the effects of SDS surfactant and SiO2 NPs on the change in wettability of oil-wet carbonate reservoir rocks. The outcomes indicated that by increasing the aging time, the SiO2-SDS surfactant’s efficiency in wettability modification improves and the contact angle is substantially decreased. Hosseini et al.41 evaluated the effectiveness of TiO2 nanoparticles on the wettability change of carbonate reservoir rocks with high salinities and temperatures. The outcomes showed that nanofluids were highly stable at 20 w.t% salinity and 90 °C. Additionally, higher nanoparticle concentrations improve rock wettability.

Fe3O4@Chitosan nanocomposite was synthesized by Rezvani et al.25. According to their declaration, increasing the concentration of synthesized nanocomposite in seawater enhances oil recovery by altering the carbonate rock’s wettability to the water-wet state. Divandari et al.22 declared that citric acid-coated magnetite NPs have a higher efficiency in wettability change of the glass surface from oil-wet to water-wet compared to other nanoparticle solutions, which resulted in reducing the contact angle from 105° to 41°.

Numerous studies have been done recently on this subject due to the significance of wettability in the distribution and ultimately the motion of different fluids in the porous medium. Consequently, the purpose of this investigation is to look at the application of nanoparticles in the form of nanocomposite, the hybrid effect of NPs and SDS surfactant, biopolymer, various salts with various salinities, and seawater (Persian Gulf water) on the change of wettability. It should be noted that for the first time, the synthesized Fe3O4/gelatin nanocomposite and gelatin are investigated to alter the wettability on rocks of carbonate reservoirs (dolomite and calcite) for EOR applications.

Materials and methods

Figure 1 shows a diagram of the research process in this paper. According to Fig. 1, preparing the rock specimens, preparing the oil utilized in this study, and treating rocks with crude oil are demonstrated. Additionally, it illustrates the aging of the rock specimens using Fe3O4 nanofluid, SiO2 nanofluid, Fe3O4/gelatin nanocomposite, SDS-surfactant, Fe3O4-SDS, NaCl, CaCl2, Persian Gulf water, and gelatin. All of the tests were carried out a minimum of three times to ensure their precision.

Fig. 1
figure 1

Research process schematic.

Materials

Oil preparation

The crude oil employed in this investigation was obtained from an Iranian oil field. The characteristics of crude oil are displayed in Table 1.

Table 1 Crude oil characteristics40.

Rock samples preparation

In this investigation, calcite (CaCO3) and dolomite (MgCa(CO3)2), two carbonate rocks, were used. The analysis of X-ray Fluorescence (XRF) of the calcite and dolomite rocks used in the present investigation is shown in Table 2. It is better to note that the XRF analysis was carried out using PW1410 (PHILIPS, NETHERLAND). After analyzing carbonate samples, small slabs of rock measuring 0.5 cm in height, 4 cm in width, and 4 cm in length were cut from rock samples to measure the wettability alteration. A smooth surface was also achieved by polishing the slices. The main purpose of this study is to investigate the effect of synthesized Fe3O4/gelatin nanocomposites and gelatin on wettability alteration in carbonate reservoir rocks. For this reason, we removed the rock’s roughness effect by polishing the rock’s surface to investigate precisely the effect of these substances on wettability alteration. In other words, all obtained results are affected by these substances. Therefore, the slabs were placed in Soxhlet’s washing cell, which included 400 ml of toluene (Merck, with a purity of 99 wt%), and washed for up to four hours. Following that, the specimens were kept in the oven for an hour at 40 °C. Finally, after washing the rock samples with distilled water for 10 h, we placed them in an oven at 40 °C for 12 h. To remove possible impurities, this technique was used to avoid errors in the evaluation of wettability and face scrubbing.

Table 2 Results of calcite and dolomite rock XRF analysis.

Chemical surfactant

In the current research, sodium dodecyl sulfate (SDS), an anionic surfactant, was utilized. Using the electrical conductivity measuring method, it was found that the critical micelle concentration (CMC) of SDS was almost 2450 ppm42. This substance was purchased from the Merck Company. Using a magnetic stirrer, surfactant solutions with a concentration of 2000 ppm were made in distilled water. The characteristics of the surfactant used in this research are illustrated in Table 3.

Table 3 Surfactant characteristics.

Salts

Monovalent and divalent cations are commonly present in brine solutions. and when rocks and oil are present, these cations may react differently during low-salinity water injection (LSWI)43. Subsequently, for this research, different salts, including calcium chloride (CaCl2) and sodium chloride (NaCl), were taken into consideration. NaCl (≥ 99.5%) and CaCl2 (≥ 99.5%) were bought from Merck Company and were employed to examine the impact of salinity on wettability alteration. Distilled water was used as the base fluid to make the brine solution, and various salt concentrations were added. The solutions were then combined for 40 min with a magnetic stirrer. Each solution was created and put to the test individually.

Persian Gulf water

Persian Gulf water was used to study how seawater salinity impacts the wettability of rocks. Therefore, the cut dolomite and calcite rocks were aged for 11 days in the water of the Persian Gulf. Finally, the desired experiments were performed on them. Table 4 indicates the water properties of the Persian Gulf.

Table 4 Persian Gulf water compositions40

Nanoparticles and nanofluids

In this research, Fe3O4 and SiO2 nanoparticles have been used. To create silica (SiO2) and iron oxide (Fe3O4) nanofluids, 0.752 gr of each material was added to 250 ml of distilled water separately. It was initially blended for one hour with the use of a magnetic stirrer to increase the stability of the suspension and achieve nanofluid homogeneity, and then it was put inside an ultrasonic apparatus. It should be noted that ultrasonication is advised for NPs44,45. To maintain the suspension stable for a longer period, the ultrasonic apparatus helps increase nanofluid stability by reducing the NPs clusters’ aggregation. To do this, a 3000 ppm solution of nanofluid was put inside an ultrasonic vibration device and subjected to ultrasonic vibration for 20 min at 100 W. Eventually, the carbonate rocks were aged in the prepared nanofluids for 11 days. The term “PPM” means grams of solute per million grams of solution46. In Table 5, the properties of Fe3O4 and SiO2 nanoparticles are listed.

Table 5 Properties of nanoparticles.

Gelatin

In this study, gelatin (Sigma Aldrich) has been used as a biosurfactant to assess the wettability changes of oil-wet rock specimen surfaces. Therefore, 0.5 g of gelatin was added to 250 ml of distilled water and stirred with a magnetic stirrer for 1 h to create a 2000 ppm gelatin solution. After that, the oil-wet rock specimens were aged in gelatin solutions for 7 and 11 days.

Synthesis of Fe3O4/gelatin nanocomposite

Ferric chloride anhydrous (FeCl3) and ferrous chloride tetrahydrate (FeCl2.4H2O, both from Sigma-Aldrich) were prepared. Ammonium hydroxide (NH4OH at 25 w.t% in water (Merck)) was employed to alter the pH amount. Gelatin was used as a coating material.

In this investigation, the chemical co-precipitation technique was used to synthesize Fe3O4/gelatin nanocomposite. At first, a solution including 0.5 g of gelatin in 100 ml of distilled water was made for 5 h at 50 °C with constant stirring to prepare a gelatin solution. Then, the gelatin solution was chilled to 30 °C. Next, FeCl2.4H2O (Fe2+;1.5 g) and FeCl3 (Fe3+;3.0 g) were added to the gelatin solution. After that, it was stirred for an hour at 30 °C. Eventually, while the solution was constantly stirred, ammonium hydroxide was gradually added until the pH of the solution reached 10, and the resulting suspension was black. After 4 h of constant stirring at 30 °C, the suspension was centrifuged for 10 min at 3000 rpm. To eliminate excess chemical reagents, the precipitated particles were washed three times with distilled water and ethanol, after which they were dried for 12 h in an oven at 70 °C47.

Measurement of contact angle

Measuring the contact angle (i.e., the contact angle between the solid surface and liquid) is a significant technique for evaluating a rock’s wettability48. A stabilized wetness condition can be reached after 2–4 weeks of aging, according to Villard et al. (1993)49. In order to perform this research, the cut rocks were treated with crude oil at standard temperature and pressure for 5, 11, and 22 days. In this research, the contact angle was measured using the sessile drop method (Fig. 2). The technique included using a syringe pump with a needle and distilled water inside the syringe. Three drops of distilled water were poured on the rock surface, and then the contact angle between the solid surface and the distilled water drops was measured. Then the averaged data was registered. Ultimately, Image J software was utilized for analyzing the photos of the drops on the rock surface.

Fig. 2
figure 2

Illustration of the wettability analysis equipment.

Specification of transmission electron microscopy (TEM) device and energy dispersive X-ray (EDX) device

TEM analysis is one of the most important methods for studying materials, especially nanostructured materials, due to its extremely high ability to image particles. Using TEM analysis, it is possible to study the microstructure of materials, observe nanoparticles, and examine their internal structure, such as their core and shell structures. Therefore, this study used EM208S 100KV (PHILIPS, NETHERLAND) for TEM analysis.

Rock specimens were identified in this investigation using energy dispersive X-ray (EDX) analysis (AMETEK, ELEMENT EDAX, USA).

Fourier transform infrared spectroscopy (FT-IR)

The apparatus used for measuring the FT-IR spectra of the solid samples in the range 400–4000 cm− 1 was a Brucker TENSOR 27 Spectroscopy. All spectra were acquired by averaging 32 scans at a resolution of 4 cm− 1. To perform the analysis, a dry, finely ground rock powder (fresh or aged) sample and an oil sample were directly mixed with KBr (potassium bromide, one of the most widely used alkali metal halides for FT-IR analysis) at a ratio of 100:1. The mixture was then compressed to make a pellet, which was placed in a desiccator to remove the moisture content of the samples50. The dried and treated samples were used for the FT-IR test.

Results and discussion

The current research investigated how oil affected the wettability of two dolomite and calcite rocks. First, the contact angle between the rock specimen surfaces (calcite and dolomite) and the drops of distilled water was measured. The measured contact angle between the surfaces of calcite and dolomite specimens with distilled water was 50.70° and 56.50°, respectively. This indicates that the rock specimens were water-wet before starting any experiment. Finally, after various aging times (5, 11, or 22 days), rock specimens were removed from crude oil, and the contact angles between the surfaces of oil-wet samples (i.e., calcite and dolomite) with distilled water were measured.

TEM and FT-IR of the synthesized Fe3O4/gelatin nanocomposite

TEM

When it is claimed that a core/shell nanocomposite is made, two characteristics must be proven: (1) the particles are nanosized, and (2) the formation of a core/shell nanocomposite. These two characteristics can be proved by using the TEM test. Therefore, Fig. 3 shows the TEM image of the synthesized Fe3O4/gelatin nanocomposite. As shown, the size range of synthesized nanocomposite was 30–80 nm, and gelatin was well coated on the external surface of Fe3O4 NPs with a nearly spherical shape. Eventually, we can validate the nanocomposites’ core/shell synthesis in Fig. 3. The spherical morphology of nanoparticles is suitable for injection into oil reservoirs due to high mobility and the easy separation of NPs22. Therefore, the nanocomposite synthesized in this research can be a good choice for injecting into oil reservoirs as an EOR agent. It should be noted that Fe3O4 and SiO2 NPs were purchased from the US Research Nanomaterials company (according to Table 5). All characteristics and TEM images of Fe3O4 and SiO2 NPs are available on the US Research Nanomaterials website. Therefore, a TEM analysis is not required for these NPs (i.e., SiO2 and Fe3O4 NPs). The Supplementary Information contains further details about SiO2 and Fe3O4 NPs. Also, other samples (i.e., NaCl, CaCl2, gelatin, and SDS surfactant) are not nanoparticles and are known substances. Therefore, a TEM test is not required for these substances.

Fig. 3
figure 3

TEM image of synthesized Fe3O4/gelatin nanocomposite.

FT-IR

Figure 4 depicts the FT-IR test of the Fe3O4 NPs, gelatin, and Fe3O4/gelatin nanocomposite. In the gelatin spectrum, the characteristic band at 3425.4 cm− 1 is related to the stretching vibrations of the N-H band51. Also, the characteristic peaks at 1644.3 and 1552.6 cm− 1 are assigned to the amide I and amide II bands, respectively51. In the Fe3O4 NPs spectrum, the Fe-O band is found in the 574.3 and 445.5 cm− 1 peaks52. The characteristic peaks of Fe3O4 NPs and gelatin can be found in the spectrum of Fe3O4/gelatin nanocomposite, which confirms the successful coating of gelatin onto the surface of Fe3O4 NPs. Moreover, in the spectrum of Fe3O4/gelatin nanocomposite, shifting of the N-H peak to a lower wave number and increasing broadness of its band indicate effective interaction between Fe3O4 NPs and gelatin by electrostatic attraction53.

Fig. 4
figure 4

FT-IR of gelatin, Fe3O4 NPs and Fe3O4/gelatin nanocomposite.

Wettability change

Contact angles between 0° and 80°, 80° and 100°, and 100° and 160° are grouped as water-wet, neutral, and oil-wet, respectively54. All of the stated contact angles between water droplets (distilled water) and rock surfaces were measured in the tests.

Effect of oil on wettability

In this part, we examined the influence of the oil and its polar ingredients on rock specimens. Rock specimens (dolomite and calcite) were aged in oil for 5, 11, and 22 days. Figure 5 illustrates the contact angle characteristics of water droplets on rock specimen surfaces both before and after treatment in oil during a 22-day contact with oil period. It must be noted that all the tests in this study were done at ambient temperature and pressure. The contact angles of calcite and dolomite after 22 days of aging with oil were 104.00° and 107.70°, respectively. One of the factors impacting wettability change is the surface charge of carbonate rocks. Dolomite rocks show more change in wettability than calcite rocks. Compared to calcite, dolomite rocks have a greater positive surface charge40. Consequently, according to the results, the wettability change in dolomite is greater than in calcite. The wettability of rock surfaces is significantly affected by aging time55. According to Fig. 6, as the aging time of the rocks increases, the contact angle of the rock samples increases, and the two rocks, calcite and dolomite, become oil-wet. At pH values below 8–9.5, carbonate surfaces are often positively charged56,57 and act as feeble bases. Therefore, the acidic ingredients in the oil could adsorb onto the carbonate rock’s surfaces and change the rock’s initial surface wettability characteristics58. According to the results of numerous investigations, carboxylic acids irreversibly adsorb onto the surface of calcite59,60. Surface wettability may change due to the presence of polar functional groups in oil and other polar ingredients, such as asphaltene. Also, it is possible to change wettability with phenols and crude oil amides61,62.

Fig. 5
figure 5

Contact angle characteristics of a water droplet on rock specimens.

Fig. 6
figure 6

Contact angle changes of rock specimens with oil.

Analysis of EDX

The results of the EDX investigation of the rock surfaces before treatment (pure calcite and dolomite rocks) and after aging with oil are displayed in Fig. 7. It should be noted that EDX analysis was performed on rock samples that had been aged in oil for 22 days. According to the analysis, the calcite is mainly composed of O (52.45 wt%), Ca (30.96 wt%), C (12.99 wt%), Br (1.41 wt%), and Si (1.19 wt%). And Fe (1.01 wt%) that are present in the composition of untreated calcite. Additionally, for dolomite rock, the percentage of elements identified in the EDX spectrum was O (46.55 wt%), Ca (33.59 wt%), Mg (9.69 wt%), C (7.41 wt%), Fe (2.37 wt%), and Si (0.39 wt%). Calcite and dolomite are the two types of rock samples determined by the amounts of Ca, O, C, and Mg components63. To comprehend more about the interaction of oil with the rock specimen’s surfaces, EDX tests of the surfaces were taken after aging with oil. Table 6 indicates components observed by EDX analysis on the surfaces of rock specimens before and after treatment with crude oil.

Fig. 7
figure 7

EDX analysis of rock specimens before and after aging with oil.

Table 6 EDX test of rock specimens before and after treatment with crude oil

The results show that before aging, the carbon content in calcite rock and dolomite rock was 12.99 and 7.41 wt%, respectively, while it was approximately 83.45 and 49.18 wt% in treated rocks with oil. Therefore, the rise in carbon atoms is the outcome of oil absorption on the rock’s surface, which causes the wettability change. Therefore, the oil adsorption on the rock samples altered the wettability of dolomite and calcite rocks from a water-wet to an oil-wet condition.

FT-IR analysis

A useful analytical method that provides thorough insights into the chemical bonds and functional groups of both organic and inorganic compounds is infrared spectroscopy50,64,65. Oscillators are reflected in the infrared spectrum as a result of molecular vibration and spin50. To identify molecules, their chemical structures, and how they interact with their surroundings, infrared spectroscopy can be used50,65,66. Bond length or bond angle can change as a result of vibrations, leading to bending or stretching. Bond stretching can occur symmetrically or asymmetrically, in or out of phase67. Figure 8 illustrates the FT-IR spectra of pure calcite, pure dolomite, and calcite and dolomite aged with oil in the range of 4000 –400 cm− 1. The adsorption peaks of the carbonate group are displayed in Fig. 8, which is a spectrum of pure calcite. The carbonate anion bond relates to a peak of 1800.23 cm− 1 64. C-O stretching, out-of-plane bending, and in-plane bending vibrations are all attributable to the band at 1435.90 cm− 1, the band at 875.26 cm− 1, and the peak at 710.85 cm− 1, respectively. The results obtained are very similar to the opinions of other studies50, 64,66,68,69,70. The carbonate group relates to the C-O stretching vibration at an area of 1435.90 cm− 1. The vibrations of adsorbed water’s O-H stretching are attributed to the band between 3405.96 and 3548.91 cm[− 1 50, 64.

Band-symmetric deviations in the spectrum are visible after the calcite in oil has aged. An asymmetrical band indicates a mixture. After aging calcite with oil, this can be an indication of sample alteration67. The spectra of the oil-treated calcite illustrate more absorption at 2515.98 cm− 1, which indicates the concentration of hydrogen carbonate after treatment was increased71. An alkyl C-H bond can be seen in the peak at 2971.03 cm− 172. Because of the asymmetric stretch vibrations of the C-O bonds, adsorbing carboxylate groups formed a tiny absorption band of approximately 1798.80 cm− 1 64. Methyl asymmetric C-H stretching can be attributed to the band at 2869.36 cm− 1 67. These findings match the results that have been reported in research40,67,71. The FT-IR analysis results of pure dolomite and dolomite treated with oil are shown in Table 7.

Fig. 8
figure 8

FT-IR of pure calcite, calcite treated with oil, pure dolomite, and dolomite treated with oil.

Table 7 FT-IR band assignment40,73

Effects of seawater, SDS surfactant and Fe3O4/SDS on the wettability

For wettability modification, seawater can be used as a fluid. Thus seawater can enhance oil recovery through spontaneous absorption74,75. The attendance of Mg2+, SO42−, and Ca2+ ions in seawater is the agent of the wettability alteration40. Strong bonds are formed between the carboxylic groups and the positively charged calcium on the rock surfaces. On the surfaces of rocks, Mg2+ could substitute for Ca2+. Or, in other words, Ca2+ bound to the carboxylic group can be displaced by Mg2+. Therefore, Mg2+ can play a role in the mechanism of wettability change in seawater because it is a reactive ion towards the surfaces of rocks. A repelling force between carboxyl groups and SO42− occurs through the absorption of SO42− ions on the surfaces of calcite and dolomite. Therefore, the wettability of dolomite and calcite rocks alters when carboxyl groups are displaced from the rock surfaces40,75.

Oil-wet dolomite and calcite rocks were aged for 7 and 11 days in seawater. After placing the rocks in the oven and cooling them, their contact angle was measured. The contact angle of oil-wet dolomite rock decreased from 107.70° to 99.38° after aging for 7 days in Persian Gulf water. Also, the contact angle of oil-wet calcite rock decreased from 104.00° to 98.00° after 7 days of aging in Persian Gulf water. With rising treatment times, the contact angles of oil-wet dolomite and calcite rocks decreased from 107.70° to 92.09° and from 104.00° to 91.59°, respectively. The experimental observations indicate that seawater can only slightly alter the contact angle of rock specimens. The high salinity of seawater may be the cause of the slight contact angle reduction it causes. Based on the process of the salting-out effect, fewer carboxylic compounds can dissolve in the aqueous phase55.

Different surfactants have been evaluated for their effectiveness in oil recovery through laboratory testing and field research. According to the type of hydrophilic head group, they could be generally classified as anionic, non-ionic, cationic, and zwitterionic surfactants4. As a result, in this study, we evaluated wettability modification using SDS, an anionic surfactant. This type of surfactant contains a surface-active part with a negative charge4. To assess wettability alterations caused by surfactant, dolomite and calcite rocks aged with oil (rocks aged for 22 days) were chosen. The initial contact angles of dolomite and calcite rocks after aging in oil for 22 days were 107.70° and 104.00°, respectively. It is obvious that the rocks are oil-wet from the calculated contact angles. So, for 7 and 11 days, calcite and dolomite rocks were submerged in surfactant at a 2000 ppm concentration. The rocks were subsequently placed in a 45 °C oven for 40 min, and their contact angle was measured. After being treated with surfactants, the measured angles of the rocks, calcite, and dolomite, considerably decreased.

The dolomite contact angle was reduced from 107.70° to 44.12° and calcite from 104.00° to 33.16° after 7 days of SDS surfactant treatment. Dolomite rock’s contact angle decreased from 107.70° to 39.07° and calcite rocks from 104.00° to 27.38° after 11 days of aging in SDS surfactant. Therefore, according to Fig. 9, with increased aging time, the wettability of the rock changes to a water-wet state. The outcomes indicated that SDS surfactant is highly effective at modifying the wettability of rock surfaces. This is related to the fact that surfactants have charges on their surfaces; after forming micelles in the solution, SDS produces positive and negative charges, respectively. Since carbonates are positively charged, SDS functional groups adsorb to them, causing a surface to become more water-wet76. The molecules of surfactants contain both hydrophilic and hydrophobic parts. They can be absorbed in very low concentrations. The wettability of the minerals and, consequently, the movement of the oil are influenced by surfactant adsorption on the minerals and the position the surfactant selects17.

The surfactant absorbs to the surface through a hydrophobic reaction with hydrocarbon layers that have been absorbed on the surfaces of the dolomite and calcite rocks. The surfactants are absorbed as a monolayer of molecules of surfactant40,77. There has been a lot of investigation performed on the mixture of NPs with surfactants for EOR techniques. Their combination alters the characteristics of the reservoir by modifying wettability and adsorption at the oil-water interface due to surface-active groups78. When surfactant is injected alone in EOR methods, its amount decreases due to the surfactant’s high absorption on the rock surfaces79,80,81. The composition of chemicals and characteristics of the rock surfaces affect the surfactant’s absorption in the oil reservoirs. Also, high salinity, regardless of the concentration of the surfactant, causes high surfactant absorption4,82. Nevertheless, because nanoparticles aggregate quickly, using them alone has restrictions for the injection processes. Integrating nanoparticles with surfactants can result in stronger characteristics than utilizing these two substances separately due to their synergistic effects83. Through a phenomenon known as competitive adsorption, the surfactant’s interaction with nanoparticle surfaces reduces the quantity of surfactant that is absorbed into rock pores84,85.

Therefore, in the next portion of the experiment, the wettability of oil-wet rock specimens was investigated using a combination of SDS surfactant and Fe3O4 nanoparticles. Accordingly, dolomite and calcite rocks that had been treated with oil for 22 days were immersed in nano-surfactant (Fe3O4/SDS surfactant) for 7 and 11 days, respectively. The concentrations of Fe3O4 NPs and SDS surfactant used in the nano-surfactant solution were 3000 ppm and 2000 ppm as the optimum concentrations, respectively. To maintain the same conditions throughout the experiment, the base fluid employed was distilled water.

Dolomite and calcite rocks aged in nano-surfactant were put into the oven at 45 °C for 45 min. Afterwards, after the rocks cooled down, their contact angle was measured.

Dolomite and calcite were aged in nano-surfactant for 7 days, and the contact angles were measured at 34.65° and 29.46°, respectively. Also, the measured contact angles of dolomite and calcite after being immersed in nano-surfactant fluid for 11 days were 29.67° and 25.03°, respectively. For comparison and better understanding, the contact angle changes of dolomite and calcite samples due to seawater, SDS surfactant, and Fe3O4/SDS can be seen in Fig. 9.

Fig. 9
figure 9

Wettability alteration of rock specimens by seawater, SDS surfactant and nano-surfactant (Fe3O4/SDS surfactant).

Due to the outcomes obtained, the contact angles of the rocks decreased significantly with increasing the aging time of the rocks for 11 days in nano-surfactant. It indicates that the nano-surfactant used in this research was efficient in modifying the wettability of rock surfaces.

Wettability change by Fe3O4 and SiO2 NPs

The impact of Fe3O4 and SiO2 NPs on the modification of rocks’ wettability was investigated in the next step of the experiment. The wettability change mechanism in nanofluids is called “structural disjoining pressure86. In the beginning, the ordering of the nanoparticles causes a wedge-shaped structure to form between the solid and oil substrates (as illustrated in Fig. 10)87. The wedge tip’s NPs spreads due to the rising structural disjoining pressure. Thus, the possibility of NPs dispersion increases88. Ultimately, the oil adhered to the surface would be removed by the water film containing NPs by applying force and lowering the system’s free energy89. Brownian motion and the electrostatic repelling force between NPs are important factors in the creation of structural disjoining pressure90. The oil drop desorption can be helped by the nanoparticles’ ability to destabilize oil layers on oil-wet surfaces. Oil droplets exiting the surface cause the wettability to shift into a water-wet state91. One of the other possible mechanisms can be the absorption of NPs on the rock surface, which leads to a wettability change on the rock surface by increasing the disjoining pressure35. physisorption of the NPs on the rock can be named as the primary identified wettability alteration mechanism during nanofluid treatment92. During NPs adsorption, layer(s) of NPs are formed over the rock (or oleic phase) to change the surface wettability92,93. NPs are small-sized materials with an extraordinarily high surface area, they can absorb chemicals on their surface, based on their surface energy and the structure of adjacent molecules94,95. Besides, adsorption of the NPs can impact the substrate roughness and thus can shift the system headed for a more water-wet depending on NPs and surface wettability35,96,97.

Fig. 10
figure 10

Modified from98.

Mechanisms: (a) wettability change by NPs and (b) structural disjoining pressure by NPs.

Oil-wet rock specimens were submerged in Fe3O4 and SiO2 nanofluids for 7 and 11 days, respectively. The optimal concentration for both nanofluids was determined to be 3000 ppm. After placing the rocks in the oven and cooling them in the ambient air, their contact angle was measured. Figure 11 indicates the contact angle changes caused by SiO2 and Fe3O4 nanofluids.

As can be observed, after 7 days, the contact angle of rocks aged in SiO2 nanofluid became water-wet. Therefore, the contact angle of dolomite decreased from 107.70° to 66.16°, and the contact angle of calcite decreased from 104.00° to 64.13°. With the increase in the immersion of rocks for 11 days, the contact angle of dolomite decreased from 107.70° to 54.27°, and that of calcite decreased from 104.00° to 53.17°. Thus, it can be concluded that nanoparticles like surfactants alter the wettability of rock surfaces99.

The contact angles of dolomite and calcite rocks were then measured after being immersed in Fe3O4 nanofluid for 7 and 11 days, respectively. According to Fig. 11, after the treatment for 7 days with Fe3O4 nanofluid, the contact angle of dolomite rock decreased from 107.70° to 53.38° and that of oil-wet calcite rock decreased from 104.00° to 56.21°. With the aging period of the rocks increasing (11 days), the measured contact angles decreased significantly. Thus, the contact angle of dolomite rock decreased from 107.70° to 46.08°, and that of oil-wet calcite rock decreased from 104.00° to 51.16°. This may be caused by a change in surface free energy due to nanoparticles adsorption onto the solid surface35.

Fig. 11
figure 11

Wettability alteration of rock specimens by SiO2 and Fe3O4 nanofluids.

EDX analysis

EDX analysis was performed for calcite and dolomite rocks after immersion in SiO2 and Fe3O4 nanofluids. According to Table 8, the silica amount of calcite rock after treatment by SiO2 nanofluid was 17.20 wt%. Before aging, no silica was identified in dolomite rock. While the amount of silica after aging of dolomite rock in SiO2 nanofluid became 15.17 wt%. Also, no iron was observed in the calcite and dolomite rocks before treatment, whereas iron amounts were 32.18 wt% and 32.35 wt%, respectively, after treatment. As a result, it can be observed from the outcomes of the EDX test and measurement of contact angle that Fe3O4 and SiO2 NPs can decrease the contact angle of rock specimens. The EDX test of rock specimens after treatment with SiO2 and Fe3O4 nanofluids is illustrated in Fig. 12.

Table 8 EDX test of rock specimens after treatment with SiO2 and Fe3O4 nanoparticles
Fig. 12
figure 12

EDX test of rock samples after treatment with SiO2 and Fe3O4 nanofluids.

The impacts of NaCl and CaCl2 on the wettability

In this section, we examine the individual impacts of ions on rock surfaces. In this way, solutions with different concentrations were created as follows to evaluate the impact of NaCl and CaCl2 salts on the modification of the wettability of rock surfaces:

Aqueous solutions were made with NaCl and CaCl2 salts at concentrations of 1000, 5,000, 10,000, 25,000, 50,000, 100,000, and 200,000 ppm. Distilled water was used to make the solution. Then, calcite and dolomite rocks were treated for 11 days at different concentrations in an aqueous NaCl solution. Also, the aqueous solution was made with CaCl2 salt at similar concentrations. After aging rock specimens in CaCl2 and NaCl solutions, their contact angles were examined. The contact angles of dolomite and calcite rocks after treatment with NaCl and CaCl2 solutions are illustrated in Fig. 13.

Fig. 13
figure 13figure 13

Contact angle changes of rock specimens treated in NaCl and CaCl2 aqueous solutions.

As seen in Fig. 13(a) and (b), at first, when the NaCl solution concentration rises from 1000 to 10,000 ppm, the contact angle of calcite rocks and oil-wet dolomite decreases from 104.00° and 107.70° to 70.10° and 73.10°, respectively. After reaching the optimal salinity, the contact angle of rock specimens increased when the concentration of NaCl increased. Therefore, with the rise in concentration of NaCl from 10,000 to 200,000 ppm, the contact angles of calcite and dolomite specimens rise from 70.10° and 73.10° to 83.00° and 97.00°, respectively. Likewise, according to Fig. 13(c) and (d), at first, as the CaCl2 concentration increased, the rock specimens’ contact angles quickly decreased in the solution. After reaching the optimum point, an increase in the contact angle with an increasing concentration of CaCl2 was observed. Thus, the contact angle of oil-wet calcite and dolomite rocks decreased from 104.00° to 64.20° and from 107.70° to 66.00°, respectively, with increasing concentrations of CaCl2 solution (from 1000 to 25000 ppm). The contact angle of calcite and dolomite rocks increased from 64.20° to 85.90° and from 66.00° to 89.60° with rising concentrations of CaCl2 solution (from 25,000 to 200,000 ppm).

The results obtained demonstrate that alterations in the contact angle of the rocks are a function of the concentration of solutions of NaCl and CaCl2. As seen in Fig. 13, the wettability change of oil-wet rock specimens is not possible in NaCl and CaCl2 solutions with high salinity. The process of the salting-out effect and double-layer expansion for wettability change in low-salinity states was proposed by Lashkarbolooki et al. (2016)100.

Because of the greater ionic strength of CaCl2 than NaCl, the optimal salinity in CaCl2 solutions has a more pronounced effect on contact angle. The reduction in the solubility of organic compounds due to increased salinity and the salting-out effect is another factor related to the contact angle rising in these two salts’ presence55. As a result, carboxylic components have more solubility in the aqueous solution when the salt concentration is reduced. Finally, Breaking the bond between the positively charged rock surfaces and the negatively charged acidic groups in the oil, Causes the contact angle to decrease. The process of double-layer expansion will be activated by lowering the NaCl and CaCl2 salt concentrations55,101.

Finally, Fig. 13 indicates the CaCl2 solution’s contact angle reduction is higher than that of the NaCl solution. For reducing contact angles, divalent ions are superior to monovalent ions40.

The impacts of gelatin and Fe3O4/gelatin nanocomposite on the wettability

Gelatin is an ideal candidate for surface modification of NPs to use in nano-flooding because of its special characteristics, like biocompatibility, non-toxicity, surface activity, and low cost102. Collagen from animal skin and bones is thermally denatured or partially hydrolyzed to produce this natural polymer103,104. Gelatin is a mix of amino acids joined by amide bonds in a long molecular chain105. This substance has hydrophilic amino acids and hydrophobic amino acids. Table 9 shows the hydropathy index and other information used for gelatin. Therefore, gelatin can act as a biosurfactant due to its hydrophilic and hydrophobic amino acids. The process for wettability change of the rock specimen surfaces by gelatin is to create capillary forces via hydrophobic interaction between its hydrophobic amino acids and the oleic phase. As a result, this force removes the oil coating from the rock surface and causes the rock surface to become water-wet.

The mechanism of change in wettability by gelatin is shown in Fig. 14. In this research, gelatin was used as a natural polymer to assess the wettability of samples of oil-wet rock. Therefore, a 2000 ppm gelatin solution was created, and rock specimens were aged in the gelatin solution for 7 and 11 days, respectively, followed by a measurement of their contact angle. The contact angle of dolomite and calcite rocks decreased from 107.70° and 104.00° to 44.00° and 41.00° in 7 days. By increasing the contact time of rock specimens in gelatin solution, the contact angles of dolomite and calcite rocks decreased from 107.70° and 104.00° to 38.40° and 34.52°, respectively. According to the test findings, gelatin, as a natural polymer, can play an effective role in reducing the contact angle.

Table 9 Information and gelatin hydropathy index used in this research106.
Fig. 14
figure 14figure 14

Gelatin contains amino groups (NH2) and carboxyl groups (COOH) (a), Amino acid structure (b), Gelatin contains hydrophilic and hydrophobic amino acids (c), Mechanism of change in wettability by gelatin (d).

Some experiments have shown the modified behavior of Fe3O4 nanoparticles25. Although the usage of gelatin hasn’t been extensively researched in recent years as a polymer in EOR techniques, this could be an opportunity to assess this polymer’s potential for EOR applications. Hence, this study tries to examine the combination and synergistic impacts of Fe3O4 NPs and gelatin in the form of a nanocomposite. Figure 15 depicts the wettability alteration of dolomite and calcite rocks with gelatin and Fe3O4/gelatin nanocomposite. Therefore, the contact angle of dolomite and calcite samples aged in nanocomposite solution for 7 days decreased from 107.70° and 104.00° to 32.00° and 29.00°, respectively. With rising aging time (11 days), the contact angle of dolomite and calcite rocks decreased from 107.70° and 104.00° to 26.00° and 24.10°, respectively.

Nanocomposites can resist the force of adhesion between oil droplets and rock surfaces and separate the oil droplets from the surfaces by increasing the disjoining pressure on the rock surface. Also, nanocomposites lead to coatings on rock surfaces. Therefore, this coating creates a hydrophilic layer on the rock surface107,108. Consequently, the wedge layer’s disjoining pressure rises due to the presence of nanocomposites. Electrostatic repulsion forces between NPs have an impact on this mechanism. Disjoining pressure depends on various factors, like injection fluid salinity, temperature, and particle size8. According to the test results, the synergistic effect of Fe3O4/gelatin nanocomposite has better efficiency and performance compared to Fe3O4 nanoparticles and gelatin separately in reducing the contact angle.

Fig. 15
figure 15

Wettability alteration of rock specimens by gelatin and Fe3O4/gelatin nanocomposite.

The comparison of all the experiments performed in this study to evaluate the wettability of calcite and dolomite rocks in the presence of different salts, seawater, nanofluids, gelatin, nanocomposite, and SDS is shown in Fig. 16.

Fig. 16
figure 16

Comparison of contact angle reduction of oil-wet samples in the presence of different salts, seawater, nanofluids, gelatin, SDS, nano-surfactant, and synthesized nanocomposite.

Conclusion

The purpose of this research was to investigate the ability of the synthesized Fe3O4/gelatin nanocomposite to change the wettability of carbonate reservoir rocks and compare it with traditional nanoparticles (Fe3O4 and SiO2), SDS surfactant, seawater, different salts with different salinities, biopolymers, the effect of the combination Fe3O4/SDS surfactant, and the effect of aging time (7 and 11 days). The important results obtained in this research are:

  1. 1.

    1. By using crude oil, the surface of water-wet carbonate rocks became oil-wet during the aging process for 22 days. The contact angles of dolomite and calcite rocks were 107.70° and 104.00°, respectively. The reason for this wettability change may be due to the existence of heavy and polar elements in crude oil.

  2. 2.

    2. Due to the synergistic effects of Fe3O4/SDS surfactant, a significant decrease in the reduction of the contact angle of oil-wet rock samples was observed. The contact angle of oil-wet dolomite and calcite samples decreased from 107.70° and 104.00° to 29.67° and 25.03°, respectively.

  3. 3.

    3. With the increasing aging time, the wettability change to the water-wet state increases.

  4. 4.

    4. This study used a chemical co-precipitation technique to synthesize the Fe3O4/gelatin nanocomposite, which was assessed utilizing FT-IR and TEM analyses.

  5. 5.

    5. The synthesized Fe3O4/gelatin nanocomposite in terms of spherical shape and nano size is appropriate for injection into oil reservoirs.

  6. 6.

    6. Seawater showed the least decrease in contact angle, and the synthesized nanocomposite showed the highest decrease in contact angle. Consequently, after 11 days of rock specimens aging in nanocomposite solution, the contact angle of oil-wet dolomite and calcite specimens decreased from 107.70° and 104.00° to 26.00° and 24.10°, which can be the cause of this reduction in contact angle due to the disjoining pressure of nanofluids.

  7. 7.

    7. Due to the modified type of nanocomposites, which have two important properties: (1) wettability change from oil-wet condition to water-wet condition and (2) stability in reservoirs under different conditions, the use of this nanocomposite in harsh conditions in oil reservoirs as an EOR agent is considered a new and innovative study.