Full text
Treball realitzat per: Irene Benito Lázaro Dirigit per: Prof. Maarten Willem Saaltink (UPC) Prof. Stanley B. Grant (University of California, Irvine) Grau en: Enginyeria Civil Barcelona, 13 de juny de 2017 Departament d’enginyeria civil i ambiental TREBALL FINAL DE GRAU Calibrating and Validating a Coupled Physical and Biokinetic Model of Denitrification in the Hyporheic Zone of Streams
! ! 1!
! ! 2! Acknowledgements I would first like to thank the Balsells Mobility Fellowship, for giving me the opportunity of fulfilling a dream. Carrying out research in the U.S. and experiencing the engineering world in this country would not have been possible without this help. Balsells Mobility Fellowship has, furthermore, allowed me to broaden my knowledge about the American culture and meet fascinating people through these six months at the University of California, Irvine. Secondly, I would like to thank my tutor at University of California, Irvine, Stanley B. Grant, for teaching me all the essentials of hyporheic exchange and the insights of research, and my tutor at UPC, Maarten W. Staaltink for helping me whenever was necessary. I would also like to thank Morvarid Azizian, from University of California, Irvine, for providing unconditional support during the course of my thesis. Finally, I must express my infinite gratitude to my parents for their belief in me that gives me courage to pursue all my dreams and ambitions. This thesis is dedicated to Norberto Lázaro. Thank you for being eternally proud of me. You will always be loved.!! !
! ! 3! !
! ! 4! Abstract Human activities have increased the input of bioavailable nitrogen into the rivers and streams across the world. This has caused harmful effects on ecosystem and human health, so that U.S. National Academy of Engineering has identified restoring balance to the nitrogen cycle as one of the 14 Grand Challenges facing engineers in the 21st Century. Biogeochemical processing of nitrogen in the hyporheic zone of streams, on the other hand, is thought to be an effective pathway for removing excess nitrate in these systems. In this thesis, I used a previously published method, called PASS model, to calculate direct denitrification velocity of nitrate ( vf, Dw ), which is defined as the ratio of the flux of nitrogen gas generated by direct denitrification and in-stream concentration of nitrate. I aimed to calibrate PASS model parameters and validate its results with a well-known set of data that was collected as part of the second lotic intersite nitrogen experiment (LINX II) across 72 streams in the United States. Altogether, I calibrated four fundamental parameters of the PASS model, including hyporheic exchange flux coefficient ( a ), rate constant of dissolved organic carbon mineralization ( Rm in, 0 ), nitrification rate constant ( kNI ), and denitrification rate coefficient ( κ ). I interpreted the results of the calibration by using Multiple Linear Regression (MLR) and Bootstrap techniques. At the end I crossvalidated the results from the calibrated PASS model with the LINXII data, in terms of two indicating uptake velocities, namely oxygen and nitrate uptake velocities and I performed a model goodness analysis reporting Nash-Sutcliff efficiency for each set of the model validation results.
! ! 5!
! ! 6! Contents! ACKNOWLEDGEMENTS!................................................................................................!2! ABSTRACT!.......................................................................................................................!4! NOTATIONS!.....................................................................................................................!8! 1.!INTRODUCTION!.....................................................................................................!11! 2.!METHODS!................................................................................................................!14! 2.1!Pumping and Streamline Segregation (PASS) Model!..........................................................................................!14! 2.2!LINX II Dataset!.................................................................................................................................................................!17! 2.3!Advective Pumping Model for Hyporheic Exchange!...........................................................................................!18! 2.4!Biokinetic Model for N-Cycling in the Hyporheic Zone!....................................................................................!20! 2.5!Calibrating the Advective Pumping Model!.............................................................................................................!24! 2.6!Overview of Biokinetic Model Calibration!.............................................................................................................!26! 2.7!Calibration of Rmin,0 and kNI from Measured Oxygen Uptake Velocity!...........................................................!28! 2.8!Calibration of κ from Direct Denitrification of Streamborne Nitrate!...........................................................!30! 2.9!Validation of PASS Model Predictions!.....................................................................................................................!31! 2.10!Statistical Analyses!........................................................................................................................................................!32! 3.!RESULTS!..................................................................................................................!33! 3.1!Calibrating the Hyporheic Exchange Flux!...............................................................................................................!33! 3.2!Calibrating the Organic Carbon Mineralization Rate!...........................................................................................!33! 3.3!Calibrating the Nitrification Rate Constant!.............................................................................................................!35! 3.4!Calibrating the Rate of Nitrate Reduction!................................................................................................................!36! 4.!DISCUSSION!...........................................................................................................!37! 4.1!Hyporheic Exchange Flux Calibration!......................................................................................................................!37!
! ! 7! 4.2!Biokinetic Model Calibration!.......................................................................................................................................!38! 4.3!PASS Model Validation!.................................................................................................................................................!40! 5.!CONCLUSIONS AND FUTURE DIRECTIONS!.....................................................!42! REFERENCES!.................................................................................................................!44! APPENDICES!..................................................................................................................!51! A. Uptake velocity of oxygen Mathematica code!..............................................................................................................!52! B. Direct denitrification uptake velocity Mathematica code!..........................................................................................!66! Table of Figures Figure 1: The Advective Pumping Model for Hyporheic Exchange!.......................................!19! Figure 2: Behavior of the normalized concentrations!...................................................................!23! Figure 3: Calibrating the PASS model parameters!........................................................................!34! Figure 4: Validation of the model!.......................................................................................................!41!
! ! 8! Notations ! ! ! a hyporheic exchange flux coefficient (-) AR aerobic respiration BIC Bayesian information criterion CH2O formaldehyde representing dissolved organic carbon CI confidence interval CO2 carbon dioxide (mol m-3 s-1) CNH4 + concentration of ammonium (mol m-3 s-1) CNO3 − concentration of nitrate (mol m-3 s-1) CO2 concentration of oxygen (mol m-3 s-1) CS-NH4 + in-stream concentration of ammonium (mol m-3 s-1) CS-NO3 − in-stream concentration of nitrate (mol m-3 s-1) CS-O2 in-stream concentration of oxygen (mol m-3 s-1) DN denitrification DOC dissolved organic carbon dS depth of stream (m) d50 median grain size diameter of the streambed (mm) ER ecosystem respiration (mol m-2 s-1) E τ ( ) probability density function form of the hyporheic zone residence time distribution (s-1) FN fraction of nitrate g gravitational constant (m s-2) GPP gross primary production (mol m-2 s-1) H height of ripples (m) κ denitrification rate coefficient (-) kNI nitrification rate constant (m3 mol-1 s-1) KNO3 − s a t half-saturation constant for denitrification (mol m-3) KO2 i n h oxygen inhibition of denitrification ( mol m-3) KO2 s a t half-saturation constant for aerobic respiration (mol m-3) λ wavelength of a ripple (m) LINX II second lotic intersite nitrogen experiment m empirical parameter (-) MLR multiple linear regression MTL mass transfer limited
2.!Methods! ! 15! ( CS-NO3 − τ ( ) , units mol m-3); and a flux-weighted residence time distribution ( E τ ( ) units s-1), defined as the fraction of water circulating through the hyporheic zone that has a residence time within d τ of τ . The quantity F N appearing in equation (1) represents the flux-weighted fractional conversion of nitrate, and can take on any positive real value ( 0<F N<∞ ). When the flux-weighted fractional conversion is less than unity ( 0<F N<1 ) the hyporheic zone is a net sink of nitrate and the nitrate uptake velocity is negative in sign ( vf<0 ). Conversely, if the flux-weighted fractional conversion is greater than unity ( F N>1 ), the hyporheic zone is a net source of nitrate (e.g., by nitrification), and the nitrate uptake velocity is positive in sign ( vf>0 ). In the limit where F N=0 , the rate of nitrate uptake is controlled by the Darcy flux of water across the sediment-water interface; i.e., under these conditions nitrate uptake is mass transfer limited, vf, MTL =−qH . Depending on the process of interest, different forms of the nitrate uptake velocity can be defined and calculated from the PASS model. The uptake velocity that appears in equation (1) takes into account both nitrate generation in the hyporheic zone (e.g., by nitrification) and nitrate removal in the hyporheic zone (e.g., by denitrification). Consequently, the sign of vf will determine whether the hyporheic zone is a net sink vf<0 ( ) or source vf>0 ( ) of nitrate, as indicated above. Alternatively, uptake velocities can be defined as only removal of streamborne nitrate by direct denitrification ( vf, Dw ) or removal of streamborne ammonium by coupled nitrification-denitrification ( vf, Dn )
2.!Methods! ! 16! [Nielsen, 1992]. Because these latter two uptake velocities quantify the removal of nitrogen carried by the stream, they are negative in sign and calculated from the modelpredicted flux of N2 out of the streambed ( UN2 , units mol m-2 s-1) produced by direct denitrification of streamborne nitrate ( vf, Dw =−UN2, Dw CS-NO3 − ) or coupled nitrificationdenitrification of streamborne ammonium ( vf, Dn =−UN2, Dn CS-NO3 − ). Finally, the total nitrate uptake velocity represents the removal of streamborne nitrate by denitrification and by plant and microbial assimilation ( vf, tot , see Mulholland et al. [2008]). In this thesis I will focus on modeling the uptake velocity associated with direct denitrification of stream nitrate (i.e., vf, Dw ) because of its relevance to the ecosystem services (transformation of streamborne nitrate to di-nitrogen gas) and disservices (transformation of streamborne nitrate to nitrous oxide gas) described earlier.
2.!Methods! ! 17! 2.2 LINX II Dataset ! I calibrated and validated the PASS model using previously published field data collected as part of the second lotic intersite nitrogen experiment (LINX II) [Mulholland et al., 2008,2009; Beaulieu et al., 2011]. The LINX II study included 15N-labeled nitrate seeding experiments in 72 streams across eight regions of the U.S., collectively representing eight different biomes (temperate rain forest, chaparral, northern mixed forest, deciduous forest, montane coniferous forest, temperate grassland, shrub desert and tropical forest) and three different land-use types (undisturbed or reference sites, urbanimpacted sites, and agriculture-impacted sites) [Mulholland et al., 2008]. Here I focus on a subset of the LINX II sites where hyporheic exchange is likely to have occurred across fluvial dunes. This focus is warranted because, when hyporheic exchange occurs across dunes, the quantities qH and E τ ( ) can be estimated from field measurements of stream velocity and stream width using a simple analytical model (see next section). The dune sites were identified based on the classification scheme proposed by Marzadri et al. [2014]; namely, streambed slope s0<0.009 and median grain size diameter of the streambed d50 <4 mm. Nineteen of the 72 LINX II sites met these two criteria, including four reference sites, seven urban-impacted sites, and eight agriculture-impacted sites.
2.!Methods! ! 18! 2.3 Advective Pumping Model for Hyporheic Exchange In this study I assume hyporheic exchange occurs across fluvial dunes of height H (units m), wavelength λ (units m), and hydraulic conductivity Kh (units m s-1) in a stream of depth ds (units m) and flow velocity U (units m s-1), as shown in Figure 1. Under such conditions, Boano et al. [2008, 2009] derived the following advective pumping model for the hyporheic exchange flux, where qV (units m s-1) is the vertical Darcy flux of groundwater into the stream (gaining conditions, qV>0 ) or from the stream into the groundwater (losing conditions, qV<0 ): qH=qH,0 1−(qV π qH,0 )2+qV π ( ) sin−1qV π qH,0 ( ) −qV2 ( ) qH,0 =2aKhh0 λ h0=U2 2g H 0.34ds ⎛ ⎝ ⎜⎞ ⎠ ⎟ m (2) This physical model assumes that hyporheic exchange is driven by dynamic pressure variations over the surface of a fluvial dune in a turbulent stream, with high-pressure regions at dune troughs (downwelling zones) and low-pressure regions at dune crests (upwelling zones); it is an evolution of similar expressions derived in the absence of ambient groundwater flow [Vaux, 1968; Elliott and Brooks, 1997a, 1997b]. Additional variables appearing in equation (2) include the gravitational constant ( g=9.81 m s-2), two empirical parameters a and m (both unitless), the pressure head perturbation associated with turbulent flow over a dune ( h0 , units m), and the hyporheic exchange flux when the stream is neither gaining nor losing ( qV=0 ) ( qH,0 , units m s-1).
2.!Methods! ! 19! Figure 1: The Advective Pumping Model for Hyporheic Exchange considers the vertical Darcy flux of groundwater (gaining/losing conditions). Low-pressure regions (up-welling zones) are located at the dune crests, whereas high -pressure regions (down-welling zones) are located at dune troughs. ! !
2.!Methods! ! 20! 2.4 Biokinetic Model for N-Cycling in the Hyporheic Zone ! As oxygen and DIN move through the hyporheic zone they are subject to a variety of microbially mediated redox reactions. In my biokinetic model I capture three of the most important such reactions, including aerobic respiration (AR), denitrification (DN), and nitrification (NI) (Kessler et al., [2013]; Cook et al., [2006]; Azizian et al., [2014; 2017]): Aerobic respiration (AR): CH2O+O2→CO2+ H2O (3a) RA R =Rmin CO2 CO2 +KO2 s a t ⎛ ⎝ ⎜⎞ ⎠ ⎟ (3b) Denitrification (DN): CH2O + 0.8NO3 − + 0.8H+→CO2 + 0.4N2 + 1.4H2O (3c) RD N = κ Rmin CNO3 − CNO3 −+KNO3 − s a t ⎛ ⎝ ⎜ ⎜ ⎞ ⎠ ⎟ ⎟ KO2 i n h CO2 +KO2 i n h ⎛ ⎝ ⎜⎞ ⎠ ⎟ (3d) Nitrification (NI): NH4 + + 2O2→NO3 − + 2H+ + H2O (3e) RN I =kN ICNH4 +CO2 (3f) The rate expressions corresponding to each redox reaction are also indicated. The rate of AR ( RA R , units mol m-3 s-1, equation (3b)) is proportional to the organic carbon mineralization rate ( Rmin , units mol m-3 s-1) and exhibits a Monod (saturation) dependence on interstitial oxygen concentration ( CO2 with half saturation constant KO2 s a t , both units mol m-3). The rate of DN ( RD N , units mol m-3 s-1, equation (3d)) is proportional to Rmin
2.!Methods! ! 21! (proportionality constant κ , unitless), exhibits a Monod dependence on interstitial nitrate concentration ( CNO3 − with half saturation constant KNO3 − s a t , both units mol m-3), and is noncompetitively inhibited by oxygen (inhibition constant of KO2 i n h , units mol m-3). Finally, the rate of NI ( RN I , units mol m-3 s-1, equation (3f)) is second-order in both ammonium ( CNH4 + ) and oxygen concentrations (rate constant kNI , units m3 mol-1 s-1). Because both AR and DN are proportional to the organic carbon mineralization rate, the latter plays a critical role in determining how quickly nitrate is removed in the hyporheic zone. Various expressions for Rmin have been proposed in the literature, for example to account for the downwelling of streamborne dissolved organic carbon (DOC) and dissolution of particulate organic carbon (POC) trapped within the streambed (i.e., in situ generation of DOC from POC and its subsequent mineralization) (e.g., see Zarnetske et al. [2012] and Sawyer, [2015]). Alternatively, Cook et al., [2006] proposed a parsimonious empirical relationship, in which the organic carbon mineralization rate is assumed to decline monotonically with depth into the streambed: Rmin z ( ) =Rm in, 0e−z z0 ( ) 2 . Variables in Cook et al.’s model represent the characteristic depth in the sediment over which organic carbon mineralization takes place ( z0 , units m), a site-specific mineralization rate at the sediment-water interface ( Rm in, 0 , units mol m-3 s-1), and elevation above the streambed ( z , units m). I adapted Cook et al.’s empirical model by replacing depth z with residence time in the hyporheic zone τ , and defining a characteristic time for organic carbon mineralization: τ 0= θ z0qH , where θ is streambed porosity, the mineralization depth is z0=0.1 m, and qH is a site-specific hyporheic
2.!Methods! ! 22! exchange flux estimated from the advective pumping model described earlier (see equation (2)). Under steady-state conditions and neglecting mixing by diffusion and mechanical dispersion (see PASS model assumptions), mass balance over a single water parcel yields a set of coupled non-linear ordinary differential equations for the change in interstitial oxygen, nitrate, and ammonium concentrations with travel time through the hyporheic zone: dCO2 d τ =−Rmin,0e− τ τ 0 ( ) 2CO2 CO2+KO2 sat ⎛ ⎝ ⎜⎞ ⎠ ⎟ AR ! "#### $#### −2kNICO2 CNH4 + NI ! "# $# (4a) dCNO3 − d τ =kNICO2 CNH4 + NI ! "# $# − κ Rmin,0e− τ τ 0 ( ) 2KO2 inh CO2+KO2 inh ⎛ ⎝ ⎜⎞ ⎠ ⎟ CNO3 − CNO3 −+KNO3 − sat ⎛ ⎝ ⎜ ⎜ ⎞ ⎠ ⎟ ⎟ DN ! "####### $####### (4b) dCNH4 + d τ =−kNICO2 CNH4 + NI ! "# $# (4c) CO2 0 ( ) =CS-O2 , CNO3 −0 ( ) =CS-NO3 − , CNH4 +0 ( ) =CS-NH4 + (4d) For the set of initial conditions adopted here (equation (4d)), I have assumed that the interstitial concentrations of molecular oxygen, nitrate, and ammonium are equal to their respective ambient stream concentrations ( CS-O2 , CS-NO3 − , and CS-NH4 + , respectively) as water enters the hyporheic zone from the stream (at τ =0 ). Figure 2 shows the concentrations versus the residence time.
2.!Methods! ! 23! Figure 2: Behavior of the normalized concentrations of (A): oxygen, (B): ammonium and (C): nitrate, with respect to the log-transformed residence time τ ( ) for one of the LINX II sites (Kimball). For τ =0 , the interstitial concentrations have been considered equal to the ambient stream concentrations ( CO2 CS-O2 =1 ; CNH4 +CS-NH4 +=1 ; CNO3 −CS-NO3 −=1 ). 1.000 0.995 0.990 0.985 0.980 0.975 1086420 1.030 1.025 1.020 1.015 1.010 1.005 1.000 43210-1 1.00 0.98 0.96 0.94 0.92 3210-1 1.000$ 0.995$ 0.990$ 0.985$ 0.980$ 0.975$ 1.000$ 0.980$ 0.960$ 0.940$ 0.920$ 1.030$ 1.025$ 1.020$ 1.015$ 1.010$ 1.005$ 1.000$ 0$ 2$ 4$ 6$ 8$ 10$ 0$-1$ 1$ 2$ 3$ 0$-1$ 1$ 2$ 3$ 4$ Interstitial oxygen concentration normalized by oxygen concentration instream Interstitial ammonium concentration normalized by ammonium concentration in-stream Interstitial nitrate concentration normalized by nitrate concentration instream log10 τ s [ ] ( ) log10 τ s [ ] ( ) log10 τ s [ ] ( ) A. B. C.
2.!Methods! ! 24! 2.5 Calibrating the Advective Pumping Model ! For each of the LINX II sites included in this study, the parameters appearing in equation (2) were either: (a) measured in the field (stream velocity U ); (b) taken as a constant based on literature values ( m=3 8 [Elliott and Brooks, [1997a]; Fehlman, [1985]); (c) calculated from field measurements as outlined by Marzadri et al. [2014], including stream depth ( ds=Q UW ( ) where Q (units m3 s-1) and W (units m) are measured stream discharge and width, respectively), dune height H=0.165 ×ds , dune length λ =6×ds [Yalin, 1964], and hydraulic conductivity of the streambed Kh=16.88 +10.6 ×d50 , where d50 is the measured median grain size of the streambed [Salarashayeri and Siosemarde, 2012]; or (d) estimated from the mass transfer limited uptake of 15N-labeled nitrate measured as part of the LINX II studies (the empirical constant a ). Relative to the latter, for sites where nitrate uptake is mass transfer limited and there is negligible groundwater discharge or recharge (i.e., qV=0 ), by definition vf, MTL =−qH,0 and the parameter a can be obtained by rearranging equation (2): a=−vf, M TL g λ KhU2 H 0.34ds ⎛ ⎝ ⎜⎞ ⎠ ⎟ −3/8 (5) Because I do not know a priori which LINX II sites are mass transfer limited, I calculated from equation (5) values of a for all seventeen sites included in this study. Then I selected the five largest a values, on the premise that mass transfer limited conditions are most likely to apply when a is maximal. At the end, the median of these values was then selected for further analysis.
2.!Methods! ! 31! 2.9 Validation of PASS Model Predictions ! The performance of the PASS model was evaluated as follows. The calibrated model was used to generate predictions for vf, O2 PASS and vf, Dw PASS at all sites where these two uptake velocities were measured (including sites used for model calibration and sites held in reserve for model validation, see above). The model-predicted and measured uptake velocities were then cross-plotted and model performance evaluated using the Nash- Sutcliff efficiency; this index ranges from to 1, where 1 is a perfect model fit, 0 is no better than the mean, and < 0 is worse than the mean [Krause et al., 2005]. − ∞
2.!Methods! ! 32! 2.10 Statistical Analyses ! To determine if the three calibrated parameters ( Rm in, 0 , kNI , and κ , see above) are correlated with ER and/or GPP a multiple linear regression (MLR) was conducted in R software [R Core Team, 2013]. Prior to performing the MLR, the variance inflation factor (VIF) was calculated for GPP and ER to evaluate multicolinearity. No significant multicolinearity was detected (VIF < 5) [Zuur et al., 2010], indicating that both variables were suitable for co-evaluation in the MLR analyses. Models were ranked using the Bayesian Information Criterion (BIC) [Schwarz, 1978] and then further evaluated relative to predictive ability using leave-one-out cross validation with Root Mean Squared Error (RMSE) as the validation metric [Hawkins et al., 2003]. When BIC and RMSE did not agree, the final best-fit model was the model with the lowest average RMSE (weighted average across all leave-one-out estimates). The coefficient of determination (R2) was calculated for each the best-fit model (for Rm in, 0 , kNI , and κ , respectively) as an indicator of overall model fit. The relative importance of each predictor variable (i.e., the proportionate contribution made to R2) was estimated using the averaging over ordering method proposed by Lindeman, Merenda and Gold [Gromping, 2006]. In instances where calibrated parameters were not correlated with GPP and/or ER, a median value was utilized and a distribution of means was prepared using bootstrap techniques (Matlab, Mathworks, MA).
! ! 33! 3. Results 3.1 Calibrating the Hyporheic Exchange Flux ! The constant of proportionality a for the advective pumping model was estimated from LINX II measurements of the total uptake velocity ( vf, tot ), where the latter represents the rate at which 15N-labeled nitrate is removed from the stream by both denitrification and microbial and plant assimilation [Mulholland et al., 2008]. The top five values (corresponding to sites that are most likely to be mass transfer limited, see methods) yield a median value of a=0.68 with lower and upper 95% CIs of 0.35 and 0.99 , respectively (Figure 3A). Similar median values for a are obtained if, instead of retaining the top five values, the top four or six values are retained (median values of a=0.80 or 0.59 , respectively). Note previously published laboratory estimates for a fall below the limit of the CIs I am reporting here [e.g., Fehlman et al., 1985 ( a=0.28 ); and Fox et al., 2014 ( a=0.16 )]. 3.2 Calibrating the Organic Carbon Mineralization Rate ! The organic carbon mineralization rate at the sediment-water interface ( Rm in, 0 ) was estimated at 7 LINX II sites with low ammonium concentrations (on the premise that nitrification could be neglected at these sites, see methods). MLR of the resulting Rm in, 0 values indicate that this parameter is significantly inversely correlated with ER ( R2=0.94 , p=0.0003 , d.o.f.=5 ) (Figure 3B) and well-described by the following power-law relationship (solid line in the figure): Rm in,0 =1 03.04±0.79ER1.26±0.14 .
3.!Results! ! 34! Figure 3: Calibrating the PASS model parameters with the LINXII data (A) distribution and 95% confidence intervals (dashed vertical lines) for the mean of the top five selected a values computed by bootstrap technique. Light blue and dark blue stars represent the magnitude of a reported in Fox et al. (2014) and Fehlman (1989), respectively; (B) correlation between the organic carbon mineralization rate at the sediment-water interface ( Rm in, 0 ) for the selected sites and the ecosystem respiration (ER); (C) distribution and 95% confidence intervals (dashed vertical lines) for the mean of selected sites kNI values computed by bootstrap technique. Turquoise star represents the magnitude of kNI reported in Kessler et al. (2013a); (D) correlation between κ for the selected sites and the gross primary production (GPP). Dashed lines present the stoichiometric limit ( κ =1.25 ) and reported value in Evrard et al. [2012] ( κ =0.05 ). In panels (B) and (D), different sites are color-coded with respect to their land use, namely reference streams (green), urban-impacted streams (red), and agricultural-impacted streams (yellow). ! !
3.!Results! ! 35! ! 3.3 Calibrating the Nitrification Rate Constant ! The 7 LINX II sites with the highest ammonium concentrations were selected for estimating the second-order nitrification rate constant ( kNI ) (see methods). However, kNI values could not be found at two of the sites (DORR and IS_104) because my modelpredicted uptake oxygen velocities did not converge to the corresponding measured values; kNI values were successfully obtained for the other five sites. MLR analysis reveals that lo g kNI is not significantly correlated with either logER nor logGPP ( p>0.18 ). Therefore the median value of kNI =1 0−2.67 m3 mol-1 s-1 was selected for subsequent calculations (lower and upper 95% CI of 1 0−3.4 and 1 0−1.9 , Figure 3C). Note the lower CI is equal to previously published laboratory estimates for kNI [e.g., Kessler et al., 2013a].
3.!Results! ! 36! 3.4 Calibrating the Rate of Nitrate Reduction ! I estimated κ values from field measurements of the direct denitrification of stream nitrate ( vfd e n ) at 6 of the LINX II sites where hyporheic exchange occurred predominantly across fluvial dunes (the remaining 5 sites were reserved for model validation). The smallest of these realizations ( κ =0.08 ) is close to the non-stoichiometric value ( κ =0.05 ) reported by Evrard et al. [2012], the median ( κ =2.75 ) is close to the stoichiometric value ( κ =1.25 ), while the maximum ( κ =5 1 ) is well above previously published estimates. Interestingly, the MLR reveals that log κ is significantly inversely correlated with logGPP (Figure 3D, R2=0.88 , p=0.006 , d.o.f.=4 ). The observed inverse relationship between κ and G P P can be represented by the following power-law correlation (solid line in Figure 3D): log κ =a−blogGPP where a=−6.3±1.3 and b=1.00±0.2 (bounds are standard error).
! ! 37! 4. Discussion 4.1 Hyporheic Exchange Flux Calibration ! The advective pumping model [Boano et al., 2007, 2008] was used to estimate the hyporheic exchange flux qH at 19 LINX II sites where fluvial dunes dominate hyporheic exchange. While most of the parameter values needed to estimate qH are either measured or calculated from field measurements (see methods), there is uncertainty regarding the constant of proportionality between the dynamic pressure head perturbation associated with turbulent flow over a dune and the corresponding hyporheic exchange flux (i.e., the parameter a , see equation (2)). Laboratory flume experiments yield different values for this parameter ( a=0.28 and 0.14 according to Fehlman [1985] and Fox et al. [2016], respectively), and it is not clear that lab-scale experiments can be extrapolated to the field. The median value for this parameter ( a=0.68 ) is significantly larger, but within a factor of five, of the earlier laboratory estimates. There are several possible explanations for this observation, including: (1) the laboratory values were obtained using a single bedform scale (e.g., ripples of a defined size), whereas in the field hyporheic exchange flux may be additive over multiple bedform scales (e.g., ripples and dunes) [McCluskey et al., 2016]; (2) at the LINX II sites hyporheic exchange may have contributions from both dynamic pressure variations (accounted for in the advective pumping model) and static pressure variations (e.g., associated with the ponding of water behind obstacles in a
4.!Discussion! ! 38! stream, not accounted for by the advective pumping model) which could drive additional hyporheic exchange; and (3) the measured total uptake velocities used to estimate a may include nitrate removal processes (such as nitrate uptake by benthic algae) that are not necessarily associated with hyporheic exchange. 4.2 Biokinetic Model Calibration ! Calibration of the biokinetic model involved estimating values (or correlations) for three key parameters that determine the rates of organic carbon mineralization ( Rmin,0 ), nitrification ( kNI ), and denitrification ( κ ). Perhaps not surprisingly given that Rmin,0 was calculated from the oxygen uptake velocity (which, in turn, is calculated from the ratio of ER and CS-O2 ), values of Rmin,0 are significantly and positively correlated with ER over a several log-cycle change in both variables. This result is significant for several reasons. First, ER can be easily estimated for any stream from diurnal (e.g., at a frequency of 1 min-1) measurements of stream oxygen concentration (see Bernot et al., [2010]). Therefore the simple correlation between ER and Rmin,0 provides a tool to generalize my results beyond the limited sites analyzed here, to potentially many other streams. Secondly, this result underscores the importance of stream metabolism, of which ER is a component, in the cycling of nitrogen in the hyporheic zone. Indeed, the importance of ER on N-cycling in streams has already been documented for the LINX II sites using statistical regression models and structural equation models (SEMS). However, to our knowledge, my results are the first to show
4.!Discussion! ! 39! how key biokinetic parameters depend strongly on stream metabolism as represented by night-time autotrophic and heterotrophic respiration. Indeed, even stream gross primary production plays a role in the biokinetics of N-cycling, apparently by modulating, during denitrification, the moles of nitrate reduced per moles of carbon oxidized, as represented by the biokinetic model parameter κ . Aerobic respiration should consume one mole of organic carbon for every mole of molecular oxygen reduced, while denitrification should consume κ =1 0 . 8 =1.25 moles of organic carbon for every mole of nitrate reduced. However, recent laboratory and field observations of respiratory denitrification in coastal marine sediments indicate that κ is 25 times smaller ( κ =0.05 ) than the stoichiometric value ( κ =1.25 ) [Evrard et al., 2012; Kessler et al., 2013a, 2013b], perhaps reflecting the dominance of benthic algal metabolism in these systems [Bourke et al., 2017]. Remarkably, the observed inverse correlation between κ and GPP is consistent with the idea that benthic algal metabolism may play a role in the non-stoichiometric reduction of nitrate at the LINX II sites. More generally, these results suggests that two of the primary processes responsible for N- cycling in the hyporheic zone of stream—aerobic respiration of organic material and the stoichiometry of denitrification—are largely determined by the metabolic state of the stream, as represented by ER and GPP.
4.!Discussion! ! 40! 4.3 PASS Model Validation ! For the last step of my analysis, the performance of the PASS model was evaluated by comparing model predictions for vf, O2 PASS and vf, Dw PASS with the reported values at all LINXII sites where these two uptake velocities were measured (including sites used for model calibration and sites held in reserve for model validation, see above). All the data points are aligned along the one-to-one line on the cross-plot of oxygen uptake velocities (Figure 4A) and the Nash-Sutcliff efficiency calculated for this set of results present a very good agreement between the model predicted values and measured values at the sites of LINX II study (NSE = 0.67). At the end, I compared model predictions for the direct denitrification uptake velocity with the reported data in LINXII study. The crossplot of the model-predicted values versus the reported values presents a satisfactory agreement between the model and the actual values (NSE = 0.20) (Figure 4B). Since the nitrate uptake velocity calculations capture more complexities of the nitrogen cycling in the sediment, the results of the predicted values for this set of data may not seem as good as the ones reported for the oxygen uptake velocity. Better predictions on nitrate uptake velocity from PASS model requires more understanding about the complexities of the chemistry and physics of the nitrogen cycling in the hyporheic zone of the real systems, such as the ones that are reported in LINXII data set, and is an on-going development process.
References! ! 47! nitrogen dynamics in a semiarid riparian zone, Journal of Geophysical Research, 113, doi:10.1029/2007JG000588. Harvey, J. W., J. K. Bohlke, M. A. Voytek, D. Scott, and C. R. Tobias (2013), Hyporheic zone denitrification: Controls on effective reaction depth and contribution to whole-stream mass balance, Water Resour. Res., 49, 6298–6316, doi:10.1002/wrcr.20492. Hawkins, D. M., S. C. Basak, D. Mills (2003), Assessing model fit by cross-validation, J. Chem. Inf. Comput. Sci., 43, 579-586. Herzog, S. P., C. P. Higgins, and J. E. McCray (2015), Engineered streambeds for induced hyporheic flow: Enhanced removal of nutrients, pathogens, and metals from urban streams, ASCE J. Environ. Eng., 142(1), 04015053. Hu, B. L., L. D. Shen, X. Y. Xu, and P. Zheng (2011), Anaerobic ammonium oxidation (anammox) in different natural ecosystems, Biochem. Soc. Trans., 39(6), 1811– 1816. Jongbloed, A. W., and N. P. Lenis (1998), Environmental concerns about animal manure, J. Anim. Sci., 76(10), 2641–2648. Kaushal, S. S., P. M. Groffman, P. M. Mayer, E. Striz, E. J. Doheny, and A. J. Gold (2008), Effects of stream restoration on denitrification in an urbanizing watershed, Ecol. Appl. 18, 789–804. Keeling, R. F., A. Körtzinger, and N. Gruber (2010), Ocean deoxygenation in a warming world, Annual Review of Marine Science, 2,199-229. Kessler, A. J., R. N. Glud, M. B. Cardenas, and P. L. M. Cook (2013a), Transport zonation limits coupled nitrification-denitrification in permeable sediments, Environ. Sci. Technol., 47, 13,404–13,411. Kessler, A. J., R. N. Glud, M. B. Cardenas, M. Larsen, M. F. Bourke, and P. L. M. Cook (2013b), Quantifying denitrification in rippled permeable sands through combined flume experiments and modeling, Limnol. Oceanogr., 57, 1217–1232. Kiel, B. A., and M. B. Cardenas (2014), Lateral hyporheic exchange throughout the Mississippi River network, Nat. Geosci., 7(6), 413–417. Krause, P., Boyle, D.P., Base, F. (2005) “Comparison of different efficiency criteria for hydrological model assessment” Adv. Geosci. 5, 89-97.
References! ! 48! Kroeze, C., A. Moiser, and L. Bouwman (1999), Closing the global N2O budget: A retrospective analysis 1500–1994, Global Biogeochem. Cycles, 13(1), 1–8. Lansdown, K., B. A. McKew, C. Whitby, C. M. Heppell, A. J. Dumbrell, A. Binley, L. Olde, and M. Trimmer (2016), Importance and controls of anaerobic ammonium oxidation influenced by riverbed geology, Nat. Geosci., 9, 357–360, doi:10.1038/ngeo2684. Lassaletta, L., H. García-Gómez, B. S. Gimeno and J. V. Rovira (2009), Agricultureinduced increase in nitrate concentrations in stream waters of a large Mediterranean catchment over 25 years (1981–2005), Elsevier, 47, 6034-6043. Marzadri A, Tonina D, Bellin A, Tank JL (2014) A hydrologic model demonstrates nitrous oxide emissions depend on streambed morphology. Geophys Res Lett 41:5484–5491, doi: 10.1002/2014GL060732. Marzadri, A., M. M. Dee, D. Tonina, A. Bellin and J. L. Tank (2017), Role of surface and subsurface processes in scaling N2O emissions along riverine networks, PNAS. McClain, M. E., E. W. Boyer, C. L. Dent, S. E. Gergel, N. B. Grimm, P. M. Groffman, S. C. Hart, J. W. Harvey, C. A. Johnston, E. Mayorga, W. H. McDowell, and Gilles Pinay (2003), Biogeochemical hot spots and hot moments at the interface of terrestrial and aquatic ecosystems, Ecosystems, 6, 301-312, doi: 10.1007/s10021- 003-0161-9. McCluskey, A. H., Grant, S. B., and Stewardson, M. J. (2016), Flipping the thin film model: Mass transfer by hyporheic exchange in gaining and losing streams, Water Resour. Res., 52(10), 7806-7818. Mulholland, P. J., et al. (2008), Stream denitrification across biomes and its response to anthropogenic nitrate loading, Nature, 452, 202–205. Mulholland, P. J., et al. (2009), Nitrate removal in stream ecosystems measured by 15N addition experiments: Denitrification, Limnol. Oceanogr., 54(3), 666–680. National Academy of Engineering (2017), NAE Grand Challenges for Engineering. [online] Available at: http://www.engineeringchallenges.org/challenges.aspx [Accessed 30 May, 2017]. Nielsen, L. P. (1992) Denitrification in sediment determined from nitrogen isotope pairing, FEMS Microbiology Letters, 86(4), 357-362. Peterson, B., et al. (2001), Control of nitrogen export from watershed by headwater
References! ! 49! streams, Nature, 292, 86–89. R core team (2013). R: A language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria. ISBN 3-90051-07-0, Available at: http://www.R-project.org/ [Accessed 30 May, 2017] Ryther, J. H. and W. M Dunstan (1971), Nitrogen, Phosphorus, and Eutrophication in the Coastal Marine Environment, Science, 171, 1008-1013, doi: 10.1126/science.171.3975.1008. Salarashayeri, A. F., and M. Siosemarde (2012), Prediction of soil hydraulic conductivity from particle-size distribution, World Acad. Sci. Eng. Technol., 61, 454–458. Sawyer, A. H. (2015), Enhanced removal of groundwater-borne nitrate in heterogeneous aquatic sediments, Geophys. Res. Lett., 42, 403– 410, doi:10.1002/2014GL062234. Schot, P. P. and J. van der Wal (1992), Human impact on regional groundwater composition through intervention in natural flow patterns and changes in land use, Elsevier, 134, 297-313, doi: 10.1016/0022-1694(92)90040-3. Schwarz, G. (1978), Estimating the dimension of a model, Ann. Statist., 6, 461-464 Seitzinger, S., J. A. Harrison, J. K. Bohlke, A.F. Bouwman, R. Lowrance, B. Peterson, C.Tobias, and G. Van Drecht (2006), Denitrification across Landscapes and Waterscapes: A Synthesis, Ecol. Appl., 16, 2064–2090. Smith, V. H., G. D. Tilman, and J. C. Nekola (1999), Eutrophication: Impacts of excess nutrient inputs on freshwater, marine, and terrestrial ecosystems, Environ. Pollut., 100, 179–196. Steffen, W., K. Richardson, J. Rockström, S. E. Cornell, I. Fetzer, E. M. Bennett, R. Biggs, S. R. Carpenter, W. de Vries, C. A. de Wit, C. Folke, D. Gerten, J. Heinke, G. M. Mace, L. M. Persson, V. Ramanathan, B. Reyers and S. Sörlin (2015), Planetary boundaries: Guiding human development on a changing planet, Sience, 347, doi: 10.1126/science.1259855. Thibodeaux, L. J. and J. D. Boyle (1987), Bedform-generated convective transport in bottom sediment, Nature, 325(22), 341-343. Trauth, N., C. Schmidth, U. Maier, M. Wieweg, and J. H. Fleckenstein (2013), Coupled 3-D stream flow and hyporheic flow model under varying stream and ambient groundwater flow conditions in a pool-riffle system, Water Resour. Res., 49,
References! ! 50! 5834–5850, doi:10.1002/wrcr.20442. Trauth, N., J. C. Schmidt, M. Vieweg, U. Maier, and J. H. Fleckenstein (2014), Hyporheic transport and biogeochemical reactions in pool-riffle systems under varying ambient groundwater flow conditions, J. Geophys. Res. Biogeosci., 119, 910–928, doi:10.1002/2013JG002586. United States Environmental Protection Agency (2017), U. S. Environmental Protection Agency. [online] Available at: http://www.citethisforme.com/guides/harvard/how- to-cite-a-website [Accessed 30 May, 2017]. Vaux, W. G. (1968), Intragravel flow and interchange of water in streambed, Fishery Bulletin, 66. Yalin, M. S. (1964), Geometrical properties of sand waves, J. Hydraul. Div.-ASCE, 90(5), 105–119. Yates, M. V., C. P. Gerba and L. M. Kelley (1985), Virus persistence in groundwater, Applied and environmental microbiology, 778-781. Zarnetske, J. P., R. Haggerty, S. M. Wondzell, and M. A. Baker (2011), Dynamics of nitrate production and removal as a function of residence time in the hyporheic zone, J. Geophys. Res., 116, G01025, doi:10.1029/2010JG001356. Zarnetske, J. P., R. Haggerty, S. M. Wondzell, V. A. Bokil, and R. Gonzalez-Pinzon (2012), Coupled transport and reaction kinetics control the nitrate source-sink function of hyporheic zones, Water Resour. Res., 48, W11508, doi:10.1029/2012WR011894. Zuur, A. F., E. N. Ieno and C. S. Elphick (2010), A protocol for data exploration to avoid common statistical problems. Method. Ecol. Evol., 1, 3-14.
! ! 51! Appendices
Appendices! ! 52! A. Uptake velocity of oxygen Mathematica code
Computing RTDs from the Analytical Solution Calculation involves 5 steps. Step 1: Parameter definition (user must specify values for the following parameters which apply for all the model) (a) qvbar= the normalized vertical groundwater Darcy flux (-) (b) theta=porosity (-) (c) z0=depth of mineralization decay (m) Clear[qvbar]; qvbar =0; Clear[theta]; theta =0.32; Clear[z0];z0=0.1; Step 2 : Assign parameter values (chemical +physical)specific to each LINXII site (a)qubar =the normalized horizontal groundwater Darcy flux (-) (b)qH0 =Characteristic hyporheic exchange flux (m/s) (c)tT =Characteristic residecne time (s) (d)cO20 =in-stream concentration of oxygen molm3 (e)cNH40 =in-stream concentration of ammonium molm3 (f)KO2sat =half -saturation constant for oxygen molm3 (g)ER =ecosystem respiration molm2s (h)kNI =nitrification rate constant m3mols
Kimball Clear[qubar]; qubar =4.34 *10^-04; Clear[qH0]; qH0 =1.12 *10^-03; Clear[tT];tT=1.87 *10^+01; Clear[cO20]; cO20 =1.68 *10^-01; Clear[cNH40]; cNH40 =7.14 *10^-05; Clear[kO2Sat]; kO2Sat =6*10^-3; Clear[ER];ER=4.34 *10^-06; Clear[kNI]; kNI =10^-2.67; Bernalillo drain Clear[qubar]; qubar =1.12 *10^-03; Clear[qH0]; qH0 =1.75 *10^-04; Clear[tT];tT=9.66 *10^+01; Clear[cO20]; cO20 =1.87 *10^-01; Clear[cNH40]; cNH40 =1.43 *10^-04; Clear[kO2Sat]; kO2Sat =6*10^-3; Clear[ER];ER=2.53 *10^-06; Clear[kNI]; kNI =10^-2.67; Rio Rancho Clear[qubar]; qubar =1.43 *10^-03; Clear[qH0]; qH0 =9.21 *10^-05; Clear[tT];tT=1.28 *10^+02; Clear[cO20]; cO20 =1.84 *10^-01; Clear[cNH40]; cNH40 =2.14 *10^-04; Clear[kO2Sat]; kO2Sat =6*10^-3; Clear[ER];ER=3.62 *10^-06; Clear[kNI]; kNI =10^-2.67; Printed by Wolfram Mathematica Student Edition
Giltner Clear[qubar]; qubar =2.28 *10^-04; Clear[qH0]; qH0 =1.78 *10^-03; Clear[tT];tT=8.95 *10^+00; Clear[cO20]; cO20 =9.64 *10^-01; Clear[cNH40]; cNH40 =2.14 *10^-04; Clear[kO2Sat]; kO2Sat =6*10^-3; Clear[ER];ER=4.12 *10^-06; Clear[kNI]; kNI =10^-2.67; Headquarters Clear[qubar]; qubar =1.86 *10^-04; Clear[qH0]; qH0 =1.63 *10^-03; Clear[tT];tT=9.38 *10^+00; Clear[cO20]; cO20 =1.81 *10^-01; Clear[cNH40]; cNH40 =2.14 *10^-04; Clear[kO2Sat]; kO2Sat =6*10^-3; Clear[ER];ER=2.57 *10^-06; Clear[kNI]; kNI =10^-2.67; Bullet Clear[qubar]; qubar =3.44 *10^-04; Clear[qH0]; qH0 =2.86 *10^-03; Clear[tT];tT=1.61 *10^+00; Clear[cO20]; cO20 =3.11 *10^-01; Clear[cNH40]; cNH40 =7.86 *10^-04; Clear[kO2Sat]; kO2Sat =6*10^-3; Clear[ER];ER=5.64 *10^-06; Clear[kNI]; kNI =10^-2.67; Printed by Wolfram Mathematica Student Edition
Honeysuckle Clear[qubar]; qubar =2.34 *10^-04; Clear[qH0]; qH0 =3.24 *10^-03; Clear[tT];tT=4.82 *10^+00; Clear[cO20]; cO20 =2.75 *10^-01; Clear[cNH40]; cNH40 =1.50 *10^-03; Clear[kO2Sat]; kO2Sat =6*10^-3; Clear[ER];ER=2.86 *10^-06; Clear[kNI]; kNI =10^-2.67; Black Brook Clear[qubar]; qubar =3.60 *10^-02; Clear[qH0]; qH0 =2.18 *10^-05; Clear[tT];tT=4.94 *10^+03; Clear[cO20]; cO20 =1.20 *10^-01; Clear[cNH40]; cNH40 =2.21 *10^-03; Clear[kO2Sat]; kO2Sat =6*10^-3; Clear[ER];ER=1.63 *10^-06; Clear[kNI]; kNI =10^-2.67; Arcadia Clear[qubar]; qubar =4.64 *10^-05; Clear[qH0]; qH0 =1.51 *10^-03; Clear[tT];tT=1.69 *10^+01; Clear[cO20]; cO20 =2.05 *10^-01; Clear[cNH40]; cNH40 =2.29 *10^-03; Clear[kO2Sat]; kO2Sat =6*10^-3; Clear[ER];ER=5.10 *10^-06; Clear[kNI]; kNI =10^-2.67; Printed by Wolfram Mathematica Student Edition
Step 5: Plot results and check output (*check to make sure that the total probability associated with the upstream and downstream flow cells sum to unity*)frtdupmax +frtddnmax ⩵1 (*plot the upstream, downstream, and total RTD PDFs*) Plot[{frtdupmax CDF[/up, x], frtddnmax CDF[/dn, x], frtdupmax CDF[/up, x] + frtddnmax CDF[/dn, x]},{x, -1, 3}, PlotLabels → {"upstream cell", "downstream cell", "total"}, AxesLabel → {"log10(taubar)", "F1,F2, or FRTD"}, PlotStyle → {Blue, Orange, Green}, PlotLabel →CDF] Plot[{frtdupmax PDF[/up, x], frtddnmax PDF[/dn, x], frtdupmax PDF[/up, x] + frtddnmax PDF[/dn, x]}, {x, -1, 3}, AxesLabel → {"log10(taubar)", "dFRTD/dlog10(tau)"}, PlotStyle → {Blue, Orange, Green}, PlotLabel →PDF] True upstream cell downstream cell total -1 1 2 3 log10(taubar) 0.2 0.4 0.6 0.8 1.0 F1,F2,or FRTD CDF -1 1 2 3 log10(taubar) 0.2 0.4 0.6 dFRTD/dlog10(tau) PDF Computing Chemistry Solution Calculation involves 4 steps. Step 1: Calculate parameters derived from the parameter values (a) lrmin0 = mineralization constant in log-scale (mol/m3/s). (b) tr = Respiration time scale (taur, units s). (c) delta = relative rates of nitrification and respiration (-). (d) Normalized aerobic saturation constant (kO2SatHat, unitless). (e) Uptake velocity of oxygen calculated from LINXII data. (f) alpha = normalized ammonium concentration (-). Printed by Wolfram Mathematica Student Edition
Computing Chemistry Solution Calculation involves 4 steps. Step 1: Calculate parameters derived from the parameter values (a) lrmin0 = mineralization constant in log-scale (mol/m3/s). (b) tr = Respiration time scale (taur, units s). (c) delta = relative rates of nitrification and respiration (-). (d) Normalized aerobic saturation constant (kO2SatHat, unitless). (e) Uptake velocity of oxygen calculated from LINXII data. (f) alpha = normalized ammonium concentration (-). Clear[lrmin0]; lrmin0 =3.0411 +1.2571 *Log[10, ER]; Clear[tr]; tr =kO2Sat / (10^lrmin0); Clear[delta]; delta =tr kNI cO20; Clear[kO2SatHat]; kO2SatHat =kO2Sat /cO20; Clear[vfO2exp]; vfO2exp = -ER /cO20 Clear[alpha]; alpha =cNH40 /cO20; Step 2: Solve the mass balance equations The following equation is expression of mass balance for the concentrations of oxygen (cO2) normalized by in-stream oxygen concentration as a function of non-dimensional travel time (taur=tau/tr) through the hyporheic zone. To solve these equations, user must define the ending time of the simulation (endtime=log10taur). Note that the starting time is assumed to be taur=10^-10, while the integral stops integrating when the oxygen concentration falls below 10^-5 of the in-stream oxygen concentration. Clear[kO2Satvar, deltavar, alphavar, cO2, cNH4, soln, end]; soln[kO2Satvar_, deltavar_, alphavar_] := NDSolve[{(1/2.303)cO2'[u] ⩵ (10^u) (-Exp[-((qH0 *tr *10^u)/(theta *z0))^2] * (cO2[u]/(cO2[u]/kO2Satvar +1))-2 deltavar cO2[u]cNH4[u]), cO2[-10] ⩵ 1, (1/2.303)cNH4'[u] ⩵ (10^u) ( -deltavar cO2[u]cNH4[u]), cNH4[-10]== alphavar, WhenEvent[cO2[u]<10^-5, {end =u, "StopIntegration"}]}, {cO2, cNH4},{u, -10, 10}] Printed by Wolfram Mathematica Student Edition
Step 3: Plot the oxygen concentration versus nondimensional (tau/tr) travel time through the hyporheic zone. Clear[sn]; sn =soln[kO2SatHat, delta, alpha]; LogPlot[{cO2[u] /. sn, (cNH4[u]/alpha) /. sn},{u, -10, 10}, PlotRange → {.00001, 10}, AxesLabel → {"log10(tau/tr)", "C_HZ/C_Stream"}, PlotStyle → {Blue, Orange}, PlotLabels →Placed[{"oxygen", "ammonium"},{Scaled[1], Before}]] oxygen ammonium -10 -5 0 5 10 log10(tau/tr) 10-4 0.001 0.010 0.100 1 10 C_HZ/C_Stream Step 4: Calculate vfO2 vfO2 = (qH0 * (NIntegrate[(cO2[u+Log10[tT /tr]] /. sn) (frtdupmax PDF[/up, u] + frtddnmax PDF[/dn, u]),{u, -10 -Log10[tT /tr], 10 -Log10[tT /tr]}, WorkingPrecision →10, MinRecursion →1]-1)) Printed by Wolfram Mathematica Student Edition
Appendices) ) 66) B. Direct denitrification uptake velocity Mathematica code )
Computing RTDs from the Analytical Solution Calculation involves 5 steps. Step 1: Parameter definition (user must specify values for the following parameters which apply to all the scenarios) (a) qvbar= the normalized vertical groundwater Darcy flux (-) (b) theta=porosity (-) (c) z0=depth of mineralization decay (m) (d) KO2sat = half-saturation constant for oxygen (mol/m^3) (e) KNO3sat = half-saturation constant for nitrate (mol/m^3) (f) KO2inh = Inhibition coefficient for denitrification (mol/m^3) Clear[qvbar]; qvbar =0; Clear[theta]; theta =0.32; Clear[z0];z0=0.1; Clear[kO2Sat]; kO2Sat =6*10^-3; Clear[kNO3Sat]; kNO3Sat =0.081; Clear[kO2Inh]; kO2Inh =3*10^-3; Step 2: Assign parameter values (chemical + physical) specific to each LINXII site (a) qubar = the normalized horizontal groundwater Darcy flux (-) (b) qH0 = Characteristic hyporheic exchange flux (m/s) (c) tT = Characteristic residence time (s) (d) cO20 = in-stream concentration of oxygen (mol/m^3) (e) cNO30 = in-stream concentration of nitrate (mol/m^3) (f) cNH40 = in-stream concentration of ammonium (mol/m^3) (g) ER = ecosystem respiration (mol/m^2/s) (h) GPP = gross primary production (mol/m^2/s) Kimball
Kimball Clear[qubar]; qubar =4.34 *10^-04; Clear[qH0]; qH0 =1.12 *10^-03; Clear[tT];tT=1.87 *10^+01; Clear[cO20]; cO20 =1.68 *10^-01; Clear[cNO30]; cNO30 =0.002; Clear[cNH40]; cNH40 =7.14 *10^-5; Clear[ER];ER=4.34 *10^-06; Clear[GPP]; GPP =4.92 *10^-06; Bernalillo Drain Clear[qubar]; qubar =1.12 *10^-03; Clear[qH0]; qH0 =1.75 *10^-04; Clear[tT];tT=9.66 *10^+01; Clear[cO20]; cO20 =1.87 *10^-01; Clear[cNO30]; cNO30 =1.43 *10^-04; Clear[cNH40]; cNH40 =1.43 *10^-04; Clear[ER];ER=2.53 *10^-06; Clear[GPP]; GPP =3.18 *10^-06; Rio Rancho Clear[qubar]; qubar =1.43 *10^-03; Clear[qH0]; qH0 =9.21 *10^-05; Clear[tT];tT=1.28 *10^2; Clear[cO20]; cO20 =1.84 *10^-01; Clear[cNO30]; cNO30 =9.29 *10^-04; Clear[cNH40]; cNH40 =2.14 *10^-04; Clear[ER];ER=3.62 *10^-06; Clear[GPP]; GPP =2.35 *10^-06; Printed by Wolfram Mathematica Student Edition
Giltner Clear[qubar]; qubar =2.28 *10^-04; Clear[qH0]; qH0 =1.78 *10^-03; Clear[tT];tT=8.95 *10^+00; Clear[cO20]; cO20 =9.64 *10^-01; Clear[cNO30]; cNO30 =3.57 *10^-03; Clear[cNH40]; cNH40 =2.14 *10^-04; Clear[ER];ER=4.12 *10^-06; Clear[GPP]; GPP =5.86 *10^-06; Headquarters Clear[qubar]; qubar =1.86 *10^-04; Clear[qH0]; qH0 =1.63 *10^-03; Clear[tT];tT=9.38 *10^+00; Clear[cO20]; cO20 =1.81 *10^-01; Clear[cNO30]; cNO30 =7.14 *10^-05; Clear[cNH40]; cNH40 =2.14 *10^-04; Clear[ER];ER=2.57 *10^-06; Clear[GPP]; GPP =1.19 *10^-06; Bullet Clear[qubar]; qubar =3.44 *10^-04; Clear[qH0]; qH0 =2.86 *10^-03; Clear[tT];tT=1.61 *10^+00; Clear[cO20]; cO20 =3.11 *10^-01; Clear[cNO30]; cNO30 =2.74 *10^-02; Clear[cNH40]; cNH40 =7.86 *10^-4; Clear[ER];ER=5.64 *10^-06; Clear[GPP]; GPP =5.79 *10^-7; Printed by Wolfram Mathematica Student Edition
Honeysuckle Clear[qubar]; qubar =2.34 *10^-04; Clear[qH0]; qH0 =3.24 *10^-03; Clear[tT];tT=4.82 *10^+00; Clear[cO20]; cO20 =2.75 *10^-01; Clear[cNO30]; cNO30 =2.86 *10^-04; Clear[cNH40]; cNH40 =1.50 *10^-03; Clear[ER];ER=2.86 *10^-06; Clear[GPP]; GPP =3.62 *10^-08; Black Brook Clear[qubar]; qubar =3.60 *10^-02; Clear[qH0]; qH0 =2.18 *10^-05; Clear[tT];tT=4.94 *10^03; Clear[cO20]; cO20 =1.20 *10^-01; Clear[cNO30]; cNO30 =3.57 *10^-03; Clear[cNH40]; cNH40 =2.21 *10^-03; Clear[ER];ER=1.63 *10^-06; Clear[GPP]; GPP =2.17 *10^-07; Arcadia Clear[qubar]; qubar =4.64 *10^-05; Clear[qH0]; qH0 =1.51 *10^-03; Clear[tT];tT=1.69 *10^+01; Clear[cO20]; cO20 =2.05 *10^-01; Clear[cNO30]; cNO30 =1.96 *10^-02; Clear[cNH40]; cNH40 =2.29 *10^-03; Clear[ER];ER=5.10 *10^-06; Clear[GPP]; GPP =2.89 *10^-07; Printed by Wolfram Mathematica Student Edition
IS118 Clear[qubar]; qubar =7.70 *10^-04; Clear[qH0]; qH0 =1.31 *10^-05; Clear[tT];tT=1.01 *10^03; Clear[cO20]; cO20 =2.32 *10^-01; Clear[cNO30]; cNO30 =7.32 *10^-02; Clear[cNH40]; cNH40 =2.79 *10^-03; Clear[ER];ER=1.45 *10^-06; Clear[GPP]; GPP =3.62 *10^-08; Sand Creek Clear[qubar]; qubar =2.58 *10^-04; Clear[qH0]; qH0 =4.36 *10^-03; Clear[tT];tT=8.90 *10^-01; Clear[cO20]; cO20 =2.74 *10^-01; Clear[cNO30]; cNO30 =2.02 *10^-02; Clear[cNH40]; cNH40 =3.93 *10^-03; Clear[ER];ER=7.23 *10^-07; Clear[GPP]; GPP =7.23 *10^-08; Long Meadow Brook Clear[qubar]; qubar =4.45 *10^-05; Clear[qH0]; qH0 =2.27 *10^-04; Clear[tT];tT=2.55 *10^+01; Clear[cO20]; cO20 =2.24 *10^-01; Clear[cNO30]; cNO30 =7.06 *10^-02; Clear[cNH40]; cNH40 =4.50 *10^-03; Clear[ER];ER=2.96586 *10^-06; Clear[GPP]; GPP =1.41 *10^-06; Printed by Wolfram Mathematica Student Edition
Wayland Clear[qubar]; qubar =2.47 *10^-04; Clear[qH0]; qH0 =2.27 *10^-03; Clear[tT];tT=3.58 *10^+00; Clear[cO20]; cO20 =2.41 *10^-01; Clear[cNO30]; cNO30 =4.96 *10^-02; Clear[cNH40]; cNH40 =5.29 *10^-03; Clear[ER];ER=1.48293 *10^-06; Clear[GPP]; GPP =6.51 *10^-07; Runaway Brook Clear[qubar]; qubar =1.90 *10^-04; Clear[qH0]; qH0 =5.31 *10^-05; Clear[tT];tT=1.16 *10 +02; Clear[cO20]; cO20 =2.66 *10^-01; Clear[cNO30]; cNO30 =8.31 *10^-02; Clear[cNH40]; cNH40 =5.71 *10^-03; Clear[ER];ER=1.6276 *10^-06; Clear[GPP]; GPP =2.64 *10^-06; Jerry Branch Clear[qubar]; qubar =3.40 *10^-04; Clear[qH0]; qH0 =3.30 *10^-03; Clear[tT];tT=2.86 *10^+00; Clear[cO20]; cO20 =2.39 *10^-01; Clear[cNO30]; cNO30 =2.90 *10^-02; Clear[cNH40]; cNH40 =7.71 *10^-03; Clear[ER];ER=1.6276 *10^-06; Clear[GPP]; GPP =1.81 *10^-07; Printed by Wolfram Mathematica Student Edition
Step 2: Solve the mass balance equations (no ammonification) The following equation is expression of mass balance for the concentrations of oxygen (cO2), ammonium (cNH4), and nitrate (in stream: cNO3, and generated from in-stream ammonium cNO3N), and nitrogen gas generated from instream nitrate (cN2) and in-stream nitrified ammonium (cN2N) normalized by in-stream oxygen concentration as a function of non-dimensional travel time (taur=tau/tr) through the hyporheic zone. Clear[kO2Satvar, kNO3Satvar, kO2Inhvar, deltavar, alphavar, betavar, kappavar, cO2, cNH4, cNO3, cNO3N, cN2N, cN2, solnnoAM, end]; solnnoAM[kO2Satvar_, kNO3Satvar_, kO2Inhvar_, deltavar_, alphavar_, betavar_, kappavar_, tr_] := NDSolve[{(1/2.303)cO2'[u] ⩵ (10^u) (-Exp[-((qH0 *tr *10^u)/(theta *z0))^2] (cO2[u]/(cO2[u]/kO2Satvar +1)) - 2 deltavar cO2[u]cNH4[u]), cO2[-10]== 1, (1/2.303)cNH4'[u] ⩵ (10^u) ( -deltavar cO2[u]cNH4[u]), cNH4[-10]== alphavar, (1/2.303)cNO3'[u] ⩵ (10^u) (-Exp[-((qH0 *tr *10^u)/(theta *z0))^2]kappavar kO2Satvar kO2Inhvar cNO3[u] / ((cO2[u]+kO2Inhvar) (cNO3[u]+cNO3N[u] + kNO3Satvar ))), cNO3[-10]== betavar, (1/2.303)cNO3N'[u] ⩵ (10^u) (deltavar cO2[u]cNH4[u] - Exp[-((qH0 *tr *10^u)/(theta *z0))^2]kappavar kO2Satvar kO2Inhvar cNO3N[u] / ((cO2[u] + kO2Inhvar) (cNO3[u]+cNO3N[u]+kNO3Satvar ))), cNO3N[-10] ⩵ 0, (1/2.303)cN2N'[u]== (10^u) ((1/2)Exp[-((qH0 *tr *10^u)/(theta *z0))^2]kappavar kO2Satvar kO2Inhvar cNO3N[u] / ((cO2[u]+kO2Inhvar) (cNO3[u]+cNO3N[u] + kNO3Satvar ))), cN2N[-10] ⩵ 0, (1/2.303)cN2'[u]== (10^u) ((1/2)Exp[-((qH0 *tr *10^u)/(theta *z0))^2]kappavar kO2Satvar kO2Inhvar cNO3[u] / ((cO2[u]+kO2Inhvar) (cNO3[u]+cNO3N[u] + kNO3Satvar ))), cN2[-10] ⩵ 0, WhenEvent[cO2[u]<10^-5, cO2[u] → 0], WhenEvent[cNH4[u]<10^-5, cNH4[u] → 0], WhenEvent[(cNO3[u] + cNO3N[u])/beta <10^-5, {end =u, "StopIntegration"}]}, {cO2, cNH4, cNO3, cNO3N, cN2N, cN2},{u, -10, 10}]; Printed by Wolfram Mathematica Student Edition
Step 3: Plot the concentration profiles versus nondimensional (tau/tr) travel time through the hyporheic zone. Clear[snnoAM]; snnoAM =solnnoAM[kO2SatHat, kNO3SatHat, kO2InhHat, delta, alpha, beta, kappa, tr]; LogPlot[{cO2[u] /. snnoAM, (cNH4[u]/alpha) /. snnoAM, (cNO3[u]+cNO3N[u])/beta /. snnoAM},{u, -3, 10}, PlotRange → {.00001, 10}, AxesLabel → {"log10(tau/tr)", "C_HZ/C_Stream"}, PlotStyle → {Blue, Orange, Green}, PlotLabels →Placed[{"oxygen", "ammonium", "nitrate"},{Scaled[1], Before}]] oxygen ammonium nitrate -2 0 2 4 6 8 10 log10(tau/tr) 10-4 0.001 0.010 0.100 1 10 C_HZ/C_Stream Step 4: Calculate direct denitrification uptake velocity (m/s). vfden =2* ((qH0 /beta)*(NIntegrate[(cN2[u+Log10[tT /tr]] /. snnoAM) (frtdupmax PDF[/up, u] + frtddnmax PDF[/dn, u]), {u, -10 -Log10[tT /tr], 10 -Log10[tT /tr]}, WorkingPrecision →10])) In[1]:= Export["vfden.pdf", EvaluationNotebook[]] Out[1]= vfden.pdf Printed by Wolfram Mathematica Student Edition