Introduction

Rapid industrialization and urbanization lead to ameliorated living standard throughout the world, which results in generation of large quantity of municipal solid waste (MSW) (Huang et al. 2016). Sanitary landfill is considered as the most economic feasible and accepted method for the disposal of MSW due to simplicity in operation (Ahmed and Lan 2012). Furthermore, landfill also helps to diminish the impact of solid waste on environment by allowing it to degrade under the controlled conditions (Renou et al. 2008). The physical, chemical, and biological processes occurred during the solid waste degradation process and also percolation of rainfall leads to generation of leachate (Kochany and Lipczynska-Kochany 2009). Additionally, factors such as composition of solid waste, moisture content of solid waste, and soil properties influence the leachate characteristics (Rani et al. 2020). The leachate that is generated from landfill is rich in total ammonia nitrogen (Sun et al. 2015). Hence, it is imperative to collect and treat the landfill leachate appropriately; otherwise, it leads to severe environmental issues.

In general, biological techniques are cost effective for the treatment of landfill leachate (Chemlal et al. 2014). However, greater total ammonia concentration in the leachate notably influences the performance of biological methods. Hence, removal of total ammonia concentration is imperative to improve the performance of biological processes (Di Iaconi et al. 2010). Magnesium ammonium phosphate (MAP) precipitation technique is the most effective and efficient way to remove total ammonia nitrogen (Yu et al. 2012). MAP is also represented as struvite a crystalline material consists of equi molar concentration of ammonium, magnesium and phosphate with the formula MgNH4PO4.6H2O (Corona et al. 2020a, b).

Furthermore, struvite is a slow releasing fertilizer and also eco-friendly in nature (Thant Zin and Kim 2019; Min et al. 2019). Moreover, application of struvite as a fertilizer minimizes the N2O emission from soil when compared with the usage of conventional fertilizers (Chu et al. 2007). The general reaction for struvite precipitation is mentioned below in equation (1).

$$ {\mathrm{Mg}}^{2+}+{{\mathrm{NH}}_4}^{+}+{{\mathrm{PO}}_4}^{3-}+6{\mathrm{H}}_2\mathrm{O}\leftrightarrow \mathrm{Mg}{\mathrm{NH}}_4{\mathrm{PO}}_4.6{\mathrm{H}}_2\mathrm{O} $$
(1)

The major drawback for struvite precipitation is raw material cost (NH4+, Mg2+, PO43-) (Yu et al. 2017). Hence, in order to curtail the precipitation cost cheap alternative sources can be used. One among those waste resources is sewage sludge, which is rich in phosphate content (USEPA 2006). Sewage sludge contains 80–90% of phosphate present in sewage (Law and Pagilla 2018). Till present, struvite precipitation has been studied with either nitrogen or phosphate supplied externally as chemical commodities. However, to the best of our knowledge, this is the first study investigating the waste resources as nitrogen and phosphate sources for producing struvite from landfill leachate. In the current study, landfill leachate is used as a nitrogen source whereas sewage sludge is used as a phosphate source for struvite production. Furthermore, to foster the nucleation and growth of struvite crystals, seed material is employed in the present study. In addition to that seed material provides the active sites essential for the nucleation and growth of struvite. Greater surface area to augment nucleation and inertness to the crystallizing solution are the desirable properties of a seed material. Kaolinite is inert to the crystallizing solution; hence, it is used as a seed material in the current study.

Several factors influence the precipitation of struvite includes pH, molar ratio of magnesium, phosphate and ammonia ions and super saturation. In general, the optimum conditions for maximum struvite production would be estimated by varying one parameter while the remaining parameters would be kept as constant. Therefore, it is tedious and time-consuming process. Hence, to overcome the above-mentioned problem researchers started using multivariate statistical models. Among those model’s response surface methodology (RSM) is the most commonly used technique for optimization (Lavanya et al. 2019). Moreover, chemical equilibrium model Visual MINTEQ is also utilized to find the speciation and solubility of salts that are likely to exist in the solution. Lavanya and Sri Krishnaperumal Thanga (2020) used RSM and Visual MINTEQ techniques to optimize the phosphate recovery (93.5%) from dairy wastewater includes pH 9.48, MgO:P molar ratio 4:1 and reaction time 73.6 min. Zhou and Wu (2012) optimized the ammonia removal (1050 mg/L) using RSM and the conditions are Mg:N:P molar ratio 1.26:1:1.11 and pH 9.87.

The current study investigates the feasibility of struvite precipitation using landfill leachate and sewage sludge. The suitability of kaolinite as a seed material to promote the recovery of phosphate and ammonia nitrogen is investigated in the present study. The effect of different parameters such as pH, molar ratio, and seed dose on struvite precipitation is also examined. The overall process optimization is carried out using RSM and Visual MINTEQ is employed to find saturation index of salts. Application potential of recovered precipitate as a fertilizer is also investigated. In addition to that economic viability of the present study is also examined.

Materials and methods

Landfill leachate

The landfill leachate used in the present study is collected from Ariyamangalam, Tamil Nadu, India. Moreover, the age of the landfill leachate is greater than 10 years and is classified as matured or stabilized one. The landfill leachate is collected in 10 L capacity plastic cans and is stored at 4oC to prevent further degradation. The different physico-chemical parameters of landfill leachate are determined using standard methods (APHA 2012). The initial characteristics of collected landfill leachate are given in Table 1.

Table 1 Initial characteristics of collected landfill leachate

Sewage sludge characteristics

Sewage sludge used in the present study is collected from municipal sewage treatment plant. The collected sludge is oven dried at 105oC. Then, the sewage sludge is treated with acid (HCl) followed by alkali (NaOH) at liquid to solid ratio of 10. The supernatant obtained after the acid and alkali treatment is characterized using inductivity coupled plasma mass spectrophotometry (ICP-MS). Major elements found in the supernatant were Al (103.1 mg/L), P (472.4 mg/L), K (29 mg/L), Ca (18.1 mg/L), Mg (25 mg/L), Fe (8 mg/L) and trace quantities of Ni (0.01 mg/L), Cu (0.12 mg/L), and Zn (0.9 mg/L).

Seed composition

The composition of kaolinite (i.e., seed material) used in the current study includes O (53.60%), Al (21.40%), Si (22.80%), Na (1.20%), Mg (0.28%), K (0.31%), Fe (0.32%) and Ca (0.09%).

Struvite precipitation

Struvite precipitation experiments are performed in batch mode using 1 L reactor. Firstly, 500 mL of landfill leachate is poured in a reactor kept over the magnetic stirrer. Then necessary quantity of sewage sludge and Mg source is added to the reactor for struvite formation. Further the whole solution is mixed properly at 300 rpm for 90 min. During the mixing process, 5 mL of supernatant is collected at regular time intervals for further analysis. The precipitates are collected and then washed thrice with deionized water, later oven dried at 35oC for 48 h.

Analytical techniques

The composition of the landfill leachate is measured as per standard methods (APHA 2012). The pH of the solution is computed using pH meter (827 pH lab, Metrohm). The concentration of phosphate in the solution is analyzed using vanadomolybdophosphoric acid spectrometric technique with UV/VIS spectrometer (Lambda 35, PerkinElmer). The Mg2+ concentration in the solution is determined using atomic absorption spectrometer (pinaacle 900T, PerkinElmer). The precipitates collected after the experiments are oven dried at 35oC for 48 h. The surface morphology of the dried precipitates is determined using Scanning Electron Microscope (SEM; JEOL, JMT-300). The obtained precipitates is analysed using X-ray Diffractometer (XRD; Rigaku, D-Max/ Ultima III). Dynamic Light Scattering (DLS; LS230, Beckman Coulter) technique is used to measure the particle size of the collected precipitates. Furthermore, the composition of seed material is examined using energy-dispersive X-ray spectrometer (EDS). In addition to that heavy metal content and composition of the obtained precipitate is measured by adding concentrated nitric acid to the deionized water containing obtained precipitate. Then, heavy metal contents are analyzed using ICP-MS. Additionally, the saturation index (SI) of salts is evaluated using the below equation (2).

$$ \mathrm{SI}=\log \frac{\mathrm{IAP}}{{\mathrm{K}}_{\mathrm{sp}}} $$
(2)

where IAP is the ion activity product and Ksp is the saturation product of the salts respectively. SI > 0 implies that the solution is in super saturated condition and spontaneous precipitation occurs within the system. Similarly, SI < 0 implies that under saturated condition exist in the solution and it does not favor the precipitation formation. Likewise, SI = 0 indicates that the solution is in equilibrium state. The purity of the precipitates obtained after the experiments is calculated using equation (3).

$$ \mathrm{Purity}\ \left(\%\right)=\frac{{\mathrm{M}}_{\mathrm{Struvite}}}{{\mathrm{M}}_{\mathrm{Total}\ \mathrm{precipitate}}}\ast 100 $$
(3)

where MStruvite and MTotal precipitate correspond to struvite mass and total precipitate mass respectively. All the studies are carried out in triplicates and the average value is reported.

Optimization using RSM

In the current study, optimization of the whole process is carried out using RSM with Design Expert 11.0 software. Moreover, Box-Behnken Design (BBD) is employed to investigate the individual and as well combined influence of factors on response. The individual parameters that are considered for the experimental design with codes and ranges are given in Table 2. The experimental data is fitted with second order polynomial equation given below.

$$ Y={\alpha}_0+{\sum}_{i=1}^4{\alpha}_i{x}_i+{\sum}_{i=1}^4{\alpha}_{ii}{x_i}^2+{\sum}_{i=1}^4{\alpha}_{ij}{x}_i{x}_j $$
(4)
Table 2 Levels and code of individual factors considered for experimental design

where Y is the response value (recovery efficiency (%)), α0 is the intercept, αi is the linear coefficient, αii is the quadratic coefficient, and αij is the interaction coefficient. In addition to that analysis of variance (ANOVA) is also performed to examine the quality of the model developed. Based on the probability value (p – value) obtained from the ANOVA analysis, factors or individual variables are categorized as significant or insignificant.

Chemical equilibrium modeling

Chemical-equilibrium models are most widely employed to predict the precipitation potential of struvite from aqueous solutions (Scott et al. 1991; Wang et al. 2006b). Visual MINTEQ is commonly used chemical equilibrium modeling tool and also possess database of huge equilibrium constants. Visual MINTEQ is majorly employed to find solubility, equilibrium between solid and dissolved phases and speciation of ions in the solution (Çelen et al. 2007). In addition to that various salts that might precipitate due to interaction between different ions can also be determined using Visual MINTEQ. Additionally, SI of salts also can be computed using this model. The activity coefficients estimation by the model is according to Davies approximation of the Debye–Huckle equation.

Results and discussion

Characteristics of landfill leachate

The landfill leachate used in the present study is rich in NH4+ -N content when compared to PO43- -P and Mg2+ (From Table 1) and also NH4+ -N:PO43- -P concentration ratio is 39.75. Even through leachate contains greater concentration of NH4+ -N, the concentration of Mg2+ and PO43- -P required to precipitate struvite is low. Hence addition of PO43- -P and Mg2+ sources is imperative and are supplied using sewage sludge and MgO respectively.

Effect of pH on recovery efficiency

pH is one of the most governing factor that influences the struvite formation and also it effects the speciation of ions (PO43- -P, Mg2+, NH4+ -N) that are responsible for struvite formation (Zhou and Wu 2012). Moreover, pH also impacts the super saturation and solubility of salts that are likely to form during the precipitation process (Le Corre et al. 2009). In addition to that pH predominantly affects the particle size of the precipitates formed. Therefore, in this study the impact of pH (8 – 11) on NH4+ -N, PO43- -P and Mg2+ recovery efficiency, struvite purity, size of the precipitate, SI and the amount of precipitate formed is determined and the results are presented in Fig. 1.

Fig. 1
figure 1

Variation of (a) PO43- -P, NH4+ -N and Mg2+ recovery efficiency, (b) saturation index (c) purity of struvite and amount of precipitate formed, (d) particle size with pH of the solution

From the Fig. 1a, it is observed that the PO43- -P and NH4+ -N recovery efficiency is notably influenced by pH of the solution. Both PO43- -P and NH4+ -N recovery efficiencies increased up to pH 9.5 and then maximum is attained at pH 9.5. While for pH beyond 9.5, PO43- -P and NH4+ -N recovery efficiency is reduced with increased pH. At pH 9.5, the PO43- -P and NH4+ -N recovery efficiency achieved is 86.9% and 78.9% respectively. Furthermore, Mg2+ recovery efficiency is rising rapidly for a pH range of 8–11. The maximum Mg2+ recovery efficiency of 91.5% is obtained at pH 11. The purity of the struvite precipitate is dropped from 88.6% to 66.5% with pH (Fig. 1c).

Struvite formation is mainly impacted by pH of the solution (Huang et al. 2015). pH plays an essential role in controlling the speciation of struvite constituent ions. In general, phosphate species prevail in the form of PO43-, HPO42-, and H2PO4- depending upon pH of the system (Rathod et al. 2014). H2PO4- species would be present in the solution at pH 5 to 6.5. Likewise, HPO42- species would exist at a pH range of 7 to 9 and PO43- species would be available in the solution at pH >10. From pH 7 to 9 due to availability of HPO42- ions and also lower H+ concentration facilitated the struvite precipitation; this ultimately leads to greater PO43- -P recovery efficiency. Additionally, for pH >10, the conversion of NH4+ to NH3 would not favor the struvite precipitation, thereby results in lower PO43- -P and NH4+ -N recovery efficiency. On the other hand at pH >10, the Mg2+ ions will react with OH- and PO43- ions exist in the solution and forms Mg(OH)2 and Mg3(PO4)2 respectively. Hence, Mg2+ recovery is enhanced with increased pH.

Additionally, Visual MINTEQ is utilized to correlate the results obtained from the experiments. The results of Visual MINTEQ are shown in Fig. 1b. SI of salts that are likely to form in the solution is computed using Visual MINTEQ 3.1. At pH 8, struvite and Ca4H(PO4)3.3H2O are precipitated in the solution this represents that oversaturated condition prevails for both the salts in solution. Until pH 9.5 the SI of struvite increased; maximum SI is achieved at 9.5 and beyond 9.5 SI reduced this indicates that the amount of struvite formed is high at pH 9.5. Therefore, high struvite formation at pH 9.5 is also coincides with the high PO43- -P and NH4+ -N recovery efficiency (Fig. 1a) attained at pH 9.5. As the pH increases along with struvite other salts like Mg3(PO4)2, Mg(OH)2, MgHPO4.3H2O and Ca4H(PO4)3.3H2O are also formed in the solution. But MgHPO4.3H2O salt is in dissolved state (i.e under saturated) from pH 8 to 11, so it does not have any influence on purity of struvite. At higher pH, lower PO43- -P recovery efficiency is due to the formation of Mg(OH)2 in the solution. Hence, the availability of Mg2+ to form struvite would be reduced. Till pH 11, Mg(OH)2 is in soluble condition; hence, precipitate formation is not possible within the system. Mg3(PO4)2 and Ca4H(PO4)3.3H2O formation with increased pH reduced the struvite purity. At pH 10, the SI of struvite and Mg3(PO4)2 is same. Even through the SI is same, the solubility product (Ksp) of Mg3(PO4)2 (Ksp = 10-25) (Chen et al. 2018) is lower than struvite (Ksp = 10-13.27) (Hanhoun et al. 2011). Thus the precipitation potential of Mg3(PO4)2 is greater than struvite. Therefore, the purity of struvite is diminished with pH (Fig. 1c). Furthermore, these results are also coinciding with the enhanced amount of precipitate formation with pH (Fig. 1c). From Fig. 1b, it is found that with the pH, the precipitation of salts increased. Thus, the amount of precipitates formed is also enhanced, thereby purity of the struvite is reduced (Fig. 1c).

The variation of average particle size of the precipitates obtained after the experiments with pH is shown in Fig. 1d. As pH increased from 8 to 11, the particle size of precipitates is decreased. The reduction in the size is mainly due to super saturation phenomenon of struvite (Fig. 1b). At higher super saturation, nucleation outweighs crystal growth (Ronteltap et al. 2010). Therefore, struvite is formed as small particles rather than larger particles. In addition to that electrostatic repulsion between negatively charged particles also inhibits the agglomeration. As the pH increases, zeta potential becomes further negative and ultimately leads to lower size. These results are similar to the studies conducted by Zhang et al. (2016) and Matynia et al. (2006).

Effect of molar ratio on recovery efficiency

The effect of different molar ratio (PO43- -P: Mg2+: NH4+ -N) on PO43- -P, Mg2+ and NH4+ -N recovery efficiency at pH 9.5 is depicted in Fig. 2. Furthermore, the quantity of precipitate formed and particle size of the collected precipitates at numerous molar ratios is also determined. The variation of species concentration with pH is also computed (Fig. 3). Additionally, the precipitates formed at various molar ratios and pH 9.5 are characterized using SEM and XRD (Fig. 4).

Fig. 2
figure 2

Variation of (a) PO43- -P, Mg2+ and NH4+ -N recovery efficiency, (b) amount of precipitate formed at different PO43- -P: Mg2+: NH4+ -N molar ratios and at pH 9.5

Fig. 3
figure 3

Variation of total concentration of ions at different pH for PO43- -P: Mg2+: NH4+ -N molar ratio of 1:1.3:1

Fig. 4
figure 4

(a) Surface morphology at molar ratios of (I) 1:1:1 (II) 1:1.1:1 (III) 1:1.3:1 (IV) 1:2:3 and (V) 1:2:5 (b) XRD spectrum of precipitates at different molar ratios and at pH 9.5

From Fig. 2a, it is found that at PO43- -P: Mg2+: NH4+ -N molar ratio of 1:2:5 the recovery efficiency of PO43- -P, Mg2+ and NH4+ -N is 91.2%, 91.2% and 88.5% respectively. This indicates that struvite precipitation take place if the product of constituent ions (PO43- -P, Mg2+ and NH4+ -N) exceeds solubility product (Chen et al. 2018). Moreover, from Fig. 2b also it is observed that the quantity of precipitate is increased with the molar ratio. Even through, the recovery efficiency is high at 1:2:5 molar ratio due to economic consideration 1:1.3:1 is used for further analysis. For the optimized molar ratio of 1:1.3:1, the concentration variation of NH4+, NH3, Mg(NH3)22+ (Total N), PO43-, H3PO4, H2PO4-, HPO42-, Mg(PO4)- (Total P), MgHPO4 (Total P), Mg2+, MgOH+, MgPO4- (Total Mg), MgHPO4 (Total Mg), Mg(NH3)22+ (Total Mg) at different pH is computed (Fig. 3). Figure 3 depicts that HPO42- is the dominating species from pH 8 to 11 than H2PO4- and PO43-. Therefore, the struvite formation occurs according to below equation.

$$ {\mathrm{Mg}}^{2+}+{{\mathrm{NH}}_4}^{+}+{{\mathrm{H}\mathrm{PO}}_4}^{2-}+6{\mathrm{H}}_2\mathrm{O}\to {\mathrm{Mg}\mathrm{NH}}_4{\mathrm{PO}}_4.6{\mathrm{H}}_2\mathrm{O}+{\mathrm{H}}^{+} $$
(5)

The particle size (D (90%)) of the precipitates collected at 1:1:1, 1:1.1:1, 1:1.3:1, 1:2:3 and 1:2:5 is 91.4 μm, 90.5 μm, 90.7 μm, 87.4 μm and 89. 2 μm respectively. The particle size of precipitates is in the range of 87 μm to 92 μm. Therefore, the molar ratio does not have an impact on the particle size of the precipitates. These results are coinciding with the studies demonstrated by Le Corre et al. (2007) and Warmadewanthi and Liu (2009).

The surface morphology of the collected precipitates at pH 9.5 and different PO43- -P: Mg2+: NH4+ -N molar ratios is shown in Fig. 4a. The surface of the precipitates is appeared as smooth with needle structure. Similarly, the XRD spectrum of the precipitates is also shown in Fig. 4b. Also, the spectrum of these precipitates is compared with the standard spectrum (PDF#71-2089) of struvite. XRD spectrum clearly represents that as the molar ratio of PO43- -P: Mg2+: NH4+ -N increases along with struvite other salts such as Mg3(PO4)2 and Ca4H(PO4)3.3H2O are also formed in the solution.

Effect of seed dose on recovery efficiency

To find the impact of seed dose on recovery efficiency of PO43- -P, Mg2+ and NH4+ -N, seed is added to the solution at a range from 5 to 30 g/L (Fig. 5). Solution pH of 9.5 and PO43- -P: Mg2+: NH4+ -N molar ratio of 1:1.3:1 is maintained while conducting the experiments.

Fig. 5
figure 5

Variation of PO43- -P, Mg2+ and NH4+ -N recovery efficiency with seed dose at pH 9.5 and PO43- -P:Mg2+:NH4+ -N molar ratio of 1:1.3:1

The PO43- -P, Mg2+ and NH4+ -N recovery efficiency is increased with an increase in seed dose. However, the variation in recovery efficiency (PO43- -P, Mg2+ and NH4+ -N) at a seed dose of 20 g/L and 30 g/L is insignificant. Therefore, seed dose of 20 g/L is considered as an optimum dose. Struvite precipitate formation occurs in two stages. First stage is nucleation and the second stage is crystal growth (Doyle and Parsons 2002). Former stage is the one in which all the constituent ions (PO43- -P, Mg2+ and NH4+ -N) would attach with each other and form struvite, while the latter stage helps to grow the formed struvite. Nucleation occurs if high supersaturation condition prevails in the solution. Seed material would provide active sites for the constituent ions, hence all ions in the solution will enter immediately into these sites and allows the crystal growth (Liu et al. 2013). Therefore, the availability of active sites is less at lower dose than at higher dose this ultimately helps for achieving high recovery efficiency at higher dose. These results are similar to the studies depicted by Song et al. (2018). The performance of kaolinite is compared with the other seed materials employed for struvite formation is given in Table 3.

Table 3 Comparison of performance of different seed materials for struvite formation

Effect of other ions on struvite precipitation

Effect of Ca2 +

The impact of Ca2+ on PO43- -P recovery efficiency, amount of precipitate formation, Ca2+ recovery efficiency and SI of different salts is investigated at various Ca:Mg molar ratios (Fig. 6). While conducting the experiments the pH of the system is maintained at 9.5.

Fig. 6
figure 6

Variation of (a) PO43- -P, Ca2+ recovery efficiency and amount of precipitate formation (b) saturation index of salts at pH 9.5 and with different Ca:Mg molar ratios

As observed in Fig. 6a, both PO43- -P and Ca2+ ions recovery efficiency increased as Ca:Mg molar ratio increased. Similarly amount of precipitate formation is also increasing, which represents that Ca2+ and PO43- -P ions are reacting with each other and forms precipitate. As the Ca:Mg molar ratio increased from 0.1 to 2, the recovery efficiency of PO43- -P and Ca2+ augmented from 82.8 to 93.1% and 78.7 to 89.7% respectively. Hence, the presence of Ca2+ has significant influence on struvite formation.

In addition to that, to validate the above-mentioned results, SI of various salts (Ca3(PO4)2 (am1), Ca3(PO4)2 (am2), Ca3(PO4)2 (beta), Ca4H(PO4)3.3H2O, CaHPO4, CaHPO4.2H2O, hydroxyapatite, Mg(OH)2, Mg3(PO4)2, MgHPO4.3H2O and struvite) is determined using Visual MINTEQ 3.1 (Fig. 6b). The SI of Ca-P (Ca3(PO4)2, Ca4H(PO4)3.3H2O, CaHPO4, CaHPO4.2H2O, hydroxyapatite) precipitates is increased with Ca:Mg molar ratio, whereas the SI of Mg-P (Mg3(PO4)2, MgHPO4.3H2O and struvite) precipitates is reduced. The SI of struvite is reduced with Ca:Mg molar ratio indicates that the Ca2+ reacts with PO43- -P ions and inhibits the reaction between Mg2+ and PO43- -P. Furthermore, among all those Ca-P precipitates, hydroxyapatite is the one which is highly interfering in struvite formation. Since, the solubility order of Ca-P is CaHPO4.2H2O > CaHPO4 > Ca4H(PO4)3.3H2O > Ca3(PO4)2 > hydroxyapatite (Musvoto et al. 2000). Additionally, formation of these precipitates is also depends on pH of the system. At a pH < 7 only the formation of CaHPO4.2H2O and CaHPO4 occurs in the solution (Chaïrat et al. 2007). Likewise, Ca4H(PO4)3.3H2O would precipitate in the solution (Koutsoukos 2001). Similarly, Ca3(PO4)2 and hydroxyapatite would exist in the solution, when the solution pH is between 9 and 11 (Pastor et al. 2008). Therefore, at an experiment pH of 9.5 Ca3(PO4)2 and hydroxyapatite are the dominant species and the same is observed in Fig. 6b also. The reactions for Ca3(PO4)2 and hydroxyapatite formation are given below. Moreover, these two precipitates are responsible for attaining high PO43- -P and Ca2+ recovery efficiency

$$ 3{\mathrm{Ca}}^{2+}+2{{\mathrm{PO}}_4}^{3-}\leftrightarrow {\mathrm{Ca}}_3{\left({\mathrm{PO}}_4\right)}_2 $$
(6)
$$ 5{\mathrm{Ca}}^{2+}+3{{\mathrm{PO}}_4}^{3-}+{\mathrm{OH}}^{-}\leftrightarrow {\mathrm{Ca}}_5{\left({\mathrm{PO}}_4\right)}_3\mathrm{OH} $$
(7)

Therefore, it is necessary to control the Ca2+ in the solution otherwise it will interfere in the struvite formation.

Effect of Na+

To examine the effect of Na+ on struvite precipitation, experiments are conducted with various Na:Mg molar ratio (Fig. 7). While conducting the experiments, pH is maintained as 9.5.

Fig. 7
figure 7

Variation of PO43- -P, Na+ recovery efficiency with different Na:Mg molar ratios and at pH 9.5

Figure 7 illustrates that both PO43- -P and Na+ recovery efficiency enhanced significantly with Na:Mg molar ratio this indicates that amount of Na concentration in the precipitates is enhanced with molar ratio. Consequently, the purity of precipitates might be reduced and also arrest the struvite formation. As Na:Mg molar ratio elevated from 0.5 to 3, the recovery efficiency of Na+ increased from 58.4 to 65.2%. Occurrence of Na+ not only reduced the struvite formation but also inhibited Mg3(PO4)2 precipitation. Furthermore, greater Na+ concentration promotes the precipitation of MgNaPO4.7H2O (i.e., Na-struvite) rather than MgNH4PO4.6H2O. Therefore, higher Na+ content in solution promotes Na-struvite reaction, which is beneficial to the Na- struvite precipitation (Gao et al. 2018).

Process optimization using RSM

To optimize the whole process BBD of RSM is utilized. Based on the input data given in Table 2, BBD matrix is developed and the actual and predicted output values are given in Table 4.

Table 4 BBD matrix and the actual and predicted output values

The data provided in the BBD matrix is analyzed using Design Expert 11.0. Fit summary results (Table 5) illustrate that quadratic model is best suited with the data than other models. The response value in terms of coded factors is provided in equation (8). The predicted PO43- -P recovery efficiency agrees with experimentally calculated PO43- -P recovery efficiency for the same set experimental conditions. The results of the ANOVA analysis are given in Table 6.

$$ Y=\kern1em 91.70-5.22\mathrm{A}+2.39\mathrm{B}+0.2583\mathrm{C}+0.1500\mathrm{D}+0.0750\mathrm{AB}-0.0250\mathrm{AC}+0.1000\mathrm{AD}+0.0500\mathrm{BC}+0.1000\mathrm{BD}+0.0500\mathrm{CD}-18.32{\mathrm{A}}^2-0.0875{\mathrm{B}}^2-0.1875{\mathrm{C}}^2-0.5000{\mathrm{D}}^2 $$
(8)
Table 5 Fit summary results
Table 6 ANOVA analysis

where Y = PO43- -P recovery efficiency (%), A = pH, B = seed dose, C = Ca:Mg molar ratio, D = Na:Mg molar ratio.

ANOVA results in Table 6 demonstrated that quadratic model developed is significant with F-value of 189.36. Furthermore, the predicted R2 of 0.9697 is in reasonable agreement with the adjusted R2 of 0.9895. Adequate precision of 39.0579 (desirable value > 4) represents that adequate signal and the model can be used to navigate the design space. In addition to that the predicted and actual values (Fig. 8) are in best agreement with each other. Therefore, based on the above-mentioned conditions, it is revealed that the developed quadratic model statistically valid.

Fig. 8
figure 8

Correlation of predicted vs actual plot for PO43- -P recovery efficiency

Interaction influence of independent variables on response

The interaction influence of independent variables on response is evaluated using 3D surface plots as shown in Fig. 9a–f.

Fig. 9
figure 9

Interaction influence of (a) pH X seed dose, (b) pH X Ca:Mg molar ratio, (c) pH X Na:Mg molar ratio, (d) seed dose X Ca:Mg molar ratio, (e) seed dose X Na:Mg molar ratio, (f) Ca:Mg molar ratio X Na:Mg molar ratio on PO43- -P recovery efficiency

Figure 9a illustrates the interaction influence of pH and seed dose on PO43- -P recovery efficiency. At a low pH, the influence of seed dose on PO43- -P recovery efficiency is negligible. However, pH above 9, the PO43- -P recovery efficiency significantly enhanced with the addition of seed dose. Similarly, for pH above 10, the seed does not have an impact on PO43- -P recovery efficiency. The major reason for negligible influence of varying seed doses at lower and as well as higher pH is due to constrained struvite formation. Therefore, adjusting seed dose at lower and higher pH does not enhance the recovery efficiency. As displayed in Fig. 9b, the effect of different Ca:Mg molar ratio on PO43- -P recovery efficiency is insignificant at a lower pH value. At higher pH, increased PO43- -P recovery efficiency for all Ca:Mg molar ratios is due to the formation of Ca3(PO4)2 and hydroxyapatite. As illustrated in Fig. 9c, at lower and as well as at higher pH, the influence of Na:Mg molar ratio on PO43- -P recovery efficiency is negligible. Fig. 9d and e showed the similar trend for seed dose with Ca:Mg molar ratio and Na:Mg molar ratio on PO43- -P recovery efficiency respectively. Higher seed dose with greater Ca:Mg and Na:Mg molar ratios could be helpful for attaining highest PO43- -P recovery efficiency. As depicted in Fig. 9f, at higher Na:Mg molar ratio, desired PO43- -P recovery efficiency would be obtained over a wide Ca:Mg molar ratio. However, at low Na:Mg molar ratio, the Ca:Mg molar ratio for reaching high PO43- -P recovery is narrowed down.

Process optimization and validation

In order to assess the best possible conditions of independent parameters, optimization is carried out using desirability function. For maximizing PO43- -P recovery efficiency, the independent parameters seed dose, pH, Na:Mg molar ratio and Ca:Mg molar ratio are fixed as targeted criteria in numerical optimization method. Out of all the solutions, the maximum PO43- -P recovery efficiency of 94.53% with desirability 0.98 is attained at pH 9.289, seed dose 30 g/L, Na:Mg molar ratio 2.103 and Ca:Mg molar ratio 1.875.

To further validate results obtained through optimization approach, experiments are performed at the above-mentioned conditions and the corresponding PO43- -P recovery efficiency is found as 93.12%. Both the predicted and experimental results agree with each other with an error percentage of 1.49 corroborated the RSM results-based optimization and indicated its effectiveness in forecasting the response at other working conditions.

Composition of recovered precipitate and bioavailability

To assess the application of recovered precipitate as a fertilizer, it is substantial to find its composition. Hence, composition of the recovered precipitate at pH 9.5, seed dose 20 g/L and PO43- -P:Mg2+:NH4+ -N molar ratio 1:1.3:1 is determined using ICP-MS (Table 7). The dominant elements are PO43- -P (11.4%), Mg2+ (9.8%), NH4+ -N (4.7%) and Al (4.8%) followed by Na, Ca, and Fe.

Table 7 Composition of recovered precipitate

Furthermore, the contents of PO43- -P, Mg2+ and NH4+ -N in the obtained precipitates are compared with the theoretical values (Table 8). The higher Mg content might be due to the formation of other salts like Mg3(PO4)2, and MgHPO4.3H2O. Formation Mg-P precipitates mainly depends on pH and concentration of ions and also competitive to struvite formation (Tansel et al. 2018).

Table 8 Comparison of composition and molar ratio of obtained precipitate with theoretical value

The percentage of struvite present in the formed precipitates is computed using NH4+ -N concentration in the precipitate, since interaction of NH4+ -N is essential for struvite formation (Thant Zin and Kim 2019). In the current study 82.5% of struvite is present in the precipitate. Zhang et al. (2010) reported that 78% of struvite content is available in the precipitates recovered from anaerobically digested dairy effluents.

Bioavailability is one of the essential factors of a fertilizer. The bioavailable PO43- -P fraction is generally considered as the soluble PO43- -P in 2% citric acid (Wang et al. 2012). The precipitates in the present study possess 89.3% PO43- -P bioavailability this represents that PO43- -P is easily available to the plants if the obtained precipitate is used as a fertilizer. Commercially available single super phosphate possesses 87% PO43- -P bioavailability. Therefore, these results represent that the obtained precipitates contain struvite and are bioavailable in nature.

Economic feasibility

Struvite production at an industrial level is difficult because of high chemical costs. Therefore, it is necessary to use alternate economically viable resources for struvite production to minimize the chemical costs. In the current study leachate is used as an NH4+ -N source and sewage sludge is used as PO43- -P source rather than chemicals. However, the usage of Mg2+ source is not possible to avoid, but optimizing its dose would be helpful to reduce the cost. Hence, economic feasibility of the present study is computed through economic calculation. During the evaluation, the cost incurred due to chemicals alone is considered while the investment, maintenance and manpower cost is not considered. However, the income generated by selling the struvite is considered in economic evaluation.

The conditions that are considered for the economic estimation are pH 9.5, seed dose 20 g/L and PO43- -P:Mg2+:NH4+ -N molar ratio 1:1.3:1. The overall cost incurred due to chemicals is given in Table 9.

Table 9 Overall chemical cost

The total amount of precipitate formed per m3 of wastewater is 527.5 Kg. The purity of struvite is 82.5%, hence the quantity of struvite precipitate is 435.1 kg/m3. The selling price of struvite is 420$/ton; hence, the income obtained by selling the struvite is 182.74$. A total amount of 159.5$ can be gained as a profit using struvite precipitation method in this study. In addition to that struvite precipitation technique further minimized the sludge disposal cost.

Conclusion

NH4+ -N present in landfill leachate recovery as struvite by adding waste resource sewage sludge as PO43- -P source and MgO as Mg2+ source is greatly feasible. Solution pH is a dominating parameter influenced struvite precipitation and the optimum pH is obtained as 9.5. Purity of struvite formed and the particle size is reduced as the pH increased from 8 to 11. Similarly, the amount of precipitate formed increased with pH. The PO43- -P: Mg2+: NH4+ -N molar ratio of 1:1.3:1 is considered as optimum ratio for struvite formation. Additionally, the recovery efficiency of PO43- -P, Mg2+ and NH4+ -N enhanced significantly with seed addition at pH 9.5. Presence of Ca2+ and Na+ ions in the solution inhibited the struvite formation. RSM based optimization would be helpful for forecasting PO43- -P recovery efficiency at other operating conditions. The high struvite content (82.5%) and PO43- -P bioavailability (89.3%) suggested that the formed precipitate can be used as a fertilizer. Economic evaluation also illustrated that the struvite precipitation is economically feasible with a profit of 159.5$/m3.