Introduction

The eutrophication is a form of water pollution caused by accumulation of nutrients, mainly nitrogen (N) and phosphorous (P). Generally, nutrients are emitted from point and diffuse sources in watersheds and are readily mobilized to water and sediments in rivers, lakes, and reservoirs.

Although nutrient emissions from different sources may comply with maximum allowable concentrations in diverse environmental regulations, nutrient loads to water bodies depend not only on the concentrations but also on the discharged fluxes. Nutrient loads to water bodies also depend on the way the nutrients are emitted, mobilized, and attenuated in water, sediment, and vegetation in river basins. Since nutrient emissions from livestock discharges may represent important emissions in hydrologic basins (Jayme-Torres and Hansen 2018), to control the eutrophication in water bodies, it is necessary to control emissions from these sources.

Among nutrients that produce eutrophication in water bodies, P is commonly found in limiting concentrations for plant growth, so that its removal from the source may control eutrophication (Xu et al. 2014). Besides, P is a non-renewable resource, and according to Cordell et al. (2011), the known supplies of this nutrient would be exhausted in approximately three decades. It is therefore urgent to develop methods that allow recovering and recycling P, which is currently discharged from productive activities, contaminating water bodies. Among the principal sources of such wasted P is livestock farming, and it is estimated that about 40% of total produced P is discharged as livestock waste that pollutes water bodies (Rittmann et al. 2011). Livestock farming waste has relatively low fluxes and elevated concentrations of P in comparison to other sources such as domestic and municipal wastewater that is usually diluted with graywater and rainwater, making the nutrient’s recovery more difficult. The condition of elevated P concentrations and low fluxes benefits the P recovery process as compared to conditions of higher fluxes and low concentrations.

Swine emissions are also characterized by high concentrations of suspended solids (SS), organic matter (OM), and other nutrients (Ye et al. 2011), and are typically treated to remove SS and OM before discharge. Actually, the most common treatment of these emissions is anaerobic biodigestion, a system that takes advantage of the fermentation of OM by microorganisms in swine waste in the absence of oxygen. The process can reduce OM to acceptable regulation levels; also, it generates biogas that can be used in productive activities. The biodigestion treated swine effluent (BTSE) requires a post-biodigestor treatment in order to reduce the P concentrations (Rittmann et al. 2011). Some of the most common methods used for this post-biodigestor P removal from BTSE are precipitation of struvite (Suzuki et al. 2007; Ye et al. 2011), P retention in polyphosphate-accumulating organisms (PAO) (Rittmann et al. 2011), and P sorption or ion exchange (IE) in minerals and other materials (Yuan et al. 2015). It is a common practice to reuse stabilized wastes and sludge produced during fermentation of swine waste as fertilizers in soils; but in most cases, the transport costs restrict this practice (Cordell et al. 2011).

The P removal by precipitation of struvite and its reuse as slow-release fertilizer suggest that this method is a promising alternative for the reuse of P. However, the presence of cations such as Ca2+ and K+ and anions such as CO32− and SO42− may cause formation of other minerals, competing with the production of struvite (Ye et al. 2011). In addition, the struvite precipitation process requires values of pH higher than 9, so it is necessary to increase the pH of the BTSE by adding alkali in the process.

The PAO can remove P as biomass in anaerobic-aerobic cycles. This process is especially efficient for high concentrations of P present in BTSE. Although the produced biomass can be used directly as fertilizer, the process had a high energy cost and can require additional treatments for reuse and recovery of removed P (Rittmann et al. 2011).

The P removal methods based on sorption include the use of minerals such as dolomite and bentonite or industrial sub-products such as fly ash or steel slag. In some cases, the removed P can be recovered for reuse. These methods are widely used mostly due to the low costs and the wide availability of the sorbents; however, the large fluxes of generated waste require large reactors, representing a disadvantage for its application (Cordell et al. 2011).

The IE for P removal has the advantage of being a reversible process, making recovery of P more achievable. Some of the IE methods reported for P removal and recovery are based on the use of metal-loaded resins, double-layered hydroxides, or minerals composed of carbonate such as hydrotalcite, dolomite, and calcite (Cordell et al. 2011). However, the presence of other anions as SO42− and CO32− in BTSE may reduce the efficiency of the IE processes and decrease the useful period of the ion exchanger.

In all these processes, pH, major solution ions, and organic functional groups in BTSE may affect the efficiencies of P removal and recovery and should therefore be addressed. We selected ion exchange for evaluation of the removal of P in BTSE because in principle this method allows more convenient recovery of P. The objective of the present study is therefore to evaluate the P removal and recovery processes with a solid carbonate (SC) in BTSE using hydrogeochemical modeling.

Methods

The BTSE solution chemistry was obtained by literature review and a synthetized and characterized the ion exchange site concentrations on SC [SC-IE] and the ion exchange equilibrium constants (KIE) were obtained and the P removal and recovery processes on SC were evaluated.

Solution chemistry of biodigestor-treated swine effluent

Average values and standard deviations of ion concentrations, pH, pe, and chemical oxygen demand (COD) from BTSE were obtained from literature search (Table 1). COD was converted to concentration of acetate as the simplest organic compound contained in the Thermoddem database (Blanc 2017).

Table 1 Composition of biodigestor-treated swine effluent

Modeling of phosphorus removal and recovery from solid carbonate

The PHREEQC v. 3.4.6 (USGS, Middleton, USA) (Parkhurst and Appelo 2013) and the thermodynamic data reported in the Thermoddem database developed by BRGM (Bureau de Recherches Géologiques et Minières) (Blanc 2017) were used to model the speciation of aqueous components in BTSE and their interaction with SC. This database was selected because it describes most of the reactions of dissolved P as well as saturation indexes of solid P phases. Other reactions were obtained from the LLNL database (LLNL, Livermore, USA 2010); Wagman et al. (1982) or calculated based on ΔG° values (Drever 1982). All reactions are presented in Table 2 and included in the Thermoddem database or as modeling input data. The modified Davies equation was used for ion activity coefficient calculations at ionic strengths below 0.5 M and the Pitzer equation was used for ionic strengths above 0.5 M.

Table 2 Reactions describing interactions of ions and solid-phase formation in biodigestor-treated swine effluent

Determination of equilibrium constants and ion exchange site concentrations

A synthetized and characterized SC (Cueto and Hansen 2017) was used, [SC-IE] and KIE for major anions on the SC were obtained experimentally and the results were described by independent modeling with PHREEQC to validate the modeled results.

The IE on SC were evaluated for dissolved P (HPO42−), the major anions: Cl, NO3, and SO42, as well as CH3COO for different concentrations of SC (1–6 g l−1) suspended in 30 ml 0.1 M KCl as background electrolyte (KNO3 was used as background electrolyte for the experiment with Cl) in 50-ml closed reactors. Reactors were agitated at 60 rpm in rotated mixers at room temperature of 25 ± 2 °C. A parallel control experiment was carried out without SC to assure that anions were not adsorbed on the reactor walls. Before adding the study anions, reactors were equilibrated until constant pH during approximately 30 min and 10-ml aliquots of 4 mM salts of the evaluated anions were then added to obtain 1 mM final concentrations of KCl, KNO3, K2SO4, C2H5O2Na, or K2HPO4 (JT Baker, ACS grade, Phillipsburg, USA). Anion concentrations and pH were monitored until equilibrium was reached in approximately 48 h. To measure anion concentrations, 1 ml supernatant aliquots were obtained and filtered through a 0.45-μm Millipore® membrane (Merck, Darmstaldt, GE) and the anions were measured by analytic tests Spectroquant® for phosphate (#100474, Merck), nitrate (#109713, Merck), chloride (#114897, Merck), sulfate (#100617, Merck), and total organic carbon (#114878, Merck). These anions were measured spectrophotometrically (Pharo 300, Merck, Darmstadt, GE) and carbonate was measured at the end of the experiment in 10 ml acidified samples (pH < 5) using an ion selective electrode for CO2 (Hanna, Limena, IT). All assays were conducted in triplicate and experimental results were corrected for extracted volumes.

To obtain Kie and [SC-IE], equilibrium data for different SC concentrations were analyzed using a linearization of the Langmuir isotherm according to van den Berg and Kramer (1979). [SC-IE] was calculated based on the surface area for SC of 13.5 g m−2 reported by Cueto and Hansen (2017).

To evaluate the HPO42− and SO42− recovery, phosphate and sulfate-loaded SC were prepared by suspending known amounts of SC (from 1 to 6 g l–1) in 40 ml 0.1 M KCl solutions with 1 mM K2SO4 or K2HPO4 during 72 h in 50-ml closed reactors. SC was separated by centrifugation and dried at 80 °C until constant weight. The recovered solids were added to 40-ml solutions of 500 mM Na2CO3 (JT. Baker ACS grade) as eluent. After 48 h of equilibrations in rotated mixers at room temperature of 25 ± 2 °C. Supernatant aliquots were then obtained and phosphate or sulfate and carbonate were analyzed as previously described.

Model validation with experimental results

The ion removal and recovery experiments of HPO42− and SO42− were modeled by emulating the experimental conditions previously described. To validate the modeling results, ratios between modeled and experimental data were evaluated to describe the efficacy of the model to simulate the process.

Simulation of phosphorus removal and recovery in biodigestor-treated swine effluent

The removal and recovery of HPO42− with SC in varying BTSE compositions were assessed by hydrogeochemical simulation with the validated model, and the effects of SC and different ion concentrations on these processes were analyzed. With this purpose, average, maximum, and minimum values for swine effluents were evaluated (Table 1). In addition, the recovery process with CO32− as eluent was analyzed as a function of the ratio [SC-IE]:[HPO4] molar ratio for different CO32 concentrations.

Comparison between phosphorus removal methods

Finally, P removal by SC-IE was compared with application of Al2(SO4)3 and precipitation of struvite as a function of pH. The P removal processes were modeled using average BTSE concentrations (Table 1). The removal with Al2(SO4)3 considered the P interactions with Al as presented in Table 2 and addition of equimolar concentration of the aluminum salt relative to P, according to a recommendation by Crittenden et al. (2012). The struvite precipitation was modeled considering the corresponding equations reported in Table 2 with [Mg]:[HPO4] molar ratios of 1 and 6 as recommended by Ye et al. (2011). The P removal with SC-IE was modeled using [SC-IE]:[HPO4] molar ratios of 0.8 and 1.4.

Results and discussion

Determination of equilibrium constants and ion exchange site concentrations

Results of experimental and calculated KIE of HPO42 and competing anions (SO42−, NO3, Cl, and CH3COO) with SC were compared (Table 3). Experimental KIE of SO42−, NO3, and HPO42− were close to the calculated constants while KIE for Cl and CH3COO were too low to be evaluated experimentally. The results show the following anion affinity for SC: HPO42− > SO42− > NO3 > Cl ≈ CH3COO, indicating that the SC has the highest affinity for the P anion.

Table 3 Ion exchange equilibrium constants and site concentrations for different anions with the solid carbonate

In the case of SC-IE of HPO42− and SO42−, CO32− is liberated in almost equivalent amounts as HPO42− is exchanged. The experimental KIE and [SC-IE] were used and a 1:1 exchange was considered in the hydrogeochemical model for HPO42−:SO42− and 1:2 for the rest of the anions (Table 4).

Table 4 Ion exchange reactions and equilibrium constants used in the hydrogeochemical modeling

Model validation with experimental results

For the validation of the model, simulated and experimental results for HPO42− and SO42− were compared for different SC concentrations (Fig. 1), where a simulated/experimental value of 1 indicates that modeled and experimental results are equal, values above 1 indicate overestimated, and values below 1 indicate underestimated modeled anion removal and recovery.

Fig. 1
figure 1

Comparison of modeled and experimental exchange for different anions

It is observed that the model reproduces results for P removal and recovery within the experimental error range, especially for lower SC concentrations (Fig. 1a). According to Yuan et al. (2015), at higher concentrations of carbonate (over 30 mM), this may partially dissolve, resulting in increased aqueous cation concentrations that may precipitate with HPO42, increasing the P removal. The modeled results indicate that P removal by precipitation did not occur even in the absence of SC at the modeled concentrations.

In the case of SO42−, the model reproduces experimental results of P removal, with a slight underestimation for [SC-IE] higher than 1, but within the experimental error ranges (Fig. 1b). The model also reproduces the experimental recovery results within the error ranges.

Overall, the validation of the model with the experimental data establishes that the simulated results can describe the HPO42 and SO42− removal processes with errors below 5% and HPO42 and SO42− recovery processes with errors below 10% of experimental results.

Simulation of phosphorus removal and recovery in biodigestor-treated swine effluent

The simulations of SC-IE of HPO42− for different BTSE compositions (maximum, average, and minimum concentrations of each parameter except pH and alkalinity) are presented in Fig. 2. For the average composition of BTSE, SC-IE removes 50% of HPO42−. As HPO42− concentrations increase, removal by SC-IE decreases and vice versa. The HPO42− removal was not largely affected by variations of the cations Fe2+, Mg2+, and Ca2+ and the anion SO42−. According to these results, none of the evaluated major ions would have a large effect on the P removal by SC-IE.

Fig. 2
figure 2

Model validation of anion removals and recoveries

To determine the amount of SC necessary to remove HPO42− for the average BTSE composition (Table 1), the ion exchange on SC was simulated for different [SC-IE]:[HPO4] molar ratio, observing a direct relation of HPO42− removal in the whole range of [SC-IE]:[HPO4] molar ratio between 0.2 and 1.6, and a linear relation between 0.4 and 1.4 (Fig. 3). The most advantageous HPO42− removal was obtained when the molar concentration of SC-IE is 1.4 times higher than that of HPO42− where a P removal of 92.5% was observed. At the [SC-IE]:[HPO42−] molar ratio 1.6, the increase in the removal HPO42− deviates from linearity and only 4% extra removal is obtained.

Fig. 3
figure 3

Simulation of HPO42− removal in solid carbonate at different major ion concentrations

Likewise, to evaluate the amount of CO32− required for elution of ion-exchanged HPO42− in SC, four different concentrations of Na2CO3 were evaluated for different [SC-IE]:[HPO4] molar ratios (Fig. 4).

Fig. 4
figure 4

Simulation of HPO42− removal from biodigestor-treated swine effluent on solid carbonate

It is observed that increasing eluent CO32− concentration by one order of magnitude, from 2 to 20 mM Na2CO3, an increase in P recovery of 4.5 is observed for all [SC-IE]:[HPO4] molar ratio. By increasing the eluent CO32− concentration further to 500 mM Na2CO3, the amount of recovered P is increased five times with respect to the lowest eluent concentration of 2 mM. Finally, by increasing the eluent concentration to 1000 mM, the five times increase in the amount of recovered HPO42− remains almost the same as for the eluent concentration of 500 mM, suggesting that an eluent CO32− concentration higher than 500 mM does not represent a significant advantage in the P recovery.

Overall, the results suggest that it is possible to recover 90% of the initial HPO42− using a [SC-IE]:[HPO4] molar ratio of 1.4 and Na2CO3 of 500 mM. Under these conditions, 92.5% P is removed and 90% of removed P is recovered, 7.5% of initial HPO42− would be discharged, and 2.5% would continue to be attached to the SC, because it is not possible to fully regenerate this material. In addition, the recovery efficiency may vary after various process cycles, although this remains to be evaluated.

The speciation of SC-IE shows that HPO42− occupy approximately 60% of the surface sites at average BTSE and that, depending on the HPO42− concentration, this may vary between 30 and 80% (Fig. 5). The remaining surface sites are mainly occupied by CO32−, HCO3, and, to a much lesser extent, by SO42. Other anions in BTSE, such as CH3COO and Cl, do not appear to compete with HPO42− for the SC-IE, probably because the affinity is too low (Table 3; Fig. 6).

Fig. 5
figure 5

Simulation of HPO42− recovery from solid carbonate with different CO32−-eluent concentrations

Fig. 6
figure 6

Ion exchange site speciation after HPO42− removal from biodigestor-treated swine effluent on solid carbonate

In order to evaluate the effect of the CO32− in the removal of HPO42− with SC, the relations between SC-IE and alkalinity and between alkalinity and HPO4 were modeled for the average BTSE composition (Table 1). Increasing the SC concentration nine-fold (increasing [SC-IE]:[alkalinity] molar ratio from 0.1 to 0.9) HPO42− is more readily removed and recovered (Fig. 7a). On the other hand, increasing the [alkalinity]:[HPO4] molar ratio from 2.5 to 25, or increasing alkalinity ten-fold, both HPO42− removal and recovery decrease.

Fig. 7
figure 7

Dissolved HPO42− removal and recovery as a function of a [SC-IE]:[alkalinity] molar ratio and b [alkalinity]:[HPO4] molar ratio. + STD and − STD indicate maximum and minimum modeled concentrations

The [SC-IE]:[alkalinity] molar ratio of 0.57 represents the most convenient ratio for recovery of P (Fig. 7a). At this ratio, almost one-third of SC-IE are occupied by CO32− and the remaining sites with HPO42− (Fig. 5). To increase P removal under conditions of average BTSE, [SC-IE] should be increased.

On the other hand, the [alkalinity]:[HPO4] molar ratio of 12, which is found in average BTSE, allows the removal 60% of HPO42−, and it is feasible to obtain 99% of P removal at [alkalinity]:[HPO4] molar ratio of 2.5. The P removal by SC-IE is reduced as the [alkalinity]:[HPO4] molar ratio is increased. In order to improve the P removal and recovery by SC-IE, reducing the quantity of alkalinity-CO32− in the system, allows reducing the competition between HPO42− and CO32 for SC-IE. However, the process typically used to reduce CO32− in water such as inverse osmosis, are not likely to work in BTSE due to high concentrations of suspended solids (Crittenden et al. 2012). Alkalinity may also be reduced by acidification causing the removal of CO2 or by precipitation of CaCO3. However, this is not a feasible option for BTSE and either would also interfere with SC-IE. Therefore, to increase P removal in BTSE [SC-IE] should most conveniently be increased.

Comparison between phosphorus removal methods

The SC-IE method for HPO42− removal in BTSE was compared with two other methods commonly used for HPO42− removal in swine effluents: struvite precipitation and application of aluminum sulfate (Fig. 8).

Fig. 8
figure 8

Comparison of different methods for HPO42− removal

The results suggest that struvite precipitation is highly dependent on pH being P removal most efficient around pH 10. At the pH of BTSE, a P removal between 50 and 100 mg l−1 is observed (from 350 to between 300 and 250 mg l−1). Likewise, P removal by application of Al2(SO4)3 is strongly pH dependent (Fig. 7). Therefore, to remove P using this method, it is necessary to reduce pH to between 4.7 and 6.2 where 50% P removal is estimated (from 350 to 175 mg l−1). The ion exchange with SC was analyzed using two different [SC-IE]:[HPO4] molar ratios, 0.8 and 1.4. With a [SC-IE]:[HPO4] molar ratio of 1.4, the SC method shows between 90 and 100% removal of P in the pH range of BTSE. SC is affected by pH because it is expected to dissolve at pH below 6.9 where carbonate is expected to dissolve, and above 7.7 where the cation forms hydroxides. However, among the evaluated methods, IE SC appears to be the most effective for P removal at the pH range of BTSE. This method would allow not only obtaining P concentrations below maximum allowable limits but also being able to recover the nutrient as inorganic P that may be reused in agricultural and industrial applications to mitigate a P-scarce future.

Conclusions

Different methods to remove P from BTSE were compared by hydrogeochemical modeling: SC-IE, application of Al2(SO4)3, and struvite precipitation. At pH ranges usually found in BTSE, SC-IE was found to be the most efficient method to remove inorganic P and allowing discharges to comply with regulation levels.

Phosphorus removal and recovery from BTSE with SC was also evaluated by hydrogeochemical modeling, with thermodynamic data obtained from the literature except KIE and [SC-IE] for different anions in BTSE that were obtained experimentally. The mechanisms for P removal and recovery by SC-IE were evaluated by thermodynamic description of the different reactions involved in the process. The simulation of the SC-IE process for different ion concentrations in BTSE showed a strong effect of alkalinity on P removal. After the P removal by ion exchange in BTSE, 60% of the SC-IE sites were replaced with HPO42−, close to 40% with CO32− while SO42− exchanged with only 1% of the SC-IE sites. To reduce the effect of high alkalinity s in BTSE for P removal by ion exchange, [SC-IE] should be increased. Simulations of the SC-IE recovery allowed retrieving 90% P retrieval by eluting with 500 mM CO32, or 142:1 (molar ratio) CO32− for each recovered HPO42−, since the latter is bound very strongly to SC-IE.

The results suggest that SC-IE may be effective for P removal and recovery in average concentrations of BTSE, offering a method to reduce discharges of P that otherwise produce eutrophication, and thereby protecting water bodies. Besides, SC-IE may recover inorganic P that can be reused in agricultural or industrial processes, mitigating the upcoming P scarcity.