Revisiting the analytical solution approach to mixing-limited equilibrium multicomponent reactive transport using mixing ratios: identification of basis, fixing an error, and dealing with multiple minerals
Abstract
Multicomponent reactive transport involves the solution of a system of nonlinear coupled partial differential equations. A number of methods have been developed to simplify the problem. In the case where all reactions are in instantaneous equilibrium and the mineral assemblage is constant in both space and time, de Simoni et al. (2007) provide an analytical solution that separates transport of aqueous components and minerals using scalar dissipation of
Full text
TECHNICAL REPORTS: METHODS 10.1002/2017WR020759 Revisiting the Analytical Solution Approach to Mixing-Limited Equilibrium Multicomponent Reactive Transport Using Mixing Ratios: Identification of Basis, Fixing an Error, and Dealing With Multiple Minerals T. R. Ginn 1 , L. G. Schreyer 2 , X. Sanchez-Vila 3 , M. K. Nassar 4,5 ,A.A.Ali 4 , and S. Kr€ autle 6 1 Department of Civil and Environmental Engineering, Washington State University, Pullman, WA, USA, 2 Department of Mathematics, Washington State University, Pullman, WA, USA, 3 Hydrogeology Group, Department of Geotechnical Engineering and Geosciences, Universitat Politecnica de Catalunya, Barcelona, Spain, 4 Department of Civil and Environmental Engineering, University of California at Davis, Davis, CA, USA, 5 Environmental Studies and Research Institute, University of Sadat City, Sadat, Minufiya, Egypt, 6 Mathematik, Universit€ at Erlangen-N€ urnberg, Erlangen, Germany Abstract Multicomponent reactive transport involves the solution of a system of nonlinear coupled partial differential equations. A number of methods have been developed to simplify the problem. In the case where all reactions are in instantaneous equilibrium and the mineral assemblage is constant in both space and time, de Simoni et al. (2007) provide an analytical solution that separates transport of aqueous components and minerals using scalar dissipation of ‘‘mixing ratios’’ between a number of boundary/initial solutions. In this approach, aqueous speciation is solved in conventional terms of primary and secondary species, and the mineral dissolution/precipitation rate is given in terms of the scalar dissipation and a chemical transformation term, both involving the secondary species associated with the mineral reaction. However, the identification of the secondary species is nonunique, and so it is not clear how to use the approach in general, a problem that is keenly manifest in the case of multiple minerals which may share aqueous ions. We address this problem by developing an approach to identify the secondary species required in the presence of one or multiple minerals. We also remedy a significant error in the de Simoni et al. (2007) approach. The result is a fixed and extended de Simoni et al. (2007) approach that allows construction of analytical solutions to multicomponent equilibrium reactive transport problems in which the mineral assemblage does not change in space or time and where the transport is described by closed-form solutions of the mixing ratios. 1. Introduction The mixing-components approach to multicomponent equilibrium reactive transport (de Simoni et al., 2007) is an important contribution to the upscaling of subsurface reactive transport because it quantitatively distinguishes chemical controls from transport limitations on the net rate of transformations in the general class of mixing-limited reactive problems between solutions that are otherwise in equilibrium. As an analytical solution relying on closed-form solution of transport, it is free of operator-splitting errors and allows writing the mineral dissolution/precipitation rate in closed-form, providing a useful expression for its quantification without having to rely on balancing the species at every time step. In brief it works like this. Consider the case of very fast bimolecular reaction, M () C 1 1C 2 where the quantity M is a pure mineral phase with assumed unit chemical activity, and corresponding law of mass action K5C2C1where Kis the equilibrium constant of the mineral equilibrium. Suppose this equilibrium is satisfied respectively by both chemical compositions of two solutions that obey advective-dispersive transport. De Simoni et al. (2005) showed that the time rate of change of the volumetric mass or molar density of M is the product of the scalar dissipation rate rCðÞ TnDrCand the chemical transformation term d2C1=dC2where CC 2 –C 1 is a conventional chemical ‘‘component’’ (e.g., Bethke, 2006) that behaves as a passive tracer (resulting from the cancellation of the reaction term by subtraction of the mole balance equations for C 2 and C 1 ). The authors demonstrate how to do this also in the general multicomponent case, where the time rate of change of the mineral is factored into a mixing factor that is the scalar dissipation rate of aqueous components, and a chemical transformation term for the minerals’ secondary species that depends only on the components’ concentrations, each one again acting as a passive tracer. Key Points: We clarify the application of mixing ratio approach to multicomponent systems with fixed mineral assemblages We formalize how to select secondary aqueous species to be used, and we fix an error in the approach We demonstrate the approach to formulate the solution with multiple minerals present Correspondence to: T. R. Ginn, [email protected] Citation: Ginn, T. R., Schreyer, L. G., Sanchez-Vila, X., Nassar, M. K., Ali, A. A. , & Kr€ autle, S. (2017). Revisiting the analytical solution approach to mixing-limited equilibrium multicomponent reactive transport using mixing ratios: Identification of basis, fixing an error, and dealing with multiple minerals. Water Resources Research,53. https://doi.org/10.1002/ 2017WR020759 Received 13 MAR 2017 Accepted 20 SEP 2017 Accepted article online 28 SEP 2017 V C2017. American Geophysical Union. All Rights Reserved. GINN ET AL. ANALYTICAL SOLUTION TO REACTIVETRANSPORT 1 Water Resources Research PUBLICATIONS
This has resulted in an expansion of research on how to characterize the mixing limitation factor, whether it be a dilution index where the concentrations are weighted by their natural log, or a scalar dissipation rate where the gradient of concentration is squared, and how this applies to the idealized ‘‘bimolecular’’ reaction of de Simoni and beyond (e.g., Dentz et al., 2011; de Simoni et al., 2007; Le Borgne et al., 2014; Luo et al., 2008; Pelizardi et al., 2017; Sanchez-Vila et al., 2010; Willmann et al., 2010). The concept of de Simoni et al. (2005) was extended in de Simoni et al. (2007) to analysis of the same multicomponent reactive transport but this time using ‘‘mixing ratios’’ instead of explicit components, as will be explained below; furthermore in this same work, the authors extended the problem to include the mass action law written in terms of activities, rather than the simplified version where all activity coefficients are assumed equal to one. Here our focus is on clarifying some aspects of the de Simoni et al. (2007) approach including fixing an important error in the mathematics, and extending it to the case of multiple minerals in equilibrium with the solutions involved. For simplicity, we assume all activity coefficients are unity, also that the activities of minerals (and under the dilute solution assumption) of water are all assumed unity; these assumptions can be relaxed as shown in de Simoni et al. (2005, 2007), referred to hereafter as dS05 and dS07, respectively. In this redress of the theory, we (section 2) briefly review the multicomponent reactive transport mole balance formulation when all the reaction rates are sufficiently fast on the time scales of observation; (section 3) clarify the number of mixing ratios that may be used for a given problem and recast the expression for components solution; (section 4) fix an error in the key result equation (13) of dS07; (sections 4.1 and 4.2) discuss the identification of the end-members and the impact of changes to the mineral assemblage; and (section 5) address the nonuniqueness of the (required) identification of secondaries in applying the method to the common case where more than one mineral equilibrium reaction is involved. 2. Summary of the Formulation of the Multicomponent Equilibrium Reactive Transport System When N R equilibrium reactions occur among a number N S of chemical species, techniques of linear algebra can be applied to reduce the N S mole balance expressions (one per species) to N S –N R mole balance expressions, one per ‘‘component.’’ Construction of components is an elementary exercise in modeling equilibrium reaction networks and the stuff of textbooks and monographs (e.g., Bethke 2006; Lichtner, 1992; Lichtner, 1996; Morel & Hering, 1993; Steefel, 1992; Steefel & MacQuarrie, 1996; Wolery, 1992). In short, one associates a single chemical species (‘‘secondary’’) with each equilibrium reaction, and writes the reactions in terms of the remaining (‘‘primary’’) species, so that the secondaries appear only once, in their associated reaction, and not in any other reaction. This is always possible when reactions are independent. Then in the mole balance expressions, one eliminates the reaction rates by substituting the material derivatives of the secondaries for the occurrences of the (sufficiently fast on the time scales of observation) reaction rates in the mole balance expressions of the primaries. (In batch models, the material derivatives are ordinary time derivatives; in reactive transport scenarios they are partial time derivatives and transport operators.) Because each reaction corresponds to the material derivative of one and only one secondary species, by construction, this can be done easily. The resulting mole balance expressions give an N S –N R ODE (PDE) system for linear combinations of primary and secondary species interacting in reactive batch (reactive transport) with all equilibrium reactions eliminated, and so in the absence of other, e.g., kinetically controlled reactions, the right-hand side of this ODE (PDE) system is zero and the dependent variables termed components act as conservative (i.e., not affected by reactions) species. The presence of immobile minerals disrupts the definition of components because they do not move while their associated primary or secondary aqueous species do. Consider transport and interaction of N S chemical species, the first N C of which are immobile mineral species, and all of which may interact via N R chemical reactions that have a vector of reaction rates r. The N R chemical reactions may be expressed as 0() Sec;S0 ea;2I ac a0 a a00 a 2 6 6 43 7 7 5 (1) where a c is the vector of N C mineral species, a0 ais the vector of N S –N C –N R ‘‘primary’’ aqueous species, a00 ais the vector of N R ‘‘secondary’’ aqueous species; Sec (N R xN C ) and S0 ea(N R 3(N S –N C –N R )) are the Water Resources Research 10.1002/2017WR020759 GINN ET AL. ANALYTICAL SOLUTION TO REACTIVETRANSPORT 2
stoichiometric submatrices providing the moles of mineral species a c and primary aqueous species a0 a; respectively, contributing to the row-wise reactions per unit of secondary species a00 a, and where subscript ‘‘a’’ means ‘‘aqueous.’’ Iis the N R 3N R identity matrix, and so every independent reaction has one and only one secondary associated with it which appears nowhere else in the reaction system. There are multiple ways to assign primaries and secondaries. Denoting by c0 aand c00 a, the moles per aqueous volume of primary and secondary species, respectively, and assuming activity coefficients of both solutes and minerals are unity, the law of mass action can be written as a set of equations: log c00 a5S0 ealog c0 a2log K(2) Note that mineral equilibria are included in this system despite the absence of mineral activities that are assumed unity. Writing a reaction network in this way with a subset a00 aof the reactants isolated to singleton appearances as secondaries can always be done as a result of the phase rule and when the reactions are independent (e.g., Steefel & MacQuarrie, 1996, p. 99, with exceptions due to dependent reactions discussed on p. 89), and allows formal reduction of the number of unknowns as will be shown in batch (equations (4)) and reactive transport (equations (7)) formulations that are spanned by the primary chemical species a0 a, which thus serve as a basis for the problem in the sense of vector spaces. This allows us to reduce the original N S mole balance equations to N S –N R mole balances of ‘‘components’’ that are linear combinations of singleton primary and multiple secondary species concentrations. Introducing the molar concentrations where mcare moles of mineral species per unit bulk volume and nis porosity, mole balance of the N S chemical species can be written in terms of the reaction rates r, as (e.g., Lichtner, 1996; Steefel & MacQuarrie, 1996): @mc @t5ST ecr(3a) @nc0 a @t2Lnc0 a 5S0T ear(3b) @nc00 a @t2Lnc00 a 52Ir (3c) Note that in equations (3a) we adopt only aqueous secondaries, so henceforth all minerals (stable since the mineral assemblage is assumed a constant) are treated here as primaries. If the reactions are treated at equilibrium always, then the reaction rates rare sufficiently fast on the time scale of observation and only limited by the capability of the reactants to meet, and are eliminated by substitution of the left-hand side of the secondaries’ mole balances (3c) for rin the mole balances for minerals (3a) and for primaries (3b). We do this first for the case of no transport (i.e., L5null and the partial derivatives become total derivatives in equations (3a)) in which case (3a) and (3b) with substitution of (3c) become dm dt 50 (4a) dnu dt 50 (4b) where N C mineral and N U aqueous components are defined, respectively, by m5mc1nST ecc00 a(5) u5c0 a1S0T eac00 a(6) A simple example formulation following equations (1–6) is given in Appendix A. The solution procedure (for constant n) starts by noticing that the solution of (4) for homogeneous initial conditions is m5m0and u5u0, the subindex indicating the initial values. Then (2) and (6) become a system of N R 1N U algebraic equations that can be solved with simple numerical models. Finally from (5) it is possible to obtain the mc components explicitly (N C equations). The alternative is to solve together the full system of N C 1N U 1N R 5N S ODEs with N R law of mass action equation (2) that can be solved with combined time stepping and Newton-Raphson algorithm. Details of these classical formulations are given in, e.g., Steefel Water Resources Research 10.1002/2017WR020759 GINN ET AL. ANALYTICAL SOLUTION TO REACTIVETRANSPORT 3
and MacQuarrie (1996) and Bethke (2006), with further attention to electroneutrality, the phase rule, and mineral formation, as well as basis swapping and mineral elimination and other extended topics. In the case of transport and equilibrium reactions, elimination of rin (3) yields @mc @t5ST ec 2@nc00 a @t1Lnc00 a (7a) @nu @t1LnuðÞ50 (7b) Note the disruption in analogy caused by transport: aqueous components uin (7b) are just as useful as they were in (4b), but mineral components mare not as useful in (7a) as they were in (4a) because their corresponding primary species (minerals m c ) do not move, unlike their respective secondaries nST ecc00 a, and so while aqueous components uare conservative per (7b), minerals per (7a) do not solve an independent conservation expression and cannot be solved in terms of m c alone. This inconvenience is ultimately what blocks analytical solutions to problems with varying mineral assemblages as described in section 4.2. This system (7) of N C 1N U equations is closed when it is combined with the N R nonlinear equilibrium law of mass action equation (2) and component definitions (6), giving N C 1N U 1N R 1N U 5N S 1N U equations with N S 1N U unknowns. The simplest classical workflow of a time stepping solution to calculate mineral moles over time is to: solve (7b) for u, that is then used in (6) to obtain an expression for c0 ain terms of c00 a, which in turn is substituted in (2) to get log c00 a5S0 ealog u2S0T eac00 a 2log K as done in codes such as PHREEQCII (Parkhurst & Appelo, 1999) to obtain c00 a, which allows solution of (7a) for m c , per time step. This and other more sophisticated law of mass action (LMA)-based schemes are described, e.g., in Steefel and MacQuarrie (1996) and Bethke (2006), and recently reviewed in Steefel et al. (2015), as well as in the book Zhang et al. (2012) that discusses the major codes developed on this basis. Additional surveys are found in Steefel et al. (2005) on applications in earth sciences and in MacQuarrie and Mayer (2005) on reactive transport in fractured media. As noted in Steefel et al. (2015), ‘‘Other approaches are possible in which kinetic and equilibrium reactions are decoupled. This approach allows for the use of free energy minimization routines.’’ The origin of this ‘‘Gibbs energy minimization’’ (GEM) approach is summarized in Steefel and MacQuarrie (1996, p. 100) and in Bethke (2006, p. 3, where the controversy between proponents of LMA versus GEM proponents is colorfully reviewed). Recent contributions to the GEM approach include Kulik et al. (2013) and Leal et al. (2014, 2016a, 2016b). Leal et al. (2016b) hybridized GEM with LMA to construct an ‘‘extended LMA’’ method where equilibrium is calculated at each time step using Lagrange multipliers to solve the GEM problem, with a wide set of LMAs (thus the extended) that covers all possible unstable phases. Here since we assume the simple case of one stable aqueous phase, and a number of stable mineral phases making up the mineral assemblage, and because our focus is on developing analytical solutions to mixing-limited reactions, we build on the LMA approach for which speciation code modules are widely available (e.g., Charlton & Parkhurst, 2011). The form of (7a) suggests a more direct approach to calculating mineral moles over time, that takes advantage of the assumed wholly equilibrium reaction network and that relies on the transport of the secondaries c00 aalone, an approach that was originally developed in dS05 and dS07 (summarized below). We next introduce the conversion of (7a) using the approach of dS05/dS07, clarifying a few important issues/errors on the way in sections 3 and 4, and then turn to the question of how to define the secondaries in the general case of multiple minerals in section 5. 3. Clarification of the Number of Mixing Ratios That May Be Used DS05 showed that, in the case of constant porosity and equilibrium coefficients (7a), and assuming that the transport operator includes advection and dispersion with tensor hydrodynamic dispersion coefficient D, the bracketed term of (7a) is Water Resources Research 10.1002/2017WR020759 GINN ET AL. ANALYTICAL SOLUTION TO REACTIVETRANSPORT 4
2@nc00 a @t1Lnc00 a 5nX Nu i51X Nu j51 @2c00 a @ui@uj rTuiDruj(8) This resulted from making use of the fact that c00 a5c00 aux;tðÞðÞthrough equations (6) and (2). The second derivatives of the secondary species concentrations are taken with respect to the concentrations of the component species. This result, which gives an analytical solution for the bracketed term of (7a) that successfully decouples reactions and transport through the first and second factors of the sum, respectively, was generalized in dS07 to the case where transport is entirely characterized through index species ai; termed ‘‘mixing ratios,’’ with iindicating boundary of origin, as follows. The mixing ratio aix;tðÞis the solution to the nonreactive transport of a tracer emanating from time or space boundary iwith unity boundary or initial condition there and zero elsewhere, so that 8i;0<aix;tðÞ<1, and X Ni i51 aix;t ðÞ 51 (9) where N i is the number of mixing ratios we want to consider (generally the number of chemically distinct aqueous boundary/initial conditions, and most frequently named end-members, as in Pelizardi et al., 2017). This allows the aqueous components, vector u, to be expressed as ux;tðÞ5X Ni i51 uiaix;tðÞ (10) where uiis the end-member component vector corresponding to the composition of the solution at the ith boundary. Thus, one can find the component vector solution u(x,t) given the i51, ...,N i boundary component lists uiand the (mathematical) solution for transport of each passive tracer a i (x,t) emanating (with unit b.c.) from each of the N i respective boundaries. Only N i –1 such functions are needed, however, because of the restriction imposed by equation (9), providing for instance, aNi512PNi21 i51aix;tðÞ, allowing us to rewrite 10 as ux;tðÞ5X Ni21 i51 Duiaix;tðÞ1uNi(11) where Duiui2uNi. While in dS07 equations (9) (paragraph 15) and (10) (equation (12)) are pointed out, (11) is not. This is relevant because (11) tells us that if we use N i – 1 end-members, we must preprocess the end-member components into Duiinstead of using ui, and, later we are going to be relying on partial differentiation with respect to the ai. In practice, either N i –1orN i end-members may be used as noted in the next section. 4. Fixing an Error in the Key Result Equation (13) of De Simoni et al. (2007) Continuing with dS07, the generalization of equation (8) for the case of mixing ratios appears as equation (13) in dS07. However, that form is ambiguous due to unspecified upper limit of summation as just noted, and erroneous due to the use of second derivatives in aiwithout cross-derivatives. The incorrect form given as (13) in dS07 (with our left-hand side replacing the reaction rates rof dS07 which is mere convention and not a problem) is 2@nc00 a @t1Lnc00 a 5nX i @2c00 a @a2 i rTaiDrai(12) and the correct form is 2@nc00 a @t1Lnc00 a 5nX Ni21 i51X Ni21 j51 @2c00 a @ai@aj rTaiDraj(13) This equation is derived by writing c00 a5c00 aax;tðÞðÞ(a5a i (x,t), i 51,...,N i – 1) and expanding the terms on the left-hand side by the chain rule as shown in Appendix B. (The incorrect form 12 sufficed for all the Water Resources Research 10.1002/2017WR020759 GINN ET AL. ANALYTICAL SOLUTION TO REACTIVETRANSPORT 5
examples presented and cited in dS07 because all of those examples involved either 2-D steady state or 1- D transient problems so that N i –151.) With this result (7a) becomes: @mc @t5nST ec X Ni21 i51X Ni21 j51 @2c00 a @ai@aj rTaiDraj "#(14) This relation gives us a new way to solve for the mineral accumulation (by precipitation or dissolution) rates, in terms of the passive transport of the mixing ratios and the Hessians of each term of the vector c00 aaðÞthat tells how the secondary aqueous species concentrations depend on the mixing ratios through speciation. The latter is a tabulation calculation that can be done completely independently of transport. Thus, this relation effectively factors reactions and transport. As a final point, one may suspect that one must use only the N i – 1 independent ratios because partial differentiation with respect to one of the airequires the other ai be held constant: however, this is erroneous, as pointed out by an anonymous reviewer, and in fact the same result is obtained when all N i end-members are used as long as the system of equations knows that they sum to unity. This scheme gives an analytical solution to multicomponent reactive transport problems given: invariant mineral assemblage, closed-form solutions for the mixing ratios a i (x,t), i 51,...,N i – 1, and the calculated Hessians of each term of the vector c00 aaðÞ, as follows. Step 1: solve (11) for ux;tðÞ; step 2: solve (6) with the law of mass action equation (2) for c0 aand c00 aand solve (14) for rates of change of mineral moles m c . Note that the Step 2 calculation of mineral rates (that requires only a i (x,t) and their gradients) is completely independent of the calculation of the aqueous species c0 aand c00 a, and vice versa. There are no numerical grid, operator-splitting, or time-discretization errors, and mineral moles can be computed a posteriori by numerical integration of equation (14). As noted by an anonymous reviewer the Hessians in (14) may be estimated by finite differences or by combining (2), (6), and (11) to obtain an expression for c00 ain terms of a, and differentiating twice. The latter may give fully analytical, albeit quite complex, forms. Note that the chemistry aspects of the solution for mineral mole concentrations are exclusively captured in the second derivative (Hessian) terms, each of which provide a mapping from (x,t) through the mixing ratios ai, to the value of the second derivatives of each secondary with respect to pairs of mixing ratios. Given a particular mineral assemblage and N i – 1 mixing ratios, one may tabulate the Hessian of each component of c00 awith respect to each possible pair of the N i – 1 mixing ratios. This may be done as noted in dS07 numerically or by curve fitting, but there the suggestion was erroneously for only the diagonal terms of the Hessian. In fact one needs the full Hessian, including the cross-terms as shown in equation (14). For instance, assume 3-D (could be 2-D) transient reactive transport problem with N i –153, for each component of vector c00 a, one would need to fit all second derivatives (i.e., with respect to: ai,aj;i,j51,..., 3, with a total of six as Schwartz’s Theorem applies). Each of these 6N R second derivatives would be mapped a priori over the three-dimensional domain (defined in all the internal points of a tetrahedron limited by points [0,0,0], [1,0,0], [0,1,0], [0,0,1] in space [a1,a2,a3]). This task needs only be done once per mineral assemblage and can then serve as a look-up table for any problem with the same number of mixing ratios and the same minerals, resulting in formidable savings in the solution over that of the classical approach that requires solving (2) with (7) every time step on a spatial grid. 4.1. Identification of the End-Members Defining the end-members becomes critical. One option consists of making a partition of the boundary and running the conservative transport equation for a homogeneous problem where the initial or the boundary value is set to the unity. This is most probably not the smartest solution. We suggest to obtain N i from a combination of the inverse problem and equation (11). The choice is based upon the actual hydrogeological setup that would indicate potential sources of water that eventually reach and mix within the study area. Each one of the end-members is then characterized by a given chemical signature that can be stated in terms of components. There is a compromise in the total number. Setting a large number for N i allows for a large degree of flexibility in reproducing observations; on the other hand, it would reduce the robustness in the estimation of the aivalues at each individual point in space and time. Again, there is nonuniqueness in this process. Water Resources Research 10.1002/2017WR020759 GINN ET AL. ANALYTICAL SOLUTION TO REACTIVETRANSPORT 6
Once the number of end-members is set, there is a need to characterize their chemical signatures. This is based both on a priori knowledge of the recharge or contributing sources of groundwater, plus on the actual measurements of water sampled at the site. The a posteriori chemical signatures can be obtained with the methodology outlined in Carrera et al. (2004) and in Pelizardi et al. (2017). An iterative process can be used so that if two chemical signatures are quite similar it would be possible to consider them as the same end-member, recomputing again all chemical compositions. 4.2. What About Changes to the Mineral Assemblage? Equation (14) can be used in place of (7a) in any conventional time stepping solution workflow, or in the analytical approach outlined above when the mineral assemblage remains the same everywhere in the domain, as demonstrated in dS07. But in fact the minerals initially present may be heterogeneous in their occurrence, may dissolve completely in some parts of the domain, and equally challenging, some minerals not originally present may come into existence. The treatment of this aspect is currently not within the capability of the dS07 approach (despite the suggestion in paragraph 55, dS07 that it is), because when the mineral assemblage changes with space, the structure of u(and of c0 a,c00 a, and S0T ea) becomes a property of space through (6), i.e., an Eulerian quantity, that must be updated as minerals (dis)appear at different times and points in space. For instance, when a solution previously in equilibrium with calcite moves into a place without calcite, the length of umust increase by one because there is one less reaction in the reaction network. That is, while conventional basis-swapping can always be used to make a basis given the minerals that are present (e.g., Bethke, 2006), the part of the basis corresponding to the aqueous components u changes in dimension, preventing mathematical mixing of the components corresponding to different bases. This challenge so far requires a numerical discretization of space which defeats the relative computational simplicity of the mixing ratios approach, and is a key area for future study of the mixing ratios approach. One promising possibility is to combine the extended LMA approach of Leal et al. (2016b) with the scalar dissipation rate concept to reconstruct (14) in a way that admits varying mineral assemblages. 5. Which Species Do We Use as the Secondaries and How Do We Identify the Corresponding Matrices S ec and S0 ea When multiple Minerals Are Present? The purpose of this section is to introduce and demonstrate a direct way to compute the relevant stoichiometric matrices needed for the dS07 approach when multiple minerals (that may share ions) are involved. Mineral reactions are assumed independent (e.g., aragonite and calcite are treated as the same mineral) so that minerals can be expressed as independent combinations of primary species. The fact that the choice of secondaries is nonunique means that the vector of secondary species concentrations c00 a, and so the bracketed quantity in (14), are not uniquely defined. This is a pragmatical and not fundamental problem because for every distinct set of secondaries there is a corresponding ST ec so that the right-hand side of (14) (and (7a)) itself is unique and invariant of the secondaries selection. Nevertheless, the identification of the secondaries is still a requirement for writing equation (14) and since this is not uniquely determined when using practical computational codes for the solution of (2) such as PHREEQC, this requirement leaves the solution of more realistic problems with multiple minerals ambiguous. Thus, applications of the dS05/dS07 approach are heretofore mainly upon simple systems, e.g., dS07 and Dreybrodt et al. (2009) use Ca11 as the secondary for calcite mineral equilibrium (termed ‘‘Ceq’’ in Romanov & Dreybrodt, 2006) and no other minerals used, and Guadagnini et al. (2009) used total calcium and manually calculated S ec (gathered all species containing Ca and in aqueous form), without explaining why. Thus it is not straightforward how to apply the dS07 approach for three reasons: (1) multiple choices for the set of secondaries exist, (2) the manual construction of S ec (as well as S0 ea) for each choice is manual, and (3) in the natural case of multiple minerals sharing an ion, the secondaries appearing in one mineral may appear in another. For more realistic simulations involving a full suite of compounds that exist in environmental aqueous solutions, or when available multicomponent codes such as PHREEQC are used with comprehensive thermodynamic databases including very many aqueous and mineral species by default, we need a simple way to determine a set of feasible secondaries c00 aand corresponding matrices S ec and S0 ea for a given problem that works for the general case. This would allow the modeler wishing to apply the dS07 approach to more realistic multimineral problems to select from the set of feasible secondaries c00 aand to Water Resources Research 10.1002/2017WR020759 GINN ET AL. ANALYTICAL SOLUTION TO REACTIVETRANSPORT 7
immediately calculate the S ec and S0 ea matrices needed for computations of rates of mixing-limited reactions in systems with multiple minerals possibly sharing ions. Here we outline such a method. Our approach is to formulate the reaction network twice, once with all the minerals out of the basis (this is called the ‘‘reference’’ basis), and once with all the minerals included in the basis (this is called the ‘‘new’’ basis). Note that while there may be multiple ways to write the reference basis, the ions or compounds comprising the minerals are necessarily primaries in all possible versions because the role of secondary is already taken by the mineral per mineral reaction, by construction. Thus, for any given reference basis, the question is which of the ions or compounds comprising the minerals will be swapped out of the basis when the minerals are swapped into the new basis? Enumeration of the possible permutations of this new basis gives the set of possible secondaries for the given mineral assemblage. We first show how to determine the matrices S ec and S0 ea for any one of these new bases. The procedure is a novel application of the mathematics of basis swapping as described in Bethke (2006) and relies on the linear algebra of basis swapping, a basic tour through which is given in Appendix C. Because the old basis necessarily contains all the ions needed to make the minerals, the new basis can be written as a linear transformation of the old basis: bNew5Tb Ref (15) For such a transformation of the basis of any vector space, the components of a vector in the old basis are converted to those of the same vector in the new basis by (Lipschutz, 1968, p. 153; note that our Tis Lipschutz’ P T and is Bethke’s b): vNew5T21 TvRef (16) Because the material derivatives of the components of the reaction network are vectors in the vector space defined by the basis, then they too can be converted this way leading to _ uNew5T21 T_ uRef (17) and because the new components vector uNew contains the minerals, this gives us a way to calculate the rate of change of mineral species as linear combinations of the rates of change of that mineral’s dissolution ions that necessarily appear in the old components vector u Ref . An example of this conversion is given in Appendix C. For present purposes, this does not provide complete information on S ec however, because the composition of the old components (e.g., all the species contributing to one component, such as carbonate(s)) is not explicit in the above equations. To fix this, we write the reaction network according to the two bases, and then find a relation between their respective stoichiometric matrices that gives the needed information. The reaction system corresponding to the ‘‘New’’ basis (minerals are included in the basis) is already presented as 0() Sec;S0 ea;2I ac a0 a a00 a 2 6 6 43 7 7 5 (18) which can be written with secondaries (entirely aqueous by construction) on the left-hand side as a00 a() Sec;S0 ea ac a0 a "# (19) The modeler must split these New basis aqueous secondaries a00 ainto: a00 ao that will remain secondaries in the ‘‘Reference’’ basis, and the remainder a00 ac, that wlill become primaries in the ‘‘Reference’’ basis where they will replace the minerals. Then the reaction system in the ‘‘New’’ basis is expressed as a00 ac a00 ao "# () Sec;S0 ea ac a0 a "# (20) The same reaction network expressed in the ‘‘Reference’’ basis has a00 ac as primaries replacing minerals ac that appear as secondaries in the Reference basis: Water Resources Research 10.1002/2017WR020759 GINN ET AL. ANALYTICAL SOLUTION TO REACTIVETRANSPORT 8
ac a00 ao "# () R00 eac;R0 ea a00 ac a0 a "# (21) Equation (21) can be written with partitioned matrices P00 eac (N C xN C ), Q00 eac (N R –N C3 N C ), P0 ea (N C 3N S –N R – N C ), and Q0 ea (N R –N C 3N S –N R –N C ), as ac a00 ao "# () P00 eac P0 ea Q00 eac Q0 ea "# a00 ac a0 a "# (22) and then with 0ao (N C xN R –N C zero matrix), Iao (N R –N C 3N R –N C identity), Ic(N C 3N C identity), and 0c(N R –N C 3N C zero matrix) as 2P00 eac 0ao 2Q00 eac Iao "# a00 ac a00 ao "# () 2Ic 0c P0 ea Q0 ea 2 43 5ac a0 a "# (23) where the bracketed matrix on the left-hand side is square with dimensions N R xN R and that on the righthand side has dimensions N R x(N S –N R ). While there may be multiple choices for the swapping species a00 ac, the selection is not totally arbitrary because a00 ao remain secondaries in both (20) and (21). Thus, a00 ac must be selected so that (per (20)) they can be constructed from acand a0 a. This is achieved by selecting a00 ac so that square P00 eac is invertible. Because the mineral reactions are independent, the matrix P00 eac P0 ea is of full row rank N C , and there are (generally multiple) choices of the N C columns of it corresponding to the a00 ac from which one can compose invertible P00 eac. This is not difficult to see in practice because if the a00 ac were to be chosen so that P00 eac were singular then the mineral reactions corresponding to the first N C rows of (22) would not be independent. With invertible P00 eac we finally isolate the secondaries of the previous ‘‘New’’ basis by premultiplying by the inverse of the bracketed matrix on the left-hand side, as a00 ac a00 ao "# () 2P00 eac 0ao 2Q00 eac Iao "# 212Ic 0c P0 ea Q0 ea 2 43 5ac a0 a "# (24) the inversion can be performed using the relation for 2 32 block matrix inversion to write (24) as a00 ac a00 ao "# () 2P00 eac21 2Q00 eacP00 eac21 0ao Iao 2 43 5 2Ic 0c P0 ea Q0 ea 2 43 5ac a0 a "# (25) By equivalence of (20) and (25) we have an expression for the sought-after matrices given any valid specification of secondaries per mineral reaction a00 ac: Sec;S0 ea 5 2P00 eac21 2Q00 eacP00 eac21 0ao Iao 2 43 5 2Ic 0c P0 ea Q0 ea 2 43 5(26) which renders S ec and S0 ea, respectively, as, Sec 5 P00 eac21 Q00 eacP00 eac21 "# (27a) S0 ea 5 2P00 eac21P0 ea 2Q00 eacP00 eac21P0 ea1Q0 ea "# (27b) Let us demonstrate the utility of (27) with an example that includes two minerals, calcite and magnesite. We write the reaction system in the Reference basis {carbonate, magnesium, water, calcium, protons}, with secondaries {calcite, magnesite, hydroxyl ion, bicarbonate, and calcium hydroxide}: Water Resources Research 10.1002/2017WR020759 GINN ET AL. ANALYTICAL SOLUTION TO REACTIVETRANSPORT 9
CO22 3as secondaries instead of calcite and bicarbonate, the new components in this case would satisfy _ uNew Ca uNew CO3 uNew H2O uNew H 2 6 6 6 6 6 6 6 4 3 7 7 7 7 7 7 7 5 5 10001000 011021100 002110010 0012112101 2 6 6 6 6 6 4 3 7 7 7 7 7 5 CaCO3 HCO2 3 CO2aqðÞ OH2 Ca11 CO— 3 H2O H1 2 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 4 3 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 5 (C6) with the new basis of calcite, bicarbonate, water and protons. Notice that similar to (C5), here we have highlighted in bold the primaries and the corresponding columns (becoming the identity matrix), so with a proper rearrangement in the species vector we could write it again as S0T ea;I .Notice also that the two matrices S0T ea in (C5) and (C6) are different, to adapt to the choice of primary species done by the modeler. One may obtain the new components from the original components using the same procedure as outlined above for the Elementary case. First we find the transformation matrix that gives the new basis in terms of the reference basis, CaCO3 HCO2 3 H2O H1 2 6 6 6 6 6 6 6 4 3 7 7 7 7 7 7 7 5 5 1100 0101 0010 0001 2 6 6 6 6 6 4 3 7 7 7 7 7 5 Ca11 CO— 3 H2O H1 2 6 6 6 6 6 6 6 4 3 7 7 7 7 7 7 7 5 Thus the transformation matrix Tis T5 1100 0101 0010 0001 2 6 6 6 6 6 4 3 7 7 7 7 7 5 and the transpose of its inverse is T21 T5 1000 21100 0010 12101 2 6 6 6 6 6 4 3 7 7 7 7 7 5 and if we use this matrix to multiply the original components, Water Resources Research 10.1002/2017WR020759 GINN ET AL. ANALYTICAL SOLUTION TO REACTIVETRANSPORT 16
T21 T UCa UCO3 UH2O UH 2 6 6 6 6 6 6 6 4 3 7 7 7 7 7 7 7 5 we obtain the new components, T21 T uCa uCO3 uH2O uH 2 6 6 6 6 6 6 6 4 3 7 7 7 7 7 7 7 5 5 1000 21100 0010 12101 2 6 6 6 6 6 4 3 7 7 7 7 7 5 10001000 11100100 002110010 012210001 2 6 6 6 6 6 4 3 7 7 7 7 7 5 CaCO3 HCO2 3 CO2aqðÞ OH2 Ca11 CO— 3 H2O H1 2 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 4 3 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 5 5 10001000 011021100 002110010 0012112101 2 6 6 6 6 6 4 3 7 7 7 7 7 5 CaCO3 HCO2 3 CO2aqðÞ OH2 Ca11 CO— 3 H2O H1 2 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 4 3 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 5 5 uNew Ca uNew CO3 uNew H2O uNew H 2 6 6 6 6 6 6 6 4 3 7 7 7 7 7 7 7 5 as can be seen by comparison to the already determined new components in equation (C6). Notation N i number of time-space boundaries for solution sources (end-members) in the transport. N C number of mineral species in the reaction network. N R number of reactions. N S total number of chemical species in the reaction network. N U (5N S –N R –N C ) number of aqueous components, equal to number of aqueous primary species Following definitions are for the role played by the given symbols in the ‘‘New’’ basis unless otherwise noted aix;tðÞ solution to the nonreactive transport of a tracer emanating from time or space boundary i with unity boundary or initial condition there and zero elsewhere [dimensionless]. Water Resources Research 10.1002/2017WR020759 GINN ET AL. ANALYTICAL SOLUTION TO REACTIVETRANSPORT 17
acN C primary mineral species. a0 aN U (5N S –N R –N C ) primary aqueous species. a00 aN R secondary aqueous species. a00 ac N C secondary aqueous species corresponding to the mineral equilibria. a00 ao N R –N C secondary aqueous species not corresponding to the mineral equilibria. bNew basis vector (of N U dimensional vector space) defining New basis. bRef basis vector (of N U dimensional vector space) defining Reference basis. mcvector of N C bulk-volumetric mineral moles [moles/vol]. Nporosity [volume/volume]. c0 avector of N U aqueous-volumetric moles of primary species [moles/vol]. c00 avector of N R aqueous-volumetric moles of secondary species [moles/vol]. uiend-member component vector corresponding to the composition of the solution at the ith boundary. vNew a vector of N U components in the New basis. vRef a vector of N U components in the Reference basis. 0ao N C 3(N R –N C ) matrix of zeroes. 0c(N R –N C )3N C matrix of zeroes. Iao (N R –N C )3(N R –N C ) Identity matrix. IcN C 3N C Identity matrix. P00 eac N C 3N C upper partition of R00 eac corresponding to mineral equilibria reactions. Q00 eac (N R –N C )3N C lower partition of R00 eac. P0 ea N C 3(N S –N R –N C ) upper partition of R0 ea corresponding to mineral equilibria. Q0 ea (N R –N C )3(N S –N R –N C ), lower partition of R00 eac. R00 eac;R0 ea N R 3(N S –N R ) stoichiometric matrix for the reaction network expressed in the Reference basis. R00 eac N R 3N C stoichiometric submatrix that is columns of R00 eac;R0 ea : R0 ea N R 3(N S –N R –N C ) stoichiometric submatrix that is columns of R00 eac;R0 ea : Sec;S0 ea N R 3(N S –N R ) stoichiometric matrix for the reaction network. Sec N R 3N C stoichiometric submatrix that is columns of Sec;S0 ea corresponding to mineral primaries. S0 ea N R 3(N S –N R –N C ) stoichiometric submatrix that is columns of Sec;S0 ea corresponding to aqueous primaries. TN U 3N U Transformation matrix. References Bethke, C. M. (2006). Geochemical reaction modeling (543 pp.). New York, NY: Oxford University Press. Carrera, J., V azquez-Su~ n e, E., Castillo, O., & Sanchez-Vila, X. (2004). A methodology to compute mixing ratios with uncertain end-members. Water Resources Research,40, W12101. https://doi.org/10.1029/2003WR002263 Charlton, S. R., & Parkhurst, D. L. (2011). Modules based on the geochemical model PHREEQC for use in scripting and programming languages. Computers & Geosciences,37(10), 1653–1663. Dentz, M., Le Borgne, T., Englert, A., & Bijeljic, B. (2011). Mixing, spreading and reaction in heterogeneous media: A brief review. Journal of Contaminant Hydrology,120, 1–17. de Simoni, M., Carrera, J., Sanchez-Vila, X., & Guadagnini, A. (2005). A procedure for the solution of multicomponent reactive transport problems. Water Resources Research,41, W11410. https://doi.org/10.1029/2005WR004056 de Simoni, M., Sanchez-Vila, X., Carrera, J., & Saaltink, M. W. (2007). A mixing ratios-based formulation for multicomponent reactive transport. Water Resources Research,43, W07419. https://doi.org/10.1029/2006WR005256 Dreybrodt, W., Romanov, D., & Kaufmann, G. (2009). Evolution of isolated caves in porous limestone by mixing of phreatic water and surface water at the water table of unconfined aquifers: A model approach. Journal of Hydrology,376(1–2), 200–208. Guadagnini, A., Sanchez-Vila, X., Saaltink, M. W., Bussini, M., & Berkowitz, B. (2009). Application of a mixing-ratios based formulation to model mixing-driven dissolution experiments. Advances in Water Resources,32, 756–766. https://doi.org/10.1016/j.advwatres. 2008.07.005 Kulik, D. A., Wagner, T., Dmytrieva, S. V., Kosakowski, G., Hingerl, F. F., Chudnenko, K. V., & Berner, U. R. (2013). GEMSelektor geochemical modeling package: Revised algorithm and GEMS3K numerical kernel for coupled simulation codes. Computers & Geosciences,17(1), 1–24. Leal, A. M. M., Blunt, M. J., & LaForce, T. C. (2014). Efficient chemical equilibrium calculations for geochemical speciation and reactive transport modelling. Geochimica et Cosmochimica Acta,131, 301–322. Leal, A. M. M., Kulik, D. A., & Kosakowski, G. (2016a). Computational methods for reactive transport modeling: A Gibbs energy minimization approach for multiphase equilibrium calculations. Advances in Water Resources,88, 231–240. https://doi.org/10.1016/j.advwatres.2015. 11.021 Acknowledgments This material is based upon work supported by the National Science Foundation under grant 1417495, A Practical Upscaling of Reactive Transport. Data access statement: this work is focused on theory and does not contain any new data. We thank the Editing team including Harihar Rajaram and Associate Editor Olaf Cirpka and the four anonymous reviewers whose comments improved the paper considerably, and the comments of one of whom quite significantly improved the mathematical development. Water Resources Research 10.1002/2017WR020759 GINN ET AL. ANALYTICAL SOLUTION TO REACTIVETRANSPORT 18
Leal, A. M. M., Kulik, D. A., Kosakowski, G., & Saar, M. O. (2016b). Computational methods for reactive transport modeling: An extended law of mass-action, xLMA, method for multiphase equilibrium calculations. Advances in Water Resources,96, 405–422. https://doi.org/10. 1016/j.advwatres.2016.08.008 Le Borgne, T., Ginn, T. R., & Dentz, M. (2014). Impact of fluid deformation on mixing-induced chemical reactions in heterogeneous flows. Geophysical Research Letters,41, 7898–7906. https://doi.org/10.1002/2014GL062038 Lichtner, P. C. (1992). Time-space Continuum description of fluid-rock interaction in permeable media. Water Resources Research,28, 3135– 3155. Lichtner, P. C. (1996). Chapter 1: Continuum formulation of multicomponent-multiphase reactive transport. In P. C. Lichtner, C. I. Steefel, & E. H. Oelkers (Eds.), Reactive transport in porous media: Reviews in mineralogy (Vol. 34, pp. 1–79). Washington, DC: Mineralogical Society of America. Lipschutz, S. (1968). Schaum’s outline of theory and problems of linear algebra (334 pp.). New York, NY: McGraw-Hill Book Co. Luo, J., Dentz, M., Carrera, J., & Kitanidis, P. (2008). Effective reaction parameters for mixing controlled reactions in heterogeneous media. Water Resources Research,44, W02416. https://doi.org/10.1029/2006WR005658 MacQuarrie, K. T. B., & Mayer, K. U. (2005). Reactive transport modeling in fractured rock: A state-of-the-science review. Earth-Science Reviews,72(3–4), 189–227. https://doi.org/10.1016/j.earscirev.2005.07.003 Morel, F., & Hering, J. G. (1993). Principles & applications of aquatic chemistry, 2nd ed. (587 pp.). New York, NY: Wiley Interscience. Parkhurst, D., & Appelo, C. A. J. (1999). Usesr’s guide to PHREEQC (Version 2)—A computer program for speciation, batch-reaction, one-dimen- sional transport, and inverse geochemical calculations (Water Resour. Invest. Rep. 99–4259). Denver, CO: U.S. Geological Survey. Pelizardi, F., Bea, S. A., Carrera, J., & Vives, L. (2017). Identifying geochemical processes using End Member Mixing Analysis to decouple chemical components for mixing ratio calculations. Journal of Hydrology,550, 144–156. Romanov, D., & Dreybrodt, W. (2006). Evolution of poprosity in the saltwater-freshwater mixing zone of coastal carbonate aquifers: An alternative modeling approach. Journal of Hydrology,329(3–4), 661–673. Sanchez-Vila, X., Fern andez-Garcia, D., & Guadagnini, A. (2010). Interpretation of column exper-iments of transport of solutes undergoing an irreversible bimolecular reaction using a continuum approximation. Water Resources Research,46, W12510. https://doi.org/10.1029/ 2010WR009539 Steefel, C. I. (1992). Coupled fluid flow and chemical reaction: Model development and application to water-rock interaction (PhD thesis, 234 pp.). New Haven, CT: Yale University. Steefel, C. I., Appelo, C. A. J., Arora, B., Jacques, D., Kalbacher, T., Kolditz, O., ...Yeh, G. T. (2015). Reactive transport codes for subsurface environmental simulation. Computational Geosciences,19(3), 445–478. Steefel, C. I., DePaolo, D. J., & Lichtner, P. C. (2005). Reactive transport modeling: An essential tool and a new research approach for the Earth sciences. Earth and Planetary Science Letters,240(2005), 539–558. Steefel, C. I., & MacQuarrie, K. T. B. (1996). Chapter 2: Approaches to modeling of reactive transport in porous media. In P. C. Lichtner, C. I. Steefel, & E. H. Oelkers (Eds.), Reactive transport in porous media: Reviews in mineralogy (Vol. 34, pp. 83–125). Washington, DC: Mineralogical Society of America. Willmann, M., Carrera, J., Sanchez-Vila, X., Silva, O., & Dentz, M. (2010). Coupling of mass transfer and reactive transport for nonlinear reactions in heterogeneous media. Water Resources Research,46, W07512. https://doi.org/10.1029/2009WR007739 Wolery, T. J. (1992). EQ3NR, a computer program for geochemical aqueous speciation-solubility calculations: Theoretical manual, user’s guide, and related documentation (version 7.0) (Rep. UCRL-MA-110662 PT III). Livermore, CA: Lawrence Livermore National Laboratory. Zhang, F., Yeh, G.-T., & Parker, J. C. (Eds.). (2012).Groundwater reactive transport models. Bentham EBook. Retrieved from http://ebooks.benthamscience.com/book/9781608053063/ Water Resources Research 10.1002/2017WR020759 GINN ET AL. ANALYTICAL SOLUTION TO REACTIVETRANSPORT 19