Introduction

Over the years, water-based muds (WBMs) and oil-based muds (OBMs) have been widely used to produce oil and gas wells (Sayindla et al. 2017; Oseh et al. 2018; Zhong et al. 2019; Nanthagopal et al. 2019). Owing to the lower environmental effect and operating cost, WBMs are extensively used (Fujii 2017; Sayindla et al. 2017; Oseh et al. 2019a, b; Boyou et al. 2019). However, as the well gets deeper, hotter and longer, the WBMs additives become prone to degradation, which often affects their rheological stability (Amani et al. 2012). Therefore, drilling operators have been tasked to use appropriate drilling fluid additives and technologies with innovative methods to withstand high-temperature wells and changing downhole conditions for optimized well economics. The sodium bentonite that is mainly used to add rheology and filtration control characteristics to conventional WBMs often starts to flocculate at temperatures nearing or above 250 °F (Amani et al. 2012). These drastically affect the performance of WBMs containing bentonite particles for high-temperature wells. An important property of drilling mud particles is their cohesive nature that differentiates them from non-cohesive solids, such as drilled cuttings or sand particles (Altun et al. 2015; Choo and Bai 2015). Bentonite particles in aqueous solution can stick together (flocculate or coagulate) due to van der Waals forces and can turn into aggregates or flocs (Kelessidis 2017; Elochukwu et al. 2017; Oseh et al. 2019b).

Flocculation takes place when clay platelets are electrically attracted to each other (Mahmoud et al. 2017). Three significant conditions can induce flocculations of drilling muds. They are: (1) high amount of active solids, such as clays or barite, (2) increased well depth and (3) high amount of soluble calcium or electrolytes, such as salts which are often regarded as the key source of flocculation (Moslemizadeh et al. 2015; Oseh et al. 2019b). These salts may originate from saltwater flows, make-up water, massive salt sections, salt stringers and commercial sources (Abu-Jdayil 2011). Sodium bentonite has a molecular formula of Al2H2Na2O13Si4 with a molecular weight of 422.286 g/mol. When the content of positive sodium ion (Na+) is increased up to 1%, water will turn out to be more positively charged. This charge will be stronger than the ionized protective layer that covers the clay platelets (Choo and Bai 2015). When the positive edge aluminium ions (Al3+) combine with the oxygen face, the edge-to-face movement will be accelerated. This often results in a dramatic increase in viscosity and increased loss of drilling fluid (Choo and Bai 2015). Flocculation or coagulation modifies the properties of the mud and causes colloids to aggregate and forms sediments in the mud (Abu-Jdayil 2011). This effect contributes to the modification in the behaviour of clay particles and causes resistance to the fluid flow. The mud becomes excessively gel-like, which lead to stuck pipe, and increasing viscosity that need more pump output to circulate (Mahmoud et al. 2017). Therefore, the addition of deflocculants to the drilling mud can contribute to controlling mud flocculation, and thus reduce the mud viscosity.

The addition of solid additives, such as barite or clay materials, increases the rheology of the drilling mud, especially the plastic viscosity (Kelessidis 2017; Oseh et al. 2018). Several recent studies indicate that locally sourced deflocculants (thinners or deflocculating agent) are effective in the control of clay flocculation and gelation of the drilling mud (Moslemizadeh et al. 2016; Basyuni et al. 2018; Ghazali et al. 2018a, b; Oseh et al. 2019a, b). In drilling mud, deflocculants prevent mud flocculation or gelation by controlling the rheology of the dispersed mud samples (Moslemizadeh et al. 2016). The control of mud rheological properties will help to reduce filtrate flux and ensure formation of a low-permeable filter cake at the wellbore. It will also help to prevent related wellbore drilling problems (Barry et al. 2015; Oseh et al. 2019b).

According to the reports of Neshat and Shadizadeh (2016), materials commonly used as deflocculants in WBMs are classified as plant tannins having a chemical formula C76H52O46 with a molecular weight of 1701.206 g/mol. Other deflocculants, such as lignosulfonates, have a chemical formula of C20H24Na2O10S2 and molecular weight of 534.502 g/mol, while low-molecular-weight water-soluble henna has a chemical formula of C10H6O3 and molecular weight of 174.15 g/mol (Moslemizadeh et al. 2016; Basyuni et al. 2018). Tannins are light-to-brown or reddish amorphous granular powder that are obtained chemically and are also derived locally from plants (Basyuni et al. 2018). Commercially, it is often referred to as tannic acid. Tannins or tannoids are normally found in the barks, woods, root, fruits and leaves of many plants, particularly phenolic compounds having enough hydroxyl (–OH) groups. Tannins when dissolved in water form colloidal solutions, but the nature of their solubility depends on their degree of polymerization (Wilson and Hatcher 1988). They are also soluble in alcohol and acetone and are introduced to carboxyl groups to build strong network structures with different macromolecules (Neshat and Shadizadeh 2016). They can also be derived locally from Rhizophora Apiculata traditionally called Bakau Minyak in Malaysia (Ghazali et al. 2018a, b).

Bakau Minyaks are also referred to as red mangroves. They originated from Rhizophora family, which is a gene of tropical mangrove trees and medicinal plants. These plants are vastly available in East and South-East Asia, such as Malaysia, Singapore and Thailand (Wilson and Hatcher 1988; Afidah 2005). Reports from the Forest Research Institute Malaysia (FRIM) revealed that Bakau minyak barks contain significant amounts of tannins, which is, however, subject to the method of extraction and type of solvents used (Sukardjo 1987). Rhizophora mucronata and Rhizophora mangle are common representatives of the Rhizophora family (Basyuni et al. 2018; Ghazali et al. 2018a, b, Vigneswaran et al. 2018; Maricusa et al. 2018). Locally derived tannin-based Rhizophora mucronata is abundant in soft tissues form, such as leaves, needles and barks wastes (Vigneswaran et al. 2018). Rhizophora mucronata species contain high proportions of tannin extracts (TE) (Vigneswaran et al. 2018; Basyuni et al. 2018).

Tannin extracts derived from Rhizophora mucronata species are divided into two forms: condensed tannin extracts (CTE) and hydrolysable tannin extracts (HTE) (Ping et al. 2011; Markom et al. 2007). In the former, benzene nuclei are combined with the larger complex through carbon linkages (Ping et al. 2011), while they combine with oxygen atoms in the latter (Markom et al. 2007). CTE are polymers and oligomers of three-ring flavanols, while HTE are also called gallic acid units (Pérez et al. 2017; Vigneswaran et al. 2018; Basyuni et al. 2018). CTE cannot be hydrolyzed by enzymes or acids, but could be condensed easily to lower-molecular-weight tannins (Pérez et al. 2017). HTE decompose in water, with which they react to produce other useful products, such as sugar, protocatechuic acid and garlic acid (Markom et al. 2007). Gallo-tannin is the best-known HTE, which can be extracted by the treatment of nut-gall with organic solvents or water (Markom et al. 2007).

Modified tannins are widely used commercial deflocculants for drilling fluids at high-temperature conditions (Zhang and Dai 1999). Plant barks contain higher amounts of tannins than any other part of the plant (Negm et al. 2015; Pérez et al. 2017). The tannin-based plant sources are Quebracho, Chestnuts, Mimosa and Acacia species (Gaugler and Grigsby 2009; Yunitaa et al. 2016). For drilling purposes, Modified Desco deflocculant is 80% of commercial deflocculants, which is mainly derived from Quebracho species and Acacia species (Elgailani and Ishak 2016; Ghazali et al. 2018a, b). It is a proprietary tannin-based product often used in drilling mud to decrease gel strength, yield point and viscosity. However, with the deeper drilling depth and higher-temperature wells, Desco deflocculant cannot effectively reduce viscosity due to high amount of suspended solids in drilling muds (Annis and Smith 1996; Gaugler and Grigsby 2009).

Modified Desco Tannin deflocculants are mostly imported and treated with chemicals before their applications, and these increase their operating cost, which limits their general application for drilling fluids. Thus, they are less environmentally friendly compared with locally derived deflocculant such as Rhizophora mucronata species (Ghazali et al. 2018a; Vigneswaran et al. 2018; Basyuni et al. 2018). With increasing strict environmental regulations prohibiting the use of chemicals that have adverse effects on the environment, the development of tannin-based deflocculant from naturally derived local species will be a viable option for substituting commercial Desco tannin. Therefore, this study used tannin extracts derived from Rhizophora mucronata (RMTE) (Bakau minyak) barks wastes to control the rheology, filtration and gelation of WBMs resulting from the flocculation of bentonite clay at four different temperatures of 225 °F, 250 °F, 275 °F and 300 °F. The performance of the RMTE in WBMs was compared with that of commercial Modified Desco Tannin (MDT)-based deflocculant under different temperatures. FTIR measurement was conducted to identify the functional groups responsible for the thinning effect of the extracted RMTE deflocculant.

Experimental details

Materials

Tannins were extracted from Malaysian species of Rhizophora mucronata (Bakau minyak) bark wastes. The extracted tannins were acquired from a local charcoal production company (Kuala Sepetang, Malaysia). The industrial-grade Desco deflocculant shown in Fig. 1 was obtained from Bri-Chemical Supplier Corporation (Denver, Colorado, USA). Analytical-grade concentrated sulphuric acid (H2SO4), formaldehyde, ethanolamine, toluene, acetone, anhydrous methanol, potassium iodate, hydrochloric acid (HCl) and ammonium acetate were acquired from Sigma-Aldrich (M) (Sdn. Bhd., Malaysia). These materials were used in the extraction process.

Fig. 1
figure 1

Commercial Desco deflocculant

Methods

Figure 2 shows the flow process used to extract tannins from Rhizophora mucronata, drilling mud formulations and property evaluation.

Fig. 2
figure 2

Flow process used to utilize the production and properties performance of RMTE and MDT-based drilling muds

Tannin extraction from Rhizophora mucronata bark wastes

Soxhlet extraction method was used to extract tannin from the Rhizophora mucronata bark (RMB) wastes, and the experimental extraction process used is shown in Fig. 3. The standard Soxhlet extractor (BUCHI Laboratory technique, Model B-811, China) was used with different concentrations of hot water as the solvent. In brief, tannin extracts were derived from the bark wastes of Rhizophora mucronata (Bakau minyak) tree (31–33 years old, 15–17 m high and 55–57 cm diameter) from a local charcoal production industry in Kuala Sepetang, Malaysia, and was processed in FRIM. They were air-dried to a moisture content of about 12–14% and sliced into small chips. The sample of the RMB plant was ground using Wiley mill into a powdered form and was filtered with a 0.5-µm mesh. Their moisture contents were maintained at 10% and stored. Twenty-five grams of the milled RMB sample was weighed into thimbles. The thimble was placed into the Soxhlet extractor chamber, and a measured volume concentration (ml) of the solvent was added into a round-bottom flask (RBF). Three different amounts of 9 ml, 13 ml and 23 ml of hot water were added for each 25 g of the milled RMB sample. The extraction solvent was allowed to boil for 3 h at 212 °F and 14.7 psi. The extracts were collected after 3 h, while the heating of the solvent vessel was continued for another 3 h. The tannin solution was collected after the 3-h heating and was placed in the rotary vacuum evaporator, heated again at 176 °F until the solution dries up leaving only the residue in the RBF. The weight of the RBF was measured and recorded. The extraction experiment was repeated three times for each solvent (toluene, acetone, methanol and water) at equal weight of RMB to identify the solvent with the optimum yield of tannin. The obtained extracts yields were measured, and the yields of the solvent with the optimum extractions of tannins were selected and used to produce more of the tannins for this study. Extracted RMB wastes are shown in Fig. 4a–c.

Fig. 3
figure 3

a Extraction of tannins from RMB wastes placed in the thimble; b draining of the extracted tannins

Fig. 4
figure 4

a RMB from Kuala Sepetang, b ground RMB and c processed RMB in powdered form

Characterization of RMTE powder

The characterization of RMTE sample was conducted through quantitative test to evaluate the extract yield and Stiasny index (SI) of tannins for CTE, while methanolysis reaction with potassium iodate (KIO3) was used to identify the HTE. The functional groups in the RMTE were examined using Fourier-transform infrared spectroscopy (FTIR 8400, Shimadzu, China). The RMTE samples were ground and pressed into pellets with KBr powder for the FTIR examination in the frequency range of 4000–400 cm−1.

Extract yield of CTE

RMB tannin extracts were placed in a beaker of measured weight. They were maintained in an oven at a temperature of 221 ± 2 °F. The extracted tannins were cooled in a desiccator and measured. The sample was reacted with 5 ml HCl and 10 ml formaldehyde (1:2 v/v) mixture for 3 h to enable the precipitate (i.e. the solute) to dissolve in the 1:2 v/v HCl–formaldehyde solvent mixture. The resulting product (precipitated solution) was sieved through a filter paper and washed with hot distilled water. The precipitate was air-dried at a moisture content of 10% and weighed again after drying. The process was repeated thrice, and the average yield per cent was calculated. The yield per cent of the RMTE sample was evaluated using Eq. (1) as follows:

$${\text{Yield}}\,{\text{percent}}\,\left( {\% \,{\text{yield}}} \right) = \frac{{{\text{Total}}\,{\text{dried}} - {\text{extracts}}\,{\text{weight}}}}{{{\text{Weight}}\,{\text{of}}\,{\text{oven}}\,{\text{dried}}\,{\text{sample}}}}$$
(1)

Stiasny indicator of CTE

Reactive tannin content is best represented with the Stiasny number, defined as a quantitative approximation of the overall polyphenols in tannin. The Stiasny index (SI) of RMTE sample was obtained using Eq. (2) as follows:

$${\text{Stiasny}}\,{\text{index}}\,\left( {\text{SI}} \right)\,\left( \% \right) \, = \frac{{{\text{Weight}}\,{\text{of}}\,{\text{precipitate}}}}{{{\text{Weight }}\,{\text{of}}\,{\text{dried}} - {\text{extracts}}\,{\text{used}}}}$$
(2)

Methanolysis and pH adjustment of HTE

The HTE in the barks of the Rhizophora mucronata tree was identified following a previous research (Makkar 2003). About 25 mg samples of dried RMTE were measured into 20-ml Pyrex screw top tubes by Teflon cap liners. In the methanolysis reaction, the tube top part served as a condenser and as such smaller tubes could not be replaced. Prior to the addition of 2.0 ml methanol and 18 M concentrated sulphuric acid (200 µl), the actual weight of the RMTE sample was recorded. The caps were firmly secured to avoid evaporation of solvent during heating. Samples were put in a heating mantle earlier maintained at 212 °F and were reacted at 212 °F for 20 h. The tabletop was used to centrifuge the samples. The supernatant obtained was quantitatively moved to a graduated cylinder of 5.0 ml, and the methanolysis tube was washed thrice with distilled water and centrifuged again as required. The volume was regulated to 3.0 ml with distilled water, and ethanolamine of four 50 µl aliquots was added and was mildly stirred. Five hundred microlitres of 3.7 M ammonium acetate was added to the RMTE sample, and the pH was regulated to 5.5. The pH control was cautiously done as the final volume and pH were very important to the positive attainment of the method. The sample was brought to a final volume of 4.0 ml with distilled water after the pH solution and the sample have been thoroughly mixed.

Reaction with KIO3

Approximately 80 μl of the RMTE sample was dispensed into a 2-ml micro-centrifuge tube. The adjusted pH blank reagent, which was prepared by treating a mixture of 2 ml methanol and 20 μl concentrated sulphuric acid, is added to bring the sample volume to 100 μl. Three hundred and fifty microlitres of water and methanol (1000 μl) were added and vortexed. The tube was tightly capped and placed in 86-F water baths. A background mixture similar to the reaction sample was prepared by substituting 350 μl of water with 350 μl of 0.3 N HCl. After adding and diluting the background mixture and the reaction samples, the KIO3 was added at time intervals. Five per cent (w/v) of 40 µl KIO3 was added to each sample. The sample was capped, vortexed and regulated to 86-F water baths. At 50 min, after the addition of KIO3 to the sample, its absorbance at 525 nm was recorded and the per cent HTE was calculated using Eqs. (3) and (4).

$${\text{Sample}}\,{\text{absorbance}}\, ( {\text{nm)}} = 0.0132 \times W + 0.0701$$
(3)
$${\text{Percent}}\,{\text{HTE}}\,\left( \% \right) = \frac{{{\text{Weight}}\,{\text{of}}\,{\text{tannin}}\,\left( {\upmu{\text{g}}} \right)}}{0.02} \times 100$$
(4)

where W is the weight of tannins in microgram (µg).

Drilling mud formulations

For one laboratory barrel (one-gram mass), equivalent to 350 ml of WBM, the water-based mud formulation followed the ascending order. Table 1 shows the compositions and functions of each of the additives used to formulate the WBMs following the API-recommended practice for field testing water-based drilling fluids (API RP 13B-1 2017). The base mud was formulated to achieve a density of 12 ppg (pounds per gallon). All the additives were mixed using Hamilton beach multi-mixer. The RMTE-based WBM was formulated by adding six different mass concentrations of 2 g, 4 g, 6 g, 8 g, 10 g and 12 g of the RMTE, equivalent to 350 ml of drilling fluids to the WBM. The MDT-based WBM was formulated with the same mud composition and procedure using 2 g, 4 g, 6 g, 8 g, 10 g and 12 g of the MDT. Henceforth, the use of the term “concentration(s)” indicates the amount of additive (in gram) added into 350 ml of the formulated water-based mud.

Table 1 Water-based mud formulation for laboratory scale, equivalent to 1 lab. bbl

Rheological and filtration properties tests

Fann Viscometer, model 35 (Fann Instrument, Company, Houston, Texas, USA), was used to measure the rheological behaviour of the mud samples before hot rolling test at four different temperatures of 225 °F, 250 °F, 275 °F and 300 °F. The API filtrate loss volume (API FL) was tested with the Fann API filter press at 100 psi and room temperature. Plastic viscosity (PV) and yield point (YP) were computed from the dial reading results of 600 rpm and 300 rpm by using Eqs. (5) and (6). The initial and 10-min gel strengths (GS) were also measured.

$${\text{PV}}\,\left( {\text{cP}} \right) = \theta_{600} {-}\theta_{300}$$
(5)
$${\text{YP}}\, ( {\text{lb}}/100\,{\text{f}}t^{2} ) = (\theta_{300} {-}{\text{ PV}})$$
(6)

Thermal stability test

The thermal properties of all the formulated drilling mud samples were measured after hot-rolling treatment for 16 h in a 4-roller oven under different temperatures of 225 °F, 250 °F, 275 °F and 300 °F. The rheological and filtration properties of the RMTE and MDT were compared using the concentrations of 2 g, 8 g and 12 g. The PV, YP, initial and 10-min GS of all the mud samples were again measured using Fann viscometer, model 35, according to the API recommendations (API RP 13B-1 2017). Fann high-pressure high-temperature (HPHT) filter press, series 387 (Fann instrument company, Houston, Texas, USA), was used to measure the HPHT filtrate volume (HPHT FL). The temperature in the heating jacket used was 250 °F, and the test pressure was 500 psi (differential pressure). Thereafter, the filter cake thickness (HPHT FCT) was measured.

Results and discussion

Extraction of RMTE with different solvents

Table 2 provides the yields in percentage of extracted RMTE using different solvents (acetone, toluene, water and methanol). It shows that tannin extractions with hot water and methanol produced the best results. Toluene gives the lowest yield of tannins, while acetone shows a slightly better yield over that of the toluene. Acetone and toluene were not considered suitable enough for the tannin extraction because of their lowest yield. Tannin-based RMB waste extraction with methanol shows the highest yield of tannins, and was just only a little fraction greater than that obtained with hot water. However, methanol exposure to the environment can affect human health, giving rise to dizziness, nausea, vomiting, headache, etc. (Arunprabu and Ramanathan 2016). Extraction with hot water is more economical compared to extraction with methanol, as confirmed in several recent investigations (Ghazali et al. 2018a; Vigneswaran et al. 2018; Basyuni et al. 2018). Thus, hot water was selected for the extractions of the RMTE deflocculant because it is safer, less harmful and cost effective. 

Table 2 Per cent yield of tannins extracted with different solvents

RMTE characterization analysis

Tables 3 and 4 show the per cent yields of CTE and HTE extracted with hot water, respectively. Previous researches revealed that tannin extracts from polymers are within the range of 60–80% for CTE and less than 40% for HTE (Ghazali et al. 2018a; Arunprabu and Ramanathan 2016). As shown in Table 3, the average yields of tannins extracted from RMB wastes were 72.8%, while those of HTE shown in Table 4 were below 0.2%.

Table 3 The data for condensed tannin extracts (CTE)
Table 4 The data for hydrolysable tannin extracts (CTE)

FTIR analysis

Figure 5 shows the FTIR spectra data of RMTE. The FTIR spectrum confirmed the presence of phenols, alcohols, aromatics, alkanes, alkenes, carboxylic acids, alkenes, ethers and esters in the RMTE. The bands at 3416.4 cm−1, 3305.2 cm−1 and 3200.2 cm−1 are attributed to the –OH groups through hydrogen bonding, showing the presence of phenols and alcohols as the interacting functional groups. The bands at 2400 cm−1, 2350.3 cm−1 and 2065 cm−1 are ascribed to the stretching vibrations of alkanes (C–H) groups, while the band at 1651 cm−1 is assigned to the –C=C stretching vibrations of alkenes. The band at 1461 cm−1 is attributed to the stretching vibration of aromatic –C–C (in-rings). The bands at 1140 cm−1, 1082 cm−1 and 961.3 cm−1 are assigned to the stretching vibrations of the alcohols, ethers, esters and carboxylic acids (C–O) groups. The characteristic bands at 757.8 cm−1, 623 cm−1 and 450 cm−1 belonged to the =C–H bending vibrations of alkenes. Thus, the FTIR spectra confirmed the functional groups in the RMTE deflocculant.

Fig. 5
figure 5

FTIR spectra of RMTE

Mud properties evaluation

Rheology and filtration properties of the base mud

Table 5 shows the data of the drilling mud formulations for the PV, YP, gel strengths, filtrate volume and the filter cake thickness before and after hot rolling tests under different temperatures. The WBM was formulated to be thick and viscous to replicate gelation behaviour. According to the data shown in Table 5, the rheological properties of the drilling mud systems do not significantly change under different temperatures. The behaviour is comparable at all temperatures. However, the drilling mud PVs, YPs and gel strengths decreased with the increased temperature before hot-rolling treatment. This behaviour is similar to the observed trend of the Viscometer dial readings measured from 600 rpm to 3 rpm from the shear rate of 5.11–1021 (1/s). Temperature effect is a crucial factor in determining the stability and suitability of drilling fluid properties. This is because of bentonite flocculation at higher temperature exceeding 250 °F. These effects reduced fluid viscosity and increased drilling fluid loss (Oseh et al. 2019b). The PVs, YPs and gel strengths of the base mud decreased under different temperatures after hot-rolling treatment, which is due to the weakening of intermolecular attractive forces holding the mud particles together (Aftab et al. 2016; Oseh et al. 2019b). The decreases were not large enough to affect the performance of the WBMs, which is due to the temperature resistance of bentonite particles up to about 250 °F (Amani et al. 2012).

Table 5 Formulated WBM properties before and after hot rolling tests

The performance of filtration control additives in reducing filtrate loss volume is dictated by the behaviour of the fluid viscosity. The filtrate loss volume increased with increased temperature before and after hot rolling tests. The increase in the API filtrate volume was minimal under different temperatures before hot-rolling treatment. The minimal increase is due to the good temperature resistance of the mud particles (Aftab et al. 2016; Saboori et al. 2018). Increased temperature has the effect of reducing the viscosity of the liquid phase and hence increasing filtration (Li et al. 2015; Oseh et al. 2019a, b). The mud samples showed higher values in the filtrate loss volume under the HPHT conditions compared with the API conditions. For example, at 50 °C, the API filtrate volume (18.7 ml) increased to 31.2 ml measured under HPHT conditions by 66.8%. The data of both the API and HPHT FL under different temperatures are reasonably high, indicating high seepage of drilling fluids (Chilingarian and Vorabutr 1983; Mao et al. 2015). A possible reason is because of the sodium ion (Na+) flocculation in the drilling mud. Sodium (Na) is a monovalent cation and can interact in a charge-deficient environment in such a way that its dispersion in water can cause separated layers of clay particles (Aftab et al. 2016; Oseh et al. 2019b). The HPHT FCT under four different temperatures after hot rolling increases slightly and is within the operating range under high-temperature conditions (API RB 13B-1 2017).

Effects of MDT and RMTE on the properties of the base mud before hot rolling

Effect on plastic viscosity

Figure 6a and b shows the effect of MDT and RMTE deflocculants on the PV of the WBM under different temperatures, respectively. The PVs of the WBM containing concentration of MDT and RMTE were significantly decreased with increasing concentration. The PVs related to the two deflocculants are very much comparable. However, the locally derived deflocculant showed lower PVs compared to the commercial Desco deflocculant, which implies that the circulation of drilling mud can be more effective with the use of RMTE deflocculant without causing much frictional pressure in a drilling situation (Ghazali et al. 2018a, b). Increasing temperature does not strongly affect the deflocculating characteristic of the thinners, as increases with the concentration of both the MDT and RMTE thinners provide good and similar thinning effects. For example, with a concentration of 4 g measured at 250 °F, the PV of the WBM reduced for 38 cP to 25 cP by 36.8% and to 23 cP by 39.5% with MDT and RMTE deflocculants, respectively. Measurement taken with the same concentration at 275 °F also showed a decreased in the PV of the WBM from 36 cP to 24 cP by 33.3% with MDT deflocculant and to 22 cP by 38.9% with RMTE deflocculant. Going further to 300 °F with 8 g concentration, the PV of the WBM reduced by 45.7% and 57.1% when the Desco and locally derived deflocculants were introduced into the WBM. It can be suggested that the mechanism by which the industrial-grade Desco and the designed RMTE functions in thinning the PVs of the base mud is by thinning the clay particles present in the mud. This was achieved through adsorption of the deflocculants on the positively charged edges of the clay platelets, such as bentonite clay (Moslemizadeh et al. 2015; Oseh et al. 2019b). The adsorption causes repulsion which reduces the friction between clay platelets, thereby leading to decrease in viscosity (Elochukwu et al. 2017). The WBMs were also deflocculated by the contributions of the plugging characteristic of the deflocculants. The MDT and RMTE were able to increase the solid distributions in the WBM systems by deflocculating clays and barite solids in the mud through the hydrogen bond. Through their colloidal nature, they skewed the size distribution of the particles of higher values. This action increases the thinning ability of the deflocculants (Ghazali et al. 2018a).

Fig. 6
figure 6

Plastic viscosity of a MDT and b RMTE at different temperatures

Effect on yield point

Figure 7a, b shows the effect of MDT and RMTE deflocculants on the YPs of WBMs, respectively. Deflocculants are typically needed in a mud system to reduce the linking of clay layers by adsorbing onto the clay positive charged edges (Oseh et al. 2019a, b). As Fig. 7 shows, increase in concentration of MDT deflocculant reduces the YPs of the base mud with increasing temperature. With a concentration of 2 g, the YP of the WBM at 225 °F reduced by half (21 lb/100ft2) of its initial value using commercial MDT deflocculant. By the same condition, the YP of the base mud decreased by 57.1% of its initial value with the RMTE deflocculant. With increasing temperatures of the thinners, the YPs of the base mud decreased with a concentration range between 2 and 8 g, and these effects extend to 12 g with the Desco deflocculant. However, after the addition of 10 g and 12 g of RMTE deflocculant, the YPs of the base mud started to increase with increasing temperature for all the temperature conditions. Thinning performance of the deflocculants up to 8 g indicates a better performance with the RMTE. This portends that 8 g concentration is the optimum deflocculating ability of the RMTE. As shown in Fig. 7b, beyond the 8-g concentration, the RMTE was no longer capable of neutralizing the positive charges on the clay edges as well as preventing clay layers from building a consolidated network (Moslemizadeh et al. 2016; Oseh et al. 2019b). Overall, the extracted RMTE indicates good thinning characteristics as it matched the commercial Desco deflocculant up to 8-g concentration. These data indicate stronger thinning ability with the use of RMTE at a lower concentration compared with MDT, which is beneficial for drilling economics.

Fig. 7
figure 7

Yield point of a MDT and b RMTE at different temperatures

Effect on gel strength

Figures 8 and 9 show the data on the initial and 10-min GS of the two studied deflocculants under different temperatures, respectively. The data show significant reduction in the initial (Fig. 8) and 10 min (Fig. 9) gel strengths of the WBM with the Desco and RMTE deflocculants. They vary slightly with changes in temperature and they exhibited “low-flat gels”, which is very much desirable and preferable in drilling operation to “high-flat gels” and “high gel strength”. “Low-flat gels” can mitigate the propensity of stuck pipe incident, while high GS and ‘high-flat gels’ need greater pumping to resume fluids circulation and are therefore undesirable for drilling operation (Caenn et al. 2017; Oseh et al. 2019b). From the observed trends, mud samples pertaining to the RMTE indicate lower gel strength at all temperatures compared to those of the MDT.

Fig. 8
figure 8

Initial gel strength of a MDT and b RMTE at different temperatures

Fig. 9
figure 9

10-min gel strength of a MDT and b RMTE at different temperatures

According to the previous investigations (Moslemizadeh et al. 2015; Neshat and Shadizadeh 2016; Ghazali et al. 2018a; Oseh et al. 2019a, b), the mechanism of deflocculant is mainly on their capacity to separate individual unit layers of clay platelets from linking together by adsorbing onto the positive charged edges of the clay platelets. This adsorption prevents the formation of a strong network leading to decrease in PV and subsequently, the reduction in the gelation of the drilling mud. As observed in the YP of the base mud with RMTE deflocculant at concentrations above 8 g (Fig. 7b), the same phenomenon was observed with 10-min gel strength of the base mud with RMTE for all temperature conditions (Fig. 9b). The thinning effect of the drilling mud formulations was lower with the RMTE compared to that of the MDT before the 8-g concentration. For example, at 250 °F using 8 g concentration, the MDT decreased the 10-min GS of the WBM by 55.9%, while the RMTE demonstrate 59.3% thinning. After 8 g, further addition of the RMTE increases the gelling of the base mud with increasing concentration. At 250 °F, the GS of the base mud with RMTE reduces by 32.2%, while the MDT demonstrates higher reduction by 54.2%, confirming the similar behaviour of the YP and 10-min GS by both deflocculants. This further validates that the RMTE deflocculant will be more efficient with a concentration of 8 g in conventional WBM under the same studied conditions.

Effect on filtration properties

Figure 10a, b shows the data on the API filtrate volume of the two studied deflocculants under different temperatures. The filtrate volume of the mud samples was slightly better controlled with the RMTE deflocculant. The filtrate volume of the WBM significantly decreased with increasing concentration of the MDT and RMTE deflocculants. However, it also minimally rises with increasing temperature, owing to the ability of the energized liquid particles to move more freely (Oseh et al. 2019b). With 8-g concentration, the MDT and RMTE at 300 °F hugely reduced the API FL of the base mud samples by 62.3% and 63.1%, respectively, indicating that the locally derived RMTE is comparable with the commercial Desco. After 8 g addition, the WBM containing the RMTE showed better filtrate control with increasing concentration and temperature compared to that of the MDT.

Fig. 10
figure 10

API filtrate volume of a MDT and b RMTE mud samples

As shown in Fig. 10, the thinning property of the two drilling muds was very efficient. They effectively decreased the filtrate volume of the base mud at all temperature conditions. FTIR test data earlier indicated that Rhizophora Mucronata has active –OH groups in their network. Because of the presence of the hydrogen bond, the newly designed RMTE adsorbed onto the positive charged edges of the clay platelets to neutralize the positive charges, thereby causing a decrease in filtrate loss volume (Oseh et al. 2019b). In addition, the RMTE deflocculant has a good wall-building property, due to its ability to skew the particle size of clays to become uniform (Ghazali et al. 2018a, b).

Temperature resistance of drilling mud formulations

Figures 11, 12, 13 and 14 show the temperature resistance on the PV, YP, GS and HPHT filtration properties of the formulated drilling muds. Comparing the mud system’s behaviour before hot rolling tests (Figs. 6, 7, 8, 9, 10) and after hot rolling tests (Figs. 11, 12, 13, 14), the drilling mud properties were not significantly affected by the concentrations of 2 g, 8 g and 12 g each of MDT and RMTE in WBM systems. The three concentrations for all measured temperatures indicate significant changes in the rheological properties compared with the WBM.

Fig. 11
figure 11

Effect of temperature on plastic viscosity of MDT and RMTE mud samples

Fig. 12
figure 12

Effect of temperature on yield point of MDT and RMTE mud samples

Fig. 13
figure 13

Effect of temperature on a initial and b 10-min gel strength of MDT and RMTE mud samples

Fig. 14
figure 14

HPHT filtration properties of a MDT and b RMTE mud samples

As Fig. 11 shows, the concentration of 2 g at 225 °F decreased the PV of the base mud by 31.4% by using MDT and by 37.1% with the RMTE, indicating a better thinning effect by the RMTE over the MDT. Referring to Fig. 6 before hot rolling test, at the same concentration and temperature, the thinning ability of the MDT and RMTE on the PV of the base mud was 30.8% and 35.9%, respectively. As observed from the PV data, the mud samples after hot rolling tests compared favourably with those obtained before heating, which is indicative of the good thermal stability of both deflocculants with changing temperature. RMTE deflocculant displayed a better reduction in PV compared with the Desco before and after hot rolling tests.

As Fig. 12 shows, the locally sourced tannin has comparable YP with the commercial Desco at all temperatures. The formulated base mud with the deflocculants significantly decreased the YP with increasing concentration at all temperatures. At 8 g of the deflocculants at high temperature of 300 °F, the YP of the base mud decreased in the same value of 66.7%. These results are similar to the trend of YP observed for both MDT and RMTE before hot rolling tests. The Desco achieved a better thinning effect of the YP of the base mud at 12 g over that of the RMTE. The two deflocculants showed good temperature resistance, but a higher thinning effect of the WBM was observed after hot rolling tests compared to that observed before hot rolling tests. The increased YP data for the RMTE after 8 g concentration further demonstrate it to be its optimal thinning capacity. The more distance created among the clay particles after hot rolling due to the –OH groups neutralization of the positive charges on the clay edges was the reason for their inability to effectively link together to form a stronger network structure (Annis and Smith 1996; Oseh et al. 2019b). This has helped to reduce the yield point of the base mud.

It can be observed from the initial and 10-min GS data that the two deflocculants decreased the gelation effect of the base mud (Fig. 13). The initial GS of the WBMs is within the decreasing range of 8.7–8.2 lb/100ft2 for the different temperature conditions. These values decreased to the range of 5.1–6.3 lb/100ft2 by the MDT and to the range of 4.7–6.4 lb/100ft2 by the RMTE (Fig. 13a). The deflocculants show similar initial gel strength trends by increasing with increasing concentration and temperatures, which is unlike that of the base mud at the decreasing trend with temperature. The effect of the deflocculants on the gel strength of the WBM was significantly higher for 10-min GS compared with the initial GS (Fig. 13b). The 10-min gel strength of the WBM was significantly reduced by the MDT to the range of 13.5–12 lb/100ft2 and to the range of 16–10 lb/100ft2 by the RMTE at increasing temperature.

Just like the data of the initial GS after hot rolling test, the RMTE has a good comparison with the MDT in deflocculating the 10-min GS of the base mud. The mud samples with 2 g, 8 g and 12 g concentrations of the deflocculants oven-rolled for 16 h do not affect much their thermal stability. As mentioned earlier, the RMTE deflocculant disrupts any formation of strong gel networks by the clay platelets, owing to the neutralization of the positive charges on clay edges. These phenomena contribute to reducing the gelation of the WBM (Li et al. 2015; Ghazali et al. 2018b; Oseh et al. 2019b).

Figure 14 shows the HPHT FL and FCT of the base mud systems with MDT and RMTE. The HPHT FL of the base mud after hot rolling test was within the range of 31.2–34.1 ml, and it was higher than the API FL before hot rolling test. Filtration control properties of conventional WBM greatly depend on the performance of colloidal properties present in the mud (Mao et al. 2015). With 2 g, 8 g and 12 g concentrations of MDT (Fig. 14a) and RMTE (Fig. 14b), the filtrate volume of the base mud reduced to the range of 15–14 ml and 14–10 ml with MDT and RMTE, respectively. The RMTE deflocculant showed good filtration control capacity, which is a little better than that of the MDT. With a concentration of 8 g at 275 °F, MDT reduced the filtrate volume of the base mud by 56.8%, while RMTE showed a higher reduction of 63.6%. A similar trend was observed at the same concentration at 300 °F, where the filtrate loss volume of the base mud with MDT decreased by 56.0%, and 63.6% reduction was demonstrated by the RMTE. These data further typify the better thinning effect of the RMTE over the Desco deflocculant.

The more the filtrate loss into the formation, the more the thickness of the filter cake (Oseh et al. 2019c). Figure 14b shows comparable HPHT filter cake thickness of both deflocculants. The HPHT FCT of the base mud increased with increasing temperature in the range of 5.1–5.8 mm. The data authenticate the lower cake thickness of the base mud with the locally derived tannin compared with the commercial Desco. The HPHT FL after hot rolling test is within the API recommendations for drilling fluid under HPHT conditions (API RB 13B-2 2017). These data in Fig. 14 indicate RMTE to be more effective in minimizing filtrate flux compared to Desco. It can therefore be suggested that the addition of RMTE more improved the filtration control of the base mud and hence the lower filter cake thickness. The overall outcomes of the tests illustrate that RMTE stands a chance of being one of the technically, low-cost and environmentally viable replacements for the industrial-grade Desco deflocculant, mostly for the higher cost and least safe of the Desco deflocculant.

Conclusions

The following conclusions are drawn from this study:

  1. 1.

    A tannin-based deflocculant derived from Rhizophora mucronata bark wastes was effectively extracted using hot water solvent, and FTIR test indicates that the extracted RMTE contains different functional groups including –OH groups, which was responsible for its mud’s thinning ability.

  2. 2.

    The RMTE has comparable drilling fluid properties to that of the commercial Desco, but its application for drilling fluid should be limited to 8 g concentration under the same working conditions, where it shows better deflocculating performance than the commercial Desco.

  3. 3.

    The newly designed RMTE deflocculant was compatible with high-temperature conditions, and it has good temperature resistance. Therefore, more attention should be directed to the use of locally derived tannins for the formulation of WBMs instead of commercial Desco, mostly for their low cost and ecological approval.