Introduction

Since the onset of industrial revolution, mild steel has been used as an alloy for a number of structural and industrial applications [1]. Acid solutions are used in various industries during acid pickling, acid descaling, industrial cleaning and oil-well acidization, etc. [2]. Acidic media results in a uniform corrosion of mild steel with pitting at high concentrations of acid [3,4,5,6]. The use of inhibitors is one of the most proficient methods for protection of metals from corrosion in acid medium. Organic compounds containing N, O, S heteroatoms and π electrons in their molecules are considered as effective corrosion inhibitors [2,3,4,5]. The inhibitor molecules form a protective film on metal surface that prevents corrosion [7]. Nowadays, researchers are mainly focusing on the use of non-toxic and “green” corrosion inhibitors, e.g., plant extracts and drugs to obviate the harmful effect of chemicals on environment [8,9,10]. Because of their non-toxic characteristics [18] and negligible negative impacts on the aquatic environment [19], drugs (chemical medicines) seem to be the ideal candidates to replace traditional toxic corrosion inhibitors [9]. A number of studies are available describing the application of drugs as efficient corrosion inhibitors [9,10,11,12,13,14,15,16,17].

However, most of the pharmaceutically active substances are far more costly than the organic inhibitors presently employed. It is reported that the active constituent of a drug degrades only infinitesimally and more than 90% of the drugs maintain stability long time after the expiration date [20]. Physicians, however, never recommend the practice of administering a medicine past its expiration date. Hence, the only possible fate an outdated drug can have is either a trashcan or worse, a toilet flush after either of which it comes into direct contact with an environment where it can either get exposed to sunlight or moisture or both. This situation is most likely to induce an uncontrolled change in the chemical constituents of the drug, e.g., degradation, impurity formation or change in dissolution profile, etc. Worse part is, unlike the known industrial waste effluents, since the origin of the influx of an outdated drug in the environment is unknown, its course also becomes unpredictable. Hence, once a well-known and acknowledged biocompatible substance may directly get converted to a potential biohazard.

In this context, the use of expired drugs as corrosion inhibitors can not only reduce environmental pollution, but can also lead to a reduction in the disposal and degradation costs of expired drugs. Atorvastatin is a member of the drug class known as statins, which are used principally as a lipid-lowering agent and for prevention of issues associated with cardiovascular disease. Atorvastatin, marketed under the trade name Lipitor manufactured by Pfizer, is among the most highly prescribed and one of the top selling drugs in the world [21] and hence is highly likely to enter the environment and cause contamination.

Hence, prompted by the above observations, the objective of the present study is to investigate the use of the expired atorvastatin drug as a novel material for corrosion inhibition of mild steel. To validate the applicability of the expired drug for corrosion inhibition, a detailed comparison with its fresh counterpart is carried out to verify whether there is any significant difference in the corrosion inhibition behavior of fresh atorvastatin (FA) and expired atorvastatin (EA). The corrosion inhibition action of FA and EA was studied on mild steel in 1 M HCl solution using weight loss studies, potentiodynamic polarization and electrochemical impedance spectroscopy techniques.

Experimental

Materials

All the tests were performed on the mild steel (MS) coupons having the following composition (wt%): 0.076% C, 0.192% Mn, 0.012% P, 0.026% Si, 0.050% Cr, 0.023% Al, 0.123% Cu and balance Fe. MS strips were cut into dimensions of 2.5 cm × 2 cm × 0.025 cm for use in weight loss studies. For electrochemical studies, the MS coupons were cut into 8 cm × 1 cm × 0.025 cm sizes with an exposed area of 1 cm2 (the rest being covered with epoxy resin) and were used as working electrode.

Corrosion Inhibitors

The fresh and expired atorvastatin (FA and EA) drug marketed under the trade name Lipitor was used for corrosion testing. The molecular formula of the drug is (C33H35FN2O5) and its chemical structure is shown in Fig. 1. Different amounts of FA and EA were dissolved in acid solution to prepare the desired concentrations in ppm (parts per million).

Fig. 1
figure 1

Molecular structure of (3R,5R)-7-(2-(4-fluorophenyl)-5-isopropyl-3-phenyl-4-(phenylcarbamoyl)-1H-pyrrol-1-yl)-3,5-dihydroxyheptanoic acid (Atorvastatin)

Weight loss studies

The MS coupons having a rectangular size and dimensions as mentioned above were abraded with a series of emery papers (600–1200 grade) and then washed with distilled water. After weighing the MS coupons accurately, the specimens were immersed in a conical flask containing 100 mL of 1 M HCl in the absence and presence of different concentrations of FA and EA. The test solutions were kept in thermostat for 3 h followed by washing, drying and weighing. The corrosion rate (C R) was computed from the following equation:

$$ C_{\text{R}} ({\text{mm/year}}) = \frac{87.6W}{{{\text{at}}\;D}} $$
(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 (3 h) and D is the density of MS in g cm−3.

Electrochemical measurements

The electrochemical experiments were performed in a three-electrode cell assembly using a Potentiostat/Galvanostat G300-45050 (Gamry Instruments Inc., USA). Echem Analyst 5.0 software package was used for data fitting. A three-electrode assembly was prepared using MS coupon with an exposed area of 1 cm2 as working electrode, platinum electrode as an auxiliary electrode, and a saturated calomel electrode (SCE) as a reference electrode. All potentials were measured versus SCE. Tafel curves were obtained by varying the electrode potential from −0.25 to +0.25 V versus open circuit potential at a scan rate of 1.0 mV s−1. Electrochemical impedance spectroscopy measurements were carried out under potentiostatic condition in a frequency range of 100 kHz to 0.01 Hz, with an amplitude of 10 mV AC signal. All experiments were performed after immersing the MS coupons in 1 M HCl in the absence and presence of different concentrations of inhibitor for 30 min.

Surface analysis

The surface morphology of MS coupons was investigated using SEM model FEI Quanta 200F scanning electron microscope at 1000× magnification. The MS coupons having 2.5 cm × 2.0 cm × 0.025 cm dimensions were abraded with emery paper (600–1200 grades) and then immersed in the absence and presence of inhibitors (FA, EA) at 150 ppm. Thereafter, MS coupons were taken out, washed with water and mechanically cut into 1 cm2 for surface analysis.

Results and discussion

Electrochemical measurements

Potentiodynamic polarization measurements

The potentiodynamic polarization curves recorded over the MS coupons in the absence and presence of different concentrations of FA and EA in 1 M HCl are shown in Fig. 2. To get a detailed insight into the corrosion inhibition process, electrochemical parameters, i.e., corrosion potential (E corr), corrosion current density (i corr) and inhibition efficiency (η%) values were determined from the corresponding Tafel plots and the obtained data are shown in Table 1. The inhibition efficiencies can be calculated from i corr values using the following equation:

$$ \eta {\% } = \frac{{i_{\text{corr}} - i_{{{\text{corr}}({\text{inh}})}} }}{{i_{\text{corr}} }} \times 100 $$
(2)

where i corr and \( i_{{{\text{corr(inh}})}} \) are the corrosion current densities of MS in 1 M HCl in the absence and presence of inhibitor.

Fig. 2
figure 2

Polarization curves for MS in the absence and presence of different concentrations of FA and EA

Table 1 Polarization data for MS in the absence and presence of different concentrations of FA and EA

It can be observed from Fig. 2 that in the presence of the inhibitors, both the anodic and cathodic curves shift towards lower current density, indicating the suppression of both the cathodic and anodic reactions. This trend is also corroborated by the data of inhibition efficiencies in Table 1 and suggests the adsorption of inhibitor molecules on the surface of mild steel and the formation of a protective film. However, the shift in the cathodic branch is considerably more pronounced which confirms a greater effect of inhibitors on the suppression of hydrogen evolution [18]. On the other hand, the anodic part of the polarization curves exhibits a different trend altogether. It can be clearly seen from Fig. 2 that the inhibitors do not affect the corrosion rate at potentials more positive than −320 mV [22, 23]. This potential can be termed as desorption potential [23] and the results suggest that the corrosion inhibition process, under the present condition, is dependent on the electrode potential [22, 23]. The electrochemical behavior of the inhibitors above −320 mV may arise from a considerable dissolution of iron leading to desorption of the inhibitor film from the MS surface. Moreover, in the presence of the inhibitors, a pronounced shift in the E corr values can be observed towards the cathodic direction which is indicative of the cathodic predominance of the inhibition process. However, the decrease in both the anodic and cathodic currents in the presence of inhibitors suggests that the FA and EA can be categorized as mixed-type inhibitors [23, 24]. The maximum inhibition efficiencies obtained for EA and FA are 99.08 and 98.41%, respectively, at 150 ppm.

Electrochemical impedance spectroscopy

The electrochemical impedance spectroscopy (EIS) curves for MS in the absence and presence of FA and EA at different concentrations are shown in Fig. 3. The Nyquist plots show depressed semi-circles, having one capacitive loop. The analysis of Nyquist plots reveals that the corrosion process is mainly charge transfer controlled [19]. The diameter of the capacitive loops increases with increasing concentrations of inhibitors suggesting that both FA and EA act as efficient corrosion inhibitors for MS.

Fig. 3
figure 3

Nyquist plot for MS in the absence and presence of different concentrations of FA and EA

The Equivalent circuit model shown in Fig. 4 was used to analyze the Nyquist curves and it consists of R S and CPE (constant-phase element) parallel to the R p [25,26,27,28]. Here, the R p represents the polarization resistance which consists of the charge transfer resistance (R ct), double layer resistance (R d), film resistance (R f) and the resistance due to the accumulation of adsorbed molecules (R a). The contributions of the adsorbed species can be visualized in the form of elongations in the low frequency region of the Nyquist loops [28,29,30]. The inhibition efficiency is calculated from polarization resistance (R p) as follows:

Fig. 4
figure 4

Equivalent circuit used for simulation of data

$$ \eta {\% } = \frac{{R_{\text{p(inh)}} - R_{p} }}{{R_{\text{p(inh)}} }} \times 100 $$
(3)

where \( R_{{{\text{p(inh}})}} \) and R p are the values of polarization resistance in the absence and the presence of inhibitor in 1 M HCl, respectively. An analysis of the impedance data shows that the R p increases with increase in the concentration of inhibitors. A large value of R p can be attributed to a slow corroding system, arising due to a decreased active surface area necessary for the corrosion reaction [23]. The inhibition efficiency obtained for EA and FA is 96.38 and 96.36% respectively.

To define the capacitance of the depressed Nyquist semi-circles, in the place of a pure capacitor, a non-ideal capacitor is introduced in the circuit (defined as constant-phase element: CPE) whose impedance is given by [31,32,33]:

$$ Z_{\text{CPE}} = Y_{o}^{ - 1} (j\omega )^{ - n} $$
(4)

where Z CPE is the impedance of CPE, Y o is the CPE coefficient (reciprocal of impedance and also known as admittance) and ω is the angular frequency given by \( \omega = 2\pi f \)(having units in rad s−1). The double layer capacitance (C dl) can be evaluated as follows:

$$ C_{dl} = \frac{{Y_{o} \omega^{n - 1} }}{\sin (n(\pi /2))} $$
(5)

where ω is given by \( \omega_{\hbox{max} } = 2\pi f_{\hbox{max} } \) at which the imaginary part of the impedance (\( - Z_{imag} \)) is maximum and other symbols are as defined above. The impedance parameters such as R s (solution resistance), R p and C dl (double layer capacitance) calculated from these plots are given in Table 2.

Table 2 Electrochemical impedance parameters and corresponding efficiencies of MS in the absence and presence of different concentrations of FA and EA

It can be observed that an increase in the concentration of inhibitors causes an increase in R p values and a corresponding decrease in C dl. This situation was a result of increasing surface coverage by the inhibitor, leading to an increase in η%. The thickness of the protective layer of inhibitor \( \delta_{\text{org}} \) can be related to the C dl as follows:

$$ C_{\text{dl}} = \frac{{\varepsilon_{0} \varepsilon_{r} }}{{\delta_{\text{org}} }} $$
(6)

where \( \varepsilon_{0} \) is the vacuum dielectric constant and \( \varepsilon_{r} \) is the relative dielectric constant. The decrease in the values of C dl might result from the lowering of local dielectric constant or from the increase in thickness of the electrical double layer, which suggests that the inhibitor molecules function by adsorbing at the metal/solution interface [28, 33]. Thus, the observed decrease in the C dl values is caused by the gradual replacement of water molecules by the adsorption of inhibitor molecules on the metal surface, which decreases the metal dissolution.

Bode and phase angle plots for FA and EA are shown in Fig. 5. In case of an ideal capacitor, the values of Bode slope and phase angle are −1° and −90°, respectively. The slope and phase angle values for blank solution are −0.53° and −40.40° and in the presence of FA and EA are 0.76°, 0.80°, and 68.28°, 68.95° at 150 ppm, respectively. The deviation in the values of Bode slope and phase angle in the presence of inhibitor suggests the capacitive performance of the inhibited system [34].

Fig. 5
figure 5

Bode-impedance and Phase angle plots for MS in the absence and presence of different concentrations of FA and EA

Weight loss studies

Effect of inhibitor concentration

The data obtained from weight loss measurements for MS in 1 M HCl in the absence and presence of different concentrations of FA and EA are summarized in Table 3. It can be observed from the results that the inhibition efficiency increases on increasing the concentration of inhibitor which can be attributed to the adsorption of inhibitor molecules on MS surface [35]. EA shows the maximum inhibition efficiency 97.05% at 150 ppm. The inhibition efficiency (η%) is calculated as follows:

$$ \eta \% = \frac{{C_{\text{R}} - {}^{\text{inh}}C_{\text{R}} }}{{C_{\text{R}} }} \times 100 $$
(7)

where C R and \( {}^{\text{inh}}C_{\text{R}} \) are the corrosion rates of MS in the absence and presence of the inhibitors, respectively.

Table 3 Weight loss data for MS in the absence and presence of different concentrations of FA and EA

Adsorption isotherm

To understand the adsorption behavior of inhibitors on MS surface, the experimental data were tested on several adsorption isotherms. The best fit was obtained from Langmuir isotherm which assumes that a solid surface contains a fixed number of adsorption sites and each site holds one adsorbed species [36]. A plot of C/θ vs C (concentration of inhibitor) resulted in a straight line with regression coefficient values close to 1 as shown in Fig. 6,

Fig. 6
figure 6

Langmuir adsorption isotherm plots for MS at different concentrations of FA and EA

The surface coverage (θ) is calculated according to the following equation:

$$ \theta = \frac{{C_{\text{R}} - {}^{\text{inh}}C_{\text{R}} }}{{C_{\text{R}} }} $$
(8)

where C R and \( {}^{\text{inh}}C{}_{\text{R}} \) are the corrosion rates of MS in the absence and presence of inhibitor, respectively. The values of equilibrium constant K ads and the standard free energy of adsorption \( \Delta G_{ads}^{o} \) are calculated from the equations:

$$ K_{\text{ads}} = \frac{\theta }{C(1 - \theta )} $$
(9)
$$ \Delta G_{ads}^{o} = - RT\ln (55.5K_{ads} ) $$
(10)

The value 55.5 in the above equation represents the concentration of water in solution in mol L−1. It is reported that the \( \Delta G_{ads}^{o} \) values of around −20 kJ mol−1 suggest physical adsorption and around −40 kJ mol−1 suggest chemical adsorption. The values of \( \Delta G_{ads}^{o} \) for FA and EA at optimum concentration are −38.15 and −39.51 kJ mol−1, respectively, indicating that the adsorption process of the studied compounds on MS surface involves both physical and chemical adsorption [37]. The proposed mechanism of inhibition is discussed in Sect. 3.4.

Surface characterization

The scanning electron microscopy (SEM) images of MS coupons in the absence and presence of inhibitors are shown in Fig. 7. The surface of the MS coupon recovered from the HCl solution without inhibitor displays an excessively rough surface showing pronounced striations and isolated furrows due to severe damage from corrosion (Fig. 7a). On the other hand, the surfaces of MS coupons after immersing in acid solution in the presence of optimum concentration of FA and EA show a comparatively smoother morphology (Fig. 7b, c, respectively). In acid solution, the inhibitor molecules are adsorbed on the metal surface and form a protective smooth film on metal surface. The adsorbed layer of inhibitor isolates the metal surface from the surrounding corrosive medium by forming a barrier between metal/solution interfaces [38] and hence mitigates the corrosion.

Fig. 7
figure 7

SEM micrographs in the absence (a) and presence of FA (b) and EA (c) at 150 mg L−1

Mechanism of corrosion and inhibition

In hydrochloric acid solution, the corrosion of iron and steel takes place via the following proposed mechanism [39, 40]. According to this mechanism, the anodic dissolution of iron occurs as follows:

$$ {\text{Fe}} + {\text{Cl}}^{ - } \rightleftharpoons (FeCl^{ - } )_{ads} $$
(11)
$$ (FeCl^{ - } )_{ads} \rightleftharpoons (FeCl)_{ads} + e^{ - } $$
(12)
$$ ({\text{FeCl}})_{ads} \to (FeCl^{ + } ) + e^{ - } $$
(13)
$$ {\text{FeCl}}^{ + } \rightleftharpoons {\text{Fe}}^{2 + } + {\text{Cl}}^{ - } $$
(14)

The cathodic evolution of hydrogen is given as:

$$ {\text{Fe}} + {\text{H}}^{ + } \rightleftharpoons (FeH^{ + } )_{ads} $$
(15)
$$ ({\text{FeH}}^{ + } )_{ads} + e^{ - } \to ({\text{FeH}})_{ads} $$
(16)
$$ (FeH)_{ads} + {\text{H}}^{ + } + e^{ - } \to {\text{Fe}} + {\text{H}}_{2} $$
(17)

The inhibitor molecules can get adsorbed on the MS surface through the proposed inhibition mechanism as shown in Fig. 8.

Fig. 8
figure 8

Pictorial representation of adsorption of atorvastatin drug on MS surface in 1 M HCl

  1. 1.

    In acid solution, inhibitor molecules exist in protonated or neutral form [11]:

$$ \left[ {{\text{C}}_{ 3 3} {\text{H}}_{ 3 5} {\text{FN}}_{ 2} {\text{O}}_{ 5} } \right] + x{\text{H}}^{ + } \rightleftharpoons \left[ {{\text{C}}_{ 3 3} {\text{H}}_{{ 3 5 {\text{ + x}}}} {\text{FN}}_{ 2} {\text{O}}_{ 5} } \right]^{x + } $$
(18)

Protonated molecules are adsorbed on the MS surface through electrostatic interaction between already adsorbed Cl ions on MS surface (physical adsorption). The protonated inhibitor molecules then begin competing with H+ ions for electrons on MS surface. The cationic form of the inhibitor molecules, after accepting electrons from the metal surface, returns to its neutral form.

  1. 2.

    The presence of heteroatoms having free lone pair electrons promotes chemical adsorption.

  2. 3.

    The accumulation of electrons on the surface of MS makes it more negative. To relieve this excess negative charge from the surface of MS, the electrons from the d-orbital of Fe might get transferred to vacant π (antibonding) orbital of inhibitor molecules (retrodonation), thereby strengthening the adsorption of inhibitor on the metal surface [23, 41, 42].

A comparative data showing corrosion inhibition performance of some of the other expired drugs reported previously is illustrated in Table 4. The present drug shows considerably significant corrosion inhibition efficiency compared to other drugs. Thus, it can be clearly understood that the present drug, i.e., expired atorvastatin can be used for corrosion inhibition application with promising results. The high corrosion inhibition efficiency of the drug can be attributed to the presence of a number of phenyl rings, functional groups as well as nitrogen together in the compound.

Table 4 Comparative chart listing the performances of some expired drugs as corrosion inhibitors

Conclusions

Both FA and EA exhibit good inhibition efficiency against the corrosion of mild steel. EIS studies showed that the diameter of capacitive loops and, hence, the polarization resistance (R p) increased with increase in concentration of FA and EA. Polarization studies indicate that FA and EA act as mixed-type inhibitors. The adsorption process of inhibitor molecules on the MS surface in 1 M HCl solution follows Langmuir isotherm. The spontaneity of the adsorption is supported by the negative values of \( \Delta G_{ads}^{o} \). The noteworthy feature of this investigation is that both EA and FA display similar corrosion inhibition efficiency at as low as 150 ppm. This suggests that the EA, which is the expired version of FA, can be used as a novel material for corrosion inhibition purpose. Thus, this study presents a green and cost-effective alternative in place of fresh atorvastatin drug.