Electrocoagulation-Adsorption to Remove Anionic and Cationic Dyes from Aqueous Solution by PV-Energy

The cationic dye malachite green (MG) and the anionic dye Remazol yellow (RY) were removed from aqueous solutions using electrocoagulation-adsorption processes. Batch and continuous electrocoagulation procedures were performed and compared. Carbonaceous materials obtained from industrial sewage sludge and commercial activated carbons were used to adsorb dyes from aqueous solutions in column systems with a 96–98% removal efficiency. The continuous electrocoagulation-adsorption system was more efficient for removing dyes than electrocoagulation alone. The thermodynamic parameters suggested the feasibility of the process and indicated that the adsorption was spontaneous and endothermic (ΔS = 0.037 and −0.009 for MG and RY, resp.). The ΔG value further indicated that the adsorption process was spontaneous (−6.31 and −10.48; T = 303K). The kinetic electrocoagulation results and fixed-bed adsorption results were adequately described using a first-order model and a Bohart-Adams model, respectively. The adsorption capacities of the batch and column studies differed for each dye, and both adsorbent materials showed a high affinity for the cationic dye. Thus, the results presented in this work indicate that a continuous electrocoagulation-adsorption system can effectively remove this type of pollutant from water. The morphology and elements present in the sludge and adsorbents before and after dye adsorption were characterized using SEM-EDS and FT-IR.


Introduction
The contamination of surface water and groundwater with dyes is a serious environmental problem and a threat to human and aquatic life.Several studies have reported that more than 100,000 dyes are commercially available with an estimated annual production of over 7 × 10 5 -1 × 10 6 tons [1].Industries that produce textiles, cosmetics, paper, leather, light-harvesting arrays, agricultural products, photoelectrochemical cells, pharmaceuticals, and food processing also produce large volumes of wastewater that are polluted with a high concentration of dyes and other components [2].
Malachite green (MG) is a cationic dye that is mainly used to dye textiles and paper; MG is also used as a fungicide and antiparasitic agent in fishkeeping [3] and causes injuries to humans and animals after inhalation and ingestion.Its entry into the environment causes reduced human fertility and generates carcinogenic, mutagenic, and respiratory hazards [4,5].Remazol yellow (RY) dye, or reactive yellow 105, is an anionic dye used for textile dyeing due to its ease of use, colour stability, and resistance to washing [6].The manufacture of azo dyes can impact the environment because of the presence of toxic amines in the effluent [7].Moreover, dyes must be eliminated from wastewater before discharging it into water bodies.Due to the complex aromatic structure and synthetic origins of dyes, they are stable to heat, oxidizing agents, photodegradation, and biodegradation [8].Several conventional methods can be applied to remove dyes from wastewater, including biological, physical, and chemical methods [9].For example, coagulation is effective for sulphur and dispersive dyes.Acid, direct, vat, and reactive dyes coagulate but do not settle, while cationic dyes do not coagulate.Furthermore, chemical coagulation causes additional pollution (due to the undesired reactions in treated water) and produces large amounts of sludge [10,11].Due to the large variability in the composition of textile wastewater, most conventional methods are expensive and are now becoming inadequate.Thus, there is an urgent need to develop more efficient and cost-effective techniques for the treatment of wastewater [12].A combination of various techniques for the treatment of effluents can lead to higher removal efficiencies than a single treatment method.Electrocoagulation technology is a simple, reliable, costeffective, and promising technique for treating various wastewaters without additional chemicals and thus reducing the volume of produced sludge; this technology requires only a low-intensity electrical current and can therefore be operated using green processes, such as solar cells, windmills, and fuel cells [2].The coagulating agent is generated in situ during the electrooxidation of a sacrificial anode; the hydroxide formed on the mineral surfaces in situ is 100 times higher than on preprecipitated hydroxides when metal hydroxides are used as the coagulant.The flocs formed during electrocoagulation are relatively large and contain less bound water; therefore, they can easily be removed by filtration.The use of electrocoagulation with effluents containing low levels of dissolved solids is limited by the required minimum solution conductivity.During the removal of organic compounds from effluent-containing chlorides, toxic chlorinated organic compounds can form, and the sacrificial anodes must be replaced periodically; this method has high electricity costs and sludge production [10,13].Therefore, electrocoagulation in combination with other treatment methods is a safe and effective method for dye removal.
Adsorption is a widely used, effective technology for dye removal treatment with applicability in wastewater treatment.Adsorption can also remove soluble and insoluble organic pollutants; the removal capacity of this method can reach 99.9%.Adsorption is the accumulation of a substance at a surface or interface.In water treatment, the process occurs at an interface between a solid adsorbent and contaminated water.The adsorbed pollutant is called the adsorbate, and the adsorbing phase is called the adsorbent [14].The most efficient methods are technologies based on the adsorption of activated carbon from water, which appears to be the best method for removing dyes.However, this process is expensive and difficult to regenerate after use [15].Alternatively, sewage sludge-derived carbonaceous materials that act as sorbents have the advantage of providing economic value to waste as a material for producing adsorbents for the removal of pollutant materials.In addition, this application could solve the problem of sewage sludge pollution.Therefore, the feasibility of achieving cationic and anionic dye removal from aqueous solutions using a combined electrocoagulation and adsorption system composed of commercial activated carbon and sewage sludge-derived carbonaceous material as adsorbents was examined.The effects of the operating conditions on the performance of the electrocoagulation process in a batch reactor were evaluated; the combined process using electrocoagulation followed by adsorption in a sequenced continuous step was evaluated and compared.To the best of our knowledge, no such studies have been carried out previously.Finally, the Brunauer-Emmett-Teller (BET) surface area of the adsorbent and the sludge and dye-loaded adsorbents were characterized using FT-IR and SEM.

Materials.
The carbonaceous material was obtained from industrial sewage sludge.The sludge feedstock and pyrolysis procedure have been described elsewhere [16].Sludge pyrolysis was performed at 500 ∘ C for 60 min with a nitrogen flow rate of 350 mL min −1 .The carbonaceous material was treated with a 10% hydrochloric acid solution at 20 ∘ C for 24 h.Afterwards, it was washed five times with distilled water and dried at 70 ∘ C for 2 h.Commercial granular activated carbon (CAC) from Clarimex5, Mexico, was used for comparison.The materials were milled, sieved, and washed with deionized water to eliminate the fine particles.The grains with diameters between 0.42 mm and 0.84 mm were selected for both adsorbents.
2.2.Chemicals.MG chloride, a cationic dye (Figure 1(a)) (molecular formula: C 23 H 25 N 2 Cl, molecular weight: 365 g mol −1 , and maximum light absorption:  max = 617 nm), is a commercial salt (Hycel, Mexico) and was used without further purification.RY is an anionic dye that is soluble in water and has a molar mass of 606 g mol −1 and maximum light absorption at  max = 269 nm.RY is a commercial salt (Dystar, Mexico), and its chemical structure is shown in Figure 1(b).MG and RY were selected and studied to compare the effectiveness of electrocoagulation-adsorption according to the type of dyestuff present.MG and YR dye solutions were used for preparing synthetic dye wastewater and were diluted to the desired concentration of 100 mg L −1 .

Electrochemical Cell.
Experiments were performed in batch and continuous modes with a 5.5-L rectangular reactor made of Perspex glass; the unit consisted of an electrochemical reactor and sludge separator.The volumes of the reactor and sludge separator were 2.5 and 3 L, respectively.The two compartments were connected by a triangular groove, and the wastewater passed from the first compartment into the second by overflow.The solution was continuously circulated in the system using iron plates with a peristaltic pump (Masterflex L-S5) at a flowrate of 65 mL min −1 .Sodium chloride was added to the batch runs to achieve a solution conductivity of 69-78 mS cm −1 .
Four plates (100 × 70 × 1 mm 3 ) were used as electrodes with 70-cm 2 area.The gaps between the anodes and cathodes were maintained at 1 cm.Each anode was placed between two cathodes to improve the current distribution.Magnetic stirrers were used to maintain a constant composition of feed wastewater.A solar cell supplied the system with 1-2 A of current intensity (35.7 A m −2 -71.4A m −2 ).Samples (10 mL) were periodically taken from the reactor, and the dye concentrations were measured.This procedure was repeated twice.The dye concentration of the samples was calculated using a calibration curve that was prepared previously.The effects of the operating parameters were studied, and the optimal conditions of electrocoagulation for decolourization were determined.
The electrodes were treated with HCl (1 M) for cleaning prior to use to avoid passivation.After each run, the corroded parts of the anodes and electroreduced substances on the cathodes were removed with a revolving metal brush.The surfaces of the electrodes were replenished with sandpaper prior to each new experiment.

Fixed-Bed Experiments.
The adsorption process was conducted using 17 cm bed heights in glass columns with a 2.2 cm internal diameter.The weights of the adsorbents were 36.5 and 33.9 g of carbonaceous material.The fixed-bed volumes for both adsorbents were 64.62 cm 3 .The used carbonaceous material was a residual sludge from a wastewater treatment plant, and we sought to determine and compare the applicability of an absorbent after a pyrolysis treatment and that of commercial activated carbon.Glass wool was placed in the bottom of the column to support the adsorbent.A volumetric flow rate of 40 mL min −1 , corresponding to a hydraulic charge of 152 m 3 m −2 day −1 , was calculated according to a previous report [17].Liquid samples were withdrawn at different time points.
2.5.Analytical Procedure.The dye concentration was measured using a UV/vis spectrophotometer (Perkin Elmer model LAMBDA 125) at a wavelength corresponding to the maximum absorbance of each dye.The samples were filtered with Whatman paper number 1 every 5 min for analysis.The colour removal efficiency (, %) after each treatment was calculated using the following formula: where  0 and   are the concentrations of dye before and after electrocoagulation, respectively.The faradic yield of the metal dissolution (Φ) was estimated according to Faraday's law: where Φ is the amount of iron dissolution (g),  is the molecular weight of the iron (55.85 g mol −1 ),  is the number of electron moles ( = 2), and  is the Faraday constant ( = 96,487 C mol −1 ).The conductivity and pH were measured using a multiparameter instrument (Conductronic pH-15), and a voltmeter (Fluke 179) was used to measure the voltage during the electrocoagulation process.
The rate of dye removal during electrocoagulation can be represented as follows: where  represents the dye concentration,  represents the order of the reaction,  represents the reaction rate coefficient, and  represents the time.For a first-order reaction, the above equation becomes the following: where  0 is the initial dye concentration [18].The rate of adsorption and the adsorbed amount of cationic and anionic dye on the materials were calculated using a breakthrough curve obtained by plotting   / 0 (effluent concentration/influent concentration) versus time.The experimental results were adjusted to the Bohart-Adams model using Origin 8.0 software.The expression used is as follows [11]: where  AB is the kinetic constant (Lmg −1 min −1 ),  is the linear flow rate (cm min −1 ),  is the bed depth of the column (cm), and  0 is the adsorption capacity (mg L −1 ).The experimental data were fitted to this model; the  2 parameter indicates the correlation between the experimental points and predicted values [19].
The kinetics of the electrocoagulation removal process were coupled with the fixed-bed adsorption to determine an effective percentage removal.2.6.Characterizations.For the FT-IR studies, the sludge generated during electrocoagulation before and after dye adsorption was analysed using an FT-IR spectrometer (Nicolet Avatar 360).The samples were dispersed in spectroscopic grade KBr to record the spectra (sample: KBr = 1 : 100); the IR spectra were recorded over the range of 4000-400 cm −1 .
For the SEM observations, the commercial activated carbon and carbonaceous samples, before and after dye adsorption and sewage sludge electrocoagulation, were mounted directly on the holders and observed at 10 and 20 kV using a JEOL 8810 LV microscope.The microanalysis was performed using an EDS system (Oxford).
To determine the point of zero charge, the carbonaceous material (10 mg) was placed in opaque vials with a 0.01 M NaCl solution that was previously adjusted to a specific pH value between 1 and 12 (1 unit intervals) using 0.1 M HCl or NaOH solutions.After 24 h of contact, the samples were centrifuged and decanted, and the pH was determined in the liquid phase (HI 2550 pH/ORP meter and EC/TDS/NaCl meter HANNA analyser).
Specific surface areas were determined using the N 2 BET nitrogen adsorption method with a Micrometrics5 Gemini 2360 surface area analyser.The dry and degassed samples were analysed using a multipoint N 2 adsorption-desorption method at room temperature.

Adsorption Batch Experiments.
One-hundred milligrams of carbonaceous material and 10 mL of aliquots of different concentrations of RY or MG (at concentrations of 20, 40, 60, 80, 100, and 150 mg L −1 ) were studied over the course of 5 h in a water bath (303, 313, and 323 K) using a previously established method [16].Later, the samples were decanted to separate the phases.All adsorption experiments were performed in duplicate.In addition, dye solutions with varying pH values (4, 6, 8, and 10) were tested.The pH of the solution was adjusted using 1 M HCl and 1 M NaOH.Each mixture was vacuum filtered, and the dye concentrations were determined in the liquid phase.The amount of dye on the corresponding material   (mg/g) was calculated using a mass balance relationship:   = ( 0 −   )/, where  0 (mg L −1 ) and   (mg L −1 ) are the initial and equilibrium liquid-phase concentrations of the dye, respectively;  (L) is the volume of the solution; and  (g) is the weight of the corresponding material.

Batch and Continuous Modes of Operation.
The batch mode was found to significantly enhance the efficiency of the electrochemical treatment process in terms of the dye removal, as demonstrated in Figure 2. The maximum dye removal for both dyes using the batch-mode and continuousmode electrocoagulation was achieved at 60 min and 90 min, respectively.
Notably, a continuous system operates under steady-state conditions with a fixed pollutant concentration and effluent flow rate.In contrast, the dynamic nature of a batch reactor enables studying a range of operating conditions and is more suited to research studies.Continuous systems are better suited for industrial processes with large effluent volumes, whereas batch reactors are suited for laboratory-and pilot plant-scale applications.The continuous mode of operation is preferred due to its better control compared to the batch mode of operation [10].We studied the removal of reactive blue 21 dye by electrocoagulation using iron electrodes in batch and continuous modes.The results showed that the colour and chemical oxygen demand removal in the batch reactor were higher than those in the continuousflow electrocoagulator because the distribution of electroactive species in the batch reactor was more effective [20].Moreover, the electrocoagulation process was conducted in both continuous and batch modes and was determined to be an efficient and viable process for achieving a high degree of total petroleum hydrocarbon removal from petroleumcontaminated groundwater [21].However, on a large scale in the field, the treatment process must be run in continuous mode [10].

Operation of the Continuous-Mode Electrocoagulation
Process.To establish a favourable current density value for the continuous mode, electrocoagulation processes were performed.Three values of the current density, 35.7, 53.5, and 71.4A m −2 , at a fixed inlet concentration of  0 = 100 mg L −1 with pH values between 5 and 6 were studied.
According to [22], the pollutant removal efficiency decreases with increasing initial dye concentration at a constant current density due to the formation of flocs formed from metal hydroxides that are unable to settle.Therefore, in our case, having a variable current density with a continuous system, it was decided to use an initial concentration of 100 mg L −1 by predicting a residue less than 20 mg L −1 for the coupled sorption process.Residual concentrations of 10 mg L −1 have been reported for sorption processes [4,23,24].
The initial pH values of these two dyes were nearly neutral.Therefore, chemical modification was not necessary since previous studies [25] have reported that pH values between 6 and 7 are suitable and it was compatible with Fe electrodes.Importantly, since the tests were continuous, a significant pH increase was not expected, regardless of whether the water was introduced from a surface water table or was reused; hence, the pH was expected to remain neutral, and we did not expect to apply acid or base to the treated water [26].
The data for a 60 min operation are presented in Figure 3.As shown in Figure 3, the concentration of MG and RY decreased significantly with the increased current density.For both dyes, the time required to reach the plateau region also decreased from 60 min to less than 20 min when the current density was increased from 35.7 to 71.4A m −2 .Consequently, the number of metallic hydroxides produced increased with electrocoagulation at 71.4 A m −2 .Therefore, the optimum current density was chosen as 35.7 A m −2 .This current density was used for further experiments with the continuous-mode system.The current density determines the coagulant dosage within an electrocoagulation process, adjusts the bubble production, and, hence, affects the growth of flocs in both batch and continuous reactors [9,27].
According to Faraday's law (see (1)), as the current density increases, the ion concentrations produced by the electrodes also increase, thereby increasing the flow production and improving the dye removal efficiency [26].
The amount of the electrode that dissolved was theoretically calculated as 1.04, 1.56, and 2.08 g, following Faraday's law, corresponding to current densities of 35.7, 53.5, and 71.4A m −2 , respectively.Similar effects of the current density on the electrocoagulation process have also been reported for the treatment of other organic and inorganic contaminants, such as textile wastewater [9] and heavy metals from waste fountain solutions (copper, zinc, and nickel) [28].
Furthermore, solar cells were used to supply power as a sustainable and low-cost option for treatment.Photovoltaic modules have a long life and low maintenance cost and can produce high direct currents when exposed to sunlight [29].
The electrolytic reactions during electrocoagulation with Fe electrodes include metal dissolution (anode) and water reduction (cathode).Two mechanisms for the production of metal hydroxides have been proposed [22,30].During the process studied herein, the pH increased from 5.3 to 11 (Figure 3) due to the production of hydroxides.The OH − production from the reaction increased the pH during electrolysis.Consequently, insoluble Fe(OH) 2 precipitates were formed at pH > 5.5 and remained in equilibrium with Fe 2+ up to a pH of 9.5 or with monomeric species such as Fe(OH) + , Fe(OH) 2 , and Fe(OH) 3 at higher pH values.Once the insoluble flocs of Fe(OH) 3 were produced, they could remove the dissolved dyes by surface complexation or electrostatic attraction [31].The relative stability of the pH after this process was likely due to the formation of insoluble Fe(OH) 3 flocs and other metal hydroxides.The influent pH is an important parameter that influences the performance of the electrocoagulation process.When the pH of the dye solutions was between 5.5 and 8.5, maximum removal was achieved.As the initial pH value was approximately 6.5 for both dye solutions, additional chemicals were not required to change the initial pH values.
The formed Fe(OH) () can remove dye molecules by surface complexation or electrostatic attraction.During surface complexation, it was assumed that the pollutant could act as a ligand to bind hydrous iron moieties using precipitation and adsorption mechanisms [22,30].
Additionally, the removal mechanism of the azo dye may have actually complexed with the iron hydroxide-forming ionic bonds as follows [18]: Figure 4 presents plots of the first-order kinetic model fitted to the experimental data.Figure 4 reveals a reasonably good fit for the first-order kinetic model for both dyes ( 2 > 0.93).Based on the linear regression equation fitted to the experimental data, the first-order removal rate constants for MG and RY were 0.0035 and 0.0034 min −1 , respectively.
Similar results were found during the removal of phosphate from landscape water using an electrocoagulation process with aluminium electrodes powered directly by photovoltaic solar modules; the first model was adequately applied to the experimental data [29].Based on these results, we confirmed that electrocoagulation has the ability to simultaneously remove cationic and anionic dyes from aqueous solutions.behaviour of the carbonaceous material.Two models, the Langmuir and Freundlich isotherms, were employed to analyse MG and RY adsorption data, and the respective constants of each model were estimated using nonlinear regression analysis [32].

Batch Adsorption
Langmuir: Freundlich: where   is the dye concentration at equilibrium (mg L −1 ),   is the adsorption capacity at equilibrium (mg g −1 ),  max is the maximum adsorption capacity (mg g −1 ),  is the adsorption energy constant (L mg −1 ),   is the Freundlich adsorbent capacity, and 1/ is the heterogeneity factor.Table 1 shows the parameters obtained after applying these models to the experimental data, and Figure 5 shows the experimental data and Langmuir model.The correlation coefficient for the Langmuir isotherm was greater than that for the Freundlich isotherm for RY adsorption, while the opposite behaviour was observed for MG adsorption.The Langmuir model assumes monolayer adsorption onto a surface containing a finite number of adsorption sites via a uniform adsorption mechanism without transmigration of the adsorbate along the surface plane.The Freundlich equation is based on adsorption onto a heterogeneous surface [33].
In the MG adsorption case, the experimental data were adjusted to both models with similar correlation values (  0.97).The Langmuir model is based on the assumption of a homogeneous adsorbing surface and the independence of the adsorption sites.However, carbonaceous material is a heterogeneous product of sewage sludge carbonization, and the chemistry composition of the material used herein was heterogeneous based on the EDS analyses.
The maximum adsorption capacities of RY (  = 11.69 mg g −1 ) and MG (  = 39.76 mg g −1 ) on the carbonaceous material were determined.A similar result was found for the adsorption of RY onto the carbonaceous material prepared from sewage sludge (12.72 mg g −1 ) [16], while the adsorption of MG onto the carbonaceous material was superior to that on the commercial activated carbon in the batch system [40].
The pH of a solution is an important parameter during a sorption process.The initial pH was inversely related to the adsorption capacity at equilibrium for both dyes.When the initial pH of the dye solution increased from 4 to 12 for RY, the adsorption capacity decreased; with an increase in the pH, the adsorption capacity of MG increased (figure not shown).The pH values substantially affected the availability of dye to interact with the adsorbent surface in solution [24]; the dyes could be positively or negatively charged to favour the selective adsorption using basic and acid materials, respectively.
To estimate the effect of the temperature on the dye adsorption onto the carbonaceous material, three basic thermodynamic parameters, the enthalpy (Δ), entropy (Δ), and Gibbs free energy (Δ), were calculated using a relationship between the equilibrium constant (  ) and temperature (), which is expressed using the Van't Hoff equation as follows [41,42]: where   , , and  are the Langmuir equilibrium constant, the universal gas constant (8.314J⋅mol −1 K −1 ), and the absolute temperature in K, respectively.The values of the thermodynamic parameters, enthalpy (Δ), Gibbs energy change (Δ), and entropy change (Δ), of the adsorption process for RY and MG are shown in Figure 5 and Table 2.The positive value for the Gibbs energy change (Δ) shows that the adsorption process was not spontaneous [42].The positive value of Δ indicates the endothermic nature of the adsorption process.The positive values of Δ for MG indicate that the randomness at the solid-liquid interface during the adsorption process increased and reflect the affinity of the adsorbent material for MG.In contrast, for RY, the negative standard entropy change (Δ) suggests that the randomness at the solid/solution interface decreased during adsorption.Similar behaviour was observed during the adsorption of three Bezathren dyes using sodic bentonite [43].

Fixed-Bed Adsorption Experiments.
Figure 6 shows the fit of the experimental results to the Bohart-Adams model, and Table 3 summarizes the parameters calculated for the adsorption of MG and RY by the commercial activated carbon and carbonaceous material.The removal of RY using carbonaceous material from pyrolyzed sewage sludge treated with 10% HCl was evaluated using adsorption equilibria.The results indicated that the main mechanism involved in the adsorption of the dye was chemisorption on a heterogeneous material [16].However, MG removal has not been reported for batch adsorption.
For both materials, the results revealed that the maximum adsorption capacities were higher for the cationic dye (MG) than for the anionic dye (RY), even though the initial concentration was higher for the first dye.The treatment of the carbonaceous material with 10% HCL likely played a major role in the removal of the cationic dye.For the MG adsorption, the carbonaceous material breakthrough curve showed similar behaviour to that obtained for the CAC breakthrough curve (Figure 6(a)).
The adsorption rate was faster for RY than for MG.As seen in Table 3, the  2 values were higher than 0.90 for both dyes and adsorbents.Thus, this model showed good agreement between the predicted and experimental data up to   / 0 = 0.5 for all experiments.This trend can be explained by the prevalence of external mass transfer during the initial adsorption in the column [44].
A comparison of the two adsorbents (Table 3) indicated that the values of the maximum adsorption capacities for the CAC system were higher than those for the carbonaceous material system.
Usually, the breakthrough point is defined as the time when the effluent concentration (  ) reaches a percentage of the influent concentration ( 0 ) that is considered unacceptable, for example, 10% (  / 0 = 0.1).For the anionic dye, the breakthrough point was less than 5 min, while for the cationic dye it was more than 60 min.These results indicate that both of the adsorbent materials exhibited a high affinity for the MG dye.
Figure 7 compares the removal efficiencies of MG and RY by electrocoagulation as a single treatment method and electrocoagulation-adsorption using the CAC and carbonaceous material; this figure shows the effectiveness of the coupled treatment during dye removal.
The removal increased significantly, and the increase in the removal demonstrated the feasibility and synergic effect of the coupled process.The dye removal efficiencies ranged from 96% to 99%; the high dye removal efficiency was due to the combined electrocoagulation and adsorption on the CAC and its high surface area.Furthermore, both adsorbents showed a greater affinity for the cationic dye (MG) than for the anionic dye (RY).These results describe the electrocoagulation-adsorption performance in a continuous  system to explore the possibility of using the system for treating real textile effluents.Previous studies have compared electrocoagulationadsorption to other conventional and advanced methods (Table 4).Abundant information is available regarding MG and RY adsorption but not MG and RY electrocoagulation.
It is difficult to compare the results of this work with those from the literature because the dye removal efficiency was determined under different experimental conditions and was dependent on the type of treatment, initial dye concentration, electrode type, and chemical composition of the adsorbent.Notably, in Table 4, the electrocoagulationadsorption resulted in a higher removal efficiency compared to the other treatment methods.The carbonaceous material used in this study shows relatively good adsorption capacities compared with CAC.

Characterization.
The SEM image of the solid sludge precipitates (the product of RY electrocoagulation) is presented in Figure 8(a).This SEM image shows continuous flake-shaped aggregates with diameters of 10-100 m.The elemental composition of the MG and RY sludge precipitate samples (Table 5) exhibited carbon (C), oxygen (O), and iron (Fe).The chemical composition of the sewage shows that the quantity of iron notably increased (>40.51%) when the samples were treated with electrocoagulation.The presence of silicon (Si) was attributed to the glass slit used for the EDS analysis of the sample.
Figure 8(b) shows the morphology of the activated carbon; a porous structure can be observed, and Figure 8(c) shows the morphology of the carbonaceous material, which is similar to the morphology reported elsewhere [45].
The chemical compositions of the CAC and carbonaceous material before and after MG and RY adsorption are presented in Table 3.The amount of carbon (C) in the adsorbent  increased when the samples were in contact with the dye solution, which indicated that dye adsorption occurred on the materials.The point of zero charge of the carbonaceous material was 7.1, and the FT-IR spectra of the MG and RY sludge (figure not shown) presented a broad and intense band at 3317 cm −1 that was attributed to the stretching vibrations of −OH.The variable band at 1630 cm −1 was attributed to the stretching vibration of the C=C and C=N aromatic groups.The bands at 1369 cm −1 indicated the presence of CH 2 , and the bands in the 1600 to 1000 cm −1 region corresponded to the C-C and C-N groups [46].Similar results have been reported elsewhere [39].
The FT-IR spectra of the carbonaceous material and CAC before and after dye adsorption at 4000-400 cm −1 are presented in Figure 9.
Bands appearing at 3367, 2908, 1620, 1458, 1057, and 876 cm −1 in Figure 9(a) were assigned to OH stretching, C-H stretching in the alkane, COO − anion stretching, OH bending, C-O stretching in the ester or ether, and N-H deformation in the amines, respectively.Of these groups, the carboxylic acid and hydroxyl groups played a major role in the dye removal.Figure 9(b) shows a large number of bands, indicating the complex nature of the adsorbent carbonaceous material.The bands appearing at 3402, 2974, 1597, 1458, 1080, and 876 cm −1 were attributed to the presence of OH groups, C-H stretching in the alkanes, C=O stretching in the carboxylate groups, and C-O-H stretching.The bands below 1200 cm −1 were considered to be the fingerprint region.The MG-and RY-loaded adsorbents showed either a shift or reduction in most adsorption bands, suggesting that the functional groups played an important role in adsorption.
The zero charge point of a carbonaceous material is determined when the pH eq is equal or quite similar to pH initial .The zero charge point obtained in this study (7.0) is of the same order of magnitude as the value found by Márquez-Mendoza et al. [47]; thus, the zero charge point appears to be dependent on the origin of the material.
The BET specific surface areas of the adsorbents were 1471.22 and 100.79 m 2 g −1 , and the total pore volumes were 0.7278 and 0.1983 cm 3 g −1 for the CAC and carbonaceous material, respectively.The BET specific surface area may have been responsible for the adsorption behaviour of the materials.

Conclusions
During electrocoagulation, the removal efficiency achieved in the batch system was higher than that achieved in the continuous electrochemical process.The continuous electrocoagulation-adsorption processes were more efficient for dye removal than electrocoagulation alone.The cationic and anionic dye removal efficiencies achieved during adsorption with the CAC and carbonaceous material were very similar at 96-98%.
The thermodynamic parameters Δ, Δ, and Δ indicated that the adsorption process was spontaneous and endothermic.The SEM-EDS and FT-IR analyses of the sludge produced during electrocoagulation and of the adsorbent after adsorption revealed that carbon, oxygen, and the elemental components of the dye were the main byproducts formed after electrocoagulation and adsorption.The chemical composition of the sewage indicated that the quantity of iron notably increased when the samples were treated with electrocoagulation.Thus, the results presented in this work indicate that a continuous electrocoagulation-adsorption process can effectively remove cationic and anionic dyes from water.

Figure 2 :
Figure 2: Comparative performance of the batch and the continuous-mode systems in treating (a) malachite green and (b) Remazol yellow with 100 mg/L and current input of 35.7 A/m 2 .

Figure 3 :
Figure 3: Effect of current density and final pH on the (a) Remazol yellow removal and (b) malachite green with 100 mg/L.: 35.7 A/m 2 , e: 53.5 A/m 2 , and ◼: 71.4 A/m 2 .

Figure 4 :
Figure 4: Plot of the first-order equation for (electrocoagulation) removal kinetics of malachite green (MG) and Remazol yellow (RY) in aqueous solution.

Figure 5 :
Figure 5: Langmuir model and Van't Hoff plot for the adsorption of the Remazol yellow and malachite green onto carbonaceous material.

Figure 6 :
Figure 6: Comparison of fitted curves and experimental data using the Bohart-Adams model for the adsorption of (a) malachite green and (b) Remazol yellow using CAC and CM (ℎ = 17 cm).

Figure 7 :
Figure 7: Malachite green and Remazol yellow removal efficiencies with electrocoagulation and electrocoagulation-adsorption CAC and electrocoagulation-adsorption CM.

Figure 8 :Figure 9 :
Figure 8: SEM image of the (a) sludge produced in the Remazol yellow-EC process and materials: (b) CAC and (c) CM before adsorption.

Table 1 :
Adsorption isotherm parameters of Remazol yellow and malachite green by carbonaceous material.

Table 2 :
Thermodynamic parameters for the adsorption of Remazol yellow and malachite green by carbonaceous material.

Table 3 :
Bohart-Adams-fitting parameters for the adsorption of malachite green and Remazol yellow using commercial activated carbon and carbonaceous material.

Table 4 :
Comparison of dye removal performances of various treatment technologies.
NA: not available.

Table 5 :
Elemental analysis of the dye sludge produced in the electrocoagulation process and commercial activated carbon and carbonaceous material (CM), before and after malachite green and Remazol yellow adsorption by EDS.