1 Introduction

Corrosion is the interaction between a material and its environment leading to degradation in the material properties. Mild steel is an important material which finds wide applications in industry due to its excellent mechanical properties and low cost. Acidic solutions are widely used in several industries for the removal of undesirable oxide films and corrosion products during acid pickling, acid descaling, industrial cleaning and oil-well acidization. Among the various methods to prevent destruction or degradation of metal surface, the corrosion inhibitor is one of the best know methods of corrosion protection and one of the most useful in the industry [1,2,3,4].

The selection of organic inhibitor is mostly based upon the aromaticity, electron density at donor sites, type and number of hetero atoms like N, O and S present in the compounds. Most organic inhibitors are more costly, toxic in nature and hence environmentally unfriendly. Among organic corrosion inhibitors, drugs are found to be safe due to their non-toxicity and environmentally benign nature. Corrosion inhibition properties of drugs have been studied by many researchers for different metal non-toxic and effective inhibitors, and are considered more important and desirable, nowadays, which are also called eco-friendly or green corrosion inhibitors [5,6,7,8,9,10].

For many drugs, though they have retained potency after expiry date, they are not used by the people for medical treatment. Disposal of such expired drugs after the expiry causes public health hazards due to environmental pollution and economic problems due to disposal costs to the pharmaceutical industries. To avoid this, recently many researchers have studied corrosion inhibitive properties for the expired drugs [11,12,13,14,15,16].

Fouda et al. [17] studied corrosion inhibitive properties of the fresh acetazolamide for carbon steel. The aim of the present work is to study the expired acetazolamide drug as corrosion inhibitor for mild steel in acidic solution using gravimetric and electrochemical methods. The name of commercially available acetazolamide is N-(5-Sulfamoyl-1,3,4-thiadiazol-2-yl)acetamide having empirical formula C4H6N4O3S2 with molecular weight 222.24 g mol−1. It is used for the medical treatment of cystinuria, glaucoma, epileptic seizure, idiopathic intracranial hypertension, altitude sickness and periodic paralysis.

Acetazolamide is a sulfa-based drug and can act as a good corrosion inhibitor due to the presence of four nitrogen, two sulphur and three oxygen atoms in the structure in Fig. 1.

Fig. 1
figure 1

Structure of N-(5-sulfamoyl-1,3,4-thiadiazol-2-yl)acetamide

2 Experimental Studies

2.1 Materials

2.1.1 Preparation of the Specimens

Mild steel (MS) coupons of size 3 × 3 × 0.051 cm with small hole of 0.5 cm diameter near the upper edge were prepared and polished with different emery papers ranging from 320 to 1200 grades. Further coupons were rinsed with double-distilled water, degreased in acetone and then dried at room temperature before use.

Electrochemical measurements were carried out on a 6-cm-long coupon with exposed area of 2 cm2 and remaining portion was covered with commercially available lacquers.

Mild steel composition in wt% shown in Table 1 is used in this study which was a ASTM A36 grade confirmed by Spectrochemical test ASTM E-415.

Table 1 Mild steel composition in wt%

2.1.2 Aggressive Solution

The aggressive solution (2 M HCl) was prepared by dilution of Analytical Grade 35.5% HCl with double-distilled water.

2.1.3 Inhibitor

Acetazolamide with brand name Diamox was purchased from medicine shop and used without further purification after 6 months of the date of expiry. Different concentrations of expired Acetazolamide drug were prepared by diluting appropriate volume of 1000 ppm stock solution.

2.2 Experimental

2.2.1 Gravimetric Study

In this experiment, beakers of 100 ml are labelled from 1 to 6 containing experimental solution with and without inhibitor. Inhibitor concentration of 100–500 ppm is used. Mild steel coupons of predetermined weight were separately immersed in 100-ml beaker containing experimental solution for periods of 1, 3, 6, 9, 15 and 24 h. Experiment was carried out in triplicates and average value of weight loss was reported. Temperature dependence of the inhibition efficiency was studied at temperatures in the range of 303, 313, 323 and 333 K using equitron stirred water bath. All experiments were carried out as described in ASTM standard G-1 procedures.

2.2.2 Electrochemical Study

All electrochemical measurements were carried out using Gamry Instruments Interface 1010T model at 303 K temperatures. Echem Analyst 7.06 Software installed in a laptop was used for fitting data. Three-electrode glass cell assembly with platinum wire as a counter electrode, a saturated calomel electrode (SCE) as a reference electrode and MS specimen (exposed area 2 cm2) were used as working electrode for electrochemical study. To attain a steady-state open circuit potential (OCP) working electrode are immersed in test solution for 30 min before starting each experiment.

The tafel polarization measurement was carried out at the scan rate of 1 mV/s versus the OCP in the potential range ± 150 mV at room temperature. The linear Tafel segments of the anodic and cathodic curves were extrapolated to corrosion potential to obtain the corrosion current densities (Icorr) and corrosion potential (Ecorr). Electrochemical impedance spectroscopy (EIS) measurements were carried out at a frequency range of 20 kHz–0.1 Hz with amplitude of 10 mV.

2.2.3 Surface Analysis Study

2.2.3.1 SEM-EDX Analysis

Mild steel coupons were immersed in 2 M HCl in the absence (blank) and presence of 500 ppm (optimum concentration) of expired acetazolamide solution at 303 K for 6 h. The composition and morphology of the corrosion products formed on the surface were examined by HITACHI High Technologies Corporation (model no.S-4800 Type-II Made in Japan) and also characterized for surface elemental composition using on Bruker AXS Gmbh Germany.

2.2.3.2 Fourier Transform Infrared Spectroscopic Analysis

The surface adhered film was scratched carefully and FTIR spectra were recorded for the inhibitor and that of the corrosion products (in the presence and absence of the inhibitors) using a FTIR (IR Affinity 1), Shimadzu, Japan.

3 Results and Discussion

3.1 Gravimetric Study

Corrosion rate, degree of surface coverage (θ) and inhibition efficiency (% IE) calculated from weight loss using following equations.

The corrosion rate (CR) was computed from the following equation:

$${\text{CR}}\left( {{\text{mm~per~year}}} \right)=\frac{{87.6W}}{{atD}}$$
(1)

, where \(W\) is the average weight loss of MS coupons, a represents the total surface area of one MS coupon, t is the immersion time and D is the density of MS in g cm− 3.

The surface coverage (θ) is calculated as follows:

$${\text{surface~coverage~}}\left( {{{\uptheta}}} \right)=1 - \left( {\frac{{{\text{CR}}}}{{in{h_{CR}}}}} \right),$$
(2)

where CR and inhCR are the corrosion rates of MS in the absence and presence of the inhibitors, respectively.

The inhibition efficiency (% IE) is calculated as follows:

$${\text{Inhibition~efficiency ~}}({\text{\% ~IE}}){\text{~}}={\text{surface~coverage~}}\left( {{{\uptheta}}} \right)~ \times ~100.$$
(3)

3.1.1 Effect of Inhibitor Concentration and Time of Immersion on Corrosion Inhibition

Inhibition efficiency (% IE) and Corrosion rate (CR) obtained from weight loss measurements are summarized in Table 2. For expired acetazolamide, inhibition efficiency at 313 K temperature observed is higher than that of at temperature 303 K. Corrosion rate decreases with increase in the concentration of inhibitor. After 15 h of immersion time, the inhibition efficiency showed a significant decrease then it slightly increased with the increase in the immersion time. This behaviour is due to desorption/adsorption of inhibitor molecules on the metal surface. Maximum inhibition efficiency was observed for a period of 9 h for 500 ppm inhibitor concentration (Fig. 2a, b.) [18].

Table 2 Inhibition efficiency of mild steel of the inhibitor in 2 M HCl for various immersion and time in different concentrations
Fig. 2
figure 2

a Variation of inhibition efficiency with Time of immersion for the different concentrations of expired acetazolamide in 2 M HCl at 303 K. b Variation of inhibition efficiency with time of immersion for the different concentrations of expired acetazolamide in 2 M HCl at 313 K

3.1.2 Effect of Temperature on Corrosion Inhibition of Expired Acetazolamide

Effect of Temperature was studied in the temperature range 303–343 K for 6 h of immersion time in 2 M HCl and various concentrations of expired acetazolamide. It is observed that the Inhibition efficiency of inhibitor has increased from 303 to 313 K which indicates that adsorbed layer on mild steel coupon is stable up to 313 K after that inhibition efficiency decreases with increase in temperature due to desorption of inhibitor (Fig. 3a, b). The data are summarized in Table 3.

Fig. 3
figure 3

a Variation of inhibition efficiency with Temperature for the different concentrations of expired acetazolamide in 2 M HCl. b Variation in Corrosion rate with Temperature for the different concentrations of expired acetazolamide in 2 M HCl

Table 3 Inhibition efficiency on mild steel of the inhibitor in 2 M HCl for range of temperature in different concentrations

3.2 Electrochemical Study

3.2.1 Tafel Polarization

The polarization study was carried out for mild steel in 2 M HCl solution in the absence and presence of various concentrations (100, 200, 300, 400 and 500 ppm) of expired acetazolamide drug at 303 K shown in Fig. 4. Electrochemical parameters such as tafel constants (βa and βc), corrosion potential (Ecorr), corrosion current density (Icorr) and Inhibition Efficiency (%IE) are obtained by the tafel extrapolation method. The inhibition efficiency (% IE) was calculated using the following Eq. (4) and represented in Table 4.

Fig. 4
figure 4

Tafel polarization curves for the dissolution of mild steel in the absence and presence of various concentrations of inhibitor at 303 K

Table 4 Electrochemical parameters from tafel polarization curves for the dissolution of mild steel in the absence and presence of various concentrations of inhibitor at 303 K
$${\text{\% ~IE}}=\frac{{{I^0}{\text{corr}} - I{\text{corr}}}}{{{I^0}{\text{corr}}}} \times {\text{~}}100,$$
(4)

where I0corr and Icorr are the corrosion current density in the absence and presence of the inhibitor, respectively.

From Table 4, it is concluded that corrosion current density decreases with increased concentration of inhibitor. Inhibition efficiency (% IE) has increased as well as rate of electrochemical reaction is reduced due to the formation of protective layer on the mild steel surface. Mixed mode of inhibition is considered for expired acetazolamide drug as the displacement in Ecorr is less than 85 mV with respect to the corrosion potential of the blank solution. Ecorr value slightly shifts towards negative direction in the presence of inhibitor as compared to the Ecorr value in blank solution, which indicates that inhibitor is with predominant control of cathodic reaction [19].

3.2.2 Electrochemical Impedance Spectroscopy (EIS)

Electrochemical Impedance Spectroscopy (EIS) used to provide information about the kinetics of the electrochemical processes at the mild steel/acid interface. Nyquist plots in the absence and presence of different concentrations of expired acetazolamide inhibitor at 303 K are shown in Fig. 5.

Fig. 5
figure 5

Nyquist plot for mild steel in the absence and presence of various concentrations of inhibitor at 303 K

The curves show a similar type of Nyquist plots for carbon steel in the presence of different concentrations of inhibitor. The diameter of the semicircles increases with increasing concentration of inhibitor. This indicates that inhibition efficiency increases with the increase in impedance of mild steel due to the formation of protective layer of inhibitor. Pure double-layer capacitor is replaced by the constant phase element (CPE) to give a more accurate fit.

In a Model (Fig. 6), Ru represents solution resistance, Rp represents the polarization resistance which consists of the charge transfer resistance (Rct), Polarization resistance (Rp) may include the different types of resistances such as Rct, charge transfer resistance; Rd, diffuse layer resistance; Ra, resistance of accumulated species (corrosion products or any existing molecules or ions); Rf, resistance of film.

Fig. 6
figure 6

Electrical equivalent circuit model used to fit the impedance measurements

$$R{\text{ct}}+R{\text{a}}+R{\text{d}}+{\text{Rf}}$$
(5)

But to simplify the calculation, they are measured as Rp. [20], Y0 represents CPE coefficient.

Alpha (α) represents CPE exponent (phase shift) which is a measure of surface homogeneity.

The double-layer capacitance (Cdl) was calculated from the following Eq. (6).

$${C_{{\text{dl}}}}={{\text{Y}}^0}{\left( {{\omega _{{\text{max}}}}} \right)^\alpha }^{{ - {\text{1}}}},$$
(6)

where ωmax = 2π fmax (fmax represents the maximum frequency at which the imaginary component of the impedance has a maximum value).

The inhibition efficiency (%IE) of the inhibitor has been found out from the charge transfer resistance values using the following Eq. (7).

$${\text{\% ~IE}}=\frac{{R{p^{inh}} - R{p^0}}}{{R{p^{inh}}}} \times {\text{~}}100,$$
(7)

where \({Rp}^{inh}\)and \({Rp}^{0}\)are the values of charge transfer resistance in the presence and absence of inhibitor in 2 M HCl, respectively. Results obtained are reported in Table 5.

Table 5 Impedence data for mild steel in absence and presence of various concentrations of inhibitor at 303 K

From Table 5, It is observed that Polarization resistance (Rp) increases, while the double-layer capacitance (Cdl) decreases in the presence of inhibitor compared to the blank solutions.

The increase in Rp values may be due to the gradual replacement of water molecules by the adsorbed inhibitor molecules on the mild steel surface. While the decrease in Cdl results from either decrease in local dielectric constant and/or an increase in the thickness of the double layer, this indicates the adsorption inhibitor molecules at the metal/solution interface [20,21,22].

3.2.3 Adsorption and Thermodynamic Study of the Corrosion Process

Nature of metal–inhibitor interaction can be studied with the help of adsorption isotherms. Data obtained for the degree of surface coverage were used to fit curves for different adsorption isotherms such as Langmuir, Freundlich, El-Awady, Temkin, Flory–Huggins and Frumkin. It is observed that Langmuir adsorption isotherm fits best to the surface coverage data obtained from weight loss measurements. Langmuir model was elucidated in Eq. 8

$$\frac{C}{\theta }=\frac{1}{{Kads}}+C$$
(8)

, where \(C\) is the molar inhibitor concentration, θ is the degree of surface coverage and Kads is the equilibrium constant of the adsorption process [23, 24].

Figure 7 shows the relationship between C/θ and C for the studied temperature range. The results show that the correlation coefficient (R2) and slope are around unity. This suggests that the adsorption of the drug inhibitor on metal surface obeys Langmuir adsorption isotherm.

Fig. 7
figure 7

Langmuir isotherm for the adsorption of Expired acetazolamide drug on mild steel surface

Free energy of adsorption ΔG0ads was calculated using the following relationship:

$$\Delta {{\text{G}}^0}_{{{\text{ads}}}}= - {\text{RT ln}}\left( {{\text{55}}.{\text{5 }}{{\text{K}}_{{\text{ads}}}}} \right),$$
(9)

where 55.5 is the concentration of water in solution in mol L and R is the universal gas constant. T is the absolute temperature.

Adsorption equilibrium constant (Kads) is given as

$${\text{Kads}}=\frac{{{{\uptheta}}}}{{\left( {1 - {{{\uptheta}}}} \right){\text{C}}}}.$$
(10)

From Table 6, the negative value of ΔG0ads implies that the adsorption process is spontaneous. The magnitude of signifies the nature of adsorption, whether it is physisorption or chemisorption [25, 26].

Table 6 Adsorption parameter derived from Langmuir adsorption isotherms for Mild steel corrosion at different temperatures

If the value of ΔG0ads is less than − 20 kJ/mol physisorption or less negative concludes physisorption which is due to electrostatic interactions between inhibitor and the charged metal surface while those around − 40 kJ/mol−1 or larger negative are concludes chemisorption due to charge sharing or transferring from organic species to the metal surface to form a coordinate type of metal bond .In this study, ΔG0ads adsorption values are less than − 40 kJ/mol but more than − 20 kJ/mol, indicates that nature of adsorption are both physisorption and chemisorption [27, 28].

3.2.4 Kinetic–Thermodynamic Corrosion Parameters

Mechanism of corrosion inhibition process can be studied with the help of Kinetic–Thermodynamic Corrosion Parameters.

The enthalpy of adsorption (ΔHads) can be calculated from the rearranged Gibbs–Helmholtz equation

$$\frac{{{{{\Delta}Gads}}}}{{\text{T}}}=\frac{{{{{\Delta}Hads}}}}{{\text{T}}}+K$$
(11)

The Plot of ΔGads/T versus 1/T gave a straight line with a slope of ΔHads as shown in Fig. 8.

Fig. 8
figure 8

Plot of ΔGads/T verses 1/T

Basic thermodynamic equation is use to determine the entropy of adsorption ΔSads was as follows:

$${{{\Delta}Gads}}={{{\Delta}Hads}} - {{T{\Delta}Sads}}$$
(12)

Variation of ΔGads versus T give straight line is useful to deduce value of ΔSads (slope) and ΔHads (intercept).

Van’t Hoff equation is also important to elucidate the values of enthalpy of adsorption (ΔHads) and entropy of adsorption ΔSads as follows:

$$~\ln Kads=~~\frac{{ - {{{\Delta}Hads}}}}{{{\text{RT}}}}+\frac{{{{{\Delta}Sads}}}}{{\text{R}}}{\text{~}}+{\text{ln}}\frac{1}{{55.5}}$$
(13)

Plot of ln Kads versus 1/T which gives straight lines with slopes with slope equal to [\(\frac{-{\Delta }\text{Hads}}{\text{R}}\)] and intercept equal to [\(\frac{{\Delta }\text{Sads}}{\text{R}} +\text{ln}\frac{1}{55.5}\)] as shown in Fig. 9.

Fig. 9
figure 9

Plot of ln Kads versus 1/T

\(\Delta {\text{H}}_{{{\text{ads}}}} {\text{ }}\) is negative indicates adsorption process is exothermic evinces physisorption, chemisorption, or a mixture of both. The positive value of ΔSads can be attributed to the increase in the solvent entropy. The value of the enthalpy and entropy of adsorption calculated by Van’t Hoff method and Gibbs–Helmholtz relations are in good agreement shown in Table 7 [29,30,31].

Table 7 Thermodynamic parameter by different methods for corrosion inhibition of mild steel using expired acetazolamide

The apparent activation energy values (C) for the corrosion process in absence and presence of inhibitor were evaluated from Arrhenius Eq. (13):

$${\text{log}}\left( {\frac{{{\text{CR}}2}}{{{\text{CR}}1}}} \right)=\frac{{{\text{Ea}}}}{{2.303{\text{R}}}}{\text{~~~~~}}\frac{{{\text{T}}2 - {\text{T}}1}}{{{\text{T}}1{\text{T}}2}},$$
(14)

where CR1 and CR2 are the corrosion rates at temperatures T1 and T2, respectively.

The heats of adsorption (Qads) also determined as

$${\text{Qads~}}=2.0303{\text{R}}\left[ {{\text{log}}(\frac{{{{{\uptheta}}}2}}{{1 - {{{\uptheta}}}2}}){\text{~}} - {\text{log}}(\frac{{{{{\uptheta}}}1}}{{1 - {{{\uptheta}}}1}})} \right] \times \frac{{{\text{T}}1{\text{T}}2}}{{{\text{T}}1 - {\text{T}}2}}.$$
(15)

The calculated values of Ea and Qads are summarized in Table 8. Increase in activation energy (Ea) in the presence of inhibitor as compared to in the absence of inhibitor suggests physical adsorption of drug on mild steel surface. Qads values are negative which indicates that the adsorption of inhibitor on mild steel surface is exothermic [32,33,34].

Table 8 Calculated values of activation energy (Ea) and heat of adsorption (Qads)

3.3 Surface Analysis Study

3.3.1 SEM-EDX Analysis

From SEM micrographs (Fig. 10a–c), It is clear that polished mild steel surface is very smooth. In the absence of inhibitor, mild steel is highly damaged and rough due to metal dissolution. Less pits and cracks are found due to the formation of protective film on the mild steel surface in the optimum concentration of inhibitor.

Fig. 10
figure 10

a Polished mild steel surface, b mild steel in 2 M HCl, c mild steel in 500 ppm expired acetazolamide

3.3.1.1 Energy Dispersive Spectroscopy

The energy dispersive X-ray analysis (EDX) technique was used to find the element composition of the surface of the mild steel sample from Fig. 11a–c in the presence and absence of inhibitor in 2 M HCl solution after 6 h of immersion is given in Table 9.

Fig. 11
figure 11

a Polished mild steel, b mild steel in 2M HCl, c mild steel in 500 ppm expired acetazolamide

Table 9 Element composition (Atomic %) of mild steel sample in the presence and absence of inhibitor in 2 M HCl solution after 6 h of immersion at 25 °C

EDX spectra were used to determine the elements present on mild steel surface in the presence and absence of the inhibitor solution. From Table 9, we conclude that that Fe peaks are considerably suppressed in the blank solution compared to polished Mild steel surface indicating the free corrosion of MS in 2 M HCl solution.

Also, the percentage of atomic content of Oxygen and Chlorine is low in 500 ppm inhibitor solution as compared to blank solution which indicates that less corrosion occurs due to the formation of protective film of inhibitor. Peaks for Nitrogen (N) and Sulphur (S) are observed in the presence of inhibitors which were absent in the blank solution is evident that protective layer is of expired acetazolamide drug [35, 36].

3.3.2 Fourier Transform Infrared Spectroscopic Analysis

By observing FTIR spectra (Fig. 12) of pure expired acetazolamide drug and scraps of mild steel surface protected by inhibitor, the shift in IR frequencies is summarized in Table 10. The shift in the frequencies of –NH, –C=O and –S=O suggests that there is interaction between the inhibitor and mild steel surface through these groups. Corrosion inhibition occurs though adsorbed layer of expired acetazolamide inhibitor on mild steel surface which supports the result obtained from SEM and EDX.

Fig. 12
figure 12

FTIR spectra of pure expired acetazolamide drug and scraps of mild steel surface protected by expired acetazolamide inhibitor

Table 10 Comparative data of IR Frequencies for different functional groups

4 Conclusions

  1. 1.

    Gravimetric studies showed that Expired acetazolamide acts as efficient green inhibitor for mild steel in 2 M HCl. The inhibition efficiency increases with the increase in concentration of inhibitor and found maximum for 500 ppm solution. Efficiency of inhibitor decreases with increasing temperature.

  2. 2.

    Tafel polarization study suggests that Expired acetazolamide acts as mixed inhibitor (Ecorr is < 85 mV) but slightly cathodic in nature

  3. 3.

    Electrochemical impedance spectroscopy (EIS) calculations showed that charge transfer resistance (Rct) increases and double-layer capacitance (Cdl) decreases in the presence of inhibitors, which suggested the adsorption of the inhibitor molecules on the surface of mild steel

  4. 4.

    Expired acetazolamide obeys Langmuir adsorption isotherm in the process of adsorption. Thermodynamic study suggests that the adsorption process is spontaneous (ΔG0ads is −ve), exothermic (Qads is −ve also ΔHads < 0) and follow both physical and chemical adsorption mechanisms.

  5. 5.

    Formation of the protective film of inhibitor on the mild steel was confirmed by surface analysis techniques (SEM-EDXS and FTIR)

  6. 6.

    Results obtained from gravimetric and electrochemical methods were in good agreement as follows:

 

Gravimetric

Tafel polarization

Electrochemical impedance spectroscopy

% Inhibition efficiency for 500 ppm expired acetazolamide

85.64

93.27

96.39