Introduction

Dye stuffs are widely used in many industries, such as paint, paper, textile and leather which produce colored products. More than 10,000 commercial dyes are available, and an average of 7 × 105 tons of dye-containing wastewaters is produced annually (Qada et al. 2006; Kaykioglu and Debik 2006; Wang et al. 2008). In addition to causing esthetic pollution, they create turbidity in the aquatic environment and prevent sunlight from penetrating into the water and adversely affect the photosynthesis reactions which are important for aquatic plants (Wang et al. 2005; Qada et al. 2006).

Many alternative processes for the treatment of wastewater containing dyes have been reported in the literature such as adsorption (Ozturk et al. 2017; Ilgin and Ozay 2017), biological treatment (Sarvajith et al. 2018; Bahia et al. 2018), chemical coagulation (Tiaiba et al. 2018; Dotto et al. 2019), membrane filtration (Hassani et al. 2008; Khumalo et al. 2019), ozonation (Gharbani et al. 2008; Venkatesh and Venkatesh 2019) and electrochemical treatments (Vignesh et al. 2014; Assémian et al. 2018; Şen et al. 2018). One of the important points in wastewater treatment is that the treatment method to be applied should be a process that does not produce secondary waste. It is not considered an environmentalist approach to remove pollutants from wastewater and move them to another environment. It is also important that the treatment method is effective and economical.

One of the treatment methods that can be applied in this respect is the electrochemical oxidation (EO) process. Compared with conventional and other advanced oxidation process (AOP) methods, the EO process involves no secondary waste generation and no variation problems for the anode (Ozturk and Yilmaz 2019). EO is an environmentally friendly technology that can fully mineralize organic materials that are not completely biodegradable (Brillas and Martínez-Huitle 2015). The reaction can be easily terminated in seconds by disconnecting electrical power and then restarted quickly. EO can be used to remove many contaminants and can process quantities from microliters to millions of liters (Anglada et al. 2009). Furthermore, EO generally has lower temperature and pressure requirements than equivalent non-electrochemical techniques, such as supercritical oxidation (Anglada et al. 2009). The main disadvantage of this process is the high operating cost due to high energy consumption. The solution is to decrease ohmic resistance to decrease cell voltage with cell design optimization (Zhu et al. 2009). Also, Takdastan et al. (2015) and Atmaca (2009) reported that distance between electrodes strongly affected the energy consumption of the system. Passivation, abrasion and polarization of the electrodes are other disadvantages. These problems can be ameliorated by developing advanced plate materials or selecting durable anodes like boron-doped diamond (BDD) electrodes, mixed metal oxide (MMO) electrodes, etc. In addition, wastewater must be electrically conductive in order to apply this technology. The EO process is advantageous for industrial wastewaters since they have good electrical conductivity.

The aim of this study is to remove Basic Red 13 (BR13) dye from aqueous solutions by EO with Ti/Pt anodes and to optimize the operating conditions (current density (CD, J), flow rate (Q), initial pH and supporting electrolyte (SE) concentration) by using response surface methodology (RSM).

Based on the author’s knowledge, although several studies examined electrochemical treatments of dye-containing wastewaters, there is no study about the investigation and optimization of EO of BR13 dye wastewater with Ti/Pt anodes.

Materials and methods

Dye solution, analyses and calculations

In this study, BR13 dye was used for the preparation of aqueous solutions. General characteristics of BR13 are given in Table S1 (Online Resource 1). Dye solution concentrations were fixed at 100 mg/L for all experiments. Because of its low electrical conductivity, distilled water was not used for solution preparation, so tap water was used for the preparation of solutions. Tap water which was used in experiments contains chlorides, nitrates, sulfates and bicarbonates with concentrations of 1.20 mg/L, 1.50 mg/L, 7.50 mg/L and 110 mg/L, respectively.

System efficiency was determined based on chemical oxygen demand (COD) removal (Eq. 1) (Ozturk and Yilmaz 2019). The COD of the solution was analyzed using a spectrophotometer (WTW Spektroflex 6100) at a wavelength of 600 nm according to the closed reflux colorimetric method (Eaton et al. 1995). Momentary temperature, pH and electrical conductivity readings were taken with a multimeter (WTW multi340i).

$$Y_{\rm{o}} (\%) = \frac{\left(C_{0} - C_{t} \right)}{C_{0}} \times 100$$
(1)

C0 and Ct represent the concentrations before oxidation (t = 0 min) and after oxidation at time t, respectively. Yo represents the experimentally observed removal yield of BR13 as an expression of COD. Since the chloride content in the solution was high because additional NaCl was used, the effluent chloride levels were analyzed with the argentometric method (Ademoroti 1996). To calculate the chloride concentration of effluents, Eq. 2 (Ademoroti 1996) was used:

$$\left( {{\text{Cl}}^{ - } } \right)\left( {\frac{{\text{mg}}}{{\text{L}}}} \right) = \frac{{\left( {V_{t} - V_{\text{b}} } \right) \times N_{t} \times 1000 \times 35.5}}{{V_{\text{s}} \left( {\mathrm{mL}} \right)}}$$
(2)

Vt represents the amount of AgNO3 consumed in the titration for the sample (mL), Vb represents the amount of AgNO3 consumed in the titration for the blank (mL), Nt represents the normality of AgNO3, and Vs represents the sample volume (mL).

With the use of Eq. 3 (Rahmani et al. 2015) and Eq. 4 (Azarian et al. 2018), energy consumption (E) values were determined.

$$E\left( {\frac{{\text{kWh}}}{{{\text{m}}^{3} }}} \right) = \frac{V \times I \times t}{v}$$
(3)

Here, V (Volt) is the electric potential, \(v\) (m3) is the volume of dye solution, I (ampere) is the electric current, and t (hour) is the reaction time. Using Eq. 4, the specific energy consumption (SEC) of the system was determined per kg of degraded COD:

$${\text{SEC}}\left( {\frac{{{\text{kW}}\,{\mathrm{h}}}}{{{\mathrm{kg}}\,{\mathrm{COD}}}}} \right) = \frac{V \times I \times t}{{\Delta C \times V_{\text{R}} }}$$
(4)

Here, ΔC is the difference in inlet and outlet concentration of COD (mg/L) of the sample taken at the time of reaction, and VR is the volume of dye solution (liter).

Characteristics of the Ti/Pt anode

Ti/Pt mesh type electrodes utilized in this study were commercially obtained (Umicore). Commercially available electrodes were used in experiments without any treatment. However, to know how these electrodes are prepared and processed gives the experimenter information about the durability of the electrodes. The electrode was prepared by coating Pt on a Ti layer. The platinum coating is applied by means of high-temperature electrolysis (HTE) (Dick 1990). The platinum is deposited from a cyanide molten salt bath at temperatures of 500 to 600 °C. Mesh type pure Ti electrodes were supplied in plate form, and electrodeposition was performed in molten medium containing NaCN (48%) and KCN (50%). During the electrodeposition process, Pt (1–3%) was used in pure form and dissolved in cyanide molten medium; then, electrodeposition was performed in the cell which was closed under vacuum with argon gas. During the coating process, the temperature was gradually increased to 500–600 °C. Other operating conditions during the Pt coating process are as follows: cathodic current density 1–5 A/dm2, deposition rate 10–50 µm/h, deposition voltage 1–2 V. Also, SEM, EDX and plasticity analyses of Ti/Pt anode were performed with ZEISS GeminiSEM 300 model analyzer.

Experimental setup

A glass-jacketed cylinder reactor (height 22 cm, radius 3.5 cm) was used for the circulation of cooler liquid to fix the reaction temperature at 25 °C with a liquid circulator (Labo C200-H13). Three cathodes (Ti) and three anodes (Ti/Pt) with mesh type were connected to direct current (DC) power supply (TTI/QPX1200S) with a monopolar parallel connection. The gap between the electrodes was 3 mm. Each electrode was 40 mm × 200 mm, and the total surface area of electrodes was 1056 cm2. A magnetic stirrer (Daihan-Brand) was utilized to prevent precipitation of dye particles in solution. A peristaltic pump (Masterfleks R/S) was used to adjust the flow rate of solutions. For all experiments, wastewater volume was fixed at 700 mL.

Design of experiments

RSM is a unique method that includes experimental methods to examine the experimental space of process variables, while empirical modeling methods are used to determine the relationship between the response of the process and the independent variables acting on it. It is also a preferred technique for determining levels at which system variables have the desired effect on the response of the system. The four system variables, namely initial pH (A), J (B), Q (mL/min) (C) and SE concentration (mM) (D), were selected for COD removal yield (%) which is the response. CCD is a procedure that provides system optimization by explaining the relationship between dependent and independent variables and revealing to what extent the effect of the independent variables and the interaction of the factors have a significant effect on the response variable. Thirty experimental sets were proposed by CCD according to the equation 2k  +  2k  + 6 (k is 4 for this study). Six experiments were performed at the central points (0) to reveal the experimental error. Each value for the independent parameters was entered into the system as the highest (+ 1) and lowest (− 1) points (Table 1). Apart from the independent system variables, there are also parameters that are kept constant in the system; these are: initial BR13 concentration 100 mg/L and reaction temperature 25 °C.

Table 1 Value ranges for CCD experiments

The quadratic function, which explains the relationship between the dependent and independent variables, is given in Eq. 5 (Öztürk and Şahan 2015; Kıvanç and Yönten 2020):

$$\hat{y}_{n} = \beta_{0} + \mathop \sum \limits_{i = 1}^{n} \beta_{i} x_{i} + \mathop \sum \limits_{i = 1}^{n} \beta_{ii} x_{i}^{2} + \mathop \sum \limits_{i = 1}^{n} \mathop \sum \limits_{J = i + 1}^{n} \beta_{ij} x_{i} x_{j}$$
(5)

where β0 is the constant response value at the center of the design; βi, βii and βij are linear, quadratic (quadratic) and interactive effect of regression terms, respectively; Xi is the level of the independent factor; n (4 in this study) is the number of independent factors; ε is the random error. In order to obtain the interaction between the responses and the variables, Eq. 5 was analyzed using the Design-Expert 7.0.1 program, which includes the ANOVA test, and the suitability of the model was expressed with R2.

Results and discussion

Structural properties of Ti/Pt anode

The Pt deposition surface consists of stacks of approximately prism-like structures with sizes ranging from nano-scales to micron size. The cross-sectional image and SEM image of the anode are shown in Fig. 1a, b, respectively. As a result of this situation, the electrode has a porous structure and so has a high surface area. The total surface area of the mesh type electrode used was calculated as 1056 cm2. Mesh type electrodes are superior to plate-shaped electrodes due to increasing contact area of the solution and electrode surface. At the same time, the concentration of all oxidants, which are the main drivers of oxidation, increases with the increased surface area; on the other hand, the surface for chemisorbed oxygen which contributes less to oxidation is enhanced so mesh type electrodes have a great advantage in terms of process efficiency. Ti/Pt electrodes obtained with HTE technique are resistant to experimental conditions. Physical properties of the electrode such as ductility, hardness, purity and thickness of electrode were 5%, 80 HV0.05, 99.99% and 2 mm, respectively.

Fig. 1
figure 1

SEM cross section, etched (a), SEM image (b) of Ti/Pt anode surface

Low plasticity materials break or crack under stress; they are brittle. They become more fragile when the temperature decreases. Materials with high plasticity rate undergo deformation without breaking or cracking and are ductile, and as the temperature increases, these properties increase further.

The thickness of the Pt layer coated on the Ti layer by the electrodeposition process was 2 μm (Fig. 2).

Fig. 2
figure 2

Cross section and EDX X-line scan image

It is clear from Fig. 2 that the Pt layer is thinner than the Ti layer, so the deposition process was carried out successfully. Figure S1(a) (Online Resource 2) shows the SEM image of the bent form of the Ti/Pt electrode. Despite bending, Fig. S1(b) (Online Resource 2) shows almost a smooth surface structure. The high plasticity of the Ti/Pt anode allowed the formation of prism-like structures instead of the brittle mud crack appearance of anode materials with low plasticity. Thus, it can be said that the material has high mechanical and physical strength thanks to its high plasticity.

CCD experiments and findings

CCD experiments designed by the program were carried out to determine the effects of the parameters [initial wastewater pH, J (mA/cm2), Q (mL/min) and SE concentration (mM)] on the removal of COD (%). Removal yields of COD (as a response) for each experiment are presented in the experiment design proposed by CCD (Table 2). The model equations provided by the program are suggested for COD removal yield with regard to coded and uncoded values as noted in Eqs. 6 and 7, respectively:

Table 2 CCD experimental set and results
$$\begin{aligned} {\text{COD}}\,{\mathrm{removal}}\left( \% \right)\left( {\text{uncoded}} \right) & = - 28.73110 + 42.04158\left[ {\text{pH}} \right] + 1.31190\left[ J \right] - 0.17396\left[ Q \right] \\ & \quad + 0.19644\left[ {{\text{SE}}\,{\mathrm{ conc}} .} \right] + 3.61905E - 003\left[ {\text{pH}} \right]\left[ J \right] - 0.055214\left[ {\text{pH}} \right]\left[ Q \right] \\ & \quad - \,9.00794E - 003\left[ {\text{pH}} \right]\left[ {{\text{SE}}\,{\mathrm{conc}} .} \right] + 9.09167E - 003\left[ J \right]\left[ Q \right] \\ & \quad - 8.07407E - 004\left[ J \right]\left[ {{\text{SE}}\,{\mathrm{ conc}} .} \right] + 4.55556E - 004\left[ Q \right]\left[ {{\text{SE conc}} .} \right] \\ & \quad - 3.78902[{\text{pH}}^{2} ] \, - \, 0.030086{\text{ [J}}^{2} ] + 8.82758E - 004[Q^{2} ] \, \\ & \quad - 3.58227E - 004[{\mathrm{SE}}\,{\text{ conc}} .^{2} ] \\ \end{aligned}$$
(6)
$$\begin{aligned} {\text{COD}}\,{\mathrm{removal}}\,\left( \% \right)\left( {\text{coded}} \right) & = + 96.89 - 6.10\left[ {\text{A}} \right] + 6.06\left[ {\text{B}} \right] - 5.72\left[ {\text{C}} \right] + 5.00\left[ {\text{D}} \right] + 0.095\left[ {\text{A}} \right]\left[ {\text{B}} \right] \\ & \quad - \,3.86\left[ {\text{A}} \right]\left[ {\text{C}} \right] - 1.42\left[ {\text{A}} \right]\left[ {\mathrm{D}} \right] + 1.36\left[ {\text{B}} \right]\left[ {\text{C}} \right] - 0.27\left[ {\text{B}} \right]\left[ {\text{D}} \right] \\ & \quad + \,0.41\left[ {\text{C}} \right]\left[ {\text{D}} \right] - 46.42[{\text{A}}^{2} ][ - 1.69{\text{B}}^{2} ] + \, 0.35[{\text{C}}^{2} ] \, - \, 0.73[{\text{D}}^{2} ] \\ \end{aligned}$$
(7)

Effect of operation parameters on removal efficiency

As with all experimental systems, all internal and external parameters affect system efficiency. Determining the parameters that affect system efficiency the most and even determining the degree of effect of the parameters are very important in experimental optimization. It is possible to determine the degree of effect of the parameters with ANOVA analysis. The linear, interaction and quadratic effects of operational parameters affect the system efficiency to varying degrees. A, B, C, D show linear effects, AB, AC, AD, BC, BD, CD show interaction effects, and A2, B2, C2, D2 represent quadratic effects of parameters. To observe these effects, ANOVA results are given in Table 3.

Table 3 Analysis of variance table for response surface quadratic model

The significance of each term in the quadratic model should be stated via the F value and p value. The model F value of 202.08 implies the model is significant. There is only a 0.01% chance that a “Model F-value” this large could occur due to noise. Rajkumar and Muthukumar (2012) reported that the great value of F states that the most part of the variation in the response may be expressed with the equation of regression. Values of “Prob > F” less than 0.0500 indicate model terms are significant. In this case, A, B, C, D, AC, A2 are significant model terms. Values greater than 0.1000 indicate the model terms are not significant. Also, the value of 96.27 for “lack of fit F value” implies that the lack of fit was not significant relative to the pure error. Insignificant lack of fit was good and shows the model was suitable to estimate the removal percentage of BR13 within the explored range of variables.

The coefficient determined for the model is 0.9947, close to 1 (Table 3). This shows that there is a good correlation between the values predicted by the model and the experimentally obtained values (Fig. 3a). In addition, this implies that 99.47% of the variation in percent COD removal is expressed by the independent variables; in addition, this also means that the model does not express only about 0.53% of the variation. As can be seen from Fig. 3a, the experimentally obtained (actual) values and the values estimated by the model are located close to each other above the graph line. This shows that the values predicted by the model largely represent experimental data and that the model is reliable. The normal probability plots for the residuals are shown in Fig. 3b. Plots in Fig. 3b indicate that the residuals mostly fall along a line, indicating that errors dispersed normally. This shows that the model suggested is satisfactory and there is no occasion to doubt any nonobservance.

Fig. 3
figure 3

a Graph of predicted values versus actual values, b validation of the prediction of COD removal residuals versus normal  % probability

Also, to appraise the statistical sufficiency of the results, the Box–Cox analysis can be examined (Online Resource 3, Fig. S2). As seen in Fig. S2 (Online Resource 3), the minimum confidence interval value is 0.69 and the maximum value is 1.62. The current point of confidence interval (λ = 1) almost meets the model design value (best = 1.14); as a result, no power transformation of the model was needed as proposed by the Box–Cox analysis.

Three-dimensional graphs indicating the combined effects of the operational parameters that were provided by CCD experiments are given in Fig. 4. The curvature of the plots shows the density of the interaction between the operational parameters. The interaction of the CD-pH (at fixed Q of 30 mL/min, SE concentration of 55 mM), shown in Fig. 4a, shows a substantial relationship between COD removal (%) and both CD-pH. As can be seen from Fig. 4a, the COD removal efficiency increased approximately twice as the CD increased from 5 to 20 mA/cm2. As CD increases, the oxidants produced increase (Maljaei et al. 2009), but if more CD is applied to the solution, it results in parasitic reactions which cause the depletion of hypochlorite concentration (Szpyrkowicz et al. 2005; Mohan et al. 2007). According to the results, the removal yield of COD was above 30% even at lower CDs. This situation suggests that oxidation depends on the type of anode and it might be carried out via both direct and indirect oxidations where there is oxidation of contaminants via electrons transposed to the anode surface and oxidation with electro-produced hydroxyl radicals (·OH) formed from wastewater at the anode surface (M) (Eq. 8) (Tavares et al. 2012), respectively. The efficiency of the ·OH radicals is associated with their interplay with the anode surface (M). While the degradation of organic substances is mainly related to applied CD, the type of electrode is efficient. Ti/Pt electrodes are classified as active anodes (Martínez-Huitle and Ferro 2006; Panizza and Cerisola 2009). A low quantity of reactive M(·OH) is formed by oxidation at the Ti/Pt electrodes (Lahkimi et al. 2007; Panizza et al. 2007; Martínez-Huitle and Brillas 2009). The potent interaction between M and ·OH and low O2 evolution over potential makes oxidation of the weaker MOx species possible (Fajardo et al. 2017). Produced chemisorbed oxygen (MOx) assists the fractional reduction in the dyes (D) (Eq. 9) (Tavares et al. 2012). Finally, partly oxidized organic matter (DOx) is oxidized again by the low amount of M(·OH) radicals produced. The complete oxidation of such complex synthetic dye molecules to CO2 and H2O is possible with low probability (Rajkumar et al. 2007). However, almost all of them can be oxidized to very small molecules (P) and CO2 and H2O are produced as byproducts in the final step (Eq. 10) (Martínez-Huitle and Panizza 2018):

Fig. 4
figure 4

Combined effects of aJ and pH, bQ and J, c SE concentration and J on COD removal yield

$${\text{M}} + {\mathrm{H}}_{2} {\text{O}} \to {\mathrm{M}}\left( {^{ \cdot } {\text{OH}}} \right) + {\text{H}}^{ + } + e^{ - }$$
(8)
$${\text{D}} + {\text{MO}}_{x} \to {\text{M}} + {\text{DO}}_{x}$$
(9)
$${\text{DO}}_{x} + {\text{M}}\left( { \cdot {\text{OH}}} \right) \to {\mathrm{M}} + {\text{CO}}_{2} + {\text{H}}_{2} {\mathrm{O}}$$
(10)

Also, the effect of the initial pH of solution on removal efficiency is observed in Fig. 4a. When the initial pH value of the solution increased from 2 to 5.5, the removal efficiency of COD reached almost 100%. This can be explained as follows: In acidic pH, oxidants are dominant such as Cl2(aq), HOCl and OH (Pletcher and Walsh 1999; Deborde and Von Gunten 2008) and the high removal of COD is due to oxidation mediated by Cl2 and HOCl and direct oxidation by sorbed ·OH on the surface of anode. Furthermore, in acidic pH there is also proof of the presence of other reactive types in the EO (Akrout et al. 2015). HClO is the dominant reactive species for the reaction with the generality of organic compounds (Deborde and Von Gunten 2008). Because of its oxidizing potency, there are three types of reactions: addition to unsaturated bonds, substitution to nucleophilic sites and oxidation. In the presence of dye molecules, the oxidation consists preferably of the substituents of aromatic rings. When the pH value increased from 5.5 to 9, the removal efficiency suddenly decreased by nearly 30%. At high pH (above 7), chloro-active species OCl (0.94 V) are predominant which have lower oxidation potential than HOCl (1.49 V) and ·OH. Due to the formation of \({\text{ClO}}_{3}^{ - }\) or \({\text{ClO}}_{4}^{ - }\) (Eqs. 11 and 12) (Kim and Park 2012), the production of Cl2/HOCl decreased. Therefore, removal of COD is performed with oxidation mediated by HO2 and H2O2 and OCl. Also, the sorption percentage of ·OH on the surface of the anode decreases with increasing pH and generated ·OH is turned into H2O2 and HO2 (Eqs. 13 and 14) (Zaharia et al. 2009) which have lower oxidation potential:

$$6{\text{HOCl}} + 3{\text{H}}_{2} {\text{O}} \to 2{\text{ClO}}_{3}^{ - } + 4{\text{Cl}}^{ - } + 12{\text{H}}^{ + } + 3/2{\text{O}}_{2} + 6e^{ - }$$
(11)
$${\text{ClO}}_{3}^{ - } + {\text{H}}_{2} {\text{O}} \to {\text{ClO}}_{4}^{ - } + 2{\text{H}}^{ + } + 2e^{ - }$$
(12)
$$2^{ \cdot } {\text{OH}} \to {\text{H}}_{2} {\text{O}}_{2}$$
(13)
$$^{ \cdot } {\text{OH}} + {\text{H}}_{2} {\text{O}}_{2} \to {\text{HO}}_{2}^{ \cdot } + {\text{H}}_{2} {\text{O}}$$
(14)

The interaction of the QJ (at a fixed pH of 5.50, SE concentration of 55 mM), shown in Fig. 4b, shows a substantial correlation between the COD removal (%) and Q. This disclosure does not exclude the significant impact of CD on removal efficiency, but emphasizes the importance of Q in removal efficiency with increasing acceleration. When Q decreased from 50 mL/min to 10 mL/min, COD removal efficiency increased rapidly from about % 82 to over % 90. As Q increases, the reaction time is shortened and the pollutants leave the system without sufficient electrochemical degradation. Moreover, due to the nature of continuous flow electrochemical systems, mixing effects occur. This effect contributes to the mixing of the solution and so positively affects the mass transfer. For this reason, it is necessary to determine the required hydraulic retention times in order to ensure full contact of the oxidants and pollutants during EO.

The interaction of the SE–J (at fixed pH of 5.50, Q of 30 mL/min) is shown in Fig. 4c. As seen from Fig. 4c, the degradation rate of pollutants increased with NaCl concentration positively, depending on mediated oxidation. It is well known that electrolysis of chloride solutions in divided cells involves the direct oxidation of Cl, to supply soluble Cl2 (Eq. 15) (Tavares et al. 2012). There is a reduction in H2O at the cathode which supplies OH and H2(g). If the concentration of chlorine is greater than its solubility, oversaturation ensures the generation of Cl2(g) bubbles (Tavares et al. 2012). Because the electro-generated chlorine moves away from the anode, trichloride ions can develop from its reaction with chloride ions (Eq. 16) (Tavares et al. 2012). Another possibility is transformations of chlorine to chloride ions and hypochlorous acid due to hydrolyzation (Eq. 17) (Tavares et al. 2012). Hypochlorite ion and hypochlorous acid are in balance via reversible reaction (Eq. 18) (Tavares et al. 2012). Oxidative species can change with pH. This species is soluble chlorine at pH 3, is hypochlorous acid at pH from 3 and 8 and is hypochlorite ions above pH 8 (Tavares et al. 2012). Additionally, chlorate can occur based on operating conditions, which can assist the oxidation of organic substances indirectly (Eq. 19) (Tavares et al. 2012).

$$2{\text{Cl}}^{ - } \to {\text{Cl}}_{{2({\mathrm{aq}})}} + \, 2e^{ - }$$
(15)
$${\text{Cl}}_{{2({\mathrm{aq}})}} + {\text{Cl}}^{ - } \leftrightarrow {\text{Cl}}_{3}^{ - }$$
(16)
$${\text{Cl}}_{{2({\text{aq}})}} + {\text{H}}_{2} {\mathrm{O}} \leftrightarrow {\text{HClO}} + {\text{Cl}}^{ - } + {\text{H}}^{ + }$$
(17)
$${\text{HClO}} \leftrightarrow {\text{OCl}}^{ - } + {\text{H}}^{ + }$$
(18)
$${\text{OCl}}^{ - } + 2{\text{HClO}} \to {\text{ClO}}_{3}^{ - } + 2{\text{Cl}}^{ - } + 2{\text{H}}^{ + }$$
(19)

During mediated oxidation, an increase in NaCl concentration leads to a gradual modification of the oxygen exchange reaction to more suitable potentials compared to electrolysis in the absence of SE (Ozturk and Yilmaz 2019). Similar comments are presented in the literature (Panizza and Cerisola 2003; Fernandes et al. 2004; Tavares et al. 2012). As can be seen from Fig. 4c, even at a low salt concentration (10 mM), the lowest removal efficiency is above 75%, and with increasing salt concentration the removal efficiency is increased with increasing acceleration. This is likely owing to the nature of NaCl which produces potent oxidants that may contribute to mediated dye removal.

Numerical optimization of results

Hundreds of experiments are required for the optimization of parameters affecting experimental systems performed by conventional methods. However, by using optimization procedures such as RSM, it is possible to considerably reduce the number of experiments (in parallel with chemical consumption, time and labor) and maximize the result. In this study, it was possible to provide system optimization with thirty experiments. Using numerical optimization, the desired value can be selected for each input factor and response. Here, the possible optimization entries that can be selected include: range, maximum, minimum, target, none (for responses) and be set to generate an optimized output value for a given set of conditions. The chosen target for pH and COD removal yield (%) were fixed as 4.38 (to reduce chemical consumption in possible industrial applications) and 99.98 (max observed yield value), respectively. Q and SE concentration criteria were selected in the ranges. The most appropriate alternative optimization results offered by the system for each parameter according to the selected parameter values are given in Table 4.

Table 4 Solutions for system optimization offered by RSM

Although multiple alternative sets are offered for system optimization, energy consumption is an important limiting factor in systems using electricity such as electro-oxidation. For this reason, a reasonable optimization set should be chosen where removal efficiency is high, but the energy consumption is low. Accordingly, the first solution presented in Table 4 was deemed appropriate. However, the concentration of the electrolyte (85.57 mM) used is a handicap for the first solution to be deemed appropriate. What should be considered at this time is whether the electricity consumption or the cost of NaCl will be lower. According to market research, 1 ton NaCl (99.99% purity) in 2019 is approximately $42. Also, the average electricity price is 13.19 cents/kW-h in September 2019. In light of these data, the first solution with the lowest energy consumption and the second solution with the lowest NaCl were evaluated in terms of cost for the treatment of one ton of wastewater. According to the calculations, the amount of NaCl consumed in the first solution was calculated as 0.05 tons (to provide the concentration of NaCl as 85.57 mM) and the amount of NaCl consumed for the second solution was calculated approximately as 0.03 tons (to provide the concentration of NaCl as 44.86 mM). The results are given in Table 5.

Table 5 Cost calculations for the proposed optimization of solutions

As can be seen from Table 5, the energy cost is much more important than the cost of NaCl consumption. Therefore, since NaCl is inexpensive and electricity costs are high, the most appropriate optimization conditions can be considered to be the first solution in terms of both removal efficiency and system cost for optimum system conditions. Due to the fact that the degradation of BR13 is best in acidic pH and the solution pH of BR13 is 4.38 (native value of dye solution), no extra chemicals will be required for pH adjustment. Thus, according to the first solution, when an industrial system is operated, the COD yield will be 99.98% and the approximate cost of the system to treat 1 ton of wastewater will be $1.25.

One of the most important ways of understanding the place of a scientific study in the literature is to examine previous studies in the related field. Several studies on the treatment of wastewater containing dye by EO method using Ti/Pt electrodes are shown in Table 6.

Table 6 Studies on the treatment of wastewater containing dye by electro-oxidation method using Ti/Pt electrodes

It is seen from Table 6 that dye-containing wastewaters can be successfully treated using Ti/Pt electrodes. The issue that limits the applicability of these studies is energy consumption values. There are many factors that affect energy consumption (use of support electrolytes, reaction time, current density, etc.). CD is one of the most important factors affecting energy consumption. Curteanu et al. (2011) reported that the CD applied at high values causes an increase in the potential difference. Therefore, if the CD rises above the optimum value, a large part of the current applied to the system causes the temperature of the degraded organic pollutant in the wastewater to rise, wasting energy and thus uneconomical. Similar comments made by Hamad et al. (2018). However, this effect of current density can be reduced by changing some operational conditions. The use of support electrolyte and shortening of the reaction time are good examples. Salazar et al. (2018) reported that the use of NaCl is very effective both in reducing the reaction time and in reducing the energy consumption in the system. There are many other parameters (type and chemical structure of pollutants, design of the reactor, the hydraulic retention time of wastewater, connection types of electrodes, etc.) that reduce and increase energy consumption in the system (Nava et al. 2008). Optimization of such parameters is very important both in terms of removal efficiency and minimization of energy consumption. As can be seen from Table 6, it is clear that in this study there are lower current density, higher removal efficiency and lower energy consumption values observed than other studies. The subject that distinguishes this study from other studies is the optimization of some parameters affecting the system with the optimization program apart from classical experimental methods. Thus, optimum points were successfully determined for low energy consumption and high removal efficiency.

Conclusion

Results of oxidation of the water-soluble Basic Red 13 dye by electro-oxidation at room temperature in an electrochemical reactor with a titanium cathode and a platinized titanium anode as monitored by COD measurements indicated almost complete degradation (approximately 99.98%) of the dye. EO process performance increased with increased NaCl concentration according to an increase in the concentration of active chlorine species in solution.

According to numerical optimization results, degradation of BR13 was the best in acidic conditions (4.38 as native pH of dye solution). To achieve low cost and high removal efficiency, the optimal points for applied current density, flow rate and supporting electrolyte concentration were determined as 19.53 mA/cm2, 40.78 mL/min and 85.57 mM, respectively, by numeric optimization. At these optimum points, the energy consumption of the system was calculated as 7.91 kW h/m3 and 0.98 kW h/kg COD. Under these conditions when an industrial system is operated, the approximate cost of the system to treat 1 ton of wastewater will be $1.25.