.. _Zcalculation: .. role:: raw-html(raw) :format: html ArcNLET-Py Groundwater Solute-Transport Module: Theoretical Foundations ======================================================================= 1. Purpose of This Document --------------------------- The purpose of this document is to provide a clear, step-by-step exposition of the physical and mathematical foundations of the ArcNLET-Py groundwater solute-transport module. In particular, it: - **Derives** the steady-state, two-dimensional advection–dispersion–decay equations from the Domenico solution (Section 2.1; Equations 7–9). - **Shows** how the source-plane thickness :math:`Z` is related to the specified input mass rate :math:`M_{in}` for a single solute (Section 2.2; Equation 29). - **Explains** how auxiliary-variable transformations decouple the coupled NH₄⁺-N and NO₃⁻-N reaction equations into independent first-order decay problems (Section 2.3; Equations 38–41 for NH₄⁺-N, and 42–45 for NO₃⁻-N). - **Extends** the :math:`Z\text{-}M_{in}` relationship to the NH₄⁺-N system when NH₄⁺-N and NO₃⁻-N coexist (Section 2.4; Equation 53). - **Applies** a similar derivation to the NO₃⁻-N system—first illustrating a common misstep, then presenting the correct formulation when NH₄⁺-N and NO₃⁻-N coexist (Section 2.5; Equation 76). This document is intended for hydrogeologists, groundwater modelers, and environmental scientists who seek a deeper understanding of the theoretical basis behind ArcNLET-Py. It will also benefit advanced graduate students, regulators, and consulting engineers who need to critically evaluate model assumptions, set parameters correctly, or interpret model outputs in the context of solute transport and reactive processes. 2. Equations of Ammonium and Nitrate Calculation in Groundwater --------------------------------------------------------------- ArcNLET-Py employs a steady-state, two-dimensional advection-dispersion equation to simulate the reactive transport of ammonium and nitrate in groundwater. The term “two-dimensional” specifically refers to the horizontal :math:`x`-axis, which aligns with the direction of groundwater flow, and the horizontal :math:`y`-axis, which is perpendicular to the :math:`x`-axis. It is important to note that while the model does not account for variability along the :math:`z`-axis (the vertical dimension), the :math:`z`-axis remains a critical input parameter. If the :math:`z`-value is not directly provided, the model requires the mass of the contaminant entering the groundwater, denoted as :math:`M_{in}`, and calculates the :math:`z`-value accordingly, which is described in Section 2.2. ArcNLET-Py assumes a uniform concentration distribution along the :math:`z`-axis with no vertical variability. The :math:`z`-value is used to calculate the volume of the plume, and subsequently calculate the mass balance items of ammonium and nitrate. 2.1 The Domenico Solution ~~~~~~~~~~~~~~~~~~~~~~~~~ The Domenico solution with decay (Domenico, 1987) considers a simplified form of advection-dispersion equation, and is shown as, .. math:: :nowrap: \[ \frac{\partial C}{\partial t} = D_x \frac{\partial^2C}{\partial x^2} + D_y \frac{\partial^2C}{\partial y^2} + D_z \frac{\partial^2C}{\partial z^2} - v \frac{\partial C}{\partial x} - kC \] where :math:`C` is the contaminant concentration :math:`[M/L^3]`; :math:`D_x`, :math:`D_y` and :math:`D_z` are the homogeneous dispersion coefficients in :math:`x`, :math:`y`, and :math:`z` respectively :math:`[L^2/T^{-1}]`; :math:`v` is the constant seepage velocity in the :math:`x` direction :math:`[L]` and k is the first order decay constant :math:`[T^{-1}]`. The boundary and initial conditions are, .. math:: :nowrap: \[ \begin{gathered} C(x,y,z,0) = 0 \quad \forall\, 0 < x < \infty,\; -\infty < y < \infty,\; -\infty < z < \infty \\ C(0,y,z,t) = C_0 \quad -\frac{Y}{2} < y < \frac{Y}{2},\; -\frac{Z}{2} < z < \frac{Z}{2},\; \forall\, t > 0 \\ \lim_{x \to +\infty} \frac{\partial C(x,y,z,t)}{\partial x} = 0 \\ \lim_{y \to \pm\infty} \frac{\partial C(x,y,z,t)}{\partial y} = 0 \\ \lim_{z \to \pm\infty} \frac{\partial C(x,y,z,t)}{\partial z} = 0 \end{gathered} \] These conditions essentially correspond to considering a single plume, having a source plane centered at (0, 0, 0), with dimensions :math:`Y` and :math:`Z` and a constant concentration :math:`C_0` while only considering groundwater flow in the :math:`x` direction but dispersion in all three directions, as the Figure 1 shows as follows. Additional constraints assume that the system evolves only in the positive half of the :math:`x` coordinate space and that the system is initially free of contaminant. .. figure:: ./media/ZcalculationMedia/media/image.png :align: center :alt: Fig. 1. The geometry of the Domenico solution source plane. Fig. 1. The geometry of the Domenico solution source plane. The general form of the Domenico solution used in this model is the three-dimensional transient solution of Martin-Hayden and Robbins (1997), which is based on the work by Domenico and Robbins (1985) and Domenico (1987), .. math:: :nowrap: \[ C(x,y,z,t)=\frac{C_0}{8}F_1(x,t)F_2(y,x)F_3(z,x) \] with .. math:: :nowrap: \[ \begin{gathered} F_1 = \exp\left[\frac{x}{2\alpha_x}\left(1-\sqrt{1+\frac{4k\alpha_x}{v}}\right)\right] \times \text{erfc}\left[\frac{x-vt\sqrt{1+\frac{4k\alpha_x}{v}}}{2\sqrt{\alpha_xvt}}\right] \\ + \exp\left[\frac{x}{2\alpha_x}\left(1+\sqrt{1+\frac{4k\alpha_x}{v}}\right)\right] \times \text{erfc}\left[\frac{x+vt\sqrt{1+\frac{4k\alpha_x}{v}}}{2\sqrt{\alpha_xvt}}\right] \end{gathered} \] .. math:: :nowrap: \[ F_2=erf\left(\frac{y+Y/2}{2\sqrt{\alpha_yx}}\right)-erf\left(\frac{y-Y/2}{2\sqrt{\alpha_yx}}\right) \] .. math:: :nowrap: \[ F_3=erf\left(\frac{z+Z/2}{2\sqrt{\alpha_z x}}\right)-erf\left(\frac{z-Z/2}{2\sqrt{\alpha_z x}}\right) \] where :math:`\alpha_x`, :math:`\alpha_y`, and :math:`\alpha_z` are the longitudinal, horizontal transverse and vertical transverse dispersivities :math:`[L]`; :math:`k` is the first order decay coefficient :math:`[T^{-1}]`; :math:`v` is the groundwater seepage velocity in the longitudinal direction :math:`[LT^{-1}]`, :math:`Y` and :math:`Z` are the width and height of the source plane respectively :math:`[L]` and :math:`t` is time :math:`[T]`. The actual form of the Domenico solution used in ArcNLET-Py is the steady-state, two-dimensional version of Equation 3 as follows, .. math:: :nowrap: \[ C(x,y)=\frac{C_0}{2}F_1(x)F_2(y,x) \] .. math:: :nowrap: \[ F_1=exp\left[\frac{x}{2\alpha_x}\left(1-\sqrt{1+\frac{4k\alpha_x}{v}}\right)\right] \] .. math:: :nowrap: \[ F_2=erf\left(\frac{y+Y/2}{2\sqrt{\alpha_y x}}\right)-erf\left(\frac{y-Y/2}{2\sqrt{\alpha_y x}}\right) \] Equation 7 (along with Equation 8 and 9) is obtained by ignoring vertical dispersion in Equation 3 by setting the transverse vertical dispersivity, :math:`a_z`, in Equation 6 equal to zero. The error function tends to :math:`\pm 1` as the argument tends to :math:`\pm \infty`. Therefore, when :math:`-Z/2