Introduction

The level of pollution of all water sources continues to rise in line with the increase in global population. High concentration of nutrients such as phosphorous and nitrogen compounds (e.g. nitrates) causes eutrophication, which affect the aquatic life. Thus, this pollution requires treatment; a higher level of contaminants translates into higher use of energy and chemicals for their removal. Increasingly, strict regulations on the pollution limits have helped to pose a serious question on whether it is environmentally friendly and particularly economically sound to only remove these contaminants. As a result, the recovery of resources that can be exploited as fertilisers (e.g. phosphorous and ammonia) has gained attention in the wastewater sector. It is an opportunity to implement circular economy models as opposed to linear economy models which have dominated the twentieth century [1]. A circular economy model focuses on closing the loop and has the objective of reusing and recycling materials in order to reduce the environmental impact of the manufacturing of products, whilst in a linear model raw materials are used to produce a product which is discarded at the end of life [2]. Phosphorous is considered a limited resource on Earth [3]. Ammonia is one of the nitrogen-based compounds that can be found in wastewater and sludge. It must be removed because it is toxic and harmful to the environment, but it is also a valuable resource used in industry to produce nitrogen fertilisers; as such, its production has been rising constantly in the past decades, exceeding 140 million tonnes in 2016 [4]. Ammonia is obtained from the industrial fixation of nitrogen, through the Haber–Bosch process [5]. This process is typically powered by coal or methane; it is very energy intensive and accounts for more than 50% of the total world hydrogen consumption, which corresponds to 3.6 M tonnes [6, 7].

Most current wastewater treatment techniques concerned with nitrogen focus only on removal. Chemical precipitation is one of the few that recovers both phosphorous and ammonium in the form of magnesium ammonium phosphate hexahydrate (commonly known as struvite), which has applications as a slow-release fertiliser. The precipitation technique is used also in different waste streams, such as manure or pig slurry [8, 9], and has been introduced to overcome issues related to the spontaneous formation of struvite in pipelines after the anaerobic digestion treatment, where the effluent is rich in phosphorous and ammonium. These deposits cause blockages and inefficiencies that lead to additional maintenance operations and added costs [10]. Struvite is formed by the following reaction:

$${\text{Mg}}_{{({\text{aq}})}}^{2 + } + {\text{PO}}_{{4\,\,({\text{aq}})}}^{3 - } + {\text{NH}}_{{4\,\,({\text{aq}})}}^{ + } + 6{\text{H}}_{2} {\text{O}}_{{({\text{l}})}} \to {\text{MgNH}}_{4} {\text{PO}}_{4} \cdot 6{\text{H}}_{2} {\text{O}}_{{({\text{s}})}}$$
(1)

The spontaneous formation of struvite is due to its low solubility product (3.89 × 10−10 at 25 °C in wastewater and 4.330 × 10−14 at 25 °C in aqueous solution) [11, 12]. Magnesium is the limiting reagent since its concentration is typically lower when compared to the ammonium and phosphate ions. Therefore, a magnesium source (magnesium chloride, MgCl2, or magnesium oxide, MgO) has to be added to the system, increasing the cost of the technology.

In recent years, researchers have started focusing on the possibility of decomposing struvite and recycling the magnesium source. As a result, research studies have shown that struvite can be thermally decomposed, releasing ammonia and water [13,14,15]. Through direct calcination, struvite loses water molecules and ammonia that evaporate from the solid, resulting in a mass loss of over 50%. However, the mechanism of decomposition is not yet clear. Sugiyama et al. [16] performed solid-state NMR and XRD at different temperatures and confirmed that the calcination of struvite involves the formation of MgHPO4, which is then transformed into Mg2P2O7. An amorphous compound was obtained at temperatures above 200 °C. This was contradicted by Bhuiyan et al. [14], who affirmed that the substance becomes amorphous as soon as the water molecules are evaporated; they also suggested MgHPO4 as the final calcination product, corresponding to 51% mass loss. However, even though Sugiyama et al. indicated the composition of the intermediate compounds, no reaction mechanism was proposed. Many studies have confirmed that the decomposition is influenced by the heating rate [13, 14]. According to Frost et al. [13], with a heating rate of 2 °C min−1 the decomposition started at 85 °C, but using 1 °C min−1 the mass degradation started at circa 40 °C. In this study, it was concluded that at 1 °C min−1 ammonia is lost before the water evaporates. Nonetheless, this was demonstrated by analysing the gases with mass spectrometry and was not proven by any elemental or quantitative analysis. In this respect, Bhuiyan reported that ammonia and water were lost simultaneously in one single stage, with the mass loss occurring faster at slower heating rates [14]. This was suggested by analysing the derivative curves of the thermogravimetric analysis. They also proposed a mechanism of the various phases related to struvite and heating through considerations of the XRD spectra in different phases of the decomposition. So far, the mechanism of decomposition of struvite and the possibility to obtain valuable products from it have not been clearly understood. As a result, this study has focused on struvite decomposition in the solid state and performed a kinetic analysis to investigate the mechanisms of the reactions involved.

Materials and method

General considerations

Commercial struvite (magnesium ammonium phosphate hexahydrate 98%) was sourced from VWR International Ltd, referred to as “struvite A”. Samples of struvite produced during the wastewater treatment process were provided by Severn Trent Water Ltd., referred to as “struvite B”. The samples were stored in sealed containers in a dry and cool place. All chemicals were used as received without any further purification.

Elemental analysis

The samples were analysed using a CE 440 Elemental Analyser. These tests were used to determine the content of nitrogen in struvite after different stages of degradation. Struvite A and struvite B were also analysed by ICP-OES technique, using PE Optima 5300 Dual View ICP-OES Analyser. The samples were tested for the following elements, which include heavy metals whose limits must comply with EU regulations: As, Ca, Cd, Cr, Cu, Hg, Mg, Ni, P, Pb, Zn. The instrument measured to an accuracy of 0.1 ppm.

Attenuated total reflection Fourier transform infrared (ATR-FTIR)

Fourier transform infrared spectrometry was performed at room temperature in the wave number range of 500–4000 cm−1, using the attenuated total reflection method (ATR-FTIR; Cary Tensor 27). The samples, all in the form of a powder, were placed on the detecting crystal, and then, pressure was applied. The resulting spectrum was a mean of 24 scans with a resolution of 4 cm−1. In few cases, the instrument was used in the transmittance mode, in which the spectra appear with an intensity from 0 to 100%.

Thermogravimetric analysis (TGA)

Thermogravimetric analysis (TGA) was used to study the degradation of struvite A and struvite B. Three samples were tested for each test condition using Mettler Toledo TGA 1 STARe System. Four different heating rates were applied (20 °C min−1, 10 °C min−1, 5 °C min−1 and 0.5 °C min−1) under nitrogen atmosphere (flow rate 50 mL min−1), from 25 to 500 °C, using 70-µL alumina crucibles. Further tests were conducted in isothermal conditions, using the same crucibles under a nitrogen atmosphere. Each method was set up to keep the sample at a certain temperature for 5 h. The samples all weighed between 9 and 11 mg, and the mass loss was normalised afterwards.

Differential scanning calorimetry (DSC)

The energy required to achieve complete degradation of struvite was calculated using the data gathered from differential scanning calorimetry analysis. The instrument used was a Mettler Toledo DSC 1 STARe System and was programmed with different methods using N2 flow of 11 mL min−1 and 40-µL aluminium crucibles (as the reference pan). The pans were sealed and pierced in the centre, so that the volatiles could be released. The DSC measured the energy flow with respect to temperature in W g−1.

Results and discussion

Thermal and characterisation analyses were carried out on struvite A and struvite B to investigate their transformation during heating. A kinetic analysis was used to understand the decomposition mechanism.

Material characterisation

Figure 1 (left) depicts the FTIR analysis of struvite A and struvite B. The spectra did not reveal any significant difference between struvite A and struvite B. In fact, the FTIR spectrometer detected two similar patterns that show the same important peaks that characterise struvite, as reported elsewhere [17, 18]. Two bands at 1431 and 1591 cm−1 wavenumber can be observed, which corresponds to the H–N–H bond of ammonium [13]. The P–O band is present at 980 cm−1 wavenumber. The 1591 cm−1 band is attributed to the water bending mode. The band at 2359 cm−1 wavenumber is associated with the water-related hydrogen bonding [19].

Fig. 1
figure 1

FTIR (left) from 4000 to 500 cm−1 in transmittance mode and XRD (right) of struvite A and struvite B

This remarkable similarity indicates that the impurities present in the struvite B did not affect the chemical structure of the sample. Moreover, the identical mineral phases of the two samples are confirmed by the XRD spectra (Fig. 1, right). Therefore, the materials, despite different sources, have the same chemical structure. However, SEM analysis revealed a difference in the morphology of the samples. Figure 2 shows the materials that for the test have been magnified 500 times. The image on the left regards the sample purchased by VWR, which presents a well-defined structure, with crystals of around 100 µm width. On the contrary, struvite B shown on the right has grains of various sizes, from 10 to more than 100 µm, and the crystals cannot be identified.

Fig. 2
figure 2

SEM images of struvite A (left) and struvite B (right)

This might be due to an uncontrolled precipitation reaction (e.g. lack of pH control), which caused the formation of grains of irregular shape and size, whereas struvite A has well-defined crystals because the synthesis was regulated to obtain certain product specifications. In the literature, Le Corre et al. [20] reported how calcium impurities affected the precipitation. They varied the Ca:Mg ratio and saw how this had an influence on the crystal growth rate. The image of uncontrolled precipitation of struvite B is similar to other SEM analyses of struvite precipitation from wastewater reported elsewhere [21,22,23].

When comparing ICP results for magnesium and phosphorous with the theoretical values of struvite, it can be noticed how struvite B has a higher content of magnesium, 10.57% against 9.90% (Table 1). This can be attributed to a fraction of unreacted magnesium chloride present in the sample, which could also be related to uncontrolled precipitation. In fact, the table also shows how the values of commercial struvite Crystal Green® synthesised by the Ostara Technology are almost equal to the theoretical concentrations [24]. It can also be noted how the purchased struvite A presents higher magnesium content, coupled with almost 5% higher phosphorous content.

Table 1 ICP-OES on struvite B, Mg and P concentrations expressed in % wt/wt

The ICP-OES analysis also revealed the presence of impurities. Struvite A and struvite B were tested for several elements, including arsenic, cadmium, chromium, lead, nickel and mercury, which must be within the limits set by EU regulations. Table 2 compares the values with the current EU fertiliser regulation, the EC 2003/2003 [25]. The value of cadmium was converted from ppm to mg kg−1 of P2O5, as this is how it is referred to in the regulation. The conversion was obtained by knowing the content of P in struvite and applying the conversion factor which is stated in the regulation (P/P2O5 = 0.436) [25]. Calcium resulted as the most abundant impurity with 5303 ppm, which may confirm it as the reason for which struvite B crystal morphology is so different from struvite A. Table 2 highlights that struvite A is highly pure, since the concentration of most metals is below 0.01 ppm. Calcium is the metal found with the highest concentration, which corresponds to 1.83 ppm.

Table 2 ICP-OES on struvite B, metal concentrations expressed in ppm (* Cd concentration has been converted to mg kg−1 P2O5 to compare it with Crystal Green and EU regulations)

Most of the contaminants that are present in struvite B are within the EU limits. However, the two elements that exceeded the maximum concentration were chromium and mercury. In addition to that, cadmium was just below the threshold of 60 mg kg−1 P2O5. These metals are highly hazardous and represent a threat for soil contamination. Thus, these results show a limitation for the use of struvite B as a fertiliser, unless the recovered product is treated to reduce the content of these heavy metals.

Heating rate influence on struvite degradation

Initial results highlighted the structured decomposition curves for each heating rate condition, with a significant mass loss up to 54.5%. As shown in the graphs of Fig. 3, the TG curve confirmed that the behaviour of struvite A and struvite B (continuous and dash lines, respectively) is similar. In fact, overall the curves are overlapped during the major mass loss.

Fig. 3
figure 3

TG and DTG curves of struvite A (continuous line) and B (dash) at heating rates of 20, 10, 5, 0.5 °C min−1; curves are the mean of three samples, average standard deviation below 0.3% apart from 0.5 °C min−1 (< 1%)

However, the analysis resulted in a slight difference in the residual mass, with struvite B having an average of 46.280% from the initial sample, whereas struvite A had 45.281%. This discrepancy likely means that most contaminants are volatile. The difference of 1% could be attributed to the aforementioned excess of magnesium and non-volatile heavy metals. Overall, it could be confirmed that contaminants, at least in terms of mass loss rate, did not affect struvite degradation. This might suggest that, also from a kinetic point of view, there should not be a difference between struvite A and struvite B. From this analysis, it also emerged that the decomposition of both struvite A and struvite B is strongly dependent on the heating rate, as highlighted from the derivative curve (Fig. 3). Indeed, the calcination onset temperature decreased when the heating rate diminished, as previously reported in the literature [14, 26]. At 0.5 °C min−1, struvite A started decomposing at 31.8 °C, and the temperature corresponding to the fastest decomposition was at 76.8 °C, whereas at 20 °C min−1 the sample began to lose mass at 68.3 °C and reached its maximum rate only at 129 °C.

Evidence of multi-stage degradation

Having considered the results of the first set of thermogravimetric tests, the second set of experiments was prepared with the objective of understanding the behaviour in the presence of isothermal conditions at different temperatures, in order to minimise the temperature and energy required to degrade struvite and remove the ammonia. In this regard, only struvite B was tested, having previously understood its remarkable similarity with struvite A. The temperatures were chosen based on the results of the previous TG test at the slowest heating rate (0.1 °C min−1), in the range where the biggest mass loss occurred, and thus at 40, 50, 60 and 75 °C. The sample was kept in the furnace for 5 h for each condition.

The TG curves mainly indicate that no significant mass loss occurred below 60 °C in 5 h. Indeed, only 21.5% of the mass evaporated at 60 °C, whereas 42.2% is lost at 75 °C (Fig. 4). However, as mentioned above, the final calcination product presented 54.5% of mass loss; therefore, there was 12.3% of the compound that could not be released at that temperature. The samples heated at 60 and 75 °C were analysed with CHN to understand how much nitrogen was still present after the isothermal experiments. A decrease in the nitrogen content was observed: at 60 °C it was 4.27%, whereas at 75 °C it was 2.61%. This confirms that the part of the ammonia evaporates together with water at temperatures below 100 °C, in accordance with Frost et al. [13]. The carbon content increased from 60 to 75 °C, and this indicates that the contaminants constituted by carbon are not volatile and remained in the calcination product. From this analysis, it emerged that from a process point of view the most important thermal conditions are the temperatures of 60 °C, 75 °C and above. Considering this, a multi-stage isothermal test was conducted in nitrogen atmosphere on struvite A with the following steps: 75 °C, 145 °C, 250 °C and 500 °C. The temperatures were chosen as intervals between 75 and 500 °C. For clarity, the DTG curve was smoothed and the white sections correspond to where the temperature is being increased, whereas the coloured sections indicate where isothermal conditions have been reached.

Fig. 4
figure 4

TG curve of isothermal tests on struvite B at temperatures of 40, 50, 60, 75 °C for 5 h

This experiment revealed that the degradation of struvite requires temperatures above 250 °C to reach completion (Fig. 5, left). In fact, the mass loss obtained from the test at 250 °C was no more than 53.9%, whereas from that temperature to 500 °C the sample lost another 2.50% of its mass. Maximum standard deviation was 1.05% for this test, and the variability may be due to higher moisture content in the samples. Thus, results are in line with the TG curves shown in Fig. 3. The FTIR spectra highlight how the ammonium peak (ν4 bending mode vibration at 1442 cm−1) was still present at 250 °C (Fig. 5, right). Furthermore, from this graph it was possible to distinguish two different compounds: indeed, until 145 °C the spectra had similar peaks, maintaining the antisymmetric stretching ν3 of HPO42− and PO43− at 880, 1000 and 1062 cm−1, whereas from 250 up to 500 °C the spectra revealed a different pattern in the fingerprint region. There is the formation of a peak at circa 750 cm−1, which can be attributed to the bending vibrations of O–P–O, and a shift in the peaks present at 880, 1000 and 1062 cm−1. This corresponds to the formation of new bonds and a change in the structure of the sample, which coincides with the transformation of MgHPO4 into Mg2P2O7, as suggested in the literature [14, 15].

Fig. 5
figure 5

Multi-stage isothermal test on struvite A (left) and corresponding ATR-FTIR of the samples decomposed at the following temperatures: 75, 145, 250 and 500 °C (right)

Characterisation of calcination products

The calcination product of struvite A obtained after heating up to 500 °C was analysed with CHN analysis, and the results showed that all the ammonia was evaporated during the thermal decomposition, leaving 0.15% wt/wt in the sample. In order to characterise the calcination product, some chemicals of the ones attributed to the decomposition in the literature were tested with FTIR to compare their spectra with the one of the degraded samples. Magnesium pyrophosphate (Mg2P2O7) has been reported more than once as a possible calcination product, but also magnesium phosphate [Mg3(PO4)2] and magnesium hydrogen phosphate (MgHPO4) have also been mentioned in several publications [13, 14, 16]. The findings from the FTIR shown in Fig. 6 are consistent with the findings previously reported, which mention the two broad peaks at 1105 and 929 cm−1 as indication of the formation of Mg2P2O7 [27, 28]. It must be taken into account also that the resolution of the instrument is 4 cm−1, and therefore, these discrepancies are acceptable. Unfortunately, the loss of crystallinity upon heating did not allow the identification of the mineral phase. From this analysis, it can be concluded that the final calcination product is magnesium pyrophosphate.

Fig. 6
figure 6

FTIR in transmittance mode (left) and XRD (right) of the calcination product of struvite A obtained from TG tests conducted up to 500 °C

Energy required for the degradation

At this point, the differential scanning calorimetry technique was decisive to understand the energy required to evaporate completely the ammonia present in the compound. By knowing the heat capacity of struvite, it was possible to determine the heat required for the degradation. In this technique, the positive energy flow is associated with an exothermic reaction, whereas the negative peak indicates that the sample has absorbed energy. The resultant energy is not only the energy required for the degradation, but it also includes the energy absorbed by the sample in order to change the temperature. The energy flow can be expressed as:

$$\frac{{{\text{d}}H}}{{{\text{d}}t}} = C_{p} \frac{{{\text{d}}T}}{{{\text{d}}t}} + f\left( {T,t} \right)$$

Consequently, the enthalpy of the reaction can be calculated by the integral with respect to time of the energy flow. In the equation, Cp is the sample heat capacity (measured in J °C−1), which is defined as the specific heat (J g−1 °C−1) multiplied by the mass of the substance. The second part of the equation, \(f\left( {T,t} \right)\), is related to the kinetic of the reaction and the phase transitions occurring in the material. In addition, when there is an isothermal condition, the only heat flow detected by the DSC machine must be due to a transformation in the sample. The experiment was programmed to heat the sample from 25 to 500 °C at 20 °C min−1 in nitrogen atmosphere. The result of this test confirmed the presence of two major events taking place during the degradation. As represented in Fig. 7, the first peak is present during the greatest mass loss, whereas the second peak which was not detected in the derivative curve of the TG test is at circa 250 °C.

Fig. 7
figure 7

TG–DSC of struvite A at 10 °C min−1

The curve was integrated in order to calculate the energy required for the degradation, and the value was found to be 1.87 kJ g−1 at 10 °C min−1 (1.371 kJ g−1 for the first peak, 0.497 kJ g−1). It is important to note that this energy value includes also the latent heat of vaporisation of both ammonia and water, which is reasonably embedded in the first peak and was calculated to be, respectively, 0.029 and 0.970 kJ g−1. Therefore, the activation energy is obtained by detracting these values from the energy found for the first peak and is 0.37 kJ g−1. Further information can be found in Online Resource 1.

Kinetic model

The kinetics of the decomposition were investigated using Friedman’s isoconversional method and a model-fitting method [29, 30]. The mechanism of decomposition of struvite could be identified graphically by plotting the conversion against temperature and the derivative of the conversion with respect to temperature against the conversion of non-isothermal data (Fig. 8).

Fig. 8
figure 8

Rate of conversion α of struvite decomposition (left), and plot of the derivative dα/dT against conversion (right) at different heating rates

Interestingly, from the comparison of the curves with the ones reported by Khawan and Flanagan, it resulted that with α below 80% the curve was likely to be an order-based model or a diffusion model, but at α > 80% the trend changed significantly [31]. This behaviour in the second region can also be identified as the declaratory region, where it is difficult to identify a specific kinetic model [30]. Moreover, since it is a differential method that uses exclusively experimental data, it is sensitive and graphs usually show some noise [29].

Friedman’s isoconversional method

Friedman’s equation is derived by differentiating the Arrhenius equation:

$$\ln \left( k \right) = \ln A - \frac{{E_{\text{a}} }}{RT}$$
(2)

Since the conversion rate is expressed by:

$$\frac{{{\text{d}}\alpha }}{{{\text{d}}t}} = k\left( T \right)f\left( \alpha \right)$$
(3)

where t is time, α is the conversion and \(f\left( \alpha \right)\) is the reaction model, substituting Eq. 2 in Eq. 3 and rearranging it, we obtain:

$$\ln \left( {\frac{{{\text{d}}\alpha }}{{{\text{d}}t}}} \right)_{{\alpha ,{\text{i}}}} = \ln \left( {A_{\alpha } f\left( \alpha \right)} \right) - \frac{{E_{{{\text{a}}\alpha }} }}{{RT_{\text{i}} }}$$
(4)

The index “i” indicates the different non-isothermal experiments conducted at different heating rates (βi). The expression above can be rewritten as:

$$\ln \left( {\beta_{\text{i}} \frac{{{\text{d}}\alpha }}{{{\text{d}}T_{\text{i}} }}} \right) = \ln \left( {A_{\alpha } f\left( \alpha \right)} \right) - \frac{{E_{{{\text{a}}\alpha }} }}{{RT_{\text{i}} }}$$
(5)

At this point, by plotting \(\ln \left( {\beta_{\text{i}} \frac{{{\text{d}}\alpha }}{{{\text{d}}T_{\text{i}} }}} \right)\) versus 1/Ti (K−1) at selected values of conversion, the activation energy \(E_{\text{a}}\) can be determined as the slope of the curve and \(\ln \left( {A_{\alpha } f\left( \alpha \right)} \right)\) as the intercept. The data were plotted at intervals of conversion of 0.05.

Figure 9 (left) highlights that the curves do not have the same slope. This means that the activation energy depends on conversion. In a single-stage reaction, the activation energy should be a constant value at every level of conversion. Thus, this dependency suggests that the degradation of struvite follows a multi-step process. The graphs in Fig. 9 (right), which represent both \(E_{\text{a}}\) and \(\ln \left( {A_{\alpha } f\left( \alpha \right)} \right)\) against α, seem also to show two different behaviours: at conversions 0 < α < 0.75 the activation energy decreases with the temperature increase; at conversions 0.75 < α < 1 \(E_{\text{a}}\) diminishes when T increases (Fig. 9, right). This further proves the existence of two main reaction mechanisms occurring from heating struvite between room temperature and 500 °C. The trend equations were found with Origin software through linear regression, and all the resulted R-squared values were above 98%, confirming the good fit between the correlation and the data. Figure 9 further confirms the second region as a declaratory phase of the degradation. Therefore, the model-fitting approach will be applied only to the first step of the reaction (0 < α < 0.75).

Fig. 9
figure 9

Plot of ln(βdα/dT) versus 1/T of struvite for different values of α (left); activation energy (right) of struvite degradation derived with the Friedman’s method

Model-fitting method

The model-fitting approach leads to the definition of the reaction model that best fits by assuming different \(f\left( \alpha \right)\) or \(g\left( \alpha \right)\) and deriving the missing parameters \(k\left( T \right)\) and activation energy. Although this technique is frequently used, it has a disadvantage compared to the isoconversional methods: indeed, the activation energy that results from the calculation corresponds to an average that might not detect the dependency of the variable with the conversion or temperature. To be more accurate, the best approach that identifies \(E_{\text{a}}\) is the isoconversional method [32]. The different reaction models that express the correlation between α and time can be found in the literature and are shown in Table 3 [32, 33].

Table 3 Thermal decomposition in solids expressed through reaction models

From the rearrangement of Eq. 3 it is possible to derive \(g\left( \alpha \right)\) since it is defined as:

$$g\left( \alpha \right) = \mathop \smallint \limits_{0}^{\alpha } \frac{{{\text{d}}\alpha }}{f\left( \alpha \right)}$$

Thus,

$$g_{\text{j}} \left( \alpha \right) = k_{\text{j}} \left( {T_{\text{i}} } \right)t$$
(6)

The following approach was applied to the data of the isothermal tests, and \(g\left( \alpha \right)\) was calculated for each reaction model j at different temperatures (Ti = 75, 95 and 145 °C). Then, \(k_{\text{j}} \left( T \right)\) could be derived as the slope of the curve of \(g_{\text{j}} \left( \alpha \right)\) versus t. At this point, Ea,j and lnAj were determined at each Ti using the Arrhenius equation, as done previously for the isoconversional method. Thus, the best fit could be derived using the residual sum of squares that defines the goodness of fit:

$$S_{\text{j}}^{2} = \frac{1}{n - 1}\mathop \sum \limits_{{{\text{i}} = 1}}^{\text{n}} \left( {\frac{{t_{\text{i}} }}{{t_{0.5} }} - \frac{{g_{\text{j}} \left( {\alpha_{\text{i}} } \right)}}{{g_{\text{j}} \left( {0.5} \right)}}} \right)$$
(7)

In the equation above, \(t_{0.5}\) is the reduced time variable that corresponds to t/tα with tα being the time at which the reaction has attained a specific conversion. (In this case, it has been chosen α = 0.5 as suggested in the book of solid-state kinetics by Brown et al. [34]). Once the values of \(S_{\text{j}}^{2}\) are found, \(F_{\text{j}}\) is calculated as follows:

$$F_{\text{j}} = \frac{{S_{\text{j}}^{2} }}{{S_{\hbox{min} }^{2} }}$$

where \(S_{\hbox{min} }^{2}\) is the smallest of \(S_{\text{j}}^{2}\). The best fits could be identified as the closest to the one which presents the minimum value of the residual sum of squared.

From Table 4, it can be seen that the closest reaction models to the experimental data are models’ number 5 and 6 which correspond to a one-dimension diffusion model and a first-order model. The activation energy determined for this model is 60.72 kJ mol−1 (0.24 kJ g−1), in accordance with the average value found for the first reaction with the Friedman’s method, and comparable to the value calculated from the DSC (0.37 kJ g−1). The conversion can be determined using Eq. 7. In order to do so, \(\bar{k}_{\text{j}} \left( T \right)\) was calculated as the average rate constant of the three temperatures for each reaction model. Thus, for example, in case of reaction model one:

$$\begin{aligned} g_{1} \left( \alpha \right) & = \alpha_{1}^{1/4} = \bar{k}\left( T \right)t \\ \alpha_{1} & = \left( {\bar{k}\left( T \right)t} \right)^{4} \\ \end{aligned}$$

Figure 10 reports the plot of the conversion against the reduced time at 75 °C. The experimental values of conversion marked in red resulted to have better match with the one-dimension diffusion model.

Table 4 Arrhenius parameters for struvite decomposition calculated with the model-fitting method
Fig. 10
figure 10

Plot of conversion of the different reaction models against reduced time at 75 °C

The experimental conversion is marked in red; the other curves refer to the reaction models defined in Table 2.

This suggests that the controlling factor for the first reaction occurring during the decomposition is likely to be the diffusion of ammonia and water molecules. The fact that one-dimension diffusion matched the experimental data much more closely than the three-dimensional one can be due to the fact that the data used in this analysis were gathered from the thermogravimetric experiments, which were conducted in small crucibles with small amounts of samples. Therefore, it is fair to assume that the release of ammonia and water is likely to have happened only in the vertical dimension. Thus, by combining the kinetic analysis with the thermal analysis and the characterisation analysis it can be concluded that the first reaction transformed struvite into MgHPO4 (Eq. 8), as can be confirmed by the FTIR spectra, even though not all ammonia is removed.

$${\text{MgNH}}_{4} {\text{PO}}_{4} \cdot 6{\text{H}}_{2} {\text{O}}_{{\left( {\text{s}} \right)}} \to {\text{MgHPO}}_{{4 \left( {\text{s}} \right)}} + {\text{NH}}_{{3\left( {\text{g}} \right)}} \uparrow + 6{\text{H}}_{2} {\text{O}}_{{\left( {\text{g}} \right)}} \uparrow$$
(8)

The reaction is regulated by diffusion of water and ammonia molecules from the solid to the gas phase. From 250 to 500 °C, the decomposition undergoes a second step, as also highlighted in the DSC experiment, from which MgHPO4 is transformed into Mg2P2O7 (Eq. 9).

$$2{\text{MgHPO}}_{{4 \left( {\text{g}} \right)}} \to + {\text{Mg}}_{2} {\text{P}}_{2} {\text{O}}_{{7\left( {\text{s}} \right)}} + {\text{H}}_{2} {\text{O}}_{{\left( {\text{g}} \right)}} \uparrow$$
(9)

Conclusions

Struvite decomposition in the solid state was investigated to understand whether ammonia could be released and recovered as a more valuable product, and the magnesium source could be recycled in the system, saving part of the costs of the expensive chemical used. Thermogravimetric analysis showed the influence of the heating rate in the decomposition of struvite: the calcination onset temperature decreased at lower heating rates, confirming results from previous studies. At 0.5 °C min−1, the decomposition started at circa 31 °C. However, ammonia could not be completely released below 250 °C, as shown from the infrared spectra. The final calcination product was found to be magnesium pyrophosphate. Although thermogravimetric analysis and the first derivative displayed one main peak, the differential scanning calorimetry technique highlighted the presence of two major events that represent a change in the phase or in the structure of the sample. This result was also confirmed by the kinetic analysis that revealed the presence of two different reactions. The kinetic analysis highlighted that the first one (which is from conversion equal to zero to conversion equal to 0.75) is likely to be an order-based or diffusion model, meaning that diffusion is the main phenomenon controlling the decomposition. The energy required to complete the degradation, calculated from the DSC curves, was found to be 1.87 kJ g−1 at 10 °C min−1. These findings provided new insights regarding the thermal decomposition of struvite, since understanding the kinetic mechanism and the energy required will help in the optimisation of the design of the recovery technology.