원시데이터 수집 시스템
선정목록으로

Fluctuating hydrodynamics of electrolytes at electroneutral scales

간접 관련 수소연료전지 · (7) MEA(막전극접합체) (6) PEM(고분자전해질막)(5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Aleksandar Donev — Courant Institute of Mathematical Sciences, New York University, New York, New York 10012, USA
  2. Andrew J. Nonaka — Center for Computational Science and Engineering, Lawrence Berkeley National Laboratory, Berkeley, California 94720, USA
  3. Chang-Ho Kim — Center for Computational Science and Engineering, Lawrence Berkeley National Laboratory, Berkeley, California 94720, USA|||Department of Applied Mathematics, University of California, Merced, Merced, California 95343, USA
  4. Alejandro L. Garcia — Department of Physics, San Jose State University, San Jose, California 95192, USA
  5. John B. Bell — Center for Computational Science and Engineering, Lawrence Berkeley National Laboratory, Berkeley, California 94720, USA
  6. Aleksandar Donev — Courant Institute of Mathematical Sciences, New York University, New York, New York 10012, USA
  7. Andrew J. Nonaka — Center for Computational Science and Engineering, Lawrence Berkeley National Laboratory, Berkeley, California 94720, USA
  8. Chang-Ho Kim — Center for Computational Science and Engineering, Lawrence Berkeley National Laboratory, Berkeley, California 94720, USA|||Department of Applied Mathematics, University of California, Merced, Merced, California 95343, USA
  9. Alejandro L. Garcia — Department of Physics, San Jose State University, San Jose, California 95192, USA
  10. John B. Bell — Center for Computational Science and Engineering, Lawrence Berkeley National Laboratory, Berkeley, California 94720, USA
DOI
10.1103/physrevfluids.4.043701
저널
Physical Review Fluids
발행년도
2019
발행기관
American Physical Society
피인용수
16
라이선스
0
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1103/physrevfluids.4.043701
토픽
Electrostatics and Colloid Interactions
OpenAlex ID
W2892305045

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
(6) PEM(고분자전해질막), (5) 연료전지용 수분제어장치(가습기)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
electrolytes, ionic transport, fuel cells, Poisson-Nernst Planck, electroneutrality
판단 근거
이 논문은 전해질 용액 내 이온 수송 및 전기적 중성 상태에서의 유체 역학을 수치적으로 모델링하는 알고리즘을 다룹니다. 이는 코오롱인더스트리의 수소연료전지(PEMFC) 핵심 요소인 이온 전도성 고분자막 및 MEA 내의 이온 이동 현상을 이해하고 시뮬레이션하는 데 간접적으로 활용될 수 있습니다.
R&D 활용 포인트
PEMFC용 고분자 전해질막(PEM) 및 막전극접합체(MEA) 내에서 이온의 확산 및 전기적 이동 메커니즘을 수치 해석적으로 예측하여 성능 및 내구성을 설계하는 데 활용 가능합니다.
평가 입력
본문 98,880자 중 30,032자 발췌

초록

At mesoscopic scales electrolyte solutions are modeled by the fluctuating\ngeneralized Poisson-Nernst-Planck (PNP) equations [J.-P. P\\'eraud et al., Phys.\nRev. F, 1(7):074103, 2016]. However, at length and time scales larger than the\nDebye scales, electrolytes are effectively electroneutral, and the\ncharged-fluid PNP equations become too stiff to solve numerically. Here we\nformulate the isothermal incompressible equations of fluctuating hydrodynamics\nfor reactive multispecies mixtures involving charged species in the\nelectroneutral limit, and design a numerical algorithm to solve these\nequations. Our model does not assume a dilute electrolyte solution but rather\ntreats all species on an equal footing, accounting for cross-diffusion and\nnon-ideality using Maxwell-Stefan theory. By enforcing local electroneutrality\nas a constraint, we obtain an elliptic equation for the electric potential that\nreplaces the Poisson equation in the fluctuating PNP equations. We develop a\nsecond-order midpoint predictor-corrector algorithm to solve either the\ncharged-fluid or electroneutral equations with only a change of the elliptic\nsolver. We use the electroneutral algorithm to study a gravitational fingering\ninstability, triggered by thermal fluctuations, at an interface where an acid\nand base react to neutralize each other. Our results demonstrate that, because\nthe four ions diffuse with very different coefficients, one must treat each ion\nas an individual species, and cannot treat the acid, base, and salt as neutral\nspecies. This emphasizes the differences between electrodiffusion and classical\nFickian diffusion, even at electroneutral scales.\n

본문 98,880자

본문 펼치기
Fluctuating hydrodynamics of electrolytes at electroneutral scales Aleksandar Donev, <sup>1,</sup> <sup>_∗_</sup> Andrew J. Nonaka, <sup>2</sup> Changho Kim, <sup>2, 3</sup> Alejandro L. Garcia, <sup>4</sup> and John B. Bell <sup>2</sup> _1Courant_ _Institute_ _of_ _Mathematical_ _Sciences,_ _New_ _York_ _University,_ _New_ _York,_ _NY,_ _10012_ _2Center_ _for_ _Computational_ _Science_ _and_ _Engineering,_ _Lawrence_ _Berkeley_ _National_ _Laboratory,_ _Berkeley,_ _CA,_ _94720_ _3Department_ _of_ _Applied_ _Mathematics,_ _University_ _of_ _California,_ _Merced,_ _CA,_ _95343_ _4Department_ _of_ _Physics,_ _San_ _Jose_ _State_ _University,_ _San_ _Jose,_ _CA,_ _95192_ Abstract At mesoscopic scales electrolyte solutions are modeled by the fluctuating generalized Poisson-Nernst Planck (PNP) equations [J.-P. Péraud _et_ _al._, Phys. Rev. F, 1(7):074103, 2016]. However, at length and time scales larger than the Debye scales, electrolytes are effectively electroneutral, and the charged-fluid PNP equations become too stiff to solve numerically. Here we formulate the isothermal incompressible equations of fluctuating hydrodynamics for reactive multispecies mixtures involving charged species in the electroneutral limit, and design a numerical algorithm to solve these equations. Our model does not assume a dilute electrolyte solution but rather treats all species on an equal footing, accounting for cross-diffusion and non-ideality using Maxwell-Stefan theory. By enforcing local electroneutrality as a constraint, we obtain an elliptic equation for the electric potential that replaces the Poisson equation in the fluctuating PNP equations. We develop a second-order midpoint predictor-corrector algorithm to solve either the charged fluid or electroneutral equations with only a change of the elliptic solver. We use the electroneutral algorithm to study a gravitational fingering instability, triggered by thermal fluctuations, at an interface where an acid and base react to neutralize each other. Our results demonstrate that, because the four ions diffuse with very different coefficients, one must treat each ion as an individual species, and cannot treat the acid, base, and salt as neutral species. This emphasizes the differences between electrodiffusion and classical Fickian diffusion, even at electroneutral scales. _∗_ Electronic address: [donev@courant.nyu.edu](mailto:donev@courant.nyu.edu) I. INTRODUCTION Better understanding of transport phenomena in electrolytes is important for studying both naturally occurring and man-made systems at small scales. Living cells rely strongly on membrane potentials and the electrodiffusion of ions. Batteries and fuel cells also rely on ionic transport. In both of these examples the length and time scales involved are intractable for molecular dynamics. A more efficient and tractable numerical approach for mesoscopic fluids is fluctuating hydrody namics (FHD), which extends conventional hydrodynamics by including a random component to the dissipative fluxes in a manner consistent with irreversible thermodynamics and the fluctuation dissipation theorem. Access to tools to model systems involving complex electrolyte mixtures with the inclusion of their inherent statistical fluctuations would not only increase our understanding of cellular mechanisms, but also provide a path towards better design tools for bio-engineering applications. In our prior work [1] we formulated a _charged-fluid_ form of the equations of fluctuating hy drodynamics and developed associated algorithms for electrolyte mixtures containing an arbitrary number of ionic or neutral species. Our formulation combined a generalized fluctuating Poisson Nernst-Planck (PNP) equation based on the Maxwell-Stefan formulation of electrodiffusion with the fluctuating low Mach number Navier-Stokes (NS) equation for the fluid flow. In that formula tion, the fluid is considered to be a mixture of incompressible but miscible components (species), each with its own density, and it is not necessary to distinguish a single species as a solvent <sup>1</sup> . For very dilute electrolyte solutions, in the absence of fluctuations the deterministic formulation reverts to the classical PNP equations for the composition, coupled to an incompressible NS equa tion for the fluid velocity. In recent work [2, 3] we have demonstrated that the addition of thermal fluctuations renormalizes the PNP equations to reproduce the Debye-Hückel-Onsager theory for dilute solutions. The charged-fluid formulation is designed for simulations where the spatial grid resolves the Debye length _λD_, which is typically on the order of a few to tens of nanometers. In particular, the time step size in the algorithm used in [1] was limited by _τD_ = _λ_ <sup>2</sup> _D_ <sup>_/D_</sup> <sup>(see Eq.</sup> <sup>(86) in [1]), where</sup> <sup>_D_</sup> is a typical diffusion coefficient. In many practical applications one is interested in modeling bulk electrolytes at length scales much larger than the Debye length, over diffusive time scales much longer than _τD_ . At such scales, the electrolyte is effectively _electroneutral_, and electrodiffusion is 1 This formulation is also useful for modeling ionic liquids. described by the electroneutral limit of the PNP equations [4, 5]. In this paper, we formulate the electroneutral limit of the generalized fluctuating PNP equations and develop a numerical method to solve these equations. In the electroneutral limit, the evolution is constrained to preserve charge neutrality by replacing the standard Poisson equation for the electric field with a variable coefficient elliptic equation. Thus, with only a change of an elliptic equation solver, our algorithm can switch from charged-fluid to electroneutral, allowing us to use the same code to study a broad range of length and time scales. Implicit in a coarse-grained description like FHD is the assumption that each cell (coarse-graining volume) contains sufficiently many ions to justify neglecting the discrete particle nature of molecules. While this assumption is problematic for charged-fluid FHD except for dilute solutions (for which the Debye length is large compared to the inter-ion spacing), in electroneutral FHD the cell dimensions are much larger than the Debye length and therefore typically contain a large number of ions even for dense solutions (for which the Debye length is comparable or smaller than the inter-ion spacing). Additionally, in this work we incorporate chemical reactions in the charged-fluid and electro neutral formulations/algorithms following our prior work on non-ionic mixtures [6]. In the approach developed in [6], fluctuating chemistry is treated using a discrete Chemical Master Equation (CME) formulation, while hydrodynamic transport including mass and momentum diffusion is treated using a fluctuating hydrodynamics semi-continuum formulation. Our numerical algorithm is a modification of the algorithm developed in [6] to replace diffusion by electrodiffusion for both formulations. In [6], we modeled recent experiments [7] studying a gravity-driven instability of a front where an acid (HCl) and a base (NaOH) neutralize each other to form a salt (NaCl). In these prior simulations, we followed the literature [7–9] and modeled the acid, base, and salt as neutral species (HCl, NaOH, and NaCl); we will refer to this as the _ambipolar_ _approximation_ . In reality, however, these species are all strong electrolytes and disassociate into ions (H <sup>+</sup>, OH <sup>_−_</sup>, Na <sup>+</sup>, and Cl <sup>_−_</sup> ). It is well-known that electrodiffusion can be very different than ordinary diffusion because of the strong coupling of the motions of the ions via the electric fields they generate; for example, an ionic species can diffuse against its own concentration gradient [10]. In this work, we use the electroneutral formulation to model the fingering instability at an HCl/NaOH front but treating each ion as a separate charged species. This avoids uncontrolled approximations and allows us to assess the quantitative accuracy of the ambipolar approximation in a multispecies electrolyte. We begin by formulating the stochastic partial differential equations of fluctuating hydrody namics for electrolytes in Section II. We first review the charged-fluid formulation in which the Debye length is resolved in Section II A, and then formulate the electroneutral equations in Sec tion II B. We also discuss the spectra of concentration fluctuations at thermodynamic equilibrium for both charged-fluid and electroneutral formulations in Section II C. We present a second-order predictor-corrector algorithm for both formulations in Section III. The methodology is applied to study a fingering instability at an acid-base front in Section IV. We conclude with some directions for future research in Section V. II. CHARGED-FLUID AND ELECTRONEUTRAL FLUCTUATING ELECTROHYDRO- DYNAMICS We consider an isothermal isobaric mixture of _Ns_ species and use the following notation. Vectors (both in the geometrical and in the linear algebra sense), matrices (and tensors), and operators are denoted with bold letters. The mass density of species _s_ is denoted with _ρs_ and its number density with _ns_, giving the total mass density _ρ_ = <sup>�</sup> <sup>_N_</sup> _s_ =1 <sup>_s_</sup> <sup>_N_</sup> _s_ =1 <sup>_s_</sup> <sup>_ρs_</sup> <sup>and</sup> <sup>total</sup> <sup>number</sup> <sup>density</sup> <sup>_n_</sup> <sup>=</sup> <sup>�</sup> _s_ <sup>_N_</sup> =1 <sup>_s_</sup> _s_ <sup>_N_</sup> =1 <sup>_s_</sup> <sup>_ns_</sup> <sup>.</sup> The mass fractions are denoted with _w_, where _ws_ = _ρs/ρ_, while the number or mole fractions are denoted with _x_, where _xs_ = _ns/n_ ; both the mass and number fractions sum to unity. One can transform between mass and number fractions by _xs_ = _mw_ ¯ _s/ms_, where _ms_ is the molecular mass of species _s_ and the mixture-averaged molecular mass is _m_ ¯ = <sup>_<u>ρ</u>_</sup> _n_ <sup>=</sup> - _Ns_ _s_ =1 _<u>ws</u>_ _ms_ - _−_ 1 _._ A diagonal matrix whose diagonal is given by a vector is denoted by the corresponding capital letter; for example, _W_ is a diagonal matrix with entries _w_ and _M_ is a diagonal matrix of the molecular masses _m_ . The charges per unit mass are denoted by _z_ with _zs_ = _Vse/ms_, where _e_ is the elementary charge and _Vs_ is the valence of species _s_ . The total density of free charges is thus _Z_ = _Ns_ _s_ =1 _ρszs_ = _ρ_ _z_ <sup>_T_</sup> _w_ _._ For an ideal solution the Debye length is given by �1 _/_ 2 _,_ (1) - _<u>ϵkBT</u>_ <u>�</u> _Ns_ =1 _s_ <sup>_ρwsmsz_</sup> _s_ <sup>2</sup> _λD_ = - _<u>ϵkBT</u>_ �1 _/_ 2 = _ρ_ _z_ <sup>_T_</sup> _W Mz_ where _ϵ_ is the dielectric permittivity of the mixture, _kB_ is Boltzmann’s constant, and _T_ is the temperature. A. Charged-fluid Formulation In this section we review the fluctuating hydrodynamics equations for an electrolyte mixture, following the notation in [1]. Unlike this prior work, and following [6], here we make a Boussinesq approximation and assume that the density of the mixture changes only weakly with composition, _ρ_ _≈_ _ρ_ 0. This allows us to use an incompressible approximation of the momentum equation, which greatly simplifies the construction of a numerical algorithm [6]. The dependence of the density on composition is only taken into account in the gravity forcing term. This Boussinesq approximation is certainly valid for moderately dilute electrolyte solutions. We neglect the effects of thermodiffusion and barodiffusion on mass transport and assume constant temperature _T_ and thermodynamic pressure _P_ . The incompressible equations of fluctuating hydrodynamics for an isothermal reactive electrolyte mixture can be obtained by combining terms given in [1] with those given in [6]. Here we summarize the resulting equations. _1._ _Quasi-electrostatic_ _Poisson_ _Equation_ In the electroquasistatic approximation (magnetic effects are neglected), the electric potential Φ( _r_ _, t_ ) satisfies the Poisson equation _∇_ _·_ ( _ϵ_ _E_ ) = _−_ _∇_ _·_ ( _ϵ_ _∇_ Φ) = _Z,_ (2) where the electric field is _E_ = _−_ _∇_ Φ, and the dielectric permittivity _ϵ_ ( _w_ ) can, in principle, depend on composition. The boundary conditions for Φ are standard Neumann conditions for dielectric boundaries or Dirichlet conditions for metallic boundaries. The presence of charges and electric fields leads to a nonzero Lorentz force in the momentum equation given by the divergence of the Maxwell stress tensor _σ_ _M_ = _ϵ_ - _EE_ <sup>_T_</sup> _−_ _E_ <sup>_T_</sup> _EI_ _/_ 2�, _f_ _E_ = _∇_ _·_ _σ_ _M_ = _Z_ _E_ _−_ <sup>_<u>E</u>_</sup> <sup>2</sup> 2 <sup>_∇_</sup> <sup>_ϵ._</sup> In this work we assume that the permittivity is constant, which reduces the Lorentz force to _f_ _E_ = _Z_ _E_ . Using the Poisson equation (2), we can rewrite this in the equivalent form _f_ _E_ = _∇_ _·_ ( _ϵ_ _E_ ) _E_ = [ _∇_ _·_ ( _ϵ_ _∇_ Φ)] _∇_ Φ _,_ which is suitable for both the charged-fluid and the electroneutral formulations [5]. By contrast, as we explain later, the traditional form _f_ _E_ = _Z_ _E_ cannot be used in the electroneutral limit since formally _Z_ _→_ 0 but the Lorentz force does _not_ go to zero in this limit [5]. _2._ _Momentum_ _Equation_ In the Boussinesq approximation, _ρ_ = _ρ_ 0 and conservation of momentum gives the fluctuating incompressible Navier-Stokes equations _<u>∂</u>_ <u>(</u> _<u>ρ</u>_ _<u>v</u>_ <u>)</u> + _∇_ _π_ = _−_ _∇_ _·_ ( _ρ_ _vv_ <sup>_T_</sup> ) + _∇_ _·_ ( _η_ _∇_ <sup>¯</sup> _v_ + Σ ) + _∇_ _·_ ( _ϵ_ _∇_ Φ) _∇_ Φ + _f_ _,_ (3) _∂t_ _∇_ _·_ _v_ = 0 _._ (4) Here, _v_ ( _r_ _, t_ ) is the fluid velocity, _π_ ( _r_ _, t_ ) is the mechanical pressure (a Lagrange multiplier that ensures the velocity remains divergence free), _η_ ( _w_ ) is the viscosity, _∇_ <sup>¯</sup> = _∇_ + _∇_ <sup>_T_</sup> is a symmetric gradient, and Σ is the stochastic momentum flux. The buoyancy force _f_ ( _w_ _, t_ ) is a problem-specific function of _w_ ( _r_ _, t_ ) and can also be an explicit function of time. Based on the fluctuation-dissipation relation, the stochastic momentum flux Σ is modeled as _,_ (5) - _Z_ <sup>mom</sup> + ( _Z_ <sup>mom</sup> ) <sup>_T_</sup> <sup>�</sup> Σ = - _ηkBT_ where _Z_ <sup>mom</sup> ( _r_ _, t_ ) is a standard Gaussian white noise tensor field with uncorrelated components having _δ_ -function correlations in space and time. The two physical boundary conditions for the charged-fluid equations that we consider here are the _no-slip_ condition _v_ = 0 on the boundary, and the _free-slip_ boundary condition, _<u>∂vn</u>_ _vn_ = _v_ _·_ _n_ = 0 and _∂_ _τ_ _<u>∂v∂</u>_ _τ_ _<u>n</u>_ <sup>+</sup> <sup>_<u>∂</u>_</sup> _∂n_ <sup>_<u>v</u>_</sup> <sup>_<u>τ</u>_</sup> (6) _∂n_ <sup>_<u>v</u>_</sup> <sup>_<u>τ</u>_</sup> <sup>=</sup> <sup>0</sup> <sup>_,_</sup> where _n_ is the unit vector normal to the boundary, _τ_ is a unit vector tangential to the boundary, _τ_ _·_ _n_ = 0, and _v_ _τ_ is the tangential component of the velocity. _3._ _Species_ _Equations_ Conservation of mass for each species gives the dynamics of the composition of the mixture, _<u>∂</u>_ <u>(</u> _<u>ρws</u>_ <u>)</u> = _−_ _∇_ _·_ ( _ρws_ _v_ ) _−_ _∇_ _·_ _F_ _s_ + _ms_ Ω _s,_ (7) _∂t_ where we remind the reader that in the Boussinesq approximation density is constant, i.e., _ρ_ = _ρ_ 0. The total diffusive mass flux _F_ _s_ of species _s_ is composed of a dissipative flux _F_ _s_ and fluctuating flux _F_ <sup>�</sup> _s_, _F_ _s_ = _F_ _s_ + _F_ <sup>�</sup> _s,_ (8) and Ω _s_ is a source term representing stochastic chemistry. Note that by summing up (7) over all species we recover (4) since <sup>�</sup> _s_ <sup>_F_</sup> <sup>_s_</sup> <sup>=</sup> <sup>0</sup> <sup>and</sup> <sup>�</sup> _s_ <sup>_ms_</sup> <sup>Ω</sup> <sup>_s_</sup> <sup>=</sup> <sup>0.</sup> <sup>The</sup> <sup>formulation</sup> <sup>of</sup> <sup>the</sup> <sup>chemical</sup> production rates Ω _s_ is taken from [6] and summarized in Appendix A. Diffusion is driven by the gradients of the electrochemical potentials <sup>0</sup> _s_ <sup>(</sup> <sup>_T, P_</sup> <sup>) +</sup> <sup>_<u>kBT</u>_</sup> _µs_ ( _x_ _, T, P_ ) = _µ_ <sup>0</sup> _s_ _ms_ log( _xsγs_ ) + _zs_ Φ _,_ (9) where _µ_ <sup>0</sup> _s_ <sup>(</sup> <sup>_T, P_</sup> <sup>)</sup> <sup>is</sup> <sup>a</sup> <sup>reference</sup> <sup>chemical</sup> <sup>potential</sup> <sup>and</sup> <sup>_γs_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_, T, P_</sup> <sup>)</sup> <sup>is</sup> <sup>the</sup> <sup>activity</sup> <sup>coefficient</sup> <sup>(for</sup> <sup>an</sup> ideal mixture, _γs_ = 1). This gives the dissipative diffusive mass fluxes [1] _F_ = _−ρ_ _W χ_ - Γ _∇x_ + <sup>_<u>m</u>_</sup> <sup><u>¯</u></sup> <sup>_<u>W z</u>_</sup> _kBT_ <sup>_∇_</sup> <sup>Φ</sup> _,_ (10) where _χ_ is a symmetric positive semi-definite diffusion matrix that can be computed from the Maxwell-Stefan diffusion coefficients [6, 11]. Here Γ is the matrix of thermodynamic factors, _H_ _,_ (11) Γ = _I_ + - _X_ _−_ _xx_ <sup>_T_</sup> <sup>�</sup> where the symmetric matrix _H_ is the Hessian of the excess free energy per particle; for an ideal mixture _H_ = 0 and Γ is the identity matrix [11]. The stochastic mass fluxes _F_ <sup>�</sup> are given by the fluctuation-dissipation relation, _F_ - = ~~�~~ 2 ¯ _mρ_ _W χ_ <u>12</u> _Z_ <sup>mass</sup> _,_ (12) where _χ_ 21 is a “square root” of _χ_ satisfying _χ_ <u>12</u> ( _χ_ <u>12</u> ) <sup>_T_</sup> = _χ_, and _Z_ <sup>mass</sup> ( _r_ _, t_ ) is a standard Gaussian random vector field with uncorrelated components. In summary, the composition follows the equation (7), with electrodiffusive fluxes given by the sum of (10) and (12); the chemical production rates are discussed in Appendix A and given by (A5). For dilute species, the expression for the electrodiffusive dissipative fluxes reduces to that in the familiar PNP equations. Specifically, for a species _s_ that is dilute, _xs_ _≪_ 1, we get the familiar Nernst-Planck-Fick law (see Appendix A in [6]) _∇_ _ws_ + <sup>_<u>mswszs</u>_</sup> _∇_ Φ _kBT_ _F_ _s_ _≈−ρ_ <sup>_<u>msDs</u>_</sup> _m_ ¯ solv - _∇_ _xs_ + <sup>_<u>m</u>_</sup> <sup><u>¯</u></sup> <sup><u>solv</u></sup> <sup>_<u>wszs</u>_</sup> _∇_ Φ = _−ρDs_ _kBT_ _,_ (13) where _xs_ _≈_ _m_ ¯ solv _ws/ms_, and _m_ ¯ solv = ( <sup>�</sup> solvent _s_ <sup>_′_</sup> <sup>_ws′/ms′_</sup> <sup>)</sup> <sup>_−_</sup> <sup>1</sup> <sup>is</sup> <sup>the</sup> <sup>mixture-averaged</sup> <sup>molecular</sup> mass of the solvent, which could itself be a mixture of liquids. Here _Ds_ is the trace diffusion coefficient of the dilute species in the solvent, which can be related to the Maxwell-Stefan coefficients involving species _s_ (see (40) in [6]). The stochastic flux also simplifies in the fluctuating PNP equations for dilute species, _F_ - _s_ _≈_ ~~�~~ 2 _ρmswsDs_ _Z_ <sup>mass</sup> _s_ _._ The boundary conditions for (7) depend on the nature of the physical boundary. We consider _non-reactive_ impermeable _walls_ and _reservoirs_ ; reactive boundaries can be accounted for [12] but we do not consider them here. For both kinds of boundaries the normal component of the velocity is zero in the Boussinesq approximation (see Eq. (15) in [13] for a generalization to low Mach number variable-density models). This implies that the normal mass fluxes of all species at walls must be zero, _F_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> = _F_ _·_ _n_ = 0 . Reservoir boundaries are intended to model a permeable membrane that connects the system to a large reservoir held at a specified concentration _w_ resvr, and correspond to a Dirichlet condition on _w_ . B. Electroneutral Formulation The charged-fluid equations (2,3,4,7) suffer from a well-known stiffness: The characteristic Debye length scale _λD_ is typically much smaller than the macroscopic/device scales of interest. Thin Debye boundary layers develop near physical boundaries, with thickness proportional to _λD_ . Outside of these layers, the fields vary much more smoothly on scales much larger than the Debye length. On such scales, the electrolyte is effectively _electroneutral_, and electrodiffusion is described the electroneutral limit of the PNP equations [4, 5]. The electroneutral bulk equations can be justified by formal asymptotic analysis [4, 5]. This analysis leads to an elliptic equation for the potential Φ that forces the evolution to preserve charge neutrality. Here we derive this equation by simply invoking charge neutrality as a local linear _constraint_, _Z_ = _ρ_ _z_ <sup>_T_</sup> _w_ = _ρ_ _Ns_ _s_ =1 _zsws_ = 0 _,_ (14) everywhere in the bulk. By differentiating the constraint _Z_ ( _r_ _, t_ ) = 0 we get _<u>∂Z</u>_ _∂t_ <sup>_<u>∂</u>_</sup> <sup>(</sup> <sup>_ρ_</sup> <sup>_w_</sup> <sup>) =</sup> _<u>∂Z∂t</u>_ <sup>=</sup> <sup>_z_</sup> <sup>_T_</sup> _∂t_ <sup>_<u>∂</u>_</sup> _Ns_ - _zs_ ( _−_ _∇_ _·_ ( _ρws_ _v_ ) _−_ _∇_ _·_ _F_ _s_ + _ms_ Ω _s_ ) = 0 _._ (15) _s_ =1 Because advection preserves _Z_ = 0, _Ns_ _s_ =1 �� _zs_ _∇_ _·_ ( _ρws_ _v_ ) = _∇_ _·_ _ρ_ _Ns_ _s_ =1 _zsws_ _v_ = _∇_ _·_ ( _Z_ _v_ ) = 0 _,_ (16) and reactions conserve charge, <sup>�</sup> _s_ <sup>_N_</sup> =1 <sup>_s_</sup> <sup>_zsms_</sup> <sup>Ω</sup> <sup>_s_</sup> <sup>= 0,</sup> <sup>Eq.</sup> <sup>(15)</sup> <sup>simplifies</sup> <sup>to</sup> _Ns_ _s_ =1 - = 0 _._ (17) - _z_ <sup>_T_</sup> _F_ _zs_ _∇_ _·_ _F_ _s_ = _∇_ _·_ - _Ns_ _s_ =1 _zs_ _F_ _s_ = _∇_ _·_ _1._ _Electroneutral_ _Elliptic_ _Equation_ Using the expressions (10) and (12) for the diffusive mass fluxes, we can rewrite the condition - = 0 as an elliptic PDE for the electric potential, _∇_ _·_ - _z_ <sup>_T_</sup> _F_ - _z_ <sup>_T_</sup> _F_ d _,_ (18) _∇_ _·_ �� _<u>mρ</u>_ <u>¯</u> _kBT_ <sup>_z_</sup> <sup>_T_</sup> <sup>_W χW z_</sup> _∇_ Φ = _∇_ _·_ where _F_ d denotes the diffusive fluxes without the electrodiffusion, _F_ d = _−ρ_ _W χ_ Γ _∇x_ + �2 ¯ _mρ_ _W χ_ 21 _Z_ <sup>mass</sup> _._ We see that in the electroneutral limit, the electric potential becomes a Lagrange multiplier that enforces the electroneutrality condition. It is given by the solution of the modified elliptic equa tion (18), and _not_ by the quasielectrostatic Poisson equation (2). In summary, the fluctuating electroneutral equations we consider in this work are given by (3,4,7,18). It is worth pointing out that the validity of the electroneutral limit requires that _λD_ be small - _−_ 1 _/_ 2. This _everywhere_ in the bulk, where we recall that for an ideal solution _λD_ _∼_ - _z_ <sup>_T_</sup> _W Mz_ requires the presence of some charges everywhere in the domain, that is, one cannot use (18) when parts of the domain are ion-free since in those parts of the domain _λD_ would diverge; an example of a situation not covered by the electroneutral limit would be the diffusive mixing of pure and salty water. In particular, (18) is not uniformly elliptic if in some part of the domain _z_ <sup>_T_</sup> _W χW z_ _→_ 0, i.e., if _zsws_ _→_ 0 for all species _s_ . In practice, for water solutions, it is energetically very unfavorable to remove all ions and purify water to the point where the Debye length would approach macroscopic/device scales <sup>2</sup> . We will therefore assume here that there are sufficiently many ions everywhere in the domain to justify the electroneutral limit (3,4,7,18). _2._ _Boundary_ _Conditions_ Obtaining proper boundary conditions for the electroneutral equations (3,4,7,18) requires a nontrivial asymptotic analysis matching the electroneutral bulk “outer solution” on the outside of 2 For ultra-pure water the ion mass fractions are _≈_ 10 _−_ 10 and the Debye length is a few microns. the Debye layer to the boundary layer “inner solution” inside the Debye layer [5, 14, 15]. Since we are interested here in the electroneutral bulk, what we mean by boundary conditions are the conditions not on the physical boundary itself but rather on the outer boundary of the Debye layer. In the electroneutral limit _λD/l_ min _→_ 0, where _l_ min is the smallest length scale of interest, the thickness of the boundary layer is formally zero and the outer conditions become effective boundary conditions for the electroneutral bulk equations. Though surface reactions can affect the charge density bound to dielectric boundaries (e.g., electron exchange), in this paper we do not consider surface chemistry. Here we will assume that there is _no_ _surface_ _conduction_ in the Debye layer, i.e., we only need to consider normal mass fluxes (the curved surface analysis in [5] shows that curvature does not enter in the leading-order asymptotics) at the outer edge of the double layer. For dielectric boundaries, a careful analysis of the validity of the assumption of no surface currents is carried out in [14], and it is concluded that it is valid only for weakly to moderately charged surfaces. For highly charged dielectric boundaries, surface conduction enters even in the leading-order asymptotic matching. For metals, a careful asymptotic analysis is carried out in [15] and shows that, in regions where the potential jump across the layer is exponentially large (measured with respect to the thermal voltage _kBT/e_ ), surface conduction also enters. Under the assumption of no surface conduction, we first consider the boundary conditions for the electrodiffusion equations (7,18), and then turn our attention to the velocity equations (3,4). We recall that the electrodiffusive mass flux is _F_ = _F_ d _−_ - _<u>mρ</u>_ <u>¯</u> _kBT_ <sup>_W χW z_</sup> _∇_ Φ _._ Since the flux must _locally_ preserve the charge neutrality, _z_ <sup>_T_</sup> _F_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> = 0 on the boundary, where we recall that _F_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> = _n_ _·_ _F_ denotes the fluxes normal to the boundary. This immediately gives the effective Neumann boundary condition for the potential, - _−_ 1 _z_ <sup>_T_</sup> _F_ d <sup>(</sup> <sup>_n_</sup> <sup>)</sup> _<u>∂</u>_ <u>Φ</u> _∂n_ <sup>=</sup> - _<u>mρ</u>_ <u>¯</u> _kBT_ <sup>_z_</sup> <sup>_T_</sup> <sup>_W χW z_</sup> _,_ (19) where _F_ d <sup>(</sup> <sup>_n_</sup> <sup>)</sup> = _n_ _·_ _F_ d. For dilute solutions and impermeable walls, in the deterministic case, one can show that _F_ d <sup>(</sup> <sup>_n_</sup> <sup>)</sup> = 0 which means that (19) becomes a _homogeneous_ Neumann condition for the potential, _∂_ Φ _/∂n_ = 0, which is the boundary condition for a dielectric boundary with no bound surface charge in the charged-fluid formulation. The derivation is well-known for binary dilute electrolytes [5], and it is straightforward to generalize it to dilute multi-ion solutions as follows. From the electroneutrality condition _z_ <sup>_T_</sup> _w_ = 0 we get _z_ <sup>_T_</sup> ( _∂_ _w_ _/∂n_ ) = 0. Focusing on the dilute ions only, we have from (13) that the vanishing of the electrodiffusive flux is equivalent to _<u>∂∂n</u>_ _<u>w</u>_ <sup>+</sup> <sup><u>(</u></sup> <sup>_<u>∂</u>_</sup> _k_ <sup><u>Φ</u></sup> _B_ <sup>_<u>/∂n</u>_</sup> _T_ <sup><u>)</u></sup> _<u>∂</u>_ _<u>w</u>_ _MW z_ = 0 _._ _k_ <sup><u>Φ</u></sup> _B_ <sup>_<u>/∂n</u>_</sup> _T_ <sup><u>)</u></sup> Taking the dot product with _z_ of both sides of this equation, we obtain _∂_ Φ _/∂n_ = 0 because _z_ <sup>_T_</sup> _MW z_ _∼_ _λ_ <sup>_−_</sup> _D_ <sup>2</sup> d <sup>(</sup> <sup>_n_</sup> <sup>)</sup> = 0 . We will assume that <sup>_−_</sup> _D_ <sup>2</sup> _>_ 0. This implies _∂_ _w_ _/∂n_ = 0 and therefore _F_ d <sup>(</sup> <sup>_n_</sup> <sup>)</sup> _∂_ Φ _/∂n_ = 0 also holds on impermeable walls for general mixtures and even in the presence of fluctuations, even though we have not been able to rigorously justify this. It is worthwhile to note that _any_ choice of Neumann boundary condition on the potential gives identical total electrodiffu sive flux _F_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> ; the only physically-relevant boundary condition is that _F_ <sup>(</sup> <sup>_n_</sup> <sup>)</sup> vanish at impermeable walls. Only the Lorentz force in (3), which depends on Φ, is affected by the choice of Neumann boundary condition. While the Lorentz force is essential for modeling electrokinetic flows, it plays a minimal role in the problems we study here, so our choice to enforce a homogeneous condition _∂_ Φ _/∂n_ = 0 for impermeable walls is inconsequential. For reservoir boundaries, _F_ d <sup>(</sup> <sup>_n_</sup> <sup>)</sup> is known at the boundary from the Dirichlet conditions on _w_, and (19) becomes an _inhomogeneous_ Neumann condition for the potential. In summary, at a physical boundary, we impose the following boundary conditions for (7,18): - _F_ d <sup>(</sup> <sup>_n_</sup> <sup>)</sup> = _n_ _·_ _F_ d = 0 and _∂_ Φ _/∂n_ = 0 for impermeable walls. - _w_ = _w_ resvr with _z_ <sup>_T_</sup> w resvr = 0 and (19) for reservoirs. Note that the condition (19) applies irrespective of whether the boundary (wall or membrane) is dielectric (polarizable) or metal (conducting); the effective condition for the potential is always Neumann, even if in the charged-fluid formulation there is a Dirichlet condition on the potential. The electroneutral boundary conditions for the velocity equation (3,4) are even harder to derive. In general, the fluid velocity on the outer boundary of the Debye layer is _not_ zero, even for a no slip boundary. This means that the appropriate velocity boundary condition for the electroneutral equations is a _specified-slip_ condition, _vn_ = 0 and _v_ _τ_ nonzero. However, to our knowledge, the velocity slip has only been computed using asymptotic analysis for binary electrolytes, and this analysis has not, to our knowledge, been generalized to multi-ion mixtures. For dilute electrolytes, slip expressions have been proposed without a careful asymptotic analysis, see for example (4) in [16]. Because an asymptotic analysis for multispecies electrolytes is not available, and because in the example we consider here there are no applied electric fields or highly-charged surfaces (either of which could make the apparent slip velocity large enough to play some role), in this work we will simply use the _same_ boundary condition (no-slip or free-slip) for the electroneutral and the charged-fluid formulations. For no-slip boundaries this means _v_ _τ_ = 0, which is expected to be a good approximation for dielectric boundaries if the surface charge density is sufficiently small. We emphasize, however, that an effective no-slip boundary condition is _not_ appropriate in general (e.g., slip is important for ionic diffusiophoresis), and each specific application requires a careful consideration of the boundary condition. _3._ _Effective_ _Salt_ _Diffusion_ Let us define the vector field - _−_ 1 _z_ <sup>_T_</sup> _F_ d _,_ (20) _g_ amb <sup>(Φ)</sup> <sup>=</sup> - _<u>mρ</u>_ <u>¯</u> _kBT_ <sup>_z_</sup> <sup>_T_</sup> <sup>_W χW z_</sup> which simplifies for deterministic models of dilute electrolytes to _g_ amb <sup>(Φ)</sup> <sup>=</sup> <sup>_−_</sup> <sup>(</sup> <sup>_kBT_</sup> <sup>)</sup> - _<u>s</u>_ <sup>_<u>zsDs</u>_</sup> <sup>_<u>∇</u>_</sup> <sup>_<u>ws</u>_</sup> <u>�</u> _s_ <sup>_msz_</sup> _s_ <sup>2</sup> <sup>_Dsws_</sup> _._ (21) For some specific special cases, the solution of the effective Poisson equation (18) is given <sup>3</sup> by _∇_ Φ = _g_ amb <sup>(Φ)</sup> <sup>.</sup> <sup>This</sup> <sup>is</sup> <sup>sometimes</sup> <sup>stated</sup> <sup>as</sup> <sup>a</sup> <sup>fact,</sup> <sup>see</sup> <sup>for</sup> <sup>example</sup> <sup>Eq.</sup> <sup>(3)</sup> <sup>in</sup> <sup>[16].</sup> <sup>However,</sup> <sup>except</sup> for dilute binary electrolytes and for problems in one dimension, _g_ amb <sup>(Φ)</sup> <sup>is, in general, not a gradient,</sup> unless _w_ (and thus the denominator in (21)) can be approximated to be constant over the domain. For dilute _binary_ electroneutral electrolytes _w_ 2 = _−z_ 1 _w_ 1 _/z_ 2, which in the absence of fluctuations gives <u>(</u> _<u>D</u>_ <u>1</u> _<u>−</u>_ _<u>D</u>_ <u>2)</u> ( _kBT_ ) <sup>_−_</sup> <sup>1</sup> _g_ amb <sup>(Φ)</sup> <sup>=</sup> <sup>_−_</sup> ( _m_ 1 _z_ 1 _D_ 1 _−_ _m_ 2 _z_ 2 _D_ 2) _<u>∇</u>_ _<u>w</u>_ <u>1</u> _w_ 1 <u>(</u> _<u>D</u>_ <u>1</u> _<u>−</u>_ _<u>D</u>_ <u>2)</u> = _−_ ( _m_ 1 _z_ 1 _D_ 1 _−_ _m_ 2 _z_ 2 _D_ 2) <sup>_∇_</sup> <sup>(ln</sup> <sup>_w_</sup> <sup>1)</sup> <sup>_,_</sup> (22) which is indeed a gradient of a function and therefore _∇_ Φ = _g_ amb <sup>(Φ)</sup> <sup>.</sup> <sup>Substituting</sup> <sup>(22)</sup> <sup>into</sup> <sup>Fick’s</sup> law (13) we obtain _F_ 1 = _−ρ_ <sup><u>(</u></sup> <sup>_<u>m</u>_</sup> <sup><u>1</u></sup> <sup>_<u>z</u>_</sup> <sup><u>1</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>m</u>_</sup> <sup><u>2</u></sup> <sup>_<u>z</u>_</sup> <sup><u>2)</u></sup> <sup>_<u>D</u>_</sup> <sup><u>1</u></sup> <sup>_<u>D</u>_</sup> <sup><u>2</u></sup> (23) ( _m_ 1 _z_ 1 _D_ 1 _−_ _m_ 2 _z_ 2 _D_ 2) <sup>_∇_</sup> <sup>_w_</sup> <sup>1</sup> <sup>_._</sup> The effective diffusion coefficient of the salt is therefore the weighted harmonic mean _D_ <sup>amb</sup> = <sup><u>(</u></sup> ( <sup>_<u>m</u>_</sup> _m_ <sup><u>1</u></sup> 1 <sup>_<u>z</u>_</sup> _z_ <sup><u>1</u></sup> 1 <sup>_<u>−</u>_</sup> _D_ 1 <sup>_<u>m</u>_</sup> _−_ <sup><u>2</u></sup> <sup>_<u>z</u>_</sup> _m_ <sup><u>2)</u></sup> 2 <sup>_<u>D</u>_</sup> _z_ 2 _D_ <sup><u>1</u></sup> <sup>_<u>D</u>_</sup> 2) <sup><u>2</u></sup> <sup>_,_</sup> (24) which we will refer to as the _ambipolar_ binary diffusion coefficient. 3 Note that the boundary condition (19) is consistent with _∇_ Φ = _g_ amb <sup>(Φ)</sup> <sup>on</sup> <sup>the</sup> <sup>boundary</sup> <sup>(cf.</sup> <sup>(20)).</sup> This shows that for a dilute binary electrolyte _without_ fluctuations the electroneutral model is equivalent to modeling a binary salt as an uncharged substance with an effective ambipolar diffusion coefficient, i.e., the two ions tend to diffuse together. However, this correspondence is not true in more general cases. Specifically, it is not valid when fluctuations are included, when the system is not dilute, or when there are more than two ions. Although the equivalence is lost, a number of prior studies [6, 7, 9] have used (24) to define effective diffusion coefficients of salts in more general situations. We will refer to this type of approach as the _ambipolar_ _approximation_ and investigate it in detail in Section IV B. C. Thermal Fluctuations Important quantities that can be derived from the fluctuating hydrodynamics equations are the spectra of the fluctuations at thermodynamic equilibrium, referred to as the static structure factors. These structure factors can be obtained from either the more general results derived in [1] for the charged-fluid equations, or, from equilibrium statistical mechanics. It is important to confirm that our electroneutral FHD equations give the correct spectrum of fluctuations in order to justify our formulation of the stochastic fluxes. The matrix of equilibrium structure factors can be expressed either in terms of mass or mole fractions. Here we define the matrix of static structure factors in terms of the fluctuations in the mass fractions _δ_ _w_ around the equilibrium concentrations, which for notational brevity we denote in this section with _w_ without any decoration, - _⋆_ _._ (25) _Ss,s′_ ( _k_ ) = �� _δw_ - _s_ ( _k_ ) �� _δw_ - _s′_ ( _k_ ) where _s_ and _s_ <sup>_′_</sup> are two species (including _s_ = _s_ <sup>_′_</sup> ), _k_ is the wavevector, hat denotes a Fourier transform, and star denotes a complex conjugate. The static factors for an electrolyte mixture with an arbitrary number of species at thermody namic equilibrium are [1, 11] <u>1</u> _S_ = _S_ 0 _−_ <u>�</u> <sup>_<u>S</u>_</sup> <sup><u>0</u></sup> <sup>_<u>zz</u>_</sup> <sup>_T_</sup> <sup>_<u>S</u>_</sup> <sup><u>0</u></sup> (26) <u>�</u> _k_ 2 _λ_ 2 _D_ <sup>+ 1</sup> _z_ <sup>_T_</sup> _S_ 0 _z_ <sup>_,_</sup> where the structure factor for a mixture of uncharged species (i.e., for _z_ = 0) is [11] _S_ 0 = <sup>_<u>m</u>_</sup> <sup><u>¯</u></sup> _ρ_ _,_ (27) - _W_ _−_ _ww_ <sup>_T_</sup> <sup>��</sup> Γ - _X_ _−_ _xx_ <sup>_T_</sup> <sup>�</sup> + 11 <sup>_T_</sup> <sup>�</sup> <sup>_−_</sup> <sup>1 �</sup> _W_ _−_ _ww_ <sup>_T_</sup> <sup>�</sup> and 1 is the vector of 1’s. The Debye length can be generalized to non-ideal mixtures as _<u>ρ</u>_ <sup>2</sup> <sup>_−_</sup> _D_ <sup>2</sup> <sup>=</sup> _ϵkB_ - _X_ _−_ _xx_ <sup>_T_</sup> <sup>�</sup> + 11 <sup>_T_</sup> <sup>�</sup> <sup>_−_</sup> <sup>1</sup> _W z_ _._ (28) _λ_ <sup>_−_</sup> _D_ <sup>2</sup> _<u>ρ</u>_ <sup>2</sup> _<u>mρ</u>_ <u>¯</u> _ϵkBT_ <sup>_z_</sup> <sup>_T_</sup> <sup>_S_</sup> <sup>0</sup> <sup>_z_</sup> <sup>=</sup> _ϵkBT_ <sup>_z_</sup> <sup>_T_</sup> <sup>_W_</sup> Γ See Eqs. (41) and (42) in [11] for a simplification for ideal mixtures, including dilute solutions. The structure factor _SZ_ ( _k_ ) of the total free charge density _Z_ = _ρ_ _z_ <sup>_T_</sup> _w_ is _SZ_ = _ρ_ <sup>2 ��</sup> �� _z_ <sup>_T_</sup> <sup>�</sup> _δ_ _w_ _z_ <sup>_T_</sup> <sup>�</sup> _δ_ _w_ - _⋆_ - = _ρ_ <sup>2</sup> _z_ <sup>_T_</sup> _Sz_ _._ (29) Using the generalized definition of the Debye length (28) allows to conveniently express it as _SZ_ = _ρ_ <sup>2</sup> _z_ <sup>_T_</sup> _Sz_ = - _ρ_ <sup>2</sup> _z_ <sup>_T_</sup> _S_ 0 _z_ - _<u>k</u>_ <sup>2</sup> _<u>λ</u>_ <sup>2</sup> _<u>D</u>_ 1 + _k_ <sup>2</sup> _λ_ <sup>2</sup> _D_ _._ (30) The fact that _SZ_ ( _k_ ) tends to zero for small wavenumbers ( _kλD_ _→_ 0) is a manifestation of the transition to the electroneutral regime at large length scales. It is important to point out that at scales much larger than the Debye length the fluctuations _δ_ _w_ are electroneutral in addition to the electroneutral mean composition _w_ . This means that the composition _w_ + _δ_ _w_ _strictly_ remains on the electroneutral constraint at all times, consistent with our electroneutral formulation. At thermodynamic equilibrium, for length scales much larger than the Debye length, the struc ture factor (26) simplifies to _S_ <sup>(eln)</sup> = lim (31) _kλD→_ 0 <sup>_S_</sup> <sup>=</sup> <sup>_S_</sup> <sup>0</sup> <sup>_−_</sup> <sup>_<u>S</u>_</sup> _z_ <sup><u>0</u></sup> <sup>_<u>zz</u>_</sup> <sup>_T_</sup> _S_ <sup>_T_</sup> 0 <sup>_<u>S</u>_</sup> _z_ <sup><u>0</u></sup> <sup>_,_</sup> and this is the spectrum of fluctuations in composition in the electroneutral limit. Note that _S_ <sup>(eln)</sup> _z_ = 0, as expected from the electroneutrality. For dilute electrolyte solutions, which are necessarily ideal, if we consider two ions of species _s_ and _s_ <sup>_′_</sup>, we have the explicit formula �� _k_ _mkzk_ <sup>2</sup> <sup>_wk_</sup>  _Ss,s_ <sup>(eln)</sup> <sup>_′_</sup> = _ρ_ <sup>_−_</sup> <sup>1</sup>   _wsmsδs,s′_ _−_ _mkzk_ <sup>2</sup> - _−_ 1 ( _wsmszs_ ) ( _ws′ms′zs′_ )  _._ (32) In Appendix B we derive the same result for a dilute binary electrolyte using equilibrium statistical mechanics, without referring to the generalized PNP equations. It can be confirmed that the electroneutral equations (3,4,7,18) are consistent with (31), which demonstrates that nothing special needs to be done in the electroneutral limit to handle the fluctu ating diffusive fluxes except to include them in the right-hand side of the modified Poisson equation (18). III. NUMERICAL ALGORITHM In this section we describe our charged-fluid and electroneutral numerical algorithms, both of which are second-order accurate in space and time deterministically, and second-order weakly accurate for the linearized fluctuating hydrodynamics equations. The algorithms are closely based on the algorithm developed for isothermal constant-density reactive multispecies mixtures of non ionic species in our prior work [6]. The handling of the charged species and in particular the quasielectrostatic Poisson equation is described already in detail in our prior work [1]. Here we only briefly sketch the algorithmic details and focus on the key differences with our prior work. We note that special care is taken to ensure that the _only_ difference between the charged-fluid and electroneutral algorithms is that a different elliptic equation is solved to compute the electric potential Φ. We therefore present both cases together and note any differences explicitly where necessary. A. Spatial Discretization Our spatial discretization of reaction-advection-diffusion is identical to the one used in our previous work [6], which is itself a slight modification of the methods described in [1, 11, 17], improved to accurately handle very small numbers of molecules. The spatial discretization is based on a structured-grid finite-volume approach with cell-averaged densities, electric potential, and pressure, and face-averaged (staggered) velocities. We use standard second-order stencils for the gradient, divergence, and spatial averaging in order to satisfy discrete fluctuation-dissipation balance (DFDB) [18]. The discretization of the momentum equation (3,4), including no-slip or free-slip boundary conditions, is the same as our previous works [1, 6, 11, 17], with the important caveat that the Lorentz force is evaluated as _∇_ _·_ ( _ϵ_ _∇_ Φ) _∇_ Φ so that the same implementation works for either the charged-fluid or the electroneutral formulations. Standard centered second-order stencils are used to discretize _∇_ _·_ ( _ϵ_ _∇_ Φ) _∇_ Φ on the faces of the grid. The discretization of the electrodiffusion equations (7,18) is closely based on that developed in [1, 6]. Our implementation independently tracks the densities of all species _ρs_ but ensures the overall mass conservation in the Boussinesq limit, <sup>�</sup> _s_ <sup>_N_</sup> =1 <sup>_s_</sup> <sup>_ρs_</sup> <sup>=</sup> <sup>_ρ_</sup> <sup>0, in each grid cell to within (Stokes)</sup> solver tolerance. For each species, we construct the mass fluxes on faces of the grid and employ the standard conservative divergence in order to guarantee conservation of mass for each species. Diffusive fluxes, including the dissipative and stochastic fluxes, are computed as described in [6]. Chemical reaction terms are local and are computed independently in each cell as in [6]. The elliptic equations (2) and (18) are discretized using a standard centered second-order stencil, and the resulting linear system is solved using a geometric multigrid algorithm [1]. For the elec troneutral elliptic equation (18), _W_ and _W χ_ are already computed on each grid face to calculate diffusive mass fluxes (see [6] for details), and therefore the non-constant coefficient _∼_ _z_ <sup>_T_</sup> _W χW z_ can be directly computed on each grid face. Boundary conditions for the electroneutral electrodiffusion equations (7,18) are implemented as follows. For impermeable walls, the condition _F_ d <sup>(</sup> <sup>_n_</sup> <sup>)</sup> = _n_ _·_ _F_ d = 0 is trivially implemented in our finite-volume scheme by zeroing the total mass flux (including the stochastic fluxes) on the bound ary. The modified elliptic equation (18) is then solved with the homogeneous Neumann condition _∂_ Φ _/∂n_ = 0. For reservoirs, the Dirichlet condition _w_ = _w_ resvr is implemented by computing _∇x_ at the boundary using one-sided differences and the specified values on the boundary; this then gives the dissipative portion of the diffusive mass flux _F_ d = _−ρ_ _W χ_ Γ _∇x_ . The generation of the stochastic component of the diffusive mass flux _F_ <sup>�</sup> at the boundary is described in prior work [19]. Once _F_ d = _F_ d + _F_ <sup>�</sup> is computed on the boundary, (18) is solved with an inhomogeneous Neumann condition computed using (19). Advective mass fluxes _ρ_ _f_ _v_ are computed on each face _f_ of the grid by first computing face centered densities _ρ_ _f_ = _ρ_ _w_ _f_ = _ρ_ 0 _w_ _f_ . Our implementation supports two ways to compute face centered densities _ρ_ _f_ . _Centered advection_ uses two-point averaging of densities to faces, and is non dissipative and thus preserves DFDB [18]. However, in order to prevent nonphysical oscillations in mass densities in high Péclet number flows with sharp gradients, we also use the Bell-Dawson Shubin (BDS) second-order _Godunov_ _advection_ scheme [20]; more details about how the BDS scheme is used in our numerical implementations can be found in [17]. We note that BDS advection adds artificial dissipation and does not obey a fluctuation-dissipation principle, but is necessary for simulations where centered advection would fail due to insufficient spatial resolution. An additional complication that arises in the electroneutral limit is ensuring that advection preserves electroneutrality, i.e., ensuring that the spatial discretization maintains the continuum identity (16). Since the advection velocity used in our discretization is discretely divergence free, advection automatically maintains linear constraints on the cell-centered densities _if_ the face den sities _ρ_ _f_ satisfy the linear constraint for each face _f_ . For centered advection this is automatic because the face densities are computed by linear interpolation. For BDS advection, however, the face-centered densities are computed using a complicated space-time extrapolation that involves nonlinear “limiters,” and are not guaranteed to satisfy the same linear constraints as the cell centered densities. It is therefore necessary to project the densities back onto all linear constraints. One such constraint is the mass conservation <sup>�</sup> _s_ <sup>_ρs_</sup> <sup>=</sup> <sup>_ρ_</sup> <sup>0</sup> <sup>and</sup> <sup>the</sup> <sup>other</sup> <sup>is</sup> <sup>the</sup> <sup>electroneutrality</sup> - _s_ <sup>_zsρs_</sup> <sup>= 0.</sup> <sup>Assume</sup> <sup>we</sup> <sup>are</sup> <sup>given</sup> <sup>a</sup> <sup>composition</sup> <sup>_w_</sup> <sup>_f_</sup> <sup>=</sup> <sup>_ρ_</sup> <sup>_f_</sup> <sup>_/ρ_</sup> <sup>0</sup> <sup>on</sup> <sup>face</sup> <sup>_f_</sup> <sup>,</sup> <sup>which</sup> <sup>does</sup> <sup>not</sup> <sup>necessar-</sup> ily satisfy the two constraints 1 <sup>_T_</sup> _w_ = 1 and _z_ <sup>_T_</sup> _w_ = 0. The projection onto _both_ constraints can be accomplished with the following sequence of updates: _w_ _f_ _←_ _w_ _f_ _−_ <sup>_<u>z</u>_</sup> <sup>_T_</sup> <sup>_<u>w</u>_</sup> <sup>_<u>f</u>_</sup> _z_ <sup>_T_</sup> _z_ <sup>_z_</sup> <sup>_,_</sup> _<u>w</u>_ _<u>f</u>_ _w_ _f_ _←_ _._ 1 <sup>_T_</sup> _w_ _f_ The first update is a standard _L_ <sup>2</sup> projection onto the plane _z_ <sup>_T_</sup> _w_ = 0, and the second is a simple rescaling that preserves 1 <sup>_T_</sup> _w_ = 1. This choice of projections is not unique and does not affect the second-order accuracy for smooth problems. B. Temporal Discretization Our second-order temporal integrator is taken from our prior work [6] and is summarized in Section III C. Unlike the trapezoidal predictor-corrector used in [1], here we use the _midpoint_ predictor-corrector method described in [6] to accommodate our treatment of chemical reactions, and to dramatically improve the robustness for large Schmidt number [6]. Furthermore, the Boussi nesq approximation allows us to simplify the algorithm compared to the low Mach version pre sented in [1]. Note that relative to the algorithm in [6] we need to precompute some terms related to charged species; however, the overall update strategy remains the same. In particular, in the absence of charged species our algorithm is equivalent to that presented in [6]. Our algorithm introduces an important correction term in the right-hand side (r.h.s.) in the modified elliptic equation (18) in the corrector step. Namely, numerical tests revealed that errors due to finite tolerances in the iterative elliptic solver lead to a slow drift away from electroneutrality over many time steps. This drift can be prevented by modifying the elliptic equation as follows. Consider an Euler update of the form _<u>w</u>_ <u>(</u> _<u>t</u>_ <u>+ ∆</u> _<u>t</u>_ <u>)</u> _<u>−</u>_ _<u>w</u>_ <u>(</u> _<u>t</u>_ <u>)</u> = _−_ _∇_ _·_ ∆ _t_ _F_ d _−_ - _<u>mρ</u>_ <u>¯</u> _kBT_ <sup>_W χW z_</sup> - _∇_ Φ _._ Requiring electroneutrality at the end of the step, _z_ <sup>_T_</sup> _w_ ( _t_ + ∆ _t_ ) = 0, without assuming electroneu trality at the beginning of the step, we obtain the corrected elliptic equation at time _t_, = _∇_ _·_ - _z_ <sup>_T_</sup> _F_ d - _<u>z</u>_ <sup>_T_</sup> _<u>w</u>_ ∆ _t_ _._ (33) _∇_ _·_ �� _<u>mρ</u>_ <u>¯</u> _kBT_ <sup>_z_</sup> <sup>_T_</sup> <sup>_W χW z_</sup> _∇_ Φ _−_ In our numerical algorithm, we only employ this correction to the elliptic equation in the corrector step. We have found this to be sufficient and to lead to a stable algorithm that maintains the charge neutrality to a relative error below solver tolerances <sup>4</sup> . In practice, we find that the numerical errors 4 We have found that in some cases (e.g., equal diffusion coefficients for all species) the r.h.s. of (33) is analytically introduced by the iterative geometric multigrid elliptic solvers create localized charges but not a global charge; therefore the spatial average of the r.h.s. of (33) is zero within roundoff tolerance. Nevertheless, in order to ensure that the elliptic equation (33) is solvable, in our implementation we subtract from the r.h.s. it’s spatial average. By adding charges to the 3-species mixture test described in Section III.C.1 of [11], we have verified (not shown) that our algorithm/code reproduces the correct spectrum of electroneutral equilibrium fluctuations (31), for both ideal and non-ideal mixtures, for either periodic, reservoir, or impermeable boundaries. This validates our formulation and implementation of the stochas tic mass flux (including boundary conditions). We have also verified (not shown) second-order deterministic accuracy for the acid-base fingering example by initializing the simulations from a smoothly perturbed sine-wave interface. C. Summary of Algorithm We now summarize the _n_ <sup>_th_</sup> time step that computes state at time _t_ <sup>_n_</sup> <sup>+1</sup> = ( _n_ + 1) ∆ _t_ from the state at time _t_ <sup>_n_</sup> = _n_ ∆ _t_ . Superscripts denote the time point at which certain quantities are evaluated, for example, _f_ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> = _f_ - _w_ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> _,_ ( _n_ + 1 _/_ 2) ∆ _t_ - denotes the buoyancy force esti mated at the midpoint. We denote with ( _W_ <sup>mom</sup> ) <sup>_n_</sup> and - _W_ <sup>mass</sup> (1) - _n_ (for the predictor stage) and - _W_ <sup>mass</sup> (2) - _n_ (for the corrector stage) collections of i.i.d. (independent and identically distributed) mated at the midpoint. We denote with ( _W_ <sup>mom</sup> ) <sup>_n_</sup> and (1) - _W_ <sup>mass</sup> (1) (2) - _n_ (for the corrector stage) collections of i.i.d. (independent and identically distributed) standard normal random variables generated on control volume faces independently at each time step, and _W_ <sup>mom</sup> _≡_ _W_ <sup>mom</sup> + - _W_ mom� _T_ . We denote collections of independent Poisson random variables generated at cell centers independently at each time step with _P_ (1) (predictor stage) and _P_ (2) (corrector stage), and denote [ _•_ ] <sup>+</sup> _≡_ max( _•,_ 0). The notation for computing the divergence of the advective fluxes using the BDS scheme is defined and explained in Section III.B.1 in [17]. We remind the reader that _ρ_ = _ρ_ 0 is a constant in the Boussinesq approximation, maintained by our code to roundoff tolerance. The _n_ <sup>_th_</sup> predictor-corrector update consists of the following steps: 1. Calculate predictor diffusive fluxes (deterministic and stochastic), - _n ._ (34) _F_ d <sup>_n_</sup> <sup>= (</sup> <sup>_−ρ_</sup> <sup>_W χ_</sup> <sup>Γ</sup> <sup>_∇x_</sup> <sup>)</sup> <sup>_n_</sup> <sup>+</sup> ~~�~~ <u>2 ¯</u> _<u>mρ</u>_ ∆ _V_ ∆ _t/_ 2 _W χ_ 21 - _n_ - _W_ <sup>mass</sup> (1) (nearly) zero so that numerically it is dominated by numerical noise. This make the elliptic solver do unnecessary work if we use a standard relative error tolerance based on the magnitude of the r.h.s. Instead, we use a tolerance _δ_ _∇_ _·_ <sup>�</sup> _|_ _z_ _|_ <sup>_T_</sup> _F_ d� based on the absolute values of the charges per mass, where _δ_ _∼_ 10 <sup>_−_</sup> <sup>12</sup> _−_ 10 <sup>_−_</sup> <sup>9</sup> is a relative tolerance _δ_ _∇_ _·_ <sup>�</sup> _|_ _z_ _|_ <sup>_T_</sup> _F_ d� based on the absolute values of the charges per mass, where _δ_ _∼_ 10 <sup>_−_</sup> <sup>12</sup> _−_ 10 <sup>_−_</sup> <sup>9</sup> is a relative tolerance for the iterative solver. _|_ _z_ _|_ <sup>_T_</sup> _F_ d 2. Solve the predictor elliptic equation for Φ <sup>_n_</sup>,   _∇_ _·_ ( _ϵ_ <sup>_n_</sup> _∇_ Φ <sup>_n_</sup> ) = _−Z_ <sup>_n_</sup> if charged-fluid, otherwise (35) _._ - _z_ <sup>_T_</sup> _F_ d <sup>_n_</sup> - _z_ <sup>_T_</sup> _F_ d <sup>_n_</sup>  _∇_ _·_ �� _kmρ_ <u>¯</u> _BT_ <sup>_z_</sup> <sup>_T_</sup> <sup>_W χW z_</sup> - _n_ _∇_ Φ _n_ - = _∇_ _·_ 3. Calculate predictor electrodiffusive fluxes _F_ <sup>_n_</sup> and chemical production rates _R_ <sup>_n_</sup>, _F_ <sup>_n_</sup> = _F_ d <sup>_n_</sup> <sup>_−_</sup> - _<u>mρ</u>_ <u>¯</u> - _n_ _kBT_ <sup>_W χW z_</sup> _∇_ Φ <sup>_n_</sup> _,_ (36) <u>1</u> _Rs_ <sup>_n_</sup> <sup>=</sup> ∆ _V_ ∆ _t/_ 2 _r_ _α_ = _±_ _sr_ <sup>_α_</sup> <sup>_P_</sup> (1) <sup>((</sup> <sup>_aα_</sup> _r_ ∆ _νsr_ <sup>_α_</sup> <sup>_aα_</sup> _r_ <sup>)</sup> <sup>_n_</sup> <sup>∆</sup> <sup>_V_</sup> <sup>∆</sup> <sup>_t/_</sup> <sup>2)</sup> <sup>_._</sup> (37) 4. Solve the predictor Stokes system for _v_ <sup>_n_</sup> <sup>+1</sup> <sup>_,∗_</sup> and _π_ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> : _∇_ _·_ _v_ <sup>_n_</sup> <sup>+1</sup> <sup>_,∗_</sup> = 0 and <u>(</u> _<u>ρ</u>_ _<u>v</u>_ <u>)</u> <sup>_n_</sup> <sup>+1</sup> <sup>_,∗_</sup> _<u>−</u>_ <u>(</u> _<u>ρ</u>_ _<u>v</u>_ <u>)</u> <sup>_n_</sup> + _∇_ _π_ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> = _∇_ _·_ ∆ _t_ + _∇_ _·_ 5. Calculate predictor mass densities, - _ρ_ _vv_ <sup>_T_</sup> <sup>�</sup> <sup>_n_</sup> + <sup><u>1</u></sup> _η_ <sup>_n_</sup> _∇v_ <sup>_n_</sup> + _η_ <sup>_n_</sup> _∇v_ <sup>_n_</sup> <sup>+1</sup> <sup>_,∗_</sup> <sup>�</sup> 2 <sup>_∇_</sup> <sup>_·_</sup> + _f_ <sup>_n_</sup>  ~~�~~ _<u>η</u>_ <sup>_n_</sup> _<u>kBT</u>_  ∆ _V_ ∆ _t_  - _W_ <sup>~~m~~</sup> <sup>om�</sup> <sup>_n_</sup>  + - ( _∇_ _·_ ( _ϵ_ _∇_ Φ)) _∇_ Φ� _n._ - if centered _s_ <sup>_n_</sup> <sup>]</sup> <sup>_−_</sup> <sup><u>∆</u></sup> <sup>_<u>t</u>_</sup> 2 - _<u>v</u>_ <sup>_n_</sup> <u>+</u> _<u>v</u>_ <sup>_n_</sup> <sup>+1</sup> <sup>_,∗_</sup> 2 _ρ_ <sup>_n_</sup> _s_ <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> <sup>_n_</sup> _s_ <sup>+</sup> <sup><u>∆</u></sup> <sup>_<u>t</u>_</sup> 2 <sup>_<u>t</u>_</sup> 2 <sup>_∇_</sup> <sup>_·_</sup> <sup>_n_</sup> _s_ <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> = _ρ_ <sup>_n_</sup> _s_ <sup>_<u>t</u>_</sup> _s_ <sup>+</sup> <sup>_msR_</sup> _s_ <sup>_n_</sup> 2 <sup>[</sup> <sup>_−_</sup> <sup>_∇_</sup> <sup>_·_</sup> <sup>_F_</sup> <sup>_n_</sup>   BDS _ρ_ <sup>_n_</sup> _s_ _s_ <sup>_<u>v</u>_</sup> 2 <sup>_n_</sup> <sup>+1</sup> <sup>_,∗_</sup> _,_ _∇_ _·_ _F_ _s_ <sup>_n_</sup> _s_ <sup>_n,_</sup> <sup><u>∆</u></sup> 2 <sup>_<u>t</u>_</sup> 2 - _ρ_ <sup>_n_</sup> _s_ <sup>_n_</sup> _s_ <sup>_,_</sup> <sup>_<u>v</u>_</sup> <sup>_n_</sup> <sup><u>+</u></sup> <sup>_<u>v</u>_</sup> 2 <sup>_n_</sup> <sup>+1</sup> <sup>_,∗_</sup> _._ 6. Calculate corrector diffusive fluxes, (38)   _._ (39) (40) - _n_ + - _W_ <sup>mass</sup> (2) _~~√~~_ - _n_ - _W_ <sup>mass</sup> (1) 2  <u>1</u> - _n_ +1 _/_ 2 _,∗_ 2   <u>1</u> - _n_ +1 _/_ 2 _,∗_ 2 _F_ d <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> = ( _−ρ_ _W χ_ Γ _∇x_ ) <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> + - <u>2 ¯</u> _<u>mρ</u>_ ∆ _V_ ∆ _t/_ 2 _W χ_ (2) 7. Solve the corrector elliptic equation for Φ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup>,   _∇_ _·_  _∇_ _·_ �� _kmρ_ <u>¯</u> _BT_ <sup>_z_</sup> <sup>_T_</sup> <sup>_W χW z_</sup> - _z_ <sup>_T_</sup> _F_ d <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> - _ϵ_ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> _∇_ Φ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> <sup>�</sup> = _−Z_ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> if charged-fluid, otherwise - _n_ +1 _/_ 2 _,∗_ _∇_ Φ _n_ +1 _/_ 2 _,∗_ - = _∇_ _·_ - _z_ <sup>_T_</sup> _F_ d <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> - _−_ ∆ _t_ <sup>_−_</sup> <sup>1 �</sup> _z_ <sup>_T_</sup> _w_ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> <sup>�</sup> _._ 8. Calculate corrector diffusive fluxes _F_ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> and chemical production rates _R_ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup>, _F_ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> = _F_ d <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> _−_ - _<u>mρ</u>_ <u>¯</u> - _n_ +1 _/_ 2 _,∗_ _kBT_ <sup>_W χW z_</sup> _∇_ Φ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> _,_ (41) _._ (42) <u>1</u> _Rs_ <sup>_n_</sup> <sup>+</sup> ∆ _V_ ∆ _t/_ 2 _s_ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> = <sup><u>1</u></sup> _r_ _Rs_ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> 2 _α_ = _±_ �� 2( _a_ <sup>_α_</sup> _r_ <sup>)</sup> <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> <sup>_−_</sup> <sup>(</sup> <sup>_aα_</sup> _r_ <sup>)</sup> <sup>_n_</sup> <sup>�+ ∆</sup> <sup>_V_</sup> <sup>∆</sup> <sup>_t/_</sup> <sup>2</sup> <sup>_α_</sup> _r_ <sup>)</sup> <sup>_n_</sup> <sup>�+ ∆</sup> <sup>_V_</sup> <sup>∆</sup> <sup>_t/_</sup> <sup>2</sup> - <sup>�</sup> ∆ _νsr_ <sup>_α_</sup> <sup>_P_</sup> (2) ∆ _νsr_ <sup>_α_</sup> 9. Update the mass densities, - _<u>v</u>_ <sup>_n_</sup> <u>+</u> _<u>v</u>_ <sup>_n_</sup> <sup>+1</sup> <sup>_,∗_</sup> 2 - if centered _ρ_ <sup>_n_</sup> _s_ <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> _s_ _s_ - _−_ ∆ _t_ _∇_ _·_   <sup>_n_</sup> _s_ <sup>+1</sup> = _ρ_ <sup>_n_</sup> _s_ _ρ_ <sup>_n_</sup> _s_ <sup>+1</sup> <sup>_n_</sup> _s_ <sup>+∆</sup> <sup>_t_</sup> - _−_ _∇_ _·_ _F_ _s_ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> _s_ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> + _msRs_ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> 2 <sup>_n_</sup> <sup>+1</sup> <sup>_,∗_</sup> _,_ _∇_ _·_ _F_ _s_ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> _s_ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup> _,_ ∆ _t_ BDS - _ρ_ <sup>_n_</sup> _s_ <sup>_n_</sup> _s_ <sup>_,_</sup> <sup>_<u>v</u>_</sup> <sup>_n_</sup> <sup><u>+</u></sup> <sup>_<u>v</u>_</sup> 2 <sup>_n_</sup> <sup>+1</sup> <sup>_,∗_</sup> _._ (43) 10. Solve the corrector Stokes systems for _v_ <sup>_n_</sup> <sup>+1</sup> and _π_ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> : _∇_ _·_ _v_ <sup>_n_</sup> <sup>+1</sup> = 0 and <u>(</u> _<u>ρ</u>_ _<u>v</u>_ <u>)</u> <sup>_n_</sup> <sup>+1</sup> _<u>−</u>_ <u>(</u> _<u>ρ</u>_ _<u>v</u>_ <u>)</u> <sup>_n_</sup> <sup><u>1</u></sup> �� _ρ_ _vv_ <sup>_T_</sup> <sup>�</sup> <sup>_n_</sup> + 2 <sup>_∇_</sup> <sup>_·_</sup> - _ρ_ _vv_ <sup>_T_</sup> <sup>�</sup> <sup>_n_</sup> <sup>+1</sup> <sup>_,∗_</sup> <sup>�</sup> _<u>−</u>_ <u>(</u> _<u>ρ</u>_ _<u>v</u>_ <u>)</u> <sup>_n_</sup> + _∇_ _π_ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> = _−_ <sup><u>1</u></sup> ∆ _t_ 2 + <sup><u>1</u></sup> _η_ <sup>_n_</sup> <sup>¯</sup> _∇v_ <sup>_n_</sup> + _η_ <sup>_n_</sup> <sup>+1 ¯</sup> _∇v_ <sup>_n_</sup> <sup>+1�</sup> 2 <sup>_∇_</sup> <sup>_·_</sup> ~~�~~ _<u>η</u>_ <sup>_n_</sup> _<u>kBT</u>_ <u></u>  _<u>η</u>_ <sup>_n_</sup> <sup>+1</sup> _<u>kBT</u>_ ∆ _V_ ∆ _t_ - _W_ <sup>~~m~~</sup> <sup>om�</sup> <sup>_n_</sup> + <sup><u>1</u></sup> 2 <sup>_∇_</sup> <sup>_·_</sup>    + _f_ <sup>_n_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_,∗_</sup>  ~~�~~ _<u>η</u>_ <sup>_n_</sup> _<u>kBT</u>_ ∆ _V_ ∆ _t_ <sup>+</sup> + - ( _∇_ _·_ ( _ϵ_ _∇_ Φ)) _∇_ Φ� _n_ +1 _/_ 2 _,∗._ IV. NUMERICAL STUDY OF ACID-BASE NEUTRALIZATION In our previous work [6] we studied the development of asymmetric fingering patterns arising from a gravitational instability in the presence of a neutralization reaction. In particular, we performed the first three-dimensional simulations of a double-diffusive instability occurring during the mixing of dilute aqueous solutions of HCl and NaOH in a vertical Hele-Shaw cell, as studied experimentally in [7]. In this prior study, as in all other theoretical and computational studies of this kind of instability [7, 9], we treated HCl, NaOH, and NaCl as uncharged species in the spirit of the ambipolar approximation described in Section II B 3. The acid-base neutralization reaction was written as HCl + NaOH _→_ NaCl + H2O _._ (44) In reality, however, the acid, the base, and the salt are all strong electrolytes and essentially completely disassociate into Na <sup>+</sup>, Cl <sup>_−_</sup>, H <sup>+</sup>, and OH <sup>_−_</sup> ions, and the neutralization reaction is simply the (essentially irreversible) formation of water, H <sup>+</sup> + OH <sup>_−_</sup> _→_ H2O _,_ with Na <sup>+</sup> and Cl <sup>_−_</sup> being spectator ions. An important feature of this system is that the trace diffusion coefficients of the four ions are very different; specifically, using cgs units (cm <sup>2</sup> _/_ s) the literature values are _D_ Na+ = 1 _._ 33 _·_ 10 <sup>_−_</sup> <sup>5</sup>, _D_ Cl _−_ = 2 _._ 03 _·_ 10 <sup>_−_</sup> <sup>5</sup>, _D_ H+ = 9 _._ 35 _·_ 10 <sup>_−_</sup> <sup>5</sup>, and _D_ OH _−_ = 5 _._ 33 _·_ 10 <sup>_−_</sup> <sup>5</sup> . Although the ambipolar approximation is only strictly valid for dilute binary systems, we define effective diffusion coefficients for the neutral species by harmonic averages of the anion and cation diffusion coefficients following (23) to obtain: _D_ HCl = 3 _._ 34 _·_ 10 <sup>_−_</sup> <sup>5</sup>, _D_ NaOH = 2 _._ 13 _·_ 10 <sup>_−_</sup> <sup>5</sup>, and _D_ NaCl = 1 _._ 61 _·_ 10 <sup>_−_</sup> <sup>5</sup> . Simulating this instability using the charged-fluid formulation would be infeasible because the length scales of interest are on the millimeter scale. In this work we use the electroneutral for mulation to study this instability and assess the (in)accuracy of the commonly-used ambipolar approximation. Numerical studies based on the ambipolar approximation showed that the finger ing instability can be triggered on a realistic time scale (as compared to experiments) purely by thermal fluctuations, without any artificial perturbations of the initial interface [6]. The studies also demonstrated that the effect of fluctuations is dominated by the contribution of the stochastic _momentum_ flux, and not by fluctuations in the initial condition, the stochastic mass flux, or the stochastic chemical production rate. This can be understood as a consequence of the fact that advection by thermal velocity fluctuations, which are driven by the stochastic momentum flux, leads to _giant_ _concentration_ _fluctuations_ in the presence of sharp concentration gradients [21–23]. These nonequilibrium fluctuations completely dominate equilibrium fluctuations at the scales of interest, and are sufficiently large to drive the fingering instability. We have confirmed that the same conclusions apply when charges are accounted for. Therefore, in the simulations reported here we do _not_ include stochastic mass fluxes and reaction rate fluctuations, and initialize the simulations from a deterministic initial condition with a sharp interface between the acid and the base and zero fluid velocity. Because of the importance of giant concentration fluctuations to the formation of the instability, in Section IV A we first validate our algorithm and implementation by computing the spectrum of giant fluctuations in a ternary electrolyte. Then, we study the fingering instability at an acid-base neutralization front in Section IV B. A. Giant Nonequilibrium Fluctuations in Electroneutral Ternary Mixtures In this section we examine the giant concentration fluctuations in a non-reactive dilute elec troneutral ternary electrolyte in the presence of a steady applied concentration gradient. Giant fluctuations in a binary electrolyte were studied using the charged-fluid formulation in Section V.B.2 in [1]. It was concluded there that for small wavenumbers, _kλD_ _≪_ 1, the electroneutral nonequilibrium fluctuations in a binary electrolyte can be described using the ambipolar formula tion, as expected. Specifically, the spectrum of the giant fluctuations is the same as it would be in a solution with a single neutral species diffusing with the ambipolar diffusion coefficient (23). However, this conclusion no longer holds for solutions with three or more charged species, even if dilute. Therefore, here we examine the spectrum of the giant fluctuations in a dilute solution of three ions with valencies _V_ 1 = _V_ 2 = 1 and _V_ 3 = _−_ 1, in the absence of gravity or reactions. In order to focus on the nonequilibrium fluctuations we omit the stochastic mass flux from (7), so that the fluctuations are generated entirely by the random velocity. In arbitrary units in which _kB_ = 1 and _e_ = 1, we set _ρ_ = 1, _T_ = 1 and assume equal molecular masses _m_ 1 = _m_ 2 = _m_ 3 = 1, and trace diffusion coefficients _D_ 1 = 1, _D_ 2 = 1 _/_ 2, and _D_ 3 = 3 _/_ 2. The viscosity is set to _η_ = 10 <sup>3</sup> to give a realistically large Schmidt number Sc _∼_ 10 <sup>3</sup>, and we set _ϵ_ = 0, which makes _λD_ = 0 and removes the (fluctuating) Lorentz force from the momentum equation. The domain is quasi-two dimensional with _Lx_ = _Ly_ = 64 discretized with 64 _×_ 64 cells with grid spacing ∆ _x_ = ∆ _y_ = 1. The thickness of the domain is set to ∆ _z_ = 10 <sup>6</sup> to give weak fluctuations that can be described by the linearized fluctuating hydrodynamics equations. We impose equal and opposite macroscopic gradients for the co-ion species and no gradient for the counter-ion using reservoir boundary conditions, with imposed _w_ 1 = 4 _._ 5 _·_ 10 <sup>_−_</sup> <sup>3</sup>, _w_ 2 = 5 _._ 5 _·_ 10 <sup>_−_</sup> <sup>3</sup>, and _w_ 3 = 10 <sup>_−_</sup> <sup>2</sup> at the _y_ = 0 boundary, and _w_ 1 = 5 _._ 5 _·_ 10 <sup>_−_</sup> <sup>3</sup>, _w_ 2 = 4 _._ 5 _·_ 10 <sup>_−_</sup> <sup>3</sup>, and _w_ 3 = 10 <sup>_−_</sup> <sup>2</sup> at the _y_ = _Ly_ boundary. We set the time step size to ∆ _t_ = 0 _._ 05 and perform a total of 10 <sup>6</sup> time steps skipping 10 <sup>5</sup> steps in the beginning to allow the system to reach the steady state, after which we collect statistics on the spectrum of fluctuations _S_ ( _kx, ky_ = 0). The theoretical spectrum of the giant fluctuations for a dilute ternary electrolyte can be com puted by following the computation described in Section III.C in [1], and then taking the elec troneutral limit _kλD_ _→_ 0. The same result can also be obtained from the electroneutral equations directly; with the help of a computer algebra system the limit _kλD_ _→_ 0 of the charged-fluid _S_ ( _k_ ) is straightforward to compute, so we follow that route. Just as for non-ionic solutions, a _kx_ <sup>_−_</sup> <sup>4</sup> power law is observed until the confinement effect becomes significant for small _kx_ _≪_ _L_ <sup>_−_</sup> _y_ <sup>1.</sup> <sup>Following</sup> <sup>[1],</sup> we multiply the theoretical result for an unconfined bulk system by a confinement factor [24] to obtain <u>4 (1</u> _<u>−</u>_ <u>cosh(</u> _<u>kxLy</u>_ <u>))</u> 1 + _kxLy_ ( _kxLy_ + sinh( _kxLy_ )) _Ss,s′_ ( _kx, ky_ = 0) = _fss′_ <sup>_<u>kBT</u>_</sup> _ηD_ 1 <u>1</u> _kx_ <sup>4</sup> _,_ (45) where our theoretical calculations predict _f_ 11 = 147 _/_ 124, _f_ 22 = 219 _/_ 124, and _f_ 12 = _−_ 177 _/_ 124. Note that it is sufficient to examine only the part of _S_ corresponding to two of the charged ions (here the two co-ions), since electroneutrality dictates the spectra involving the third ion, and conservation of mass dictates the spectra involving the solvent. In Fig. 1 we compare our numerical results to the theoretical predictions (45), and find good agreement for all three structure factors. -13 4 × 10 -13 3 × 10 -13 2 × 10 -13 1 × 10 ## _S11_ _S22_ _-S12_ 0 0.5 1 1.5 2 ## Modified wavenumber k Figure 1: Spectrum of giant nonequilibrium concentration fluctuations in a ternary electrolyte mixture in the presence of an imposed concentration gradient of the two co-ions. To account for errors in the discrete approx imation to the continuum Laplacian, the _x_ axis shows the modified wavenumber _k_ <sup>˜</sup> _x_ = sin( _kx_ ∆ _x/_ 2) _/_ (∆ _x/_ 2) instead of _kx_ . Numerical results (symbols) for the components of _k_ <sup>˜</sup> _x_ <sup>4</sup> <sup>_S_</sup> <sup>(</sup> <sup>_kx, ky_</sup> <sup>= 0)</sup> <sup>corresponding</sup> <sup>to</sup> <sup>the</sup> co-ions (positive _S_ 11 and _S_ 22, and negative _S_ 12) are compared to the theoretical prediction (45) (lines). B. Fingering Instability at an Acid-Base Front In this section we investigate the development of asymmetric fingering patterns arising from a diffusion-driven gravitational instability in the presence of a neutralization reaction. This sys tem has been studied experimentally and theoretically using a two-dimensional Darcy advection diffusion-reaction model [7, 9] based on an ambipolar approximation where the acid, base, and salt are treated as uncharged species instead of as disassociated ions. Here we perform large-scale three-dimensional simulations with the ions treated as individual species. Since the fingering instability is driven by the small changes of density with composition, it is crucial to first match the dependence of density on composition between the ambipolar diffusion (molecule-based) model used in Section IV.D in [6] and the electrodiffusion (ion-based) model used in this work. Following [6, 7, 9], we assume that the solution density is linearly dependent on the solute concentrations in both cases, which is reasonable since the solutions are dilute. This gives the buoyancy force _f_ ( _w_ ) = _−ρ_ �� solute _s_ _<u>αs</u>_ _Ms_ _ws_ _g_ _e_ _y,_ (46) where _αs_ is the solutal expansion coefficient, _Ms_ is the molecular weight (in g/mol) of solute _s_, and the gravitational acceleration _g_ = _−g_ _e_ _y_ acts in the negative _y_ direction. For the ambipolar model, the values of _αs_ for _s_ = HCl _,_ NaOH _,_ NaCl are obtained from Table II in [7]. For the ionic model, we compute the four unknown coefficients _αs_ for _s_ = Na <sup>+</sup> _,_ Cl <sup>_−_</sup> _,_ H <sup>+</sup> _,_ OH <sup>_−_</sup> by matching the dependence of density on composition between the two models for electroneutral binary solutions of HCl, NaOH, and NaCl. Only three independent coefficients _αs_ matter because electroneutrality fixes the concentration of the fourth ion, so we arbitrarily require that Na <sup>+</sup> and Cl <sup>_−_</sup> have the same coefficient _α_ Na+ = _α_ Cl _−_ . It is important to observe that this procedure matches the density between an arbitrary dilute solution of HCl, NaOH, and NaCl and the corresponding ionic solution resulting after the molecules disassociate completely into Na <sup>+</sup>, Cl <sup>_−_</sup>, H <sup>+</sup>, and OH <sup>_−_</sup> ions. The reverse is not possible, that is, one cannot take an arbitrary solution of the ions and uniquely determine a corresponding molecular solution. In particular, a solution of only H <sup>+</sup> and OH <sup>_−_</sup> would not have a physically-reasonable density according to our model. We will validate shortly that any differences we see between the molecular and ionic models of the instability stem from the difference between standard Fickian diffusion and electrodiffusion, and not from our procedure for matching the buoyancy force. For the model setup and physical parameters, we follow Section IV.D in [6] and mimic the experiment of Lemaigre et al. [7]. We use cgs units unless otherwise specified and assume _T_ = 293 and atmospheric pressure, neglecting any heat release in the reaction as justified in [9]. We set _g_ = 981, _ρ_ = 1, and _η_ = 0 _._ 01. We consider a Hele-Shaw cell with side lengths _Lx_ = _Ly_ = 1 _._ 6 and _Lz_ = 0 _._ 05, with the _y_ -axis pointing in the vertical direction, and the _z_ -axis being perpendicular to the glass plates. The domain is divided into 512 _×_ 512 _×_ 16 grid cells, which is twice finer than the grid used in [6] in order to better-resolve the sharp interface in the early stages of the mixing. We start with a gravitationally stable initial configuration, where an aqueous solution of NaOH with molarity 0.4 mol/L is placed on top of a denser aqueous solution of HCl with molarity 1 mol/L. We impose periodic boundary conditions in the _x_ direction, no-slip impermeable walls in the _z_ direction, and in the _y_ direction we use free-slip reservoir boundary conditions with imposed concentrations that match the initial conditions of each layer. We use BDS advection because of the presence of an initially sharp interface. Since the neutralization equilibrium lies far to the product side, we only consider the forward reaction. We use the law of mass action for a dilute solution (A4), and express the reaction propensity in terms of number densities, _a_ <sup>+</sup> = _k n_ HCl _n_ NaOH for the molecule-based model, and _a_ <sup>+</sup> = _k n_ H+ _n_ OH _−_ for the ion-based model <sup>5</sup> . In reality, neutralization is a diffusion-limited reaction that occurs extremely fast (with rate _λ ∼_ 10 <sup>11</sup> s <sup>_−_</sup> <sup>1</sup> ), essentially as soon as reactants encounter each other. The estimated value of _k_ _∼_ 10 <sup>_−_</sup> <sup>11</sup> cm <sup>3</sup> s <sup>_−_</sup> <sup>1</sup> is impractically large, and would require an unrea sonably small grid spacing to resolve the penetration depth (which would be on molecular scales), and an unreasonably small time step size to resolve the reactions. For our simulations, we choose a smaller value _k_ = 10 <sup>_−_</sup> <sup>19</sup> that is an order of magnitude smaller than the one used in [6], and enlarge the time step size to ∆ _t_ = 10 <sup>_−_</sup> <sup>2</sup> by an order of magnitude accordingly. Deterministic numerical studies presented in Appendix B in [6] show that increasing the rate beyond _k_ = 10 <sup>_−_</sup> <sup>19</sup> _−_ 10 <sup>_−_</sup> <sup>18</sup> hardly changes the results, so we believe our simulation parameters are realistic. Nevertheless, our main goal here is to compare molecule- and ion-based models and assess the accuracy of the am bipolar approximation, so in this study it is more important to resolve the spatio-temporal scales in the problem than to match experimental observations. In Fig. 2 we compare the density profiles of Na <sup>+</sup> between the model based on electroneutral electrodiffusion with ions, and that based on molecules using ambipolar diffusion coefficients. For the molecule-based simulations, we compute the density of Na <sup>+</sup> assuming that the acid is com pletely disassociated. To enable a direct comparison between the two cases, we employ the same sequence of pseudorandom numbers for the stochastic momentum flux in both cases. Although the development of the instability follows similar trends in the two cases, there are clearly-visible differ ences between the top and bottom rows in the figure. For example, the Na <sup>+</sup> fingers develop sooner and diffuse more for the ion-based simulations. These differences can also be seen by comparing the lines in Fig. 3, where we show the norm of the _y_ component of velocity (corresponding to the progress of the instability) and the total mass of consumed H <sup>+</sup> (corresponding to the production of salt in the molecule-based model) as a function of time. Our findings clearly demonstrate that _quantitative_ predictions can only be made by solving the complete electroneutral electrodiffusion equations presented here. The ambipolar approximation can only be used as a _qualitative_ model of the instability. 5 Observe that the reaction rates are matched between the molecule-based model and the corresponding ion-based model because the number density of HCl/NaOH in the non-ionic mixture matches the number density of H <sup>+</sup> /OH <sup>_−_</sup> in the corresponding ionic mixture. Figure 2: Asymmetric growth of convective fingering patterns in a Hele-Shaw cell, induced by a gravita tional instability in the presence of a neutralization reaction. The top row corresponds to electroneutral electrodiffusion of ions, while the bottom row corresponds to ambipolar diffusion of acid, base, and salt molecules; both simulations use the same random numbers for the stochastic momentum flux. The density of Na <sup>+</sup> is shown with a color scale at 20, 30, and 40 seconds (columns going left to right) from the beginning of the simulation, initialized without any fluctuations. Two-dimensional slices of the three-dimensional field _ρ_ Na+( _x, y, z_ ) are shown. The square images show _ρ_ Na+( _x, y, z_ = _Lz/_ 2) (halfway between the glass plates) and the thin vertical side bars show the slice _ρ_ Na+( _x_ = 0 _, y, z_ ) corresponding to the left edge of the square images. To demonstrate that the clear difference between electrodiffusion and ambipolar diffusion is caused by the large difference in the true diffusion coefficients of the ions ( _D_ Na+ = 1 _._ 33 _·_ 10 <sup>_−_</sup> <sup>5</sup>, _D_ OH _−_ = 5 _._ 33 _·_ 10 <sup>_−_</sup> <sup>5</sup>, _D_ H+ = 9 _._ 35 _·_ 10 <sup>_−_</sup> <sup>5</sup>, and _D_ Cl _−_ = 2 _._ 03 _·_ 10 <sup>_−_</sup> <sup>5</sup> ), we also perform simulations where we artificially match the diffusion coefficients for the reactant ions and molecules by setting them to fake values, _D_ Na+ = _D_ OH _−_ = _D_ NaOH = 2 _._ 13 _·_ 10 <sup>_−_</sup> <sup>5</sup> (i.e., Na <sup>+</sup> and OH <sup>_−_</sup> ions diffuse with the same coefficient as NaOH) and _D_ H+ = _D_ Cl _−_ = _D_ HCl = 3 _._ 34 _·_ 10 <sup>_−_</sup> <sup>5</sup> (i.e., H <sup>+</sup> and Cl <sup>_−_</sup> ions diffuse with the same coefficient as HCl). In the molecule-based simulations, the diffusion coefficient of NaCl is set to the harmonic average of the two fake diffusion coefficients of Na <sup>+</sup> and Cl <sup>_−_</sup> ions, _D_ NaCl = 2 _._ 6 _·_ 10 <sup>_−_</sup> <sup>5</sup> . Figure 4 compares the density of Na <sup>+</sup> in ion- and molecule-based simulations using these artificial (fake) values of the diffusion coefficients. The two panels in Fig. 1.6e-03 1.2e-03 8.0e-04 4.0e-04 0.0e+00 ions / real Ð molecules / real Ð ions / fake Ð molecules / fake Ð 0 10 20 30 40 50 time _t_ ions / real Ð molecules / real Ð ions / fake Ð molecules / fake Ð 0 10 20 30 40 50 time _t_ 1.0e-05 8.0e-06 6.0e-06 4.0e-06 2.0e-06 0.0e+00 Figure 3: Time dependence of the norm of vertical velocity (left panel) and of the total mass of H <sup>+</sup> consumed in the neutralization reaction (right panel). We compare simulations where the species are ions versus those where the species are neutral molecules (see legend). Lines are results based on the true tabulated diffusion values for the ions, while symbols show results for fake values of the ion diffusion coefficients, artificially made to be closer to each other. Figure 4: Density of Na <sup>+</sup> at time _t_ = 30s for the ion-based model (left panel) or the molecule-based model (right panel); both simulations use the same random numbers for the stochastic momentum flux. These simulations use fake values of the ion diffusion coefficients, artificially made to be closer to each other in order to make the difference between electrodiffusion and ambipolar diffusion smaller. 4 are visually almost indistinguishable, showing very little difference between electrodiffusion and ambipolar diffusion, unlike the panels in Fig. 2. This is further demonstrated by the symbols in Figure 3. This demonstrates that the difference between electrodiffusion and standard Fickian diffusion is large when the multiple ions involved diffuse with widely varying coefficients. V. CONCLUSIONS We formulated the electroneutral reactive generalized PNP equations and included thermal fluctuations using fluctuating hydrodynamics and the chemical master equation. The only differ ence between the charged-fluid equations and their electroneutral limit is in the elliptic equation for the electric potential. We presented a second-order midpoint predictor-corrector scheme for both sets of equations. We studied giant nonequilibrium fluctuations in ternary electrolytes in the electroneutral limit, and demonstrated that our numerical algorithm accurately reproduces theoretical predictions. We also modeled a fingering instability at an acid-base mixing front and demonstrated that modeling the acid, base, and salt as neutral species diffusing with ambipolar diffusion coefficients leads to quantitatively-incorrect results unless the diffusion coefficients of the ions are very similar. The temporal discretization we used in this work treats mass diffusion explicitly. It can be shown that the electroneutral integrator used here is the limit ∆ _t_ _≫_ _λ_ <sup>2</sup> _D_ <sup>_/D_</sup> <sup>of</sup> <sup>a</sup> <sup>method</sup> <sup>for</sup> <sup>the</sup> charged-fluid equations in which only the potential is treated implicitly, i.e., the Poisson equation (2) is imposed at the end instead of the beginning of an Euler update. A major challenge for the future is to develop algorithms that treat electroneutral electrodiffusion implicitly. This would require solving a coupled linear system for both the composition _and_ the electric potential at the end of the time step. This is in some ways similar to our treatment of the velocity equation where we solve a Stokes problems for both velocity and pressure. The main challenge in developing im plicit electrodiffusion discretizations is the development of effective preconditioners for the coupled electrodiffusion system. In this work we used Neumann boundary conditions for the potential that were consistent with electroneutrality under the assumption of no surface conduction. Future work should care fully derive appropriate boundary conditions for the electroneutral electrodiffusion equations using asymptotic analysis, at least in the deterministic context. In this work we used the same velocity boundary conditions for the charged-fluid and electroneutral formulations because of the absence of any asymptotic theory for the effective slip for multispecies mixtures. It is important to carry out such asymptotic theory, even if only for the case of small zeta or applied potentials/fields. Finally, allowing for surface reactions in the formulation also requires changing the boundary conditions. Future developments in these directions would allow us to model catalytic micropumps [25] without having to resolve the thin Debye layers around the catalytic surfaces. Acknowledgments We thank Jean-Philippe Péraud for help with comparisons between charged-fluid and elec troneutral formulations. We would like to thank Anne De Wit for helpful discussions regarding gravitational instabilities in the presence of neutralization reactions, and thank Ehud Yariv for generously sharing his knowledge about the electroneutral limit. We also acknowledge informative discussions with Charles Peskin. This material is based upon work supported by the U.S. De partment of Energy, Office of Science, Office of Advanced Scientific Computing Research, Applied Mathematics Program under Award Number DE-SC0008271 and under contract No. DE-AC02 05CH11231. This research used resources of the National Energy Research Scientific Computing Center, a DOE Office of Science User Facility supported by the Office of Science of the U.S. Depart ment of Energy under Contract No. DE-AC02-05CH11231. A. Donev was supported in part by the Division of Chemical, Bioengineering, Environmental and Transport Systems of the National Science Foundation under award CBET-1804940. Appendix Appendix A: Chemical Production Rates In this Appendix we summarize how we compute the (deterministic or stochastic) chemical pro duction rates Ω _s_ . We consider a liquid mixture consisting of _Ns_ species undergoing _Nr_ elementary reversible reactions of the form _Ns_ _s_ =1 _νsr_ <sup>+</sup> <sup>M</sup> <sup>_s_</sup> <sup>⇌</sup> _Ns_ _s_ =1 _νsr_ <sup>_−_</sup> <sup>M</sup> <sup>_s_</sup> ( _r_ = 1 _, . . ., Nr_ ) _,_ (A1) where _νsr_ <sup>_±_</sup> <sup>are</sup> <sup>molecule</sup> <sup>numbers,</sup> <sup>and</sup> <sup>M</sup> <sup>_s_</sup> <sup>are</sup> <sup>chemical</sup> <sup>symbols.</sup> We define the stoichiometric _sr_ <sup>+</sup> <sup>=</sup> <sup>_ν_</sup> _sr_ <sup>_−_</sup> _sr_ <sup>+</sup> <sup>and the coefficient in the reverse</sup> coefficient of species _s_ in the forward reaction _r_ as ∆ _νsr_ <sup>+</sup> _sr_ <sup>_−_</sup> <sup>_−ν_</sup> _sr_ <sup>+</sup> reaction as ∆ _νsr_ <sup>_−_</sup> _sr_ <sup>+</sup> <sup>_−_</sup> <sup>_ν_</sup> _sr_ <sup>_−_</sup> _s_ <sup>_N_</sup> =1 <sup>_s_</sup> <sup>∆</sup> <sup>_ν_</sup> _sr_ <sup>_±_</sup> _sr_ <sup>_±_</sup> <sup>_ms_</sup> <sup>=</sup> _sr_ <sup>_−_</sup> <sup>=</sup> <sup>_ν_</sup> _sr_ <sup>+</sup> _sr_ <sup>_−_</sup> <sup>.</sup> <sup>We</sup> <sup>assume</sup> <sup>that</sup> <sup>each</sup> <sup>reaction</sup> <sup>_r_</sup> <sup>conserves</sup> <sup>mass,</sup> <sup>�</sup> _s_ <sup>_N_</sup> =1 <sup>_s_</sup> 0, and charge, <sup>�</sup> _s_ <sup>_N_</sup> =1 <sup>_s_</sup> <sup>∆</sup> <sup>_ν_</sup> _sr_ <sup>_±_</sup> <sup>_mszs_</sup> <sup>=</sup> <sup>0,</sup> <sup>which</sup> <sup>is</sup> <sup>suitable</sup> <sup>for</sup> <sup>bulk</sup> <sup>reactions</sup> <sup>in</sup> <sup>liquids</sup> <sup>(we</sup> <sup>do</sup> <sup>not</sup> consider surface reactions here). It is important to note that all reactions must be reversible for thermodynamic consistency, although in practice some reactions can be effectively considered to be irreversible sufficiently far from thermodynamic equilibrium. The mean number of reaction occurrences in a locally well-mixed reactive cell of volume ∆ _V_ during an infinitesimal time interval _dt_ is given as _a_ <sup>_±_</sup> _r_ <sup>_±_</sup> _r_ <sup>∆</sup> <sup>_V dt_</sup> <sup>,</sup> <sup>where</sup> <sup>_a±_</sup> _r_ <sup>_±_</sup> _r_ <sup>are</sup> <sup>the</sup> <sup>propensity</sup> <sup>density</sup> functions for the forward/reverse (+ _/−_ ) rates of reaction _r_ . Accordingly, the mean production rate of species _s_ in the deterministic equations is given as <sup>_α_</sup> _r_ <sup>_._</sup> (A2) Ω _s_ = _Nr_ - _r_ =1 _α_ = _±_ ∆ _νsr_ <sup>_α_</sup> _sr_ <sup>_α_</sup> <sup>_aα_</sup> _r_ The propensity density functions are given by the Law of Mass Action (LMA) kinetics, suitably generalized to non-dilute mixtures [6], <sup>_±_</sup> _r_ <sup>=</sup> <sup>_κ_</sup> _r_ <sup>_±_</sup> ( _xsγs_ ) <sup>_ν_</sup> _sr_ <sup>_±_</sup> _,_ (A3) _a_ <sup>_±_</sup> _r_ _r_ _Ns_ _s_ =1 where _κ_ <sup>_±_</sup> _r_ <sup>(</sup> <sup>_T, P_</sup> <sup>)</sup> <sup>is</sup> <sup>the</sup> <sup>rate</sup> <sup>of</sup> <sup>the</sup> <sup>forward/reverse</sup> <sup>reaction</sup> <sup>_r_</sup> <sup>,</sup> <sup>and</sup> <sup>_γs_</sup> <sup>(</sup> <sup>_x_</sup> <sup>_, T, P_</sup> <sup>)</sup> <sup>is</sup> <sup>the</sup> <sup>activity</sup> <sup>coef-</sup> ficient of species _s_ (for an ideal mixture, _γs_ = 1). It is important to note that propensity density functions (A3) are expressed in terms of _mole_ _fractions_ _xs_ (for ideal mixtures) or activities _xsγs_, and _not_ in terms of number densities. For reactions in a dilute solution (which is necessarily an ideal solution for sufficiently dilution), mole fractions and number densities are proportional, _xs_ _≈_ _m_ ¯ solv _ns/ρ_, and one can alternatively write the LMA in the form _a_ <sup>_±_</sup> _r_ <sup>_±_</sup> _r_ <sup>=</sup> <sup>_k_</sup> _r_ <sup>_±_</sup> _r_ _sr_ _n_ <sup>_ν_</sup> _s_ <sup>_±_</sup> for dilute solutions _._ (A4) _sr_ _n_ <sup>_ν_</sup> _s_ <sup>_±_</sup> _Ns_ _s_ =1 Following [6, 26], we use the Chemical Master Equation (CME) to describe fluctuations in the reaction rates for small numbers of reactive molecules. For reactions in a closed well-mixed cell of volume ∆ _V_, the change in the number of molecules _Ns_ of species _s_ in a given cell during an infinitesimal time interval _dt_ is expressed in terms of the number of occurrences _P_ ( _a_ <sup>_±_</sup> _r_ <sup>∆</sup> <sup>_V dt_</sup> <sup>)</sup> <sup>of</sup> each reaction _r_, <sup>_α_</sup> _r_ <sup>∆</sup> <sup>_V dt_</sup> <sup>)</sup> <sup>_,_</sup> (A5) Ω _s_ ∆ _V_ _dt_ = _Nr_ _r_ =1 _α_ = _±_ ∆ _νsr_ <sup>_α_</sup> _sr_ <sup>_α_</sup> <sup>_P_</sup> <sup>(</sup> <sup>_aα_</sup> _r_ where _P_ ( _m_ ) denotes a Poisson random variable with mean _m_ . Note that the instantaneous rate of change is written as an Ito stochastic term. In the numerical algorithm described in Section III, we use a second-order tau leaping method [27], which discretizes (A5) with a finite time step size ∆ _t_ . Appendix B: Electroneutral Fluctuations of Composition for a Binary Electrolyte For a binary electroneutral electrolyte, the covariance of the fluctuations of the two charged species (32) is the matrix _m_ 1 _w_ 1 _bm_ 2 _w_ 1 _bm_ 2 _w_ 1 _bm_ 2 _w_ 2   _,_ _<u>ρ</u>_ _S_ ions <sup>(eln)</sup> <sup>=</sup> 1 + _b_   where _b_ = _−m_ 1 _z_ 1 _/m_ 2 _z_ 2 = _V_ 1 _/V_ 2 is the ratio of the number of atoms of the two species in one neutral salt molecule. It is important to observe that this is _not_ what would be predicted from a naive ambipolar approximation where one considers the two ions to be bound and diffusing with the ambipolar diffusion coefficient (24), notably, such an approximation would not give the prefactor (1 + _b_ ) <sup>_−_</sup> <sup>1</sup> . One can understand the prefactor (1 + _b_ ) <sup>_−_</sup> <sup>1</sup> by computing the entropy of mixing of the solution under the constraint of charge neutrality. Consider a dilute ideal solution of _N_ 0 molecules of a solvent species and _N_ 1 _≪_ _N_ 0 molecules of one ion and _N_ 2 _≪_ _N_ 0 molecules of another counter-ion. For an electroneutral mixture we have the constraint _N_ 2 = _bN_ 1. The mixture has a free energy of mixing �ln <sup>_<u>N</u>_</sup> <sup><u>2</u></sup> _N_ 0 _−_ 1 = _N_ 1 �ln <sup>_<u>N</u>_</sup> <sup><u>1</u></sup> _N_ 0 �ln <sup>_<u>bN</u>_</sup> <sup><u>1</u></sup> _N_ 0 _−_ 1 _._ ( _kBT_ ) <sup>_−_</sup> <sup>1</sup> ∆ _G_ mix _≈_ _N_ 1 �ln <sup>_<u>N</u>_</sup> <sup><u>1</u></sup> _N_ 0 _−_ 1 + _N_ 2 _−_ 1 + _bN_ 1 The second derivative of the free energy of mixing, which determines the width of the Gaussian approximation of the entropy and thus the inverse of _S_ 11, is - _<u>∂</u>_ <sup>2</sup> <u>∆</u> _<u>G</u>_ <u>mix</u> _∂N_ 1 <sup>2</sup> = (1 + _b_ ) <sup>_<u>kBT</u>_</sup> _N_ 1 _,_ which has the additional prefactor (1 + _b_ ) relative to the standard result without the electroneu trality constraint. [1] Jean-Philippe Péraud, Andy Nonaka, Anuj Chaudhri, John B. Bell, Aleksandar Donev, and Alejan dro L. Garcia. Low mach number fluctuating hydrodynamics for electrolytes. _Phys._ _Rev._ _Fluids_, 1:074103, 2016. [2] Jean-Philippe Péraud, Andrew J. Nonaka, John B. Bell, Aleksandar Donev, and Alejandro L. Garcia. Fluctuation-enhanced electric conductivity in electrolyte solutions. _Proceedings of the National Academy_ _of_ _Sciences_, 114(41):10829–10833, 2017. [3] Aleksandar Donev, Alejandro L. Garcia, Jean-Philippe Péraud, Andrew J. Nonaka, and John B. Bell. Fluctuating Hydrodynamics and Debye-Hückel-Onsager Theory for Electrolytes. _Current_ _Opinion_ _in_ _Electrochemistry_, 13:1 - 10, 2019. [4] Boyce E Griffith and Charles S Peskin. Electrophysiology. _Communications_ _on_ _Pure_ _and_ _Applied_ _Mathematics_, 66(12):1837–1913, 2013. [5] Ehud Yariv. An asymptotic derivation of the thin-debye-layer limit for electrokinetic phenomena. _Chemical_ _Engineering_ _Communications_, 197(1):3–17, 2009. [6] C. Kim, A. J. Nonaka, A. L. Garcia, J. B. Bell, and A. Donev. Fluctuating hydrodynamics of reactive liquid mixtures. _J._ _Chem._ _Phys._, 149(8):084113, 2018. [7] L. Lemaigre, M.A. Budroni, L.A. Riolfo, P. Grosfils, and A. De Wit. Asymmetric Rayleigh–Taylor and double-diffusive fingers in reactive systems. _Phys._ _Fluids_, 25:014103, 2013. [8] P. M. J. Trevelyan, C. Almarcha, and A. De Wit. Buoyancy-driven instabilities around miscible _a_ + _b →_ _c_ reaction fronts: A general classification. _Phys._ _Rev._ _E_, 91:023001, 2015. [9] Christophe Almarcha, Philip MJ Trevelyan, Patrick Grosfils, and Anne De Wit. Thermal effects on the diffusive layer convection instability of an exothermic acid-base reaction front. _Physical_ _Review_ _E_, 88(3):033009, 2013. [10] JA Wesselingh, P Vonk, and G Kraaijeveld. Exploring the maxwell-stefan description of ion exchange. _The_ _Chemical_ _Engineering_ _Journal_ _and_ _The_ _Biochemical_ _Engineering_ _Journal_, 57(2):75–89, 1995. [11] A. Donev, A. J. Nonaka, A. K. Bhattacharjee, A. L. Garcia, and J. B. Bell. Low Mach Number Fluctuating Hydrodynamics of Multispecies Liquid Mixtures. _Physics_ _of_ _Fluids_, 27(3):037103, 2015. [12] Ehud Yariv. Electrokinetic self-propulsion by inhomogeneous surface kinetics. In _Proceedings_ _of_ _the_ _Royal_ _Society_ _of_ _London_ _A:_ _Mathematical,_ _Physical_ _and_ _Engineering_ _Sciences_, page rspa20100503. The Royal Society, 2010. [13] A. Donev, A. J. Nonaka, Y. Sun, T. G. Fai, A. L. Garcia, and J. B. Bell. Low Mach Number Fluc tuating Hydrodynamics of Diffusively Mixing Fluids. _Communications_ _in_ _Applied_ _Mathematics_ _and_ _Computational_ _Science_, 9(1):47–105, 2014. [14] Ory Schnitzer and Ehud Yariv. Macroscale description of electrokinetic flows at large zeta potentials: Nonlinear surface conduction. _Physical_ _Review_ _E_, 86(2):021503, 2012. [15] Ory Schnitzer and Ehud Yariv. Induced-charge electro-osmosis beyond weak fields. _Physical_ _Review_ _E_, 86(6):061506, 2012. [16] Tso-Yi Chiang and Darrell Velegol. Multi-ion diffusiophoresis. _Journal_ _of_ _colloid_ _and_ _interface_ _science_, 424:120–123, 2014. [17] A. J. Nonaka, Y. Sun, J. B. Bell, and A. Donev. Low Mach Number Fluctuating Hydrodynamics of Binary Liquid Mixtures. _Communications_ _in_ _Applied_ _Mathematics_ _and_ _Computational_ _Science_, 10(2):163–204, 2015. [18] A. Donev, E. Vanden-Eijnden, A. L. Garcia, and J. B. Bell. On the Accuracy of Finite-Volume Schemes for Fluctuating Hydrodynamics. _Communications_ _in_ _Applied_ _Mathematics_ _and_ _Computational_ _Science_, 5(2):149–197, 2010. [19] F. Balboa Usabiaga, J. B. Bell, R. Delgado-Buscalioni, A. Donev, T. G. Fai, B. E. Griffith, and C. S. Peskin. Staggered Schemes for Fluctuating Hydrodynamics. _SIAM_ _J._ _Multiscale_ _Modeling_ _and_ _Simulation_, 10(4):1369–1408, 2012. [20] J. B. Bell, C. N. Dawson, and G. R. Shubin. An unsplit, higher order Godunov method for scalar conservation laws in multiple dimensions. _J._ _Comput._ _Phys._, 74:1–24, 1988. [21] J. M. O. De Zarate and J. V. Sengers. _Hydrodynamic_ _fluctuations_ _in_ _fluids_ _and_ _fluid_ _mixtures_ . Elsevier Science Ltd, 2006. [22] A. Vailati and M. Giglio. Nonequilibrium fluctuations in time-dependent diffusion processes. _Phys._ _Rev._ _E_, 58(4):4361–4371, 1998. [23] A. Vailati, R. Cerbino, S. Mazzoni, C. J. Takacs, D. S. Cannell, and M. Giglio. Fractal fronts of diffusion in microgravity. _Nature_ _Communications_, 2:290, 2011. [24] JM Ortiz de Zárate, TR Kirkpatrick, and JV Sengers. Non-equilibrium concentration fluctuations in binary liquids with realistic boundary conditions. _The_ _European_ _Physical_ _Journal_ _E_, 38(9):1–9, 2015. [25] Maria J Esplandiu, Ali Afshar Farniya, and David Reguera. Key parameters controlling the performance of catalytic motors. _The_ _Journal_ _of_ _chemical_ _physics_, 144(12):124702, 2016. [26] C. Kim, A. J. Nonaka, A. L. Garcia, J. B. Bell, and A. Donev. Stochastic simulation of reaction diffusion systems: A fluctuating-hydrodynamics approach. _J._ _Chem._ _Phys._, 146(12), 2017. Software available at `[https://github.com/BoxLib-Codes/FHD_ReactDiff](https://github.com/BoxLib-Codes/FHD_ReactDiff)` . [27] D.F. Anderson and J.C. Mattingly. A weak trapezoidal method for a class of stochastic differential equations. _Communications_ _in_ _Mathematical_ _Sciences_, 9(1):301–318, 2011.

섹션 본문

섹션 본문이 없습니다.

참고문헌 26건

  1. Low Mach number fluctuating hydrodynamics for electrolytes Physical Review Fluids · American Physical Society · 2016 10.1103/physrevfluids.1.074103
  2. Fluctuation-enhanced electric conductivity in electrolyte solutions arXiv (Cornell University) · Cornell University · 2017 10.1073/pnas.1714464114
  3. Fluctuating Hydrodynamics and Debye-Hückel-Onsager Theory for Electrolytes Current Opinion in Electrochemistry · Elsevier BV · 2018 10.1016/j.coelec.2018.09.004
  4. Electrophysiology Communications on Pure and Applied Mathematics · Wiley · 2013 10.1002/cpa.21484
  5. AN ASYMPTOTIC DERIVATION OF THE THIN-DEBYE-LAYER LIMIT FOR ELECTROKINETIC PHENOMENA Chemical Engineering Communications · Taylor & Francis · 2009 10.1080/00986440903076590
  6. Fluctuating hydrodynamics of reactive liquid mixtures The Journal of Chemical Physics · American Institute of Physics · 2018 10.1063/1.5043428
  7. Asymmetric Rayleigh-Taylor and double-diffusive fingers in reactive systems Physics of Fluids · American Institute of Physics · 2013 10.1063/1.4774321
  8. Buoyancy-driven instabilities around miscible<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mi>A</mml:mi><mml:mo>+</mml:mo><mml:mi>B</mml:mi><mml:mo>→</mml:mo><mml:mi>C</mml:mi></mml:math>reaction fronts: A general classification Physical Review E · American Physical Society · 2015 10.1103/physreve.91.023001
  9. Thermal effects on the diffusive layer convection instability of an exothermic acid-base reaction front Physical Review E · American Physical Society · 2013 10.1103/physreve.88.033009
  10. Exploring the Maxwell-Stefan description of ion exchange The Chemical Engineering Journal and the Biochemical Engineering Journal · Elsevier BV · 1995 10.1016/0923-0467(94)02932-6
  11. Low Mach number fluctuating hydrodynamics of multispecies liquid mixtures Physics of Fluids · American Institute of Physics · 2015 10106314913571
  12. Electrokinetic self-propulsion by inhomogeneous surface kinetics Proceedings of the Royal Society A Mathematical Physical and Engineering Sciences · Royal Society · 2010 10.1098/rspa.2010.0503
  13. Low Mach number fluctuating hydrodynamics of diffusively mixing fluids Communications in Applied Mathematics and Computational Science · Mathematical Sciences Publishers · 2014 10.2140/camcos.2014.9.47
  14. Macroscale description of electrokinetic flows at large zeta potentials: Nonlinear surface conduction Physical Review E · American Physical Society · 2012 10.1103/physreve.86.021503
  15. Induced-charge electro-osmosis beyond weak fields Physical Review E · American Physical Society · 2012 10.1103/physreve.86.061506
  16. Multi-ion diffusiophoresis Journal of Colloid and Interface Science · Elsevier BV · 2014 10.1016/j.jcis.2014.03.003
  17. Low Mach number fluctuating hydrodynamics of binary liquid mixtures Communications in Applied Mathematics and Computational Science · Mathematical Sciences Publishers · 2015 10.2140/camcos.2015.10.163
  18. On the accuracy of finite-volume schemes for fluctuating hydrodynamics Communications in Applied Mathematics and Computational Science · Mathematical Sciences Publishers · 2010 10.2140/camcos.2010.5.149
  19. Staggered Schemes for Fluctuating Hydrodynamics Multiscale Modeling and Simulation · Society for Industrial and Applied Mathematics · 2012 10.1137/120864520
  20. An unsplit, higher order godunov method for scalar conservation laws in multiple dimensions Journal of Computational Physics · Elsevier BV · 1988 10.1016/0021-9991(88)90065-4
  21. Nonequilibrium fluctuations in time-dependent diffusion processes Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics · American Physical Society · 1998 10.1103/physreve.58.4361
  22. Fractal fronts of diffusion in microgravity Nature Communications · Nature Portfolio · 2011 10.1038/ncomms1290
  23. Excess wing in glass-forming glycerol and LiCl-glycerol mixtures detected by neutron scattering The European Physical Journal E · Springer Science+Business Media · 2015 10.1140/epje/i2015-15001-0
  24. Key parameters controlling the performance of catalytic motors The Journal of Chemical Physics · American Institute of Physics · 2016 10.1063/1.4944319
  25. Stochastic simulation of reaction-diffusion systems: A fluctuating-hydrodynamics approach The Journal of Chemical Physics · American Institute of Physics · 2017 10.1063/1.4978775
  26. A weak trapezoidal method for a class of stochastic differential equations Communications in Mathematical Sciences · International Press of Boston · 2011 10.4310/cms.2011.v9.n1.a15