1 Introduction

The presence of heavy metals in the aquatic environment is a source of great environmental alarm. Copper is known to be one of the most toxic heavy metals to living organisms and it is one of the more widespread heavy metal contaminants of the environment (Vinikour et al. 1980; James et al. 2006). Copper, a metal that occurs naturally in rocks, soil, water, and air throughout the environment, is an essential element in plants, animals, and humans (Billon et al. 2006). The adverse health effects caused by copper, mercury, and arsenic poisoning are far more catastrophic than any other natural calamity in the world in recent times (Ozer et al. 2004; Onmez and Aksu 1999; Prasad and Freitas 2000). The potential sources of copper in industrial effluents include metal cleaning and plating baths, pulp, paper board mills, wood pulp production, fertilizer industry, paints and pigments, municipal and storm water run-off, etc. (Boujelben et al. 2009). Common symptoms of copper toxicity are injury to red blood cells and lungs. It also gives damage to liver and pancreatic functions. Long-term exposure to copper may cause irritation to nose, mouth, and eyes; and also cause headaches, stomachaches, dizziness, vomiting, and diarrhea (Yu et al. 2000; Ajmal et al. 1998; Ozcan et al. 2005; Gardea-Torresde et al. 1996; Bailey et al. 1999). As recommended by the World Health Organization, the drinking water guideline value is 2 mg/L. The United States Environmental Protection Agency (USEPA) has set the maximum contaminant level of copper allowed in drinking water is 1.3 mg/L (CPCB 2002). The conventional methods for removing copper from water include ion exchange, reverse osmosis, co-precipitation, coagulation, electrodialysis, and adsorption (Larous et al. 2005; Ozcan et al. 2005; Papandreou et al. 2007; Villaescesa et al. 2004; Saeed et al. 2005; Fiol et al. 2006; Shukla and Sakhardane 1992; Jain et al. 1997, 1995b; Jain et al. 1995a; Gupta et al. 2002; Gupta and Rastogi 2008a; Gupta et al. 2009a, b, c, d; Gupta and Rastogi 2010). The physical methods such as ion exchange, reverse osmosis and electrodialysis have proven to be either too expensive or inefficient to remove copper from water. Nowadays, the chemical treatment methods are not used due to heavy maintenance costs, problems pertaining to sludge handling and its disposal, and neutralization of the effluent.

Recent studies have demonstrated that electrocoagulation method offers an attractive alternative to the traditional methods for treating water (Vasudevan et al. 2008, 2009, 2010a, b, c, d, e; Vasudevan and Lakshmi 2011; Ali et al. 2011, 2012). In this process, anodic dissolution of metal electrode takes place with the evolution of hydrogen gas at the cathode. Electrochemically generated metallic ions from the anode can undergo hydrolysis to produce a series of activated intermediates that are able to adsorb, like chemical adsorption process (Gupta et al. 2006a, b, c, 1997a, b, 2003a, b, 2007a, b, c, d, e, f, 1998, 1999, 2001, 2002; Gupta 1998; Gupta and Sharma 2002; Gupta and Rastogi 2008a, b, 2009; Gupta and Ali 2000; Mittal et al. 2010; Mohan et al. 2001; Srivastava et al. 1995, 1996a, b, 1997; Ali and Gupta 2007; Ali 2010; Goyal et al. 2005, 2007a, b). The advantages of electrocoagulation are high particulate removal efficiency, compact treatment facility and the possibility of complete automation. This method is characterized by reduced sludge production, a minimum requirement of chemicals and ease of operation (Chen 2004; Adhoum and Monser 2004; Mrozowski and Zielinski 1983; Miwa et al. 2006; Onder et al. 2007; Carlesi Jara et al. 2007; Christensen et al. 2006; Carlos et al. 2006; Bailey et al. 1999). The overall reactions are as follows,

$$ {\text{At anode}}:{\text{M}}{{\text{g}}^{{{2} + }}}_{{({\text{aq}})}} + {2}{{\text{H}}_{{2}}}{\text{O}} \to {\text{Mg}}{\left( {\text{OH}} \right)_{{2}}} + {2}{{\text{H}}^{ + }}_{{({\text{aq}})}} $$
(1)
$$ {\text{At cathode}}:2{{\text{H}}_{2}}{{\text{O}}_{{({\text{l}})}}} + 2{{\text{e}}^{ - }} \to {{\text{H}}_{{2({\text{g}})}}} + {\text{2O}}{{\text{H}}^{ - }} $$
(2)

Besides, the main disadvantage in case of aluminum electrode is the residual aluminum (The USEPA guidelines suggest maximum contamination is 0.05–0.2 mg/L) present in the treated water due to cathodic dissolution. This will lead to health problems like cancer. There is no such health problem in the case of magnesium electrode, because the USEPA guidelines suggest that the maximum contamination level of magnesium in water is 30 mg/L. Although there are numerous reports dealing with electrochemical coagulation as a means of removal of many pollutants from water and wastewater, there are few studies on copper removal by electrocoagulation method.

In general, direct current (DC) is used in an electrocoagulation processes. In this case, an impermeable oxide layer may form on the cathode as well as corrosion formation on the anode due to oxidation. These prevent the effective current transport between the anode and cathode, so the efficiency of electrocoagulation processes declines. These disadvantages of DC have been overcome by adopting alternating current (AC) in electrocoagulation processes. The main objective of this study is to investigate the effect of AC/DC on the removal efficiency of copper from water using magnesium as anode and cathode. To optimize the maximum removal efficiency of copper, the different parameters such as effect of initial concentration, effect of temperature, effect of current density, and pH were studied. In doing so, the equilibrium adsorption behavior is analyzed by fitting models of Langmuir, Freundlich, and Dubinin–Radushkevich (D–R) isotherms. Adsorption kinetics of electrocoagulants is analyzed using first-, second-order, Elovich, and Intraparticle kinetic models. The activation energy is evaluated to study the nature of adsorption.

2 Materials and methods

2.1 Experimental apparatus and procedures

The electrochemical cell (Fig. 1) consists of a 1.0 L glass vessel fitted with a PVC cover having suitable holes to introduce the electrodes, thermometer, pH sensor and electrolyte. Magnesium alloy (Magnesium Elektron Ltd; AZ31 consisting of 3.0 wt % Al, 1.0 wt % Zn) of size 2 dm2 was used both as anode and cathode. The inter electrode gap between anode and cathode was 0.5 cm. The temperature of the electrolyte was controlled to the desired value with variation of ±2 K by adjusting the rate of flow of thermostatically controlled water through an external glass-cooling spiral. A regulated DC was supplied from a rectifier (10 Å, 0–25 V; Aplab model) and regulated AC was supplied from a source (0–5 A, 0–270 V, 50 Hz; AMETEK Model: EC1000S).

Fig. 1
figure 1

Laboratory scale cell assembly. (1) DC Power Supply, (2) pH meter, (3) electrochemical cell, (4) cathodes, (5) anode, (6) electrolyte, (7) outer jacket, (8) thermostat, (9) inlet for thermostatic water, (10) outlet for thermostatic water, (11) PVC cover, (12) pH sensor and (13) magnetic stirrer

Copper nitrate (CuNO3; Analar Reagent, Merck, Germany) was dissolved in de-ionized water for the required concentration. The pH of the electrolyte was adjusted, if required, with 1 M HCl or NaOH (Analar Reagent, Merck, Germany) solutions. Temperature studies were carried at varying temperatures (313–343 K) to determine the type of reaction. To examine the effect of co-existing ions, for the removal of copper, Analar Grade (Merck, Germany) sodium salts of carbonate, phosphate, silicate, and fluoride were added to the electrolyte for required concentrations.

2.2 Analytical procedure

The copper was analyzed using UV–Visible Spectrophotometer (MERCK, Spectroquant Pharo 300, Germany) using MERCK kit. The SEM and EDAX of copper-adsorbed magnesium hydroxide coagulants were analyzed with a scanning electron microscope (SEM) made by Hitachi (model S-3000H). The XRD of electrocoagulation by-products were analyzed by a JEOL X-ray diffractometer (type—JEOL, Japan). The Fourier transform infrared spectrum of magnesium hydroxide was obtained using Nexus 670 FTIR spectrometer (Thermo Electron Corporation, USA). The concentration of carbonate, silicate, fluoride, and phosphate were determined using UV–Visible Spectrophotometer (MERCK, Pharo 300, Germany) with MERCK kit.

3 Results and discussion

3.1 Effect of pH

It has been established that the initial pH of the electrolyte is one of the important factor that affecting the performance of electrochemical processes particularly on the performance of electrocoagulation. To evaluate its effect, a series of experiments were performed, using 10 mg/L copper-containing solutions, with an initial pH varying in the range of 4–12 using the AC and DC source. From Fig. 2, it can be seen that the removal efficiency of copper was increased with increasing the pH and the maximum removal efficiency of 97.8 and 97.2 % was obtained at pH 7.0 for AC and DC, respectively. The percentage of copper removal increased with increasing pH 7, a decreasing trend in adsorption was observed when below and above pH 7 for both AC and DC source. At acidic and alkaline pHs, the oxide surfaces exhibit net positive and negative charges respectively and would tend to repulse the adsorption of copper and resulting the maximum adsorption at pH 7.0.

Fig. 2
figure 2

Effect of pH on the removal of copper. Conditions—current density, 0.025 A/dm2; concentration, 10 mg/L; and temperature, 303 K

3.2 Effect of initial ion concentration

To study the effect of initial concentration, experiments were conducted at varying initial concentrations from 2 to 10 mg/L using AC and DC sources, and the results are illustrated in Fig. 3. From the results, it can be seen that the adsorption of copper is increased with an increase in copper concentration and it remains constant after equilibrium time. The equilibrium time was 10 min for all of the concentrations studied (2–10 mg/L) for the AC source. The amount of copper adsorption (q e) increased from 1.77 to 8.92 mg/g when the concentration was increased from 2 to 10 mg/L for AC source. The figure also shows that the adsorption was rapid in the initial stages and gradually decreased with progress of adsorption. The plots are single, smooth and continuous curves leading to saturation, suggesting the possible monolayer coverage to copper on the surface of the adsorbent. In the case of DC the equilibrium time was found to be 45 min for all concentration studied (figure not shown).

Fig. 3
figure 3

Effect of electrolysis time and amount of copper adsorbed. Conditions—current density, 0.025 A/dm2; pH, 7.0; and temperature, 303 K

3.3 Effect of current density

It is well known that the current density is the very important factor for elecrocoagulation process. The amount of copper removal and removal rate has increased by increasing current density. Further, the amount of copper removal depends upon the quantity of adsorbent (magnesium hydroxide) generated, which is related to the time and current density. To investigate the effect of current density on the copper removal, a series of experiments were carried out by solutions containing constant copper loading of 10 mg/L, at a pH 7.0, with current density being varied from 0.01 to 0.1 A/dm2 using both AC and DC current source. The results showed that the optimum removal efficiency of 97.8 and 97.2 % with the energy consumption of 0.634 and 0.996 kWh/kL was achieved at a current density of 0.025 A/dm2, at pH of 7.0 using AC and DC, respectively. The results are presented in Table 1. The results show that the removal efficiency of copper was higher and energy consumption was lower in the case of AC than DC. This may be due to the uniform dissolution of anode and cathode during electrocoagulation in the case of AC. The removal efficiency was found showing the amount of copper adsorption increases with the increase in adsorbent concentration, which indicates that the adsorption depends up on the availability of binding sites for copper. Hence, further studies were carried out at 0.025 A/dm2

Table 1 Effect of current density on the removal efficiency of copper using AC and DC with initial copper concentration 10 mg/L

3.4 Effect of co-existing ions

To study the effect of co-existing ions, in the removal of copper, sodium salts of carbonate (0–250 mg/L), phosphate (0–50 mg/L), silicate (0–15 mg/L), and arsenate (0 5.0 mg/L) was added to the electrolyte and electrolysis was carried out using AC.

The effect of carbonate on copper removal was evaluated by increasing the carbonate concentration from 0 to 250 mg/L in the electrolyte. The removal efficiencies are 97.8, 97, 79, 67.2, 33, and 24.5 % for the carbonate ion concentration of 0, 2, 5, 65, 150, and 250 mg/L respectively. From the results it is found that the removal efficiency of the copper is not affected by the presence of carbonate below 5 mg/L. A significant reduction in removal efficiency was observed, above 5 mg/L of carbonate concentration is due to the passivation of anode resulting, the hindering of the dissolution process of anode.

The concentration of phosphate ion was increased from 0 to 50 mg/L at the contaminant range of phosphate in the ground water. The removal efficiency for copper was 97.8, 96.9, 77.3, 55.1, and 50 % for 0, 2, 5, 25, and 50 mg/L of phosphate ion, respectively. There is no change in removal efficiency of copper below 5 mg/L of phosphate in the water. At higher concentrations (at and above 5 mg/L) of phosphate, the removal efficiency of copper decreased to 50 %. This is due to the preferential adsorption of phosphate rather than copper as the concentration of phosphate increase.

The effect of silicate on the removal efficiency of copper was investigated. The respective efficiencies for 0, 5, 10, and 15 mg/L of silicate are 97.8, 65, 60.2, and 53 %. The removal of copper decreased with increasing silicate concentration from 0 to 15 mg/L. In addition to preferential adsorption, silicate can interact with magnesium hydroxide to form soluble and highly dispersed colloids that are not removed by normal filtration.

From the results it is found that the efficiency decreased from 97.8, 88.1, 71.5, 52, and 26.7 % by increasing the concentration of fluoride from 0, 0.2, 0.5, 2, and 5 mg/L. This is due to the preferential adsorption of fluoride over copper as the concentration of fluoride increases. So, when fluoride ions are present in the water to be treated, fluoride ions compete greatly with copper ions for the binding sites.

3.5 Kinetic modeling

The dynamics of the adsorption process in terms of the order and the rate constant can be evaluated using the kinetic adsorption data. The process of copper removal from an aqueous phase by any adsorbent can be explained by using kinetic models.

3.5.1 First-order Lagergren model

The variation of the adsorbed copper with time was kinetically characterized using the First and second-order rate equation proposed by Lagergren. The first-order Lagergren model as (Wan Ngah and Hanafiah 2008; Ho and McKay 1998),

$$ {\rm d} q/{\rm d} t = {k_1}\left( {{q_{\text{e}}} - {q_t}} \right) $$
(3)

where, q t is the amount of copper adsorbed on the adsorbent at time t (in minutes) and k 1 (in per minute) is the rate constant of first-order adsorption. The integrated form of the above equation with the boundary conditions t = 0 to t > 0 (q = 0 to q > 0) and then rearranged to obtain the following time dependence function,

$$ \log \left( {{q_{{\text{e}}}} - {q_{t}}} \right) = \log \left( {{q_{{\text{e}}}}} \right) - {k_{1}}t/2.303 $$
(4)

where q e is the amount of copper adsorbed at equilibrium. The q e and rate constant k 1 were calculated from the slope of the plots of log (q eq t ) versus time (t).

3.5.2 Second-order Lagergren model

The second-order kinetic model is expressed as (Benaissa and Elouchd 2007; Wu et al. 2005),

$$ {\rm d} q/{\rm d} t = {k_2}{\left( {{q_{\text{e}}} - {q_t}} \right)^2} $$
(5)

Equation (5) can be rearranged and linearized as,

$$ t/{q_t} = 1/{k_2}{q_{\text{e}}}^2 + t/{q_{\text{e}}} $$
(6)

where q e and q t are the amount of copper adsorbed on Mg(OH)2 (in milligrams per gram) at equilibrium and at time t (in minutes), respectively, and k 2 is the rate constant for the second-order kinetic model. The equilibrium adsorption capacity, q e (in calories) and k 2 were determined from the slope and intercept of plot of t/q t versus t (Fig. 4). Table 2 depicts the computed results obtained from first- and second-order kinetic model for AC and DC source. The calculated q e values well agree with the experimental q e values for second-order kinetics model better than the first-order kinetics model for both AC and DC. This implies that the second-order model is in good agreement with experimental data and can be used to favorably explain the copper adsorption on Mg(OH)2.

Fig. 4
figure 4

Second-order kinetic model plot of different concentrations of copper. Conditions—current density, 0.025 A/dm2; temperature, 303 K; and pH, 7.0

Table 2 Comparison between the experimental and calculated qe values for different initial copper concentration in first- and second-order adsorption kinetics at room temperature

3.5.3 Elovich model

The simplified form of Elovich model is (Oke et al. 2008),

$$ {{\text{q}}_{\text{t}}} = {1}/\beta \;{\text{lo}}{{\text{g}}_{\text{e}}}\left( {\alpha { }\beta } \right) + {1}/\beta {\text{ lo}}{{\text{g}}_{\text{e}}}\left( {\text{t}} \right) $$
(7)

where α is the initial adsorption rate (in milligrams per gram per hour) and, β is the desorption constant (in grams per milligram). If copper adsorption fits the Elovich model, a plot of q t versus loge(t) should yield a linear relationship with the slope of (1/β) and an intercept of 1/β loge (α β). Table 3 depicts the results obtained from the Elovich equation. Lower regression value shows the inapplicability of this model.

Table 3 Elovich model and Intraparticle diffusion for different initial copper concentrations at temperature 305 K and pH 7

3.5.4 Intraparticle diffusion model

Intraparticle diffusion is expressed as (Weber and Morris 1963; Allen et al. 1989),

$$ R = {k_{\text{id}}}{(t)^{{\alpha z}}} $$
(8)

A linearized form of Eq. (8) is followed by

$$ \log R = \log { }{k_{\text{id}}} + a{ }\log (t) $$
(9)

in which a depicts the adsorption mechanism and k id may be taken as the rate factor (percent of copper adsorbed per unit time). Lower and higher value of k id illustrates an enhancement in the rate of adsorption and better adsorption with improved bonding.

Tables 2 and 3 depict the computed results obtained from first-order, second-order, Elovich, and Intraparticle diffusion models for AC and DC, respectively. The correlation coefficient values decreases from second-order, first-order, and Intraparticle diffusion to Elovich model. This indicates that the adsorption follows the second-order than the other models for both AC and DC. Further, the calculated q e values well agrees with the experimental q e values for second-order kinetics model concluding that the second-order kinetics equation is the best-fitting kinetic model.

3.6 Isotherm modeling

The adsorption capacity of the adsorbent has been tested using Freundlich, Langmuir and Dubinin–Redushkevich isotherms. These models have been widely used to describe the behavior of adsorbent–adsorbate couples. To determine the isotherms, the initial pH was kept at 7 and the concentration of copper used was in the range of 2–10 mg/L using AC and DC.

3.6.1 Freundlich isotherm

The Freundlich isotherm is an empirical model relates the adsorption intensity of the sorbent towards adsorbent. The isotherm is adopted to describe reversible adsorption and not restricted to monolayer formation. The mathematical expression of the Freundlich model can be written as (Leea et al. 2004; Prasanna Kumar et al. 2006),

$$ {q_{\text{e}}} = K{C^n} $$
(10)

According to Freundlich isotherm model, initially amount of adsorbed compounds increases rapidly, this increase slow down with the increasing surface coverage. Equation (10) can be linearized in logarithmic form and the Freundlich constants can be determined as follows,

$$ \log {q_{\text{e}}} = \log {k_{\text{f}}} + n\log {C_{\text{e}}} $$
(11)

where, k f is the Freundlich constant related to adsorption capacity, n is the energy or intensity of adsorption; C e is the equilibrium concentration of copper (in milligrams per liter). In testing the isotherm, the copper concentration used was 2–10 mg/L and at an initial pH 7, the adsorption data is plotted as logq e versus logC e and should result in a straight line with slope n and intercept k f. The intercept and the slope are indicators of adsorption capacity and adsorption intensity, respectively. The value of n falling in the range of 1–10 indicates favorable sorption. The Freundlich constants k f and n values were shown in Table 4 for AC and DC sources. From the analysis of the results, it is found that the Freundlich plots fit satisfactorily with the experimental data obtained in the present study.

Table 4 Constant parameters and correlation coefficient calculated for different adsorption isotherm models at different temperatures for copper adsorption on magnesium hydroxide

3.6.2 Langmuir isotherm

The linearized form of Langmuir adsorption isotherm model is (Bouzid et al. 2008; Sarioglu et al. 2005),

$$ {C_{\text{e}}}/{q_{\text{e}}} = 1/{q_{\text{m}}}b + {C_{\text{e}}}/{q_{\text{m}}} $$
(12)

where, q e is amount adsorbed at equilibrium concentration C e, q m is the Langmuir constant representing maximum monolayer adsorption capacity and b is the Langmuir constant related to energy of adsorption. The plots of 1/q e as a function of 1/C e for the adsorption of copper on Mg(OH)2 are shown in Fig. 5. The plots were found linear with good correlation coefficients (>0.99) indicating the applicability of Langmuir model in the present study. The values of monolayer capacity (q m) is found to be 277.21 and 264.55 mg/g for AC and DC (Table 4). The values of q m calculated by the Langmuir isotherm were all close to experimental values at given experimental conditions. These facts suggest that copper is adsorbed in the form of monolayer coverage on the surface of the adsorbent.

Fig. 5
figure 5

Langmuir plot for adsorption of copper. Conditions—pH, 7.0; current density, 0.025 A/dm2; and temperature, 303 K

The essential characteristics of the Langmuir isotherm can be expressed as the dimensionless constant R L.

$$ {R_{\text{L}}} = 1/\left( {1 + b{c_{\text{o}}}} \right) $$
(13)

where R L is the equilibrium constant it indicates the type of adsorption, b, is the Langmuir constant. c o represents the various concentrations of copper solution. The R L values between 0 and 1 indicate the favorable adsorption. The R L values were found to be between 0 and 1 for all the concentration of copper studied.

3.6.3 Dubinin–Radushkevich isotherm

Dubinin and Radushkevich have proposed another isotherm which can be used to analyze the equilibrium data. It is not based on the assumption of homogeneous surface or constant adsorption potential, but it is applied to estimate the mean free energy of adsorption (E). This model is represented by (Tan et al. 2007),

$$ {q_{\text{e}}} = {q_{\text{s}}}\exp \left( { - B{\varepsilon^2}} \right) $$
(14)

where ε = RT ln [1 + 1/C e], B is related to the free energy of sorption per mole of the adsorbate as it migrates to the surface of the electrocoagulant from infinite distance in the solution and q s is the D–R isotherm constant related to the degree of adsorbate adsorption by the adsorbent surface. The linearized form of Eq. (14):

$$ \ln {q_{{\text{e}}}} = \ln {q_{{\text{s}}}} - 2BRT\ln \left[ {1 + 1/{C_{{\text{e}}}}} \right] $$
(15)

The isotherm constants of q s and B are obtained from the intercept and slope of the plot of lnq e versus ε 2, respectively (Demiral et al. 2008). The constant B gives the mean free energy E, of adsorption per molecule of the adsorbate when it is transferred to the surface of the solid from infinity in the solution and the relation is given as,

$$ E = \left[ {1/\surd 2B} \right] $$
(16)

The magnitude of E is useful for estimating the type of adsorption process. It was found to be 10.21 and 12.36 kJ/mol for AC and DC, respectively, which is bigger than the energy range of adsorption reaction, 8–16 kJ/mol. So the type of adsorption of copper on magnesium hydroxide was defined as chemical adsorption.

The correlation coefficient values of different isotherm models are listed in Table 4. The Langmuir isotherm model has a higher regression coefficient (R 2 = 0.999) when compared to the other models for both AC and DC source. The value of R L for the Langmuir isotherm was calculated from 0 to 1, indicating the favorable adsorption of copper.

3.7 Thermodynamic parameters

The amount of copper adsorbed on the adsorbent increases by increasing the temperature indicating the process to be endothermic. The diffusion coefficient (D) for intraparticle transport of copper species into the adsorbent particles has been calculated at different temperature by,

$$ {t_{{1/2}}} = 0.03x{r_{\text{o}}}^2/D $$
(17)

where t 1/2 is the time of half adsorption (s), r o is the radius of the adsorbent particle (in centimeters), D is the diffusion coefficient in square centimeters per second. For all chemisorption systems, the diffusivity coefficient should be 10−5 to 10−13 cm2/s (Yang and Al-Duri 2001). In the present work, D is found to be in the range of 10−10 cm2/s. The pore diffusion coefficient (D) values for various temperatures and different initial concentrations of copper are presented in Table 5.

Table 5 Pore diffusion coefficients for the adsorption of copper at various concentrations and temperature

To find out the energy of activation for adsorption of copper, the second-order rate constant is expressed in Arrhenius form (Golder et al. 2006),

$$ \ln {k_2} = \ln {k_{\text{o}}} - E/RT $$
(18)

where k o is the constant of the equation (in grams per milligram per minute), E is the energy of activation (in joules per mole), R is the gas constant (8.314 J/mol/K) and T is the temperature in kelvin. Figure 6 shows that the rate constants vary with temperature according to Eq. (18). The activation energy (0.445 and 0.336 kJ/mol for AC and DC, respectively) is calculated from slope of the fitted equation. The free energy change is obtained using the following relationship

$$ \Delta G = - RT\ln {K_{\text{c}}} $$
(19)

where ∆G is the free energy (in kilojoules per mole), K c is the equilibrium constant, R is the gas constant and T is the temperature in K. The K c and ∆G values are presented in Table 6. From the table, it is found that the negative value of ∆G indicates the spontaneous nature of adsorption. Other thermodynamic parameters such as entropy change (∆S) and enthalpy change (∆H) were determined using the van’t Hoff equation,

$$ \ln {K_{\text{c}}} = \frac{{\Delta S}}{R} - \frac{{\Delta H}}{{RT}} $$
(20)
Fig. 6
figure 6

Plot of log k 2 and 1/T. Conditions—pH, 7.0; current density, 0.025 A/dm2

Table 6 Thermodynamic parameters for the adsorption of copper

The enthalpy change and entropy change were obtained from the slope and intercept of the van’t Hoff linear plots of lnK c versus 1/T (Fig. 7). Positive value of enthalpy change (∆H) indicates that the adsorption process is endothermic in nature, and the negative value of change in internal energy (∆G) show the spontaneous adsorption of copper on the adsorbent. Positive values of entropy change show the increased randomness of the solution interface during the adsorption of copper on the adsorbent (Table 6). Enhancement of adsorption capacity of electrocoagulant (magnesium hydroxide) at higher temperatures may be attributed to the enlargement of pore size and or activation of the adsorbent surface (Vasudevan et al. 2010d). Using the Lagergren rate equation, first-order rate constants and correlation coefficients were calculated for different temperatures (305–343 K). The calculated q e values obtained from the second-order kinetics agrees with the experimental q e values better than the first-order kinetics model. Table 7 depicts the computed results obtained for the first- and second-order kinetic models using AC and DC. These results indicate that the adsorption follows second-order kinetic model at different temperatures used in this study.

Fig. 7
figure 7

Plot of log K c and 1/T. Conditions—pH, 7.0; current density, 0.025 A/dm2

Table 7 Comparison between the experimental and calculated q e values for different initial copper concentrations of 10 mg/L in first and second-order adsorption kinetics at various temperatures and pH 7

3.8 Pilot scale study

A bench scale capacity cell (Fig. 8) was designed, fabricated and operated for the removal of copper from water. The system consists of AC/DC power supply, an electrochemical reactor, a water tank, a feed pump, a flow control valve, a flow measuring unit, a circulation pump, settling tank, sludge collection tank, filtration unit provisions for gas outlet and treated water outlet. The reactor is made of PVC with an active volume of 2,000 L. The magnesium anode and cathode each consist of five pieces situated approximately 5 mm apart from each other and submerged in the solution. The total electrode surface area is 1,500 cm2 for both cathodes and anodes. The cell was operated at a current density of 0.025 A/dm2 and the electrolyte pH of 7.0. The results showed that the removal efficiency of 97.8 and 97.2 % with the energy consumption of 0.634 and 0.996 kWh/kL was achieved at a current density of 0.025 A/dm2 and pH of 7.0 using magnesium as electrodes using AC and DC, respectively. The results were consistent with the results obtained from the laboratory scale, showing that the process was technologically feasible.

Fig. 8
figure 8

Flow diagram of the pilot plant electrocoagulation system. (1) AC/DC Power Supply, (2) electro coagulation cell, (3) water tank, (4) inlet pump, (5) flow meter, (6) gas outlet, (7) setting tank, (8) sludge collection tank, (9) filtration unit, (10) recirculation pump, and (11) treated water

3.9 Surface morphology

3.9.1 SEM and EDAX studies

In order to gain more insight into the effect of alternating current, the morphology of the electrode surface after two kinds of electrolysis (AC and DC) was characterized by SEM as shown in Fig. 9a and b. It can be observed that when the AC was fed, less disordered pores formed and a smooth microstructure of magnesium suggesting the magnesium electrodes were dissolved uniformly during the electrolysis. While for the electrodes fed with DC, the electrode surface is found to be rough, with a number of dents. These dents are formed around the nucleus of the active sites where the electrode dissolution results in the production of magnesium hydroxides. The formation of a large number of dents may be attributed to the anode material consumption at active sites due to the generation of oxygen at its surface (Li et al. 2009). Energy-dispersive analysis of X-rays was used to analyze the elemental constituents of copper-adsorbed magnesium hydroxide shown in Fig. 10. It shows that the presence of Cu, Mg, and O appears in the spectrum. EDAX analysis provides direct evidence that copper is adsorbed on magnesium hydroxide.

Fig. 9
figure 9

SEM images of the anode after electrocoagulation by a AC and b DC

Fig. 10
figure 10

EDAX for copper-adsorbed electrocoagulant

3.9.2 FTIR studies

FTIR spectrum (Fig. 11) of copper–magnesium hydroxide shows the sharp and strong peak at 3,452.84 cm−1 implies the transformation from free protons into a proton-conductive state in brucite. The 1,640.43 cm−1 peak indicates the bent vibration of H–O–H. The band at 669.93 cm−1 corresponds to Mg–O stretching vibration. Cu–O vibration at 875.21 cm−1 also observed.

Fig. 11
figure 11

FTIR spectrum of copper-adsorbed magnesium hydroxide

3.9.3 XRD studies

X-ray diffraction spectrum of magnesium electrode coagulant showed very broad and sallow diffraction peaks (Fig. 12). This broad humps and low intensity indicate that the coagulant is amorphous or very poor crystalline in nature. This may be due to the crystallization of magnesium hydroxide is a very slow process resulting all magnesium hydroxides found to be either amorphous or very poorly crystalline.

Fig. 12
figure 12

XRD Spectra of Mg–Cu electrocoagulant

4 Conclusion

The results showed that the optimized removal efficiency of 97.8 and 97.2 % was achieved for AC and DC source at a current density of 0.025 A/dm2 and pH of 7.0 using magnesium as both anode and cathode. The magnesium hydroxide generated in the cell removes the copper present in the water, reducing the copper concentration to less than 1 mg/L, making it safe for drinking. The results of the scale-up study show that the process was technologically feasible. Langmuir adsorption isotherm was found to fit the equilibrium data for copper adsorption for both AC and DC. The adsorption process follows second-order kinetics. Temperature studies showed that adsorption was endothermic and spontaneous in nature.