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

A moving-boundary model of reactive settling in wastewater treatment. Part 2: Numerical scheme

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Raimund Bürger — MA and Departamento de Ingeniería Matemática, Facultad de Ciencias Físicas y Matemáticas, Universidad de Concepción, Casilla 160-C, Concepción, Chile
  2. Julio Careaga — Centre for Mathematical Sciences, Lund University, P.O. Box 118, S-221 00 Lund, Sweden
  3. Stefan Diehl — Centre for Mathematical Sciences, Lund University, P.O. Box 118, Lund S-221 00, Sweden
  4. Romel Pineda — MA and Departamento de Ingeniería Matemática, Facultad de Ciencias Físicas y Matemáticas, Universidad de Concepción, Casilla 160-C, Concepción, Chile
DOI
10.1016/j.apm.2022.06.030
저널
Applied Mathematical Modelling
발행년도
2022
발행기관
Elsevier BV
피인용수
6
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.apm.2022.06.030
토픽
Membrane Separation Technologies
OpenAlex ID
W4283317170

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

A numerical scheme is proposed for the simulation of reactive settling in sequencing batch reactors (SBRs) in wastewater treatment plants. Reactive settling is the process of sedimentation of flocculated particles (biomass; activated sludge) consisting of several material components that react with substrates dissolved in the fluid. An SBR is operated in cycles of consecutive fill, react, settle, draw and idle stages, which means that the volume in the tank varies and the surface moves with time. The process is modelled by a system of spatially one-dimensional, nonlinear, strongly degenerate parabolic convection-diffusion-reaction equations. This system is coupled via conditions of mass conservation to transport equations on a half line whose origin is located at a moving boundary and that models the effluent pipe. A finite-difference scheme is proved to satisfy an invariant-region property (in particular, it is positivity preserving) if executed in a simple splitting way. Simulations are presented with a modified variant of the established activated sludge model no.~1 (ASM1).

본문 138,076자

본문 펼치기
## A moving-boundary model of reactive settling in wastewater treatment. Part 2: Numerical scheme Raimund B¨urger <sup>a</sup>, Julio Careaga <sup>b</sup>, Stefan Diehl <sup>b,</sup> <sup>_∗_</sup>, Romel Pineda <sup>a</sup> _aCI_ 2 _MA_ _and_ _Departamento_ _de_ _Ingenier´ıa_ _Matem´atica,_ _Facultad_ _de_ _Ciencias_ _F´ısicas_ _y_ _Matem´aticas,_ _Universidad_ _de_ _Concepci´on,_ _Casilla_ _160-C,_ _Concepci´on,_ _Chile_ _bCentre_ _for_ _Mathematical_ _Sciences,_ _Lund_ _University,_ _P.O._ _Box_ _118,_ _S-221_ _00_ _Lund,_ _Sweden_ Abstract A numerical scheme is proposed for the simulation of reactive settling in sequencing batch reactors (SBRs) in wastewater treatment plants. Reactive settling is the process of sedimentation of flocculated particles (biomass; activated sludge) consisting of several material components that react with substrates dissolved in the fluid. An SBR is operated in cycles of consecutive fill, react, settle, draw and idle stages, which means that the volume in the tank varies and the surface moves with time. The process is modelled by a system of spatially one-dimensional, nonlinear, strongly degenerate parabolic convection-diffusion-reaction equations. This system is coupled via conditions of mass conservation to transport equations on a half line whose origin is located at a moving boundary and that models the effluent pipe. A finite-difference scheme is proved to satisfy an invariant-region property (in particular, it is positivity preserving) if executed in a simple splitting way. Simulations are presented with a modified variant of the established activated sludge model no. 1 (ASM1). _Keywords:_ convection-diffusion-reaction PDE, degenerate parabolic PDE, moving boundary, numerical scheme, sedimentation, sequencing batch reactor _2010_ _MSC:_ 35K65, 35Q35, 65M06, 76V05 1. Introduction A sequencing batch reactor (SBR) is a tank (with possibly varying cross-sectional area) used for the purification of wastewater (e.g., [1, 2, 3]). It has a controlled outlet at the bottom and at the surface of the mixture, a floating device allows for controlled fill or extraction of mixture; see Figure 1. It is operated batch-wise in a sequence of cycles of fill, react, settle, draw and idle stages; see see Figure 2. The mixture consists of flocculated particles of biomass (activated sludge) consisting of several components that react with dissolved substrates (nutrients) in the liquid. (The removal of these substrates is the purpose of an SBR.) The full model of the process consists of a system of nonlinear partial differential equations (PDEs); see [4], to which we also refer for references to previous related works. To the authors’ knowledge, models for SBRs with reactions during all stages (including the settle) have rarely been proposed in the literature. Models of reactive settling in continuously operated secondary settling tanks (SSTs) based on PDEs and numerical schemes are presented in [5, 6, 7]; see also references therein. In addition to the mathematical and numerical difficulties of an SST model, the moving boundary in an SBR means a special challenge. Although in normal operation only liquid is extracted through the pipe in the draw phase, our model and numerical scheme are capable to handle any concentrations at the mixture surface. The moving-boundary model has a connected half-axis with transport equations and nonlinear mass-preserving coupling conditions that do not define the coupling concentrations uniquely. Such a problem of nonuniqueness arises already for a scalar conservation law with discontinuous flux, _∗_ Corresponding author, `stefan.diehl@math.lth.se` _Preprint_ _submitted_ _to_ _Elsevier_ _December_ _7,_ _2021_ ✛ - <sup>�</sup> �� _Q_ e( _t_ ) _x_ ✻ _Q_ f ( _t_ ) ✲ _z_ ¯( _t_ ) - <sup>�</sup> �� 0 _B_ ❄ _z_ ❄ _z_ ¯( _t_ ) ✻✻✻ ✻✻✻ _z_ ¯ <sup>_′_</sup> ( _t_ ) _≤_ 0 _x_ ✻ 0 ✻ ❄❄❄❄❄❄❄ _z_ ¯ <sup>_′_</sup> ( _t_ ) _>_ 0 ❄ _Q_ u( _t_ ) 0 ❄ _Q_ u( _t_ ) Figure 1: Fill at the volume rate _Q_ f ( _t_ ) _>_ 0 greater than the underflow rate _Q_ u( _t_ ) _≥_ 0 resulting in a rise of the mixture surface location _z_ = _z_ ¯( _t_ ). Right: Draw (extraction) of mixture from the surface at the rate _Q_ e( _t_ ) _>_ 0 implies a descending surface. Fill _Q_ f ( _t_ ) ❄ ✻✻✻ ✻✻✻ _Q_ u( _t_ ) = 0 React _Q_ ¯( _t_ ) = 0 _Q_ u( _t_ ) = 0 Settle _Q_ ¯( _t_ ) = 0 _Q_ u( _t_ ) = 0 Draw _Q_ e( _t_ ) ✻ ❄❄❄❄❄❄❄ _Q_ u( _t_ ) = 0 Idle _Q_ ¯( _t_ ) = 0 ❄❄❄❄❄❄❄ ❄ _Q_ u( _t_ ) Figure 2: The five stages of a cycle of an SBR. The tank is first filled with wastewater at the volumetric flow _Q_ f ( _t_ ) _>_ 0 and concentrations _C_ f ( _t_ ) and _S_ f ( _t_ ). During the react stage, biological reactions take place under complete mixing by an impeller or by aeration. Then batch sedimentation with reactions occurs and liquid is extracted during the draw stage. During the idle stage, some of the bottom sludge can be withdrawn and then the fill stage starts again. which has been investigated widely [8, 9, 10, 11, 12, 13]; in particular, in the context of continuous sedimentation [14, 15, 16, 17, 18] where a monotone numerical scheme approximates the correct solutions [14]. It is the purpose of this contribution to present a numerical scheme that can handle the strong type degeneracy of the PDEs as well as the moving boundary where both a source is located and a half-line model attached. The scheme is monotone when the reaction terms are zero. We prove that if the scheme is used in the simple Lie-Trotter-Kato splitting way (e.g. [19]), namely, one explicit time step is taken without reactions and a another step with only reactions, then the numerical solutions have an invariant-region property under a convenient Courant-Friedrichs-Lewy (CFL) condition. In particular, concentrations are nonnegative. The PDE model is presented in Section 2. Section 3 contains the numerical scheme based on the one proposed in [5] but modified to handle the moving boundary. The fully discrete and explicit scheme is presented in Section 3.4 and its splitting version with the CFL condition and invariantregion property is presented in Section 3.5. The numerical scheme during the full mixing stage can be found in Section 3.6. In Section 4, we show a numerical examples of SBR operation with a constant cross-sectional area (cylindrical vessel) and a commonly used activated sludge model for the biokinetic reactions; however, slightly adjusted to deliver non-negative concentrations only. Some conclusions can be found in Section 5. 2. The model The vertical _z_ -axis of the governing model and the moving coordinate system with the _x_ -halfaxis are shown in Figure 1. The characteristic function _γ_ equals one inside the mixture and zero otherwise, i.e., _γ_ ( _z, t_ ) = _χ{z_ ¯( _t_ ) _<z<B}_, where _χI_ is the indicator function which equals one if and 2 only if _I_ is true, and _z_ = _z_ ¯( _t_ ) is the surface location. We let _A_ = _A_ ( _z_ ) denote the cross-sectional area of the tank that may depend on depth _z_ . The solid phase consists of flocculated particles of _k_ _C_ types with concentrations _C_ <sup>(1)</sup> _, . . ., C_ <sup>(</sup> <sup>_k_</sup> <sup>_C_</sup> <sup>)</sup> . The components of the liquid phase are water of concentration _W_ and _k_ _S_ dissolved substrates of concentrations _S_ <sup>(1)</sup> _, . . ., S_ <sup>(</sup> <sup>_k_</sup> <sup>_S_</sup> <sup>)</sup> . The total concentrations of solids _X_ and liquid _L_ are (1) _X_ := _C_ <sup>(1)</sup> + _· · ·_ + _C_ <sup>(</sup> <sup>_k_</sup> <sup>_C_</sup> <sup>)</sup> _,_ _L_ := _W_ + _S_ <sup>(1)</sup> + _· · ·_ + _S_ <sup>(</sup> <sup>_k_</sup> <sup>_S_</sup> <sup>)</sup> _._ All these concentrations depend on _z_ and _t_ . At the surface of the mixture, _z_ = _z_ ¯( _t_ ), we model a floating device connected to a pipe through which one can feed the tank with a given volume rate _Q_ f ( _t_ ) and given feed concentrations _C_ f ( _t_ ) and _S_ f ( _t_ ); see Figure 1. Alternatively, this floating device allows to extract mixture at a given volume rate _Q_ e( _t_ ) _>_ 0 through the same pipe; hence, one cannot fill and extract simultaneously. If [0 _, T_ ] denotes the total time interval of modelling (and simulation in Section 3), we assume that _T_ := _T_ e _∪_ _T_ f, where _,_ _T_ f := _t ∈_ R+ : _Q_ e( _t_ ) = 0 _, Q_ f ( _t_ ) _≥_ 0 _._ _T_ e := _t ∈_ R+ : _Q_ e( _t_ ) _>_ 0 _, Q_ f ( _t_ ) = 0 When _t_ _∈_ _T_ e, we model in [4] the extraction flow in the effluent pipe by a moving coordinate system, namely a half line _x_ _≥_ 0, where _x_ = 0 is attached to _z_ = _z_ ¯( _t_ ); see Figure 1. Since we assume that there are no reactions in the pipe and all components have the same velocity, the conservation law for the pipe is the linear advection equation _A_ e _∂t_ _C_ <sup>˜</sup> + _Q_ e( _t_ ) _∂x_ _C_ <sup>˜</sup> = 0 where _A_ e is the cross-sectional area of the pipe. However, we are only interested in the effluent concentrations in the pipe at _x_ = 0 <sup>+</sup>, which we denote by _C_ e( _t_ ) and _S_ e( _t_ ). At the bottom, _z_ = _B_, one can withdraw mixture at a given volume rate _Q_ u( _t_ ) _≥_ 0. The underflow region _z_ _> B_ is for simplicity modelled by setting _A_ ( _z_ ) := _A_ ( _B_ ), since we are only interested in the underflow concentration _C_ u( _t_ ), which is an outcome of the model (analogously for _S_ u( _t_ )). Below the surface, the volume fractions of solids and liquid add to one, i.e., _._ _<u>X</u>_ _ρX_ + <sup>_<u>L</u>_</sup> _ρL_ = 1 _⇔_ _L_ = _ρL_ 1 _−_ _ρ_ <sup>_<u>X</u>_</sup> _X_ The same holds for the feed concentrations. For known _C_ and _S_, (1) implies the water concentration _W_ = _ρL_ (1 _−_ _X/ρX_ ) _−_ - _S_ can <sup>(1)</sup> be+ _· · ·_ computed + _S_ <sup>(</sup> <sup>_k_</sup> <sup>_S_</sup> <sup>)�</sup> _._ (2) This concentration is not part of any reaction and can be computed afterwards. For computational purposes, we define a maximal concentration _X_ <sup>ˆ</sup> of solids and assume that the density of all solids is the same, namely _ρX_ _>_ _X_ <sup>ˆ</sup> . Similarly, we assume that the liquid phase has the density _ρL_ _< ρX_, typically the density of water. The velocity of a solid particle _vX_ = _q_ + _v_ is the sum of the average volumetric velocity, or bulk velocity, of the mixture _q_ ( _z, t_ ) := <sup>_<u>Q</u>_</sup> _A_ <sup><u>u</u></sup> ( <sup><u>(</u></sup> _z_ <sup>_<u>t</u>_</sup> ) <sup><u>)</u></sup> <sup>_χ{z>z_</sup> <sup>¯(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_},_</sup> (3) and the excess velocity _v_, which is given by the following commonly used expression [14, 20]: = _γ_ ( _z, t_ ) _v_ hs( _X_ ) _−_ _∂zD_ ( _X_ ) <u>�</u> _,_ (4) _v_ := _v_ ( _X, ∂zX, z, t_ ) := _γ_ ( _z, t_ ) _v_ hs( _X_ ) <u>e</u> <sup><u>(</u></sup> <sup>_<u>X</u>_</sup> <sup><u>)</u></sup> 1 _−_ <sup>_<u>ρX</u>_</sup> _Xg_ <sup>_<u>σ′</u>_</sup> ∆ _ρ_ <sup>_∂zX_</sup> where _D_ ( _X_ ) := _Xc_ - _X_ <u>e</u> <sup><u>(</u></sup> <sup>_<u>X</u>_</sup> <sup><u>)</u></sup> _d_ ( _s_ ) d _s,_ _d_ ( _X_ ) := _v_ hs( _X_ ) <sup>_<u>ρX</u>_</sup> <sup>_<u>σ′</u>_</sup> _gX_ ∆ _ρ_ <sup>_._</sup> Here, ∆ _ρ_ := _ρX_ _−_ _ρL_, _g_ is the acceleration of gravity, _v_ hs = _v_ hs( _X_ ) is the hindered-settling velocity, which is assumed to be decreasing and satisfy _v_ hs( _X_ <sup>ˆ</sup> ) = 0, _σ_ e = _σ_ e( _X_ ) the effective solids stress, which satisfies _σ_ e <sup>_′_</sup> <sup>(</sup> <sup>_X_</sup> <sup>)</sup> <sup>=</sup> <sup>0</sup> <sup>for</sup> <sup>_X_</sup> <sup>_≤_</sup> <sup>_X_</sup> <sup>c</sup> <sup>and</sup> <sup>_σ_</sup> e <sup>_′_</sup> <sup>(</sup> <sup>_X_</sup> <sup>)</sup> <sup>_>_</sup> <sup>0</sup> <sup>for</sup> <sup>_X_</sup> <sup>_>_</sup> <sup>_X_</sup> <sup>c,</sup> <sup>where</sup> <sup>_X_</sup> <sup>c</sup> <sup>is</sup> <sup>a</sup> <sup>critical</sup> e <sup>_′_</sup> <sup>(</sup> <sup>_X_</sup> <sup>)</sup> <sup>=</sup> <sup>0</sup> <sup>for</sup> <sup>_X_</sup> <sup>_≤_</sup> <sup>_X_</sup> <sup>c</sup> <sup>and</sup> <sup>_σ_</sup> e <sup>_′_</sup> the particles touch each stress, which satisfies _σ_ e <sup>_′_</sup> <sup>(</sup> <sup>_X_</sup> <sup>)</sup> <sup>=</sup> <sup>0</sup> <sup>for</sup> <sup>_X_</sup> <sup>_≤_</sup> <sup>_X_</sup> <sup>c</sup> <sup>and</sup> <sup>_σ_</sup> e <sup>_′_</sup> <sup>(</sup> <sup>_X_</sup> <sup>)</sup> <sup>_>_</sup> <sup>0</sup> <sup>for</sup> <sup>_X_</sup> <sup>_>_</sup> <sup>_X_</sup> <sup>c,</sup> <sup>where</sup> <sup>_X_</sup> <sup>c</sup> <sup>is</sup> <sup>a</sup> <sup>critical</sup> concentration above which the particles touch each other and form a network that can bear a certain stress. 3 The reaction terms for all components are collected in the vectors _RC_ ( _C_ _,_ _S_ ) = _σCr_ ( _C_ _,_ _S_ ) _,_ _RS_ ( _C_ _,_ _S_ ) = _σSr_ ( _C_ _,_ _S_ ) _,_ (5) which model the increase of solid and soluble components, respectively, where _σC_ and _σS_ are constant stoichiometric matrices and _r_ ( _C_ _,_ _S_ ) _≥_ 0 is a vector of non-negative reaction rates, which are assumed to be bounded and Lipschitz continuous functions. We set _R_ ˜ _C_ ( _C_ _,_ _S_ ) := _R_ _C_ <sup>(1)</sup> <sup>(1)</sup> _C_ _C_ <sup>(</sup> <sup>_C_</sup> <sup>_,_</sup> <sup>_S_</sup> <sup>) +</sup> <sup>_· · ·_</sup> <sup>+</sup> <sup>_R_</sup> <sup>(</sup> <sup>_k_</sup> <sup>_C_</sup> <sup>)</sup> _C_ ( _C_ _,_ _S_ ) <sup>(</sup> <sup>_k_</sup> <sup>_C_</sup> <sup>)</sup> (analogously for _R_ <sup>˜</sup> _S_ ( _C_ _,_ _S_ )). In the present work the matrices _σC_ and _σS_ and the vector _r_ are given by expressions that represent a slightly modified version of the activated sludge model no. 1, usually abbreviated ‘ASM1’ in wastewater engineering. The model was the first comprehensive activated sludge model developed by a task group of the International Water Association (IWA) (see [21]). The model describes the principal biochemical reactions that occur within the activated sludge process, which is the most widespread technology for the secondary treatment of municipal wastewater and as commented in [22], constitutes ‘the heart’ of many wastewater treatment plants. Later versions, known as ASM2, ASM2d, and ASM3, account for additional reactions such as fermentation and chemical or biological phosphorus removal (not considered in the present work). Commercial software packages that include these models are used commonly by wastewater process design engineers for the process design of various activated sludge system configurations [3]. We refer to Appendix A for the description of the modified ASM1 model used herein and to [1, 3, 22] for further information on activated sludge models. In order to establish an invariant-region property for the numerical solution, we make some technical assumptions. To ensure that the numerical solution for the solids does not exceed the maximal concentration _X_ <sup>ˆ</sup>, we assume the following: there exists an _ε >_ 0 such that _RC_ ( _C_ _,_ _S_ ) = 0 for all _X_ _≥_ _X_ <sup>ˆ</sup> _−_ _ε,_ (6) _v_ ( _X, ∂_ <sup>ˆ</sup> _zX, z, t_ ) = 0 _._ (7) These conditions mean that when the concentration is (near) the maximal one, biomass cannot grow any more and its relative velocity to the liquid phase is zero. To obtain positivity of component _k_ of the concentration vector _C_, we let _,_ _I_ _C_ <sup>+</sup> _I_ _C_ <sup>_−_</sup> _,k_ <sup>:=</sup> _C_ _l ∈_ N : _σ_ <sup>(</sup> <sup>_k,l_</sup> <sup>)</sup> _C_ _<_ 0 <sup>(</sup> <sup>_k,l_</sup> <sup>)</sup> _C_ <sup>+</sup> _,k_ <sup>:=</sup> _C_ _l ∈_ N : _σ_ <sup>(</sup> <sup>_k,l_</sup> <sup>)</sup> _C_ _>_ 0 <sup>(</sup> <sup>_k,l_</sup> <sup>)</sup> _,_ denote the sets of indices _l_ that have negative and positive stoichiometric coefficients, respectively, and assume the following (analogously for _S_ ): if _l ∈_ _I_ _C_ <sup>_−_</sup> _,k_ <sup>,</sup> <sup>then</sup> <sup>_r_</sup> <sup>(</sup> <sup>_l_</sup> <sup>)(</sup> <sup>_C_</sup> <sup>_,_</sup> <sup>_S_</sup> <sup>) =</sup> <sup>_r_</sup> <sup>¯(</sup> <sup>_l_</sup> <sup>)(</sup> <sup>_C_</sup> <sup>_,_</sup> <sup>_S_</sup> <sup>)</sup> <sup>_C_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>with</sup> <sup>_r_</sup> <sup>¯(</sup> <sup>_l_</sup> <sup>)</sup> <sup>bounded.</sup> (8) Assumption (8) implies that _R_ _C_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _C_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> =0 <sup>_≥_</sup> <sup>0</sup> for _k_ = 1 _, . . ., k_ _C_ the system of ODEs �� _C_ <sup>(</sup> <sup>_k_</sup> <sup>)(</sup> <sup>_C_</sup> <sup>_,_</sup> <sup>_S_</sup> <sup>)</sup> (analogously for _S_ ), which means that the system of ODEs _S_ - _C_ = _RS_ ( _C_ _,_ _S_ ) - _RC_ ( _C_ _,_ _S_ ) (9) <u>d</u> d _t_ has a non-negative solution if the initial data are non-negative [23]. This positivity property is carried over to the numerical splitting scheme suggested here. The volume of the mixture is defined by _z_ - _B_ _V_ ¯ ( _t_ ) := _V_ _z_ ¯( _t_ ) _,_ where _V_ ( _z_ ) := _A_ ( _ξ_ ) d _ξ_ for 0 _≤_ _z_ _≤_ _B_ . The function _V_ is invertible since _V_ <sup>_′_</sup> ( _z_ ) = _−A_ ( _z_ ) _<_ 0; in particular, _V_ ¯ <sup>_′_</sup> ( _t_ ) = _V_ <sup>_′_</sup> <sup>�</sup> _z_ ¯ <sup>_′_</sup> ( _t_ ) = _−A_ _z_ ¯ <sup>_′_</sup> ( _t_ ) _._ (10) _z_ ¯( _t_ ) _z_ ¯( _t_ ) 4 It turns out that the surface location is given by the following explicit expression of the given volumetric flows: d _s_ _,_ _Q_ ¯( _t_ ) := - _Q_ ¯( _s_ ) _−_ _Q_ u( _s_ )� _−Q_ e( _t_ ) _<_ 0 if _t ∈_ _T_ e, _Q_ f ( _t_ ) _≥_ 0 if _t ∈_ _T_ f . _z_ ¯( _t_ ) = _V_ <sup>_−_</sup> <sup>1</sup> _V_ ¯ (0) + 0 - - _t_ Alternatively, _z_ ¯( _t_ ) can be obtained from _z_ ¯ <sup>_′_</sup> ( _t_ ) = <sup>_<u>Q</u>_</sup> <sup><u>u(</u></sup> <sup>_<u>t</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>Q</u>_</sup> <sup>¯(</sup> <sup>_<u>t</u>_</sup> <sup><u>)</u></sup> _._ (11) _A_ (¯ _z_ ( _t_ )) To state the governing model, we define the velocities _F_ _C_ ( _X, z, t_ ) := _q_ ( _z, t_ ) + _γ_ ( _z, t_ ) _v_ hs( _X_ ) _,_ _F_ _S_ ( _X, z, t_ ) := <sup>_<u>ρX</u>_</sup> <sup>_<u>q</u>_</sup> <sup><u>(</u></sup> <sup>_<u>z, t</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup><u>(</u></sup> <sup>_<u>q</u>_</sup> <sup><u>(</u></sup> <sup>_<u>z, t</u>_</sup> <sup><u>) +</u></sup> <sup>_<u>γ</u>_</sup> <sup><u>(</u></sup> <sup>_<u>z, t</u>_</sup> <sup><u>)</u></sup> <sup>_<u>v</u>_</sup> <sup><u>hs(</u></sup> <sup>_<u>X</u>_</sup> <sup><u>))</u></sup> <sup>_<u>X</u>_</sup> _ρX_ _−_ _X_ _,_ <sup>_<u>z, t</u>_</sup> <sup><u>) +</u></sup> <sup>_<u>γ</u>_</sup> <sup><u>(</u></sup> <sup>_<u>z, t</u>_</sup> <sup><u>)</u></sup> <sup>_<u>v</u>_</sup> <sup><u>hs(</u></sup> <sup>_<u>X</u>_</sup> <sup><u>))</u></sup> <sup>_<u>X</u>_</sup> _ρX_ _−_ _X_ (12) and then introduce the total mass fluxes as _F_ _C_ ( _X, z, t_ ) _−_ _γ_ ( _z, t_ ) _∂zD_ ( _X_ ) _F_ _S_ ( _X, z, t_ ) _,_ Φ _C_ := Φ _C_ ( _C_ _, X, ∂zX, z, t_ ) := _A_ ( _z_ ) Φ _S_ := Φ _S_ ( _S_ _, X, ∂zX, z, t_ ) := _A_ ( _z_ ) _F_ _S_ ( _X, z, t_ ) _,_ (14) _z_ =¯ _z_ ( _t_ ) <sup>+</sup> <sup>_,_</sup> (15) ���e _S_ _z_ =¯ _z_ ( _t_ ) <sup>+</sup> <sup>_._</sup> (16) _−_ _Q_ e <u>�</u> _C_ _,_ (13) (14) Φ _C_ _,_ e( _z, t_ ) := ( _z_ ) _F_ _A_ ( _z_ ) _z_ =¯ _z_ ( _t_ ) <sup>+</sup> <sup>_._</sup> (16) ���� Φ _S_ _,_ e( _z, t_ ) := _−_ _A_ ( _z_ ) <sup>_<u>X</u>_</sup> <sup><u>(</u></sup> <sup>_<u>v</u>_</sup> <sup><u>hs(</u></sup> <sup>_<u>X</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>∂zD</u>_</sup> <sup><u>(</u></sup> <sup>_<u>X</u>_</sup> <sup><u>))</u></sup> - _ρX_ _−_ _X_ _v_ hs( _X_ ) _−_ _∂zD_ ( _X_ ) <sup>_<u>X</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>∂zD</u>_</sup> <sup><u>(</u></sup> <sup>_<u>X</u>_</sup> <sup><u>))</u></sup> + _Q_ e _ρX_ _−_ _X_ _S_ The complete model is the following ( _δ_ is the delta function): _A_ ( _z_ ) _∂t_ _C_ + _∂z_ Φ _C_ = _δ_ _A_ ( _z_ ) _∂t_ _S_ + _∂z_ Φ _S_ = _δ_ _z −_ _z_ ¯( _t_ ) _z −_ _z_ ¯( _t_ ) _z −_ _z_ ¯( _t_ ) _z −_ _z_ ¯( _t_ ) Φ _C_ _,_ e( _z, t_ _Q_ f _C_ f + _γ_ ( _z, t_ ) _A_ ( _z_ ) _RC_ _,_ _z_ _∈_ R _,_ (17a) - _Q_ f _S_ f + _γ_ ( _z, t_ ) _A_ ( _z_ ) _RS_ _,_ (17b) _z_ _∈_ R _,_ _z_ _∈_ R _,_ - _Q_ f _S_ f + _γ_ ( _z, t_ ) _A_ ( _z_ ) _RS_ _,_ (17b) _z_ _∈_ R _,_ (17c) ) _/Q_ e( _t_ ) _,_ _t ∈_ _T_ e _,_ _C_ e( _t_ ) = _−_ Φ _C_ _,_ e( _z, t_ ) _/Q_ e( _t_ ) _,_ _t ∈_ _T_ e _,_ (17c) _S_ e( _t_ ) = _−_ Φ _S_ _,_ e( _z, t_ ) _/Q_ e( _t_ ) _,_ _t ∈_ _T_ e _,_ (17d) _C_ u( _t_ ) := _C_ ( _B_ <sup>+</sup> _, t_ ) _,_ _t >_ 0 _,_ (17e) _S_ u( _t_ ) := _S_ ( _B_ <sup>+</sup> _, t_ ) _,_ _t >_ 0 _._ (17f) The water concentration _W_ can always be calculated from (2). No initial data are needed for the outlet concentrations, but for _C_ and _S_, namely - _S_ <sup>(1)</sup> <sup>_,_</sup> <sup>0</sup> _, S_ <sup>(2)</sup> <sup>_,_</sup> <sup>0</sup> _, . . ., S_ <sup>(</sup> <sup>_k_</sup> <sup>_S_</sup> <sup>)</sup> <sup>_,_</sup> <sup>0�T</sup> _._ _C_ <sup>0</sup> = _S_ <sup>0</sup> = - _C_ <sup>(1)</sup> <sup>_,_</sup> <sup>0</sup> _, C_ <sup>(2)</sup> <sup>_,_</sup> <sup>0</sup> _, . . ., C_ <sup>(</sup> <sup>_k_</sup> <sup>_C_</sup> <sup>)</sup> <sup>_,_</sup> <sup>0�T</sup> _,_ During the react stage of an SBR (see Figure 2), full mixing occurs and the system of PDEs (17a) and (17b) reduces to the following system of ordinary differential equations (ODEs) for the homogeneous concentrations in _z_ ¯( _t_ ) _< z_ _< B_ : _V_ ¯ ( _t_ ) <sup><u>d</u></sup> <sup>_<u>C</u>_</sup> d _t_ <sup>=</sup> _V_ ¯ ( _t_ ) <sup><u>d</u></sup> <sup>_<u>S</u>_</sup> d _t_ <sup>=</sup> _Q_ u( _t_ ) _−_ _Q_ <sup>¯</sup> ( _t_ ) _Q_ u( _t_ ) _−_ _Q_ <sup>¯</sup> ( _t_ ) _C_ + _Q_ f ( _t_ ) _C_ f ( _t_ ) + _V_ <sup>¯</sup> ( _t_ ) _RC_ _,_ (18a) _S_ + _Q_ f ( _t_ ) _S_ f ( _t_ ) + _V_ <sup>¯</sup> ( _t_ ) _RS_ _,_ _S_ + _Q_ f ( _t_ ) _S_ f ( _t_ ) + _V_ <sup>¯</sup> ( _t_ ) _RS_ _,_ (18b) where all concentrations depend on time only since they are averages (below the surface). As before, _W_ can be obtained afterwards from (2). In the region 0 _<_ _z_ _<_ _z_ ¯( _t_ ) all concentrations are zero. Because of (15) and (17c) we have _C_ u( _t_ ) = _C_ ( _t_ ) and _C_ e( _t_ ) = _C_ ( _t_ ) _χ{t∈T_ e _}_ (analogously for _S_ ). 5 3. Numerical scheme _3.1._ _Spatial_ _discretization_ _and_ _numerical_ _fluxes_ We divide the tank into _N_ computational cells each having depth _h_ = _B/N_ . Assume that the midpoint of cell _j_ has the coordinate _zj_, hence, the cell is the interval [ _zj−_ 1 _/_ 2 _, zj_ +1 _/_ 2]. The top cell 1 is thus [ _z_ 1 _/_ 2 _, z_ 3 _/_ 2] = [0 _, h_ ], and the bottom location is _z_ = _zN_ +1 _/_ 2 = _B_ . To obtain the underflow concentrations, we add one cell below _z_ = _B_ . To obtain the extraction concentrations, we add one cell [0 _,_ ∆ _x_ ] of the _x_ -coordinate system. To approximate the cell volumes, we define the average cross-sectional areas _zj−_ 1 _/_ 2 - _zj_ +1 _/_ 2 _Aj−_ 1 _/_ 2 := _h_ <sup><u>1</u></sup> _zj−_ 1 - _zj_ _A_ ( _ξ_ ) d _ξ_ and _Aj_ := <sup><u>1</u></sup> _h_ _A_ ( _ξ_ ) d _ξ._ The unknowns are approximated by functions that are piecewise constant in each cell _j_, i.e. _j_ _C_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> ( _z, t_ ) _≈_ _C_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> ( _t_ ), _z_ _∈_ [ _zj−_ 1 _/_ 2 _, zj_ +1 _/_ 2], which are collected in the vector _C_ _j_ ( _t_ ). We define <sup>¯</sup> _j_ ( _t_ ) := _⌈z_ ¯( _t_ ) _/h⌉_, which is the smallest integer larger than or equal to _z_ ¯( _t_ ) _/h_ . Then the surface _z_ = _z_ ¯( _t_ ) is located in the surface cell <sup>¯</sup> _j_ ( _t_ ). We let _γj_ +1 _/_ 2( _t_ ) := _γ_ ( _zj_ +1 _/_ 2 _, t_ ) and define the approximate volume-average velocity _qj_ +1 _/_ 2( _t_ ) := _q_ ( _zj_ +1 _/_ 2 _, t_ ) in accordance with (3) via _Aj_ +1 _/_ 2 _qj_ +1 _/_ 2( _t_ ) := _Q_ u( _t_ ) _χ{j_ +1 _/_ 2 _>_ ¯ _j_ ( _t_ ) _}._ Using the notation _a_ <sup>_−_</sup> := min _{a,_ 0 _}_ and _a_ <sup>+</sup> := max _{a,_ 0 _}_, we define _j_ +1 _/_ 2 _Jj_ <sup>_C_</sup> _j_ <sup>_C_</sup> +1 _/_ 2 <sup>=</sup> <sup>_J_</sup> _j_ <sup>_C_</sup> _j_ <sup>_X_</sup> +1 _/_ 2 <sup>=</sup> <sup>_v_</sup> _j_ <sup>_X_</sup> +1 _j_ <sup>_X_</sup> +1 _/_ 2 <sup>=</sup> <sup>_F X_</sup> _j_ _j_ <sup>_C_</sup> +1 _/_ 2 <sup>(</sup> <sup>_Xj, Xj_</sup> <sup>+1) :=</sup> _D_ ( _Xj_ +1) _−_ _D_ ( _Xj_ ) - <sup>_qj_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>+</sup> <sup>_γj_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> _v_ _vj_ <sup>_X_</sup> _j_ <sup>_X_</sup> +1 _/_ 2 <sup>(</sup> <sup>_Xj, Xj_</sup> <sup>+1</sup> <sup>_, t_</sup> <sup>) :=</sup> <sup>_qj_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>+</sup> <sup>_γj_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> - _j_ _v_ hs( _Xj_ +1) _−_ _J_ <sup>_C_</sup> <sup>_v_</sup> - _j_ <sup>_X,_</sup> +1 <sup>_−_</sup> _/_ 2 <sup>_Xj_</sup> <sup>+1 +</sup> <sup>_v_</sup> _j_ ) _/h,_ hs( _X_ _,_ 2� _j_ <sup>_X,_</sup> +1 <sup>+</sup> _/_ 2 <sup>_Xj,_</sup> _Fj_ <sup>_X_</sup> <sup>_X_</sup> _j_ +1 _/_ 2 <sup>(</sup> <sup>_Xj, Xj_</sup> <sup>+1</sup> <sup>_, t_</sup> <sup>) := (</sup> <sup>_vX_</sup> <sup>_X_</sup> <sup>)</sup> <sup>_j_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>:=</sup> <sup>_v_</sup> _j_ <sup>_X,_</sup> +1 <sup>_−_</sup> (19) _j_ <sup>_X,_</sup> +1 <sup>_−_</sup> _/_ 2 <sup>_Xj_</sup> <sup>+1 +</sup> <sup>_v_</sup> _j_ <sup>_X,_</sup> +1 <sup>+</sup> _/_ <sup>_j_</sup> _,_ Φ <sup>_C_</sup> _j_ +1 _/_ 2 <sup>:=</sup> <sup>_A_</sup> _j_ +1 _/_ 2 _j_ <sup>_X,_</sup> +1 <sup>_−_</sup> _/_ 2 <sup>_C_</sup> <sup>_j_</sup> <sup>+1 +</sup> <sup>_v_</sup> _j_ <sup>_X,_</sup> +1 <sup>+</sup> _j_ <sup>_X,_</sup> +1 <sup>+</sup> _/_ 2 <sup>_C_</sup> <sup>_j_</sup> _S_ _j_ Φ <sup>_S_</sup> _j_ +1 _/_ 2 <sup>:=</sup> <sup>_A_</sup> _j_ +1 _/_ 2 _vj_ <sup>_X,_</sup> +1 <sup>_−_</sup> _<u>j</u>_ <u>+1</u> _<u>/</u>_ <u>2</u> <sup>)</sup> <sup>_<u>−</u>_</sup> - ( _ρX_ _qjρ_ +1 _X/−_ 2 _<u>−XFj</u>_ +1 _X_ _ρX_ _−_ _Xj_ +1 ( _ρX_ _qj_ +1 _/_ 2 _<u>−</u>_ _Fj_ <sup>_X_</sup> _ρX_ _−_ _Xj_ _<u>j</u>_ <sup>_X_</sup> <u>+1</u> _<u>/</u>_ <u>2</u> <sup>)+</sup> _._ _S_ _j_ +1 + In particular, we have Φ <sup>_C_</sup> _j_ +1 _/_ 2 <sup>=</sup> <sup>Φ</sup> <sup>_S_</sup> _j_ +1 _/_ 2 <sup>=</sup> <sup>0</sup> <sup>for</sup> <sup>_j_</sup> <sup>_<_</sup> <sup>¯</sup> <sup>_j_</sup> <sup>(</sup> <sup>_t_</sup> <sup>).</sup> <sup>We denote by [∆</sup> <sup>Φ</sup> <sup>]</sup> <sup>_j_</sup> <sup>:=</sup> <sup>Φ</sup> _j_ +1 _/_ 2 <sup>_−_</sup> <sup>Φ</sup> _j−_ 1 _/_ 2 the flux difference associated with cell _j_ . For the single cell on the _x_ -axis, the advective fluxes at _x_ = ∆ _x_ are _Q_ e( _t_ ) _C_ e( _t_ ) and _Q_ e( _t_ ) _S_ e( _t_ ). <sup>_C_</sup> _j_ +1 _/_ 2 <sup>=</sup> <sup>Φ</sup> <sup>_S_</sup> _j_ In particular, we have Φ <sup>_C_</sup> _j_ _3.2._ _Time_ _discretization_ _and_ _surface_ _fluxes_ We let _T_ denote the total simulation time, _tn_, _n_ = 0 _,_ 1 _, . . ., NT_, the discrete time points and _τ_ := _T/NT_ the time step that should satisfy a certain CFL condition; see below. The value of a variable at time _tn_ is denoted by an upper index, e.g., _C_ <sup>_n_</sup> _j_ <sup>and</sup> <sup>it</sup> <sup>is</sup> <sup>thus</sup> <sup>assumed</sup> <sup>to</sup> <sup>be</sup> <sup>constant</sup> variable at time _tn_ is denoted by an upper index, e.g., _C_ <sup>_n_</sup> _j_ <sup>and</sup> <sup>it</sup> <sup>is</sup> <sup>thus</sup> <sup>assumed</sup> <sup>to</sup> <sup>be</sup> <sup>constant</sup> in time during _tn_ _≤_ _t_ _<_ _tn_ +1. The discrete surface index is defined by <sup>¯</sup> _j_ <sup>_n_</sup> := <sup>¯</sup> _j_ ( _tn_ ) and we let _z_ ¯ <sup>_n_</sup> := _z_ ¯( _tn_ ). For the volumetric flows, we define the averages _z_ ¯ <sup>_n_</sup> := _z_ ¯( _tn_ ). For the volumetric flows, we define the averages <sup>_n_</sup> f <sup>:=</sup> <sup><u>1</u></sup> _τ_ _Q_ <sup>_n_</sup> f _τ_ _Q_ f ( _t_ ) d _t_ _tn_ - _tn_ +1 and assume for simplicity that any of the volumetric flows changes sign at most at the discrete time points _tn_ . This implies that _z_ ¯( _t_ ) is monotone on every interval [ _tn, tn_ +1]. To ensure that the surface does not travel more than one cell width _h_ during _τ_, the CFL condition has to imply (cf. (11)) _≤_ _h._ (20) _τ_ max 0 _≤t≤T,_ 0 _≤z≤B_ 0 _≤t≤T_ <sup>_|z_</sup> <sup>¯</sup> <sup>_′_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_| ≤_</sup> <sup>_τ_</sup> <sup>max</sup> _A_ ( _z_ ) _,_ <sup>_<u>|Q</u>_</sup> <sup><u>u(</u></sup> <sup>_<u>t</u>_</sup> _A_ <sup><u>) +</u></sup> ( _z_ <sup>_<u>Q</u>_</sup> ) <sup><u>e(</u></sup> <sup>_<u>t</u>_</sup> <sup><u>)</u></sup> <sup>_<u>|</u>_</sup> - _<u>|Q</u>_ <u>u(</u> _<u>t</u>_ <u>)</u> _<u>−</u>_ _<u>Q</u>_ <u>f</u> <u>(</u> _<u>t</u>_ <u>)</u> _<u>|</u>_ _A_ ( _z_ ) To show that the cell concentrations _C_ ¯ <sup>_n_</sup> _jn_ <sup>do</sup> <sup>not exceed</sup> <sup>the</sup> <sup>maximal one</sup> <sup>_X_</sup> <sup>ˆ</sup> <sup>,</sup> <sup>we</sup> <sup>also</sup> <sup>introduce the</sup> concentration _C_ <sup>¯</sup> ¯ _njn_ obtained when all the mass in the surface cell <sup>¯</sup> _j_ <sup>_n_</sup> is located below the surface To show that the cell concentrations _C_ ¯ <sup>_n_</sup> _j_ concentration _C_ <sup>¯</sup> ¯ _njn_ obtained when all the mass in the surface cell <sup>¯</sup> _j_ <sup>_n_</sup> is located below the surface within the cell; cf. Figure 3 (a). The mass in the cell is _C_ ¯ _n_ ¯ _jnA_ ¯ _j_ <sup>_n_</sup> _α_ <sup>_n_</sup> _h_ = _C_ ¯ <sup>_n_</sup> _jn_ <sup>_A_</sup> ¯ _j_ <sup>_nh,_</sup> where _α_ <sup>_n_</sup> _h_ := _z_ ¯ _jn_ +1 _/_ 2 _−_ _z_ ¯ <sup>_n_</sup> _._ (21) 6 _τ_ (a) <u>�</u> ~~<u>��</u>~~ <u>�</u> ¯ _j_ <sup>_n_</sup> + 1 _Q_ <sup>_n_</sup> e <sup>_n_</sup> e <sup>_C_</sup> e <sup>_n_</sup> _τ_ ¯ _j_ <sup>_n_</sup> _Q_ <sup>_n_</sup> f <sup>_C_</sup> f <sup>_n_</sup> ¯ _<u>j</u>_ <sup>_n_</sup> <sup>+1</sup> <u>�</u> ~~<u>��</u>~~ ~~<u>�</u>~~ ¯ _jn_ +3 _/_ 2 (d) _x_ e ¯ _<u>j</u>_ <sup>_n_</sup> <sup>+1</sup> f Φ <sup>_C_</sup> _<u>e,</u>_ <sup>¯</sup> _<u>j</u>_ <sup>_,nn_</sup> ¯ _jn_ +3 _/_ 2 ¯ _j_ <sup>_n_</sup> _Q_ <sup>_n_</sup> f <sup>_n_</sup> f <sup>_C_</sup> f <sup>_n_</sup> _tn_ _tn_ +1 _t_ _<u>e,</u>_ <sup>¯</sup> _<u>j</u>_ <sup>_n_</sup> <u>+1</u> _<u>/</u>_ <u>2</u> f _Q_ <sup>_n_</sup> f <sup>_n_</sup> f <sup>_C_</sup> f <sup>_n_</sup> ¯ _j_ <sup>_n_</sup> <sup>+1</sup> _α_ <sup>_n_</sup> _h_ _h_ _zj−_ 1 _/_ 2 _zj_ +1 _/_ 2 _z_ ¯ _j_ <sup>_n_</sup> _α_ <sup>_n_</sup> <sup>+1</sup> _h_ ¯ _j_ <sup>_n_</sup> ¯ _j_ <sup>_n_</sup> + 1 Φ <sup>_C_</sup> _e,_ <sup>¯</sup> _j_ <sup>_,nn_</sup> +1 _/_ 2 ¯ _j_ <sup>_n_</sup> + 1 _<u>z</u>_ <u>=</u> _<u>z</u>_ <u>¯(</u> _<u>t</u>_ <u>)</u> ¯ _j_ <sup>_n_</sup> <sup>+1</sup> (b) _z_ ¯ _jn_ +1 _/_ 2 _z_ ¯ _jn_ +3 _/_ 2 _z_ (c) _z_ ¯ _jn−_ 1 _/_ 2 _z_ ¯ _jn_ +1 _/_ 2 _z_ _t_ _tn_ Φ <sup>_C_</sup> <sup>_,n_</sup> _tn_ +1 Φ ¯ <sup>_C_</sup> _jn_ <sup>_,n_</sup> ¯ _jn_ +3 _/_ 2 Φ ¯ <sup>_C_</sup> _jn_ <sup>_,n_</sup> . <sup>..</sup> Φ ¯ <sup>_C_</sup> _jn_ <sup>_,n_</sup> +3 _/_ 2 . <sup>..</sup> _Q_ <sup>_n_</sup> f <sup>_C_</sup> f <sup>_n_</sup> ¯ _j_ <sup>_n_</sup> _<u>−</u>_ 1 _α_ <sup>_n_</sup> <sup>+1</sup> _h_ ∆ _x_ _z_ ¯ _jn_ +1 _/_ 2 _z_ ¯ _jn_ +3 _/_ 2 _z_ (e) _z_ ¯ _jn_ +1 _/_ 2 _z_ ¯ _jn_ +3 _/_ 2 _z_ _t_ _tn_ Φ <sup>_C_</sup> <sup>_,n_</sup> _tn_ +1 Φ ¯ _j_ <sup>_C_</sup> _n_ <sup>_,n_</sup> +3 f ¯ _jn_ +3 _/_ 2 _Q_ <sup>_n_</sup> f <sup>_n_</sup> f <sup>_C_</sup> f <sup>_n_</sup> ¯ _jn_ +3 _/_ 2 Φ <sup>_C_</sup> _<u>e,</u>_ <sup>¯</sup> _<u>j</u>_ <sup>_,nn_</sup> _<u>e,</u>_ <sup>¯</sup> _<u>j</u>_ <sup>_n_</sup> <u>+1</u> _<u>/</u>_ <u>2</u> ¯ _j_ <sup>_n_</sup> <sup>+1</sup> _j_ Φ <sup>_C_</sup> <sup>_,n_</sup> _j_ <sup>_n_</sup> _<u>−</u>_ 1 _/_ 2 Φ <sup>_C_</sup> _j_ <sup>_n,n_</sup> +1 _/_ 2 ¯ _j_ <sup>_n_</sup> ¯ _j_ <sup>_n_</sup> + 1 ¯ _j_ <sup>_n_</sup> ¯ _j_ <sup>_n_</sup> + 1 _t_ _tn_ Φ <sup>_C_</sup> <sup>_,n_</sup> _tn_ +1 Φ ¯ _j_ <sup>_C_</sup> _n_ <sup>_,n_</sup> +3 _t_ _tn_ _tn_ +1 _t_ _tn_ Φ <sup>_C_</sup> <sup>_,n_</sup> _tn_ +1 Φ ¯ <sup>_C_</sup> _jn_ <sup>_,n_</sup> Figure 3: Fluxes over cell boundaries shown by grey arrows and the flux at the surface with red arrows. The surface level _z_ = _z_ ¯( _t_ ) is drawn with a red dashed line. Plot (d) shows the extraction pipe cell where the origin of the _x_ -axis located on the red dashed surface _z_ = _z_ ¯( _t_ ) in plots (d) and (e). _j_ <sup>_n_</sup> <sup>:=</sup> <sup>_C_</sup> <sup>¯</sup> _j_ <sup>(1)</sup> <sup>_,n_</sup> We set _X_ <sup>¯</sup> _j_ <sup>_n_</sup> _j_ <sup>(1)</sup> <sup>_,n_</sup> + _. . ._ + _C_ <sup>¯</sup> _j_ <sup>(</sup> <sup>_k_</sup> <sup>_C_</sup> <sup>)</sup> <sup>_,n_</sup> _j_ <sup>(</sup> <sup>_k_</sup> <sup>_C_</sup> <sup>)</sup> <sup>_,n_</sup> . Integrating (10) from _tn_ to _tn_ +1, one obtains _z_ ¯( _tn_ ) _n_ �and u = ( _Q_ <sup>¯</sup> <sup>_n_</sup> _−_ _Q_ <sup>_n_</sup> - _n_ +1; then (22) _V_ _z_ ¯( _tn_ +1) cell� _−_ _V_ - _t_ u <sup>)</sup> <sup>_τ._</sup> (22) <sup>_n_</sup> If the surface stays within one cell between _tn_ and _tn_ +1; then (22) is equivalent to u <sup>)</sup> <sup>_τ_</sup> (23) _Aj_ ( _α_ <sup>_n_</sup> <sup>+1</sup> _−_ _α_ <sup>_n_</sup> ) _h_ = ( _Q_ <sup>¯</sup> <sup>_n_</sup> _−_ _Q_ <sup>_n_</sup> (cf. Figure 3 (b) and (e)). During extraction, the surface cannot rise and is thus located somewhere in cells <sup>¯</sup> _j_ <sup>_n_</sup> and <sup>¯</sup> _j_ <sup>_n_</sup> + 1 (cf. Figure 3 (d) and (e)). In light of (15) and (16), we approximate the fluxes, which have to be non-positive, just below the surface in the following way: _v_ hs( _X_ ¯ _j_ <sup>_n_</sup> _n_ <u>�</u> e _−_ _Q_ <sup>_n_</sup> <u>�</u> Φ <sup>_C_</sup> e _,_ <sup>¯</sup> _j_ <sup>_,nn_</sup> +1 _/_ 2 <sup>:=</sup> _A_ ¯ _jn_ +1 _/_ 2 _D_ ( _X_ ¯ _<u>j</u>_ <sup>_n_</sup> _n_ <u>+1</u> <sup>)</sup> _C_ ¯ <sup>_n_</sup> _j_ <u>�</u> _−_ ¯ <sup>_n_</sup> _jn_ +1 <sup>_,_</sup> (24) e ¯ _jn_ +1 _/_ 2 _X_ ¯ _<u>j</u>_ <sup>_n_</sup> _n_ <u>+1</u> ¯ _jn_ +1 _ρX_ _−_ _X_ <sup>_n_</sup> ¯ _j_ <sup>_n_</sup> _n_ +1 <sup>)</sup> <sup>_−_</sup> _h_ e _−_ _Q_ <sup>_n_</sup> _v_ hs( _X_ ¯ _j_ <sup>_n_</sup> Φ <sup>_S_</sup> e _,_ <sup>_,n_</sup> <sup>¯</sup> _j_ <sup>_n_</sup> +1 _/_ 2 <sup>:=</sup> _−_ _A_ ¯ _jn_ +1 _/_ 2 _X_ ¯ _<u>j</u>_ <sup>_n_</sup> _n_ ¯ _jn_ +1 _D_ ( _X_ ¯ _<u>j</u>_ <sup>_n_</sup> ¯ _<u>j</u>_ <sup>_n_</sup> _n_ <u>+1</u> <sup>)</sup> _S_ ¯ <sup>_n_</sup> _jn_ +1 <sup>_._</sup> (25) - _−_ e ¯ _j_ <sup>_n_</sup> _n_ +1 <sup>)</sup> <sup>_−_</sup> _h_ _3.3._ _Derivation_ _of_ _update_ _formulas_ We here derive the update formulas for _C_ <sup>_n_</sup> _j_ <sup>_n_</sup> _j_ <sup>.</sup> <sup>Analogous formulas hold for</sup> <sup>_S_</sup> <sup>_n_</sup> _j_ We here derive the update formulas for _C_ <sup>_n_</sup> _j_ <sup>.</sup> <sup>Analogous formulas hold for</sup> <sup>_S_</sup> <sup>_n_</sup> _j_ <sup>when replacing</sup> <sup>_C_</sup> by _S_ ; however, with different definitions of velocities and fluxes. First come cells that lie below the surface _z_ = _z_ ¯( _t_ ) at _tn_ and _tn_ +1. Special treatment is needed for the cells near the surface. All cells strictly above the surface have zero concentrations. Let _κ_ := _τ/h_ . _Cells_ _away_ _from_ _the_ _surface_ Using the integrated form of the balance law on a rectangle [ _zj−_ 1 _/_ 2 _, zj_ +1 _/_ 2] _×_ [ _tn, tn_ +1] strictly below the surface; see the gray rectangle in Figure 3 (a), we get the update formula (mass per _h_ ) _Aj_ _C_ <sup>_n_</sup> _j_ <sup>+1</sup> <sup>_n_</sup> _j_ <sup>+1</sup> = _Aj_ _C_ <sup>_n_</sup> _j_ <sup>_n_</sup> _j_ <sup>+</sup> <sup>_κ_</sup> _−_ [∆ Φ <sup>_C_</sup> ] _j_ <sup>_n_</sup> <sup>we</sup> <sup>get</sup> <sup>in</sup> _C_ _,j_ _j_ <sup>_n_</sup> <sup>+</sup> <sup>_hAj_</sup> <sup>_R_</sup> _C_ <sup>_n_</sup> _,_ (26) <sup>way</sup> <sup>the</sup> <sup>update</sup> <sup>formula</sup> <sup>for</sup> and the analogous one for _S_ <sup>_n_</sup> _j_ and the analogous one for _S_ <sup>_n_</sup> _j_ <sup>.</sup> <sup>For</sup> <sup>cell</sup> <sup>_N_</sup> <sup>+ 1,</sup> <sup>we</sup> <sup>get</sup> <sup>in</sup> <sup>the</sup> <sup>similar</sup> <sup>way</sup> <sup>the</sup> <sup>update</sup> <sup>formula</sup> <sup>for</sup> the underflow concentration; see Section 3.4. _Cells_ _near_ _the_ _surface_ _during_ _fill_ _(t ∈_ _T_ f _)_ To obtain a monotone scheme with an invariant-region property, we determine how the mass in the surface cell and the one below evolves; see the trapezoids in Figure 3. The mass per _h_ at _tn_ is (we use (21)) _m_ ¯ <sup>_C_</sup> _jn_ <sup>_,n_</sup> = _A_ ¯ _jnα_ <sup>_n_</sup> _C_ <sup>¯</sup> ¯ _njn_ + _A_ ¯ _j_ <sup>_n_</sup> +1 _C_ ¯ <sup>_n_</sup> _jn_ ¯ _j_ <sup>_n_</sup> _n_ <sup>+</sup> <sup>_A_</sup> ¯ _j_ <sup>_n_</sup> +1 <sup>_C_</sup> ¯ <sup>_n_</sup> _jn_ ¯ <sup>_n_</sup> _jn_ +1 <sup>_._</sup> (27) ¯ <sup>_n_</sup> _jn_ +1 <sup>=</sup> <sup>_A_</sup> ¯ _j_ <sup>_n_</sup> <sup>_C_</sup> ¯ _j_ <sup>_n_</sup> _n_ 7 <sup>_n_</sup> f <sup>_C_</sup> f <sup>_n_</sup> During _τ_, the feed source along the moving surface is _Q_ <sup>_n_</sup> f f <sup>_n_</sup> <sup>, whereas the outflux is</sup> <sup>Φ</sup> ¯ <sup>_C_</sup> _jn_ <sup>_,n_</sup> +3 During _τ_, the feed source along the moving surface is _Q_ <sup>_n_</sup> f <sup>_C_</sup> f <sup>_n_</sup> <sup>, whereas the outflux is</sup> <sup>Φ</sup> ¯ <sup>_C_</sup> _jn_ <sup>_,n_</sup> +3 _/_ 2 <sup>.</sup> <sup>Thus,</sup> by the balance law on any trapezoid the mass (per _h_ ) at _tn_ +1 is _m_ <sup>_C_</sup> <sup>_,n_</sup> <sup>+1</sup> ¯ _jn_ <sup>_C_</sup> <sup>_,n_</sup> <sup>+1</sup> = _m_ <sup>_C_</sup> <sup>_,n_</sup> ¯ _jn_ ¯ _jn_ <sup>_C_</sup> <sup>_,n_</sup> + _κ_ Ψ <sup>_C_</sup> <sup>_,n_</sup> ¯ _jn_ f _,_ <sup>¯</sup> _j_ <sup>_n_</sup> <sup>_C_</sup> <sup>_,n_</sup> (28) f _,_ <sup>¯</sup> _j_ <sup>_n_</sup> where the in- and outflux and source terms are ¯ _<u>jn</u>_ _α_ <sup>_n_</sup> <sup>_,_</sup> - _C_ _n_ + _A_ ¯ _jn_ +1 _R_ <sup>_n_</sup> _C_ _,_ <sup>¯</sup> _j_ <sup>_n_</sup> +1 + _A_ ¯ _jn_ +1 _R_ <sup>_n_</sup> _C_ Ψ <sup>_C_</sup> f _,_ <sup>¯</sup> _j_ <sup>_,nn_</sup> f <sup>_n_</sup> <sup>_C_</sup> <sup>_n_</sup> f _α_ <sup>_n_</sup> _A_ ¯ _jn_ _RC_ ¯ _j_ <sup>_C_</sup> _n_ <sup>_,n_</sup> +3 _/_ 2 <sup>+</sup> <sup>_h_</sup> <sup>_C_</sup> f _,_ <sup>¯</sup> _j_ <sup>_,nn_</sup> <sup>:=</sup> <sup>_Q_</sup> f <sup>_n_</sup> <sup>_n_</sup> f <sup>_−_</sup> <sup>Φ</sup> ¯ _j_ <sup>_C_</sup> _n_ <sup>_,n_</sup> +3 _S_ ¯ <sup>_n_</sup> _<u>jn</u>_ _α_ <sup>_n_</sup> _S_ ¯ <sup>_n_</sup> _<u>j</u>_ (the concentration in cell <sup>¯</sup> _j_ <sup>_n_</sup> below the surface is _C_ <sup>¯</sup> ¯ _njn_ ). _Case_ _(a):_ _Fill_ _case_ <sup>¯</sup> _j_ <sup>_n_</sup> = <sup>¯</sup> _j_ <sup>_n_</sup> <sup>+1</sup> _−_ 1 _,_ _Figure_ _3_ _(a)_ : The surface moves downwards and crosses a cell boundary. All the mass ends up in one cell: _A_ ¯ _jn_ +1 _C_ ¯ _j_ <sup>_n_</sup> _n_ <sup>+1</sup> +1 <sup>=</sup> <sup>_m_</sup> ¯ _j_ <sup>_C_</sup> _n_ <sup>_,n_</sup> <sup>+1</sup> . (the concentration in cell <sup>¯</sup> _j_ <sup>_n_</sup> below the surface is _C_ <sup>¯</sup> ¯ _j_ <sup>_n_</sup> _n_ <sup>+1</sup> +1 <sup>=</sup> <sup>_m_</sup> ¯ _j_ <sup>_C_</sup> _n_ <sup>_,n_</sup> <sup>+1</sup> . cell boundary. All the mass ends up in one cell: _A_ ¯ _jn_ +1 _C_ ¯ _j_ <sup>_n_</sup> _n_ <sup>+1</sup> +1 <sup>=</sup> <sup>_m_</sup> ¯ _j_ <sup>_C_</sup> _n_ <sup>_,n_</sup> <sup>+1</sup> . _Case_ _(b):_ _Fill_ _case_ <sup>¯</sup> _j_ <sup>_n_</sup> = <sup>¯</sup> _j_ <sup>_n_</sup> <sup>+1</sup> _,_ _Figure_ _3_ _(b)_ : When the surface does not cross any cell boundary during _τ_, the mass (28) is distributed among the two cells with respect to their volumes (below the surface): _<u>α</u>_ <sup>_n_</sup> <sup>+1</sup> _<u>A</u>_ ¯ _<u>jn</u>_ _A_ ¯ _jn_ _C_ ¯ <sup>_n_</sup> _jn_ <sup>+1</sup> = _α_ <sup>_n_</sup> <sup>+1</sup> _A_ ¯ _jn_ + _A_ ¯ _jn_ +1 (29) _m_ <sup>_C_</sup> <sup>_,n_</sup> <sup>+1</sup> _,_ ¯ _jn_ _<u>A</u>_ ¯ _<u>jn</u>_ <u>+1</u> _A_ ¯ _jn_ +1 _C_ ¯ <sup>_n_</sup> _jn_ <sup>+1</sup> +1 <sup>=</sup> _α_ <sup>_n_</sup> <sup>+1</sup> _A_ ¯ _jn_ + _A_ ¯ _jn_ +1 _m_ <sup>_C_</sup> <sup>_,n_</sup> <sup>+1</sup> _._ ¯ _jn_ _Case_ _(c):_ _Fill_ _case_ <sup>¯</sup> _j_ <sup>_n_</sup> = <sup>¯</sup> _j_ <sup>_n_</sup> <sup>+1</sup> + 1 _,_ _Figure_ _3_ _(c)_ : After the balance law is used on the purple trapezoid, the final mass (per _h_ ) is distributed among three cells: _<u>α</u>_ <sup>_n_</sup> <sup>+1</sup> _<u>A</u>_ ¯ _<u>jn−</u>_ <u>1</u> ¯ <sup>_n_</sup> _jn_ <sup>+1</sup> _−_ 1 <sup>=</sup> _α_ <sup>_n_</sup> <sup>+1</sup> _A_ ¯ _jn−_ 1 + _A_ ¯ _jn_ + _A_ ¯ _jn_ +1 _A_ ¯ _jn−_ 1 _C_ ¯ <sup>_n_</sup> _jn_ <sup>+1</sup> _−_ _m_ <sup>_C_</sup> <sup>_,n_</sup> <sup>+1</sup> _,_ ¯ _jn_ _m_ <sup>_C_</sup> <sup>_,n_</sup> <sup>+1</sup> ¯ _jn_ _<u>A</u>_ ¯ _<u>jn</u>_ ¯ <sup>_n_</sup> _jn_ <sup>+1</sup> = _α_ <sup>_n_</sup> <sup>+1</sup> _A_ ¯ _jn−_ 1 + _A_ ¯ _jn_ + _A_ ¯ _jn_ +1 _A_ ¯ _jn_ _C_ ¯ <sup>_n_</sup> _jn_ <sup>+1</sup> _m_ <sup>_C_</sup> <sup>_,n_</sup> <sup>+1</sup> _,_ ¯ _jn_ _m_ <sup>_C_</sup> <sup>_,n_</sup> <sup>+1</sup> ¯ _jn_ _<u>A</u>_ ¯ _<u>jn</u>_ <u>+1</u> ¯ <sup>_n_</sup> _jn_ <sup>+1</sup> +1 <sup>=</sup> _α_ <sup>_n_</sup> <sup>+1</sup> _A_ ¯ _jn−_ 1 + _A_ ¯ _jn_ + _A_ ¯ _jn_ +1 _A_ ¯ _jn_ +1 _C_ ¯ <sup>_n_</sup> _jn_ <sup>+1</sup> +1 _m_ <sup>_C_</sup> <sup>_,n_</sup> <sup>+1</sup> _._ ¯ _jn_ _m_ <sup>_C_</sup> <sup>_,n_</sup> <sup>+1</sup> ¯ _jn_ _Cells_ _near_ _the_ _surface_ _during_ _extraction_ _(t ∈_ _T_ e _)_ During extraction, the surface necessarily moves downwards. The initial mass is (27) and the balance law on a red trapezoid (Figures 3 (d) and (e)) gives _m_ <sup>_C_</sup> <sup>_,n_</sup> <sup>+1</sup> = _m_ <sup>_C_</sup> <sup>_,n_</sup> + _κ_ Ψ <sup>_C_</sup> <sup>_,n_</sup> ¯ _jn_ ¯ _jn_ e _,_ <sup>¯</sup> _j_ <sup>_n,_</sup> <sup>where</sup> <sup>_C_</sup> <sup>_,n_</sup> <sup>+1</sup> = _m_ <sup>_C_</sup> <sup>_,n_</sup> ¯ _jn_ ¯ _jn_ <sup>_C_</sup> e _,_ <sup>¯</sup> _j_ <sup>_,nn,_</sup> <sup>where</sup> <sup>_C_</sup> <sup>_,n_</sup> + _κ_ Ψ <sup>_C_</sup> <sup>_,n_</sup> ¯ _jn_ e _,_ <sup>¯</sup> _j_ <sup>_n_</sup> _._ + _A_ ¯ _jn_ +1 _R_ <sup>_n_</sup> _C_ _,_ <sup>¯</sup> _j_ <sup>_n_</sup> +1 + _A_ ¯ _jn_ +1 _R_ <sup>_n_</sup> _C_ Ψ <sup>_C_</sup> e _,_ <sup>¯</sup> _j_ <sup>_,nn_</sup> <sup>_C_</sup> e _,_ <sup>¯</sup> _j_ <sup>_,nn_</sup> <sup>:=</sup> <sup>Φ</sup> <sup>_C_</sup> e _,_ <sup>¯</sup> _j_ <sup>_,nn_</sup> <sup>_C_</sup> e _,_ <sup>¯</sup> _j_ <sup>_,nn_</sup> +1 _/_ 2 <sup>_−_</sup> <sup>Φ</sup> ¯ _j_ <sup>_C_</sup> _n_ <sup>_,n_</sup> +3 ¯ _j_ <sup>_C_</sup> _n_ <sup>_,n_</sup> +3 _/_ 2 <sup>+</sup> <sup>_h_</sup> _α_ <sup>_n_</sup> _A_ ¯ _jn_ _RC_ ¯ _<u>jn</u>_ _α_ <sup>_n_</sup> <sup>_,_</sup> - _C_ _n_ _S_ ¯ <sup>_n_</sup> _<u>jn</u>_ _α_ <sup>_n_</sup> _Extraction case_ <sup>¯</sup> _j_ <sup>_n_</sup> = <sup>¯</sup> _j_ <sup>_n_</sup> <sup>+1</sup> _−_ 1 _, Figure 3 (d)_ : All the mass ends up in one cell: _A_ ¯ _jn_ +1 _C_ ¯ _j_ <sup>_n_</sup> _n_ <sup>+1</sup> +1 _Extraction_ _case_ <sup>¯</sup> _j_ <sup>_n_</sup> = <sup>¯</sup> _j_ <sup>_n_</sup> <sup>+1</sup> _,_ _Figure_ _3_ _(e)_ : The surface stays in one cell and we ¯ _j_ <sup>_n_</sup> _n_ <sup>+1</sup> +1 <sup>=</sup> <sup>_m_</sup> ¯ _j_ <sup>_C_</sup> _n_ <sup>_,n_</sup> <sup>+1</sup> . _Extraction case_ <sup>¯</sup> _j_ <sup>_n_</sup> = <sup>¯</sup> _j_ <sup>_n_</sup> <sup>+1</sup> _−_ 1 _, Figure 3 (d)_ : All the mass ends up in one cell: _A_ ¯ _jn_ +1 _C_ ¯ _j_ <sup>_n_</sup> _n_ <sup>+1</sup> +1 <sup>=</sup> <sup>_m_</sup> ¯ _j_ <sup>_C_</sup> _n_ <sup>_,n_</sup> <sup>+1</sup> _Extraction_ _case_ <sup>¯</sup> _j_ <sup>_n_</sup> = <sup>¯</sup> _j_ <sup>_n_</sup> <sup>+1</sup> _,_ _Figure_ _3_ _(e)_ : The surface stays in one cell and we distribute the mass _m_ <sup>_C_</sup> <sup>_,n_</sup> <sup>+1</sup> into two cells with (29). ¯ _jn_ <sup>_C_</sup> <sup>_,n_</sup> <sup>+1</sup> into two cells with (29). ¯ _jn_ _The_ _cell_ _in_ _the_ _extraction_ _pipe_ The conservation law for the cell on the _x_ -axis gives the mass equality (Figure 3 (d)) _,_ _A_ e∆ _x_ _C_ <sup>_n_</sup> e <sup>+1</sup> <sup>_n_</sup> e <sup>+1</sup> = _A_ e∆ _x_ _C_ <sup>_n_</sup> e <sup>_n_</sup> e <sup>+</sup> <sup>_τ_</sup> e _,_ <sup>¯</sup> _j_ <sup>_n_</sup> +1 _/_ 2 _−_ _Q_ e <sup>_n_</sup> pipe e <sup>_n_</sup> <sup>_C_</sup> <sup>_n_</sup> e <sup>_n_</sup> e _,_ <sup>¯</sup> _j_ <sup>_n_</sup> e <sup>_−_</sup> <sup>Φ</sup> <sup>_C_</sup> <sup>_,n_</sup> where the cross-sectional area _A_ e of the effluent pipe is of less importance, since we are only interested in _C_ <sup>_n_</sup> e <sup>and</sup> <sup>therefore</sup> <sup>may</sup> <sup>choose</sup> <sup>any</sup> <sup>∆</sup> <sup>_x_</sup> <sup>;</sup> <sup>we</sup> <sup>set</sup> <sup>_A_</sup> <sup>e∆</sup> <sup>_x_</sup> <sup>:=</sup> <sup>_A_</sup> <sup>1</sup> <sup>_h_</sup> <sup>.</sup> <sup>_n_</sup> e <sup>and</sup> <sup>therefore</sup> <sup>may</sup> <sup>choose</sup> <sup>any</sup> <sup>∆</sup> <sup>_x_</sup> <sup>;</sup> <sup>we</sup> <sup>set</sup> <sup>_A_</sup> <sup>e∆</sup> <sup>_x_</sup> <sup>:=</sup> <sup>_A_</sup> <sup>1</sup> <sup>_h_</sup> <sup>.</sup> _3.4._ _Explicit_ _fully_ _discrete_ _scheme_ Given data at _tn_ and the values _z_ ¯ <sup>_n_</sup> <sup>+1</sup> and <sup>¯</sup> _j_ <sup>_n_</sup> <sup>+1</sup>, the update formulas for the particulate concentrations are given here and we distinguish between fill and extraction. We define _λj_ := _κ/Aj_ = _τ/_ ( _Ajh_ ) and _T_ e <sup>num</sup> := _tn_ : _Q_ <sup>_n_</sup> e <sup>_n_</sup> e <sup>_>_</sup> <sup>0</sup> <sup>_, Qn_</sup> f <sup>_n_</sup> f <sup>= 0</sup> _<u>A</u>_ ¯ _<u>jn</u>_ _,_ _η_ <sup>_n_</sup> <sup>+1</sup> := _α_ <sup>_n_</sup> <sup>+1</sup> _A_ ¯ _jn_ + _A_ ¯ _jn_ +1 _,_ 8 _T_ f <sup>num</sup> := _tn_ : _Q_ <sup>_n_</sup> e <sup>_n_</sup> e <sup>= 0</sup> <sup>_, Qn_</sup> f <sup>_n_</sup> f <sup>_≥_</sup> <sup>0</sup> _<u>A</u>_ ¯ _<u>jn</u>_ _,_ _θ_ <sup>_n_</sup> <sup>+1</sup> := _α_ <sup>_n_</sup> <sup>+1</sup> _A_ ¯ _jn−_ 1 + _A_ ¯ _jn_ + _A_ ¯ _jn_ +1 _._ The update formulas for the top cells below the surface are different depending on whether fill or extraction occurs. _Update_ _formulas_ _for_ _top_ _cells_ _during_ _fill_ f, then _C_ <sup>_n_</sup> e <sup>+1</sup> <sup>num</sup> f If _tn_ _∈_ _T_ <sup>num</sup> f, then _C_ <sup>_n_</sup> e <sup>+1</sup> = 0 . The numerical flux is given by (24) and the marching formulas If _tn_ _∈_ _T_ <sup>num</sup> depending on each layer are computed as follows for the top cells _j_ _∈{_ <sup>¯</sup> _j_ <sup>_n_</sup> _−_ 1 _,_ <sup>¯</sup> _j_ <sup>_n_</sup> _,_ <sup>¯</sup> _j_ <sup>_n_</sup> +1 _}_ (analogously for _S_ ): _S_ ¯ <sup>_n_</sup> _<u>j</u>_ ¯ _j_ <sup>_n_</sup> _n_ +1 <sup>+</sup> <sup>_λ_</sup> ¯ _j_ <sup>_n_</sup> <sup>_n_</sup> _j_ <sup>+1</sup> = _ωj_ <sup>f</sup> <sup>_,n_</sup> ¯ <sup>_n_</sup> _jn_ <sup>+</sup> <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> _A_ ¯ _jn_ _A_ <sup>¯</sup> <sup>_<u>jn</u>_</sup> ¯ _j_ <sup><u>+1</u></sup> _n_ <sup>_C_</sup> ¯ _j_ <sup>_n_</sup> _n_ _C_ <sup>_n_</sup> _j_ <sup>+1</sup> _j_ ¯ _jn_ +3 _/_ 2 <sup>_n_</sup> f <sup>_C_</sup> <sup>_n_</sup> f <sup>_n_</sup> ¯ _jn_ +3 f <sup>_−_</sup> <sup>Φ</sup> <sup>_C_</sup> <sup>_,n_</sup> _C_ ¯ <sup>_n_</sup> _j_ _α_ <sup>_n_</sup> _RC_ + <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> _A_ ¯ _jn_ _Q_ <sup>_n_</sup> f <u>�</u> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> _C_ _A_ ¯ _jn_ <sup>_R_</sup> <sup>_n_</sup> + _τ_ _C_ _,_ <sup>¯</sup> _j_ <sup>_n_</sup> +1 �� _C_ ¯ <sup>_n_</sup> _j_ ¯ _<u>jn</u>_ _α_ <sup>_n_</sup> <sup>_,_</sup> <u>�</u> _C_ _n_ _S_ ¯ <sup>_n_</sup> _<u>jn</u>_ _α_ <sup>_n_</sup> ¯ _jn_ +1 <sup>+</sup> <sup>_λ_</sup> ¯ _j_ <sup>_n_</sup> <sup>Ψ</sup> <sup>_C_</sup> f _,_ <sup>¯</sup> _j_ <sup>_,nn_</sup> <sup>_n_</sup> <sup>_C_</sup> f _,_ <sup>¯</sup> _j_ <sup>_,nn_</sup> = _ωj_ <sup>f</sup> <sup>_,n_</sup> = _ωj_ <sup>f</sup> <sup>_,n_</sup> ¯ <sup>_n_</sup> _jn_ <sup>+</sup> <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> _A_ ¯ _jn_ _A_ <sup>¯</sup> <sup>_<u>jn</u>_</sup> ¯ _j_ <sup><u>+1</u></sup> _n_ <sup>_C_</sup> ¯ _j_ <sup>_n_</sup> _n_ _,_ where the coefficients _ωj_ <sup>f</sup> <sup>_,n_</sup> are defined in the cases described in Figure 3 by: Case (a): <sup>¯</sup> _j_ <sup>_n_</sup> = <sup>¯</sup> _j_ <sup>_n_</sup> <sup>+1</sup> _−_ 1 : _ω_ ¯ _j_ <sup>f</sup> <sup>_,n_</sup> _n−_ Case (b): <sup>¯</sup> _j_ <sup>_n_</sup> = <sup>¯</sup> _j_ <sup>_n_</sup> <sup>+1</sup> : _ω_ ¯ _j_ <sup>f</sup> <sup>_,n_</sup> _n−_ Case (c): <sup>¯</sup> _j_ <sup>_n_</sup> = <sup>¯</sup> _j_ <sup>_n_</sup> <sup>+1</sup> + 1 : _ω_ ¯ _j_ <sup>f</sup> <sup>_,n_</sup> _n_ ¯ _j_ <sup>f</sup> <sup>_,n_</sup> _n_ <sup>:= 0</sup> <sup>_,_</sup> _ω_ ¯ _j_ <sup>f</sup> <sup>_,n_</sup> _n_ ¯ _j_ <sup>f</sup> <sup>_,n_</sup> _n_ <sup>:=</sup> <sup>_αn_</sup> <sup>+1</sup> <sup>_ηn_</sup> <sup>+1</sup> <sup>_,_</sup> _ω_ ¯ _j_ <sup>f</sup> <sup>_,n_</sup> _n_ ¯ _j_ <sup>f</sup> <sup>_,n_</sup> _n_ <sup>:=</sup> <sup>_θn_</sup> <sup>+1</sup> <sup>_,_</sup> _ω_ ¯ _j_ <sup>f</sup> <sup>_,n_</sup> _n_ ¯ _j_ <sup>f</sup> <sup>_,n_</sup> _n_ +1 <sup>:=</sup> <sup>_ηn_</sup> <sup>+1</sup> <sup>_,_</sup> ¯ _j_ <sup>f</sup> <sup>_,n_</sup> _n_ +1 <sup>:=</sup> <sup>_θn_</sup> <sup>+1</sup> <sup>_._</sup> ¯ _j_ <sup>f</sup> <sup>_,n_</sup> _n−_ 1 <sup>:= 0</sup> <sup>_,_</sup> _ω_ ¯ _j_ <sup>f</sup> <sup>_,n_</sup> _n_ ¯ _j_ <sup>f</sup> <sup>_,n_</sup> _n−_ 1 <sup>:= 0</sup> <sup>_,_</sup> _ω_ ¯ _j_ <sup>f</sup> <sup>_,n_</sup> _n_ ¯ _j_ <sup>f</sup> <sup>_,n_</sup> _n−_ 1 <sup>:=</sup> <sup>_αn_</sup> <sup>+1</sup> <sup>_θn_</sup> <sup>+1</sup> <sup>_,_</sup> _ω_ ¯ _j_ <sup>f</sup> <sup>_,n_</sup> _n_ ¯ _j_ <sup>f</sup> <sup>_,n_</sup> _n_ +1 <sup>:=</sup> <sup>_A_</sup> <sup>¯</sup> _j_ <sup>_n/A_</sup> <sup>¯</sup> _j_ <sup>_n_</sup> +1 <sup>_,_</sup> _Update_ _formulas_ _for_ _top_ _cells_ _during_ _extraction_ e If _tn_ _∈_ _T_ <sup>num</sup>, e If _tn_ _∈_ _T_ <sup>num</sup>, then we compute the numerical fluxes with (25) and for the top layers _j_ _∈_ _{_ <sup>¯</sup> _j_ <sup>_n_</sup> _,_ <sup>¯</sup> _j_ <sup>_n_</sup> + 1 _}_, the formula is (analogously for _S_ ) _S_ ¯ <sup>_n_</sup> _<u>j</u>_ ¯ _j_ <sup>_n_</sup> _n_ +1 <sup>+</sup> <sup>_λ_</sup> ¯ _j_ <sup>_n_</sup> <sup>_n_</sup> _j_ <sup>+1</sup> = _ωj_ <sup>e</sup> <sup>_,n_</sup> ¯ <sup>_n_</sup> _jn_ <sup>+</sup> <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> _A_ ¯ _jn_ _A_ <sup>¯</sup> <sup>_<u>jn</u>_</sup> ¯ _j_ <sup><u>+1</u></sup> _n_ <sup>_C_</sup> ¯ _j_ <sup>_n_</sup> _n_ _C_ <sup>_n_</sup> _j_ <sup>+1</sup> _j_ <sup>_C_</sup> <sup>_,n_</sup> ¯ _jn_ +3 e _,_ <sup>¯</sup> _j_ <sup>_n_</sup> +1 _/_ 2 <sup>_−_</sup> <sup>Φ</sup> <sup>_C_</sup> <sup>_,n_</sup> ¯ _jn_ +3 _/_ 2 _C_ ¯ <sup>_n_</sup> _jn_ + <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> _A_ ¯ _jn_ Φ <sup>_C_</sup> e _,_ <sup>¯</sup> _j_ <sup>_,nn_</sup> <u>�</u> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> _C_ _A_ ¯ _jn_ <sup>_R_</sup> <sup>_n_</sup> _,_ �� + _τ_ _α_ <sup>_n_</sup> _RC_ _C_ _,_ <sup>¯</sup> _j_ <sup>_n_</sup> +1 _C_ ¯ <sup>_n_</sup> _jn_ ¯ _<u>jn</u>_ _α_ <sup>_n_</sup> <sup>_,_</sup> <u>�</u> _C_ _n_ _S_ ¯ <sup>_n_</sup> _<u>jn</u>_ _α_ <sup>_n_</sup> ¯ _jn_ +1 <sup>+</sup> <sup>_λ_</sup> ¯ _j_ <sup>_n_</sup> <sup>Ψ</sup> <sup>_C_</sup> e _,_ <sup>¯</sup> _j_ <sup>_,nn_</sup> <sup>_n_</sup> <sup>_C_</sup> e _,_ <sup>¯</sup> _j_ <sup>_,nn_</sup> = _ωj_ <sup>e</sup> <sup>_,n_</sup> = _ωj_ <sup>e</sup> <sup>_,n_</sup> ¯ <sup>_n_</sup> _jn_ <sup>+</sup> <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> _A_ ¯ _jn_ _A_ <sup>¯</sup> <sup>_<u>jn</u>_</sup> ¯ _j_ <sup><u>+1</u></sup> _n_ <sup>_C_</sup> ¯ _j_ <sup>_n_</sup> _n_ where the coefficients _ωj_ <sup>e</sup> <sup>_,n_</sup> are defined in the cases described in Figure 3 by: Case (d): <sup>¯</sup> _j_ <sup>_n_</sup> = <sup>¯</sup> _j_ <sup>_n_</sup> <sup>+1</sup> : _ω_ ¯ _j_ <sup>e</sup> _n_ <sup>_,n_</sup> _ω_ ¯ _j_ <sup>e</sup> _n_ <sup>_,n_</sup> Case (e): <sup>¯</sup> _j_ <sup>_n_</sup> = <sup>¯</sup> _j_ <sup>_n_</sup> <sup>+1</sup> _−_ 1 : ¯ _j_ <sup>e</sup> _n_ <sup>_,n_</sup> <sup>:=</sup> <sup>_αn_</sup> <sup>+1</sup> <sup>_ηn_</sup> <sup>+1</sup> <sup>_,_</sup> _ω_ ¯ _j_ <sup>e</sup> _n_ <sup>_,n_</sup> +1 ¯ _j_ <sup>e</sup> _n_ <sup>_,n_</sup> <sup>:= 0</sup> <sup>_,_</sup> _ω_ ¯ _j_ <sup>e</sup> _n_ <sup>_,n_</sup> ¯ _j_ <sup>e</sup> _n_ <sup>_,n_</sup> +1 <sup>:=</sup> <sup>_ηn_</sup> <sup>+1</sup> <sup>_,_</sup> ¯ _j_ <sup>e</sup> _n_ <sup>_,n_</sup> +1 <sup>:=</sup> <sup>_A_</sup> <sup>¯</sup> _j_ <sup>_n/A_</sup> <sup>¯</sup> _j_ <sup>_n_</sup> +1 <sup>_._</sup> The effluent concentration is given by _._ 2 _C_ <sup>_n_</sup> e <sup>+1</sup> <sup>_n_</sup> e <sup>_−_</sup> <sup>_λ_</sup> <sup>1</sup> <sup>_n_</sup> e <sup>+1</sup> = _C_ <sup>_n_</sup> e _Q_ <sup>_n_</sup> e <sup>_C_</sup> e _,_ <sup>¯</sup> _j_ <sup>_,nn_</sup> +1 _/_ 2 <sup>_n_</sup> e <sup>_C_</sup> <sup>_n_</sup> e <sup>_n_</sup> e <sup>+</sup> <sup>Φ</sup> <sup>_C_</sup> e _,_ <sup>¯</sup> _j_ <sup>_,nn_</sup> _Other_ _concentrations_ For the cells _j_ = <sup>¯</sup> _j_ <sup>_n_</sup> + 2 _, . . ., N_, the update formula is (analogously for _S_ ), at every time point _tn_, _C_ <sup>_n_</sup> _j_ <sup>+1</sup> _C_ <sup>_n_</sup> u <sup>+1</sup> <sup>_n_</sup> _j_ <sup>+1</sup> = _C_ <sup>_n_</sup> _j_ <sup>_n_</sup> u <sup>+1</sup> = _C_ <sup>_n_</sup> u <sup>_n_</sup> _j_ <sup>_−_</sup> <sup>_λj_</sup> <sup>[∆</sup> <sup>Φ</sup> <sup>_C_</sup> <sup>]</sup> _j_ <sup>_n_</sup> <sup>_n_</sup> u <sup>+</sup> <sup>_λN_</sup> <sup>+1</sup> Φ <sup>_C_</sup> _N_ <sup>_,n_</sup> +1 the _j_ <sup>_n_</sup> <sup>+</sup> <sup>_τ_</sup> <sup>_R_</sup> _C_ <sup>_n_</sup> u <sup>_C_</sup> <sup>_n_</sup> u <sup>_n_</sup> u _C_ <sup>_n_</sup> _,j_ <sup>_,_</sup> (30) _._ (31) the surface, we have _C_ <sup>_n_</sup> <sup>+1</sup> = 0 <sup>_C_</sup> _N_ <sup>_,n_</sup> +1 _/_ 2 <sup>_−_</sup> <sup>_Q_</sup> u <sup>_n_</sup> where the numerical flux is computed by (19). For the cells above the surface, we have _C_ <sup>_n_</sup> _j_ <sup>+1</sup> where the numerical flux is computed by (19). For the cells above the surface, we have _C_ <sup>_n_</sup> _j_ <sup>+1</sup> = 0 for _j_ _<_ <sup>¯</sup> _j_ <sup>_n_</sup> _−_ 1. Finally, one computes _j_ <sup>_n_</sup> <sup>=</sup> <sup>_C_</sup> _j_ <sup>(1)</sup> <sup>_,n_</sup> _j_ <sup>_n_</sup> <sup>=</sup> <sup>_ρL_</sup> <sup>(1</sup> <sup>_−_</sup> <sup>_X_</sup> _j_ <sup>_n_</sup> _._ _Xj_ <sup>_n_</sup> _j_ <sup>(1)</sup> <sup>_,n_</sup> + _· · ·_ + _Cj_ <sup>(</sup> <sup>_k_</sup> <sup>_C_</sup> <sup>)</sup> <sup>_,n_</sup> _j_ _,_ _W_ <sup>_n_</sup> <sup>(</sup> <sup>_k_</sup> <sup>_C_</sup> <sup>)</sup> <sup>_,n_</sup> _j_ _j_ <sup>_n/ρX_</sup> <sup>)</sup> <sup>_−_</sup> _Sj_ <sup>(1)</sup> <sup>_,n_</sup> _j_ _j_ <sup>(1)</sup> <sup>_,n_</sup> _j_ + _· · ·_ + _S_ <sup>(</sup> <sup>_k_</sup> <sup>_S_</sup> <sup>)</sup> <sup>_,n_</sup> 9 _3.5._ _A_ _splitting_ _scheme_ _and_ _invariant-region_ _property_ It is desirable that the solution vectors _U_ := ( _C_ _,_ _S_ ) and _U_ e := ( _C_ e _,_ _S_ e) of the model (17) stay in the set Ω:= _U_ _∈_ R <sup>_k_</sup> <sup>_C_</sup> <sup>+</sup> <sup>_k_</sup> <sup>_S_</sup> : _C_ _≥_ 0 _,_ _S_ _≥_ 0 _,_ _C_ <sup>(1)</sup> + _· · ·_ + _C_ <sup>(</sup> <sup>_k_</sup> <sup>_C_</sup> <sup>)</sup> _≤_ _X_ <sup>ˆ</sup> invariant� set for the numerical solutions, we split the _._ To ensure that Ωis an invariant set for the numerical solutions, we split the scheme in Section 3.4 by taking one time step without the reaction terms and then one time step with only the reaction terms. For a cell strictly below the surface and the solid concentrations, the update formula (30) can be written <sup>_n_</sup> _j_ <sup>_,_</sup> <sup>_S_</sup> <sup>_n_</sup> _j_ _C_ <sup>_n_</sup> _j_ <sup>+1</sup> _C_ <sup>_n_</sup> _j_ _j_ <sup>_n_</sup> _j_ <sup>+1</sup> = <sup>_n_</sup> _j_ _j_ <sup>_−_</sup> <sup>_λj_</sup> <sup>[∆</sup> <sup>Φ</sup> <sup>_C_</sup> <sup>]</sup> <sup>_n_</sup> + _τ_ _RC_ ( _C_ <sup>_n_</sup> _j_ <sup>compute</sup> - <sup>the</sup> <sup>_n_</sup> _j_ <sup>)</sup> <sup>_._</sup> and similarly for _S_ <sup>_n_</sup> _j_ and similarly for _S_ <sup>_n_</sup> _j_ <sup>.</sup> <sup>The</sup> <sup>splitting</sup> <sup>principle</sup> <sup>is</sup> <sup>to</sup> <sup>compute</sup> <sup>the</sup> <sup>expression</sup> <sup>in</sup> <sup>the</sup> <sup>curled</sup> <sup>brackets</sup> first and then use the result for the second step as follows: _j_ <sup>_n,_</sup> (32) _nj_ +1 = _C_ <sup>_n_</sup> _j_ _j_ <sup>_n,_</sup> _S_ ˇ _C_ ˇ <sup>_n_</sup> _jnj_ +1 <sup>_−_</sup> <sup>_λ_</sup> + <sup>_j_</sup> _τ_ <sup>[∆</sup> _R_ <sup>Φ</sup> _C_ <sup>_C_</sup> ( _C_ <sup>]</sup> <sup>ˇ</sup> _j_ <sup>_n_</sup> _nj_ +1 = _S_ <sup>_n_</sup> _j_ _n_ +1 _j_ ) _._ (33) <sup>_n_</sup> _jnj_ +1 <sup>_−_</sup> <sup>_λ_</sup> + <sup>_j_</sup> _τ_ <sup>[∆</sup> _R_ <sup>Φ</sup> _S_ <sup>_S_</sup> ( _C_ <sup>]</sup> <sup>ˇ</sup> _j_ <sup>_n_</sup> _j_ <sup>_,_</sup> _nj_ +1 _,_ _S_ <sup>ˇ</sup> _n_ +1 _j_ ) _,_ _S_ <sup>_n_</sup> _j_ <sup>+1</sup> = _S_ <sup>ˇ</sup> _n_ +1 _j_ ) _,_ _S_ <sup>_n_</sup> _j_ <sup>+1</sup> _C_ <sup>_n_</sup> _j_ <sup>+1</sup> = _C_ <sup>ˇ</sup> <sup>_n_</sup> _j_ <sup>+1</sup> = _C_ <sup>ˇ</sup> _nj_ +1 _,_ _S_ <sup>ˇ</sup> For the cells involving the surface, the first-step update formulas, _j_ _∈{_ <sup>¯</sup> _j_ <sup>_n_</sup> _−_ 1 _,_ <sup>¯</sup> _j_ <sup>_n_</sup> _,_ <sup>¯</sup> _j_ <sup>_n_</sup> + 1 _}_ are ¯ _j_ <sup>_n_</sup> _n_ +1 <sup>+</sup> <sup>_λ_</sup> ¯ _j_ <sup>_n_</sup> _nj_ +1 = _ωj_ <sup>f</sup> <sup>_,n_</sup> _nj_ +1 = _ωj_ <sup>f</sup> <sup>_,n_</sup> ¯ <sup>_n_</sup> _jn_ <sup>+</sup> <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> _A_ ¯ _jn_ f if _tn_ _∈_ _T_ <sup>num</sup> - <sup>�</sup> _C_ ˇ _C_ ˇ _C_ ¯ <sup>_n_</sup> _j_ _C_ ¯ <sup>_n_</sup> _j_ ¯ _jn_ +3 _/_ 2 <sup>_n_</sup> f <sup>_C_</sup> <sup>_n_</sup> f <sup>_n_</sup> ¯ _jn_ +3 f <sup>_−_</sup> <sup>Φ</sup> <sup>_C_</sup> <sup>_,n_</sup> f, (34) <sup>num</sup> ¯ _j_ <sup>_n_</sup> _n_ +1 <sup>+</sup> <sup>_λ_</sup> ¯ _j_ <sup>_n_</sup> _nj_ +1 = _ωj_ <sup>e</sup> <sup>_,n_</sup> _nj_ +1 = _ωj_ <sup>e</sup> <sup>_,n_</sup> ¯ <sup>_n_</sup> _jn_ <sup>+</sup> <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> _A_ ¯ _jn_ _A_ <sup>¯</sup> <sup>_<u>jn</u>_</sup> ¯ _j_ <sup><u>+1</u></sup> _n_ <sup>_C_</sup> ¯ _j_ <sup>_n_</sup> _n_ _A_ <sup>¯</sup> <sup>_<u>jn</u>_</sup> ¯ _j_ <sup><u>+1</u></sup> _n_ <sup>_C_</sup> ¯ _j_ <sup>_n_</sup> _n_ e if _tn_ _∈_ _T_ <sup>num</sup> - <sup>�</sup> _Q_ <sup>_n_</sup> f Φ <sup>_C_</sup> e _,_ <sup>¯</sup> _j_ <sup>_,nn_</sup> <sup>_C_</sup> <sup>_,n_</sup> ¯ _jn_ +3 e _,_ <sup>¯</sup> _j_ <sup>_n_</sup> +1 _/_ 2 <sup>_−_</sup> <sup>Φ</sup> <sup>_C_</sup> <sup>_,n_</sup> ¯ _jn_ +3 _/_ 2 e, (35) <sup>num</sup> and the analogous formulas with _C_ replaced by _S_ . The second step consists in the formulas (36) + <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> _A_ ¯ _jn_ <sup>_RC_</sup> + <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> _A_ ¯ _jn_ f if _tn_ _∈_ _T_ <sup>num</sup> - <sup>�</sup> e if _tn_ _∈_ _T_ <sup>num</sup> - <sup>�</sup> (37) f, <sup>num</sup> _nj_ +1 + _ωj_ <sup>f</sup> <sup>_,nτ_</sup> _nj_ +1 + _ωj_ <sup>f</sup> <sup>_,n_</sup> _S_ ˇ ¯ _<u>jnn</u>_ +1 _α_ <sup>_n_</sup> _n_ +1 ¯ _jn_ +1 _C_ <sup>_n_</sup> _j_ <sup>+1</sup> = _C_ <sup>ˇ</sup> <sup>_n_</sup> _j_ <sup>+1</sup> = _C_ <sup>ˇ</sup> ¯ _njn_ +1+1 _,_ _S_ <sup>ˇ</sup> - _C_ ˇ ¯ _jnn_ +1+1 _,_ _S_ <sup>ˇ</sup> - _C_ ˇ + <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> _A_ ¯ _jn_ <sup>_RC_</sup> + <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> _A_ ¯ _jn_ e, <sup>num</sup> _nj_ +1 + _ωj_ <sup>e</sup> <sup>_,n_</sup> _τ_ _nj_ +1 + _ωj_ <sup>e</sup> <sup>_,n_</sup> _α_ <sup>_n_</sup> _RC_ _α_ <sup>_n_</sup> _RC_ _n_ +1 ¯ _<u>jn</u>_ _α_ <sup>_n_</sup> <sup>_,_</sup> - _C_ ˇ _n_ +1 ¯ _<u>jn</u>_ _α_ <sup>_n_</sup> <sup>_,_</sup> - _C_ ˇ _S_ ˇ ¯ _njn_ +1 _α_ <sup>_n_</sup> _n_ +1 ¯ _jn_ +1 _C_ <sup>_n_</sup> _j_ <sup>+1</sup> = _C_ <sup>ˇ</sup> <sup>_n_</sup> _j_ <sup>+1</sup> = _C_ <sup>ˇ</sup> and the analogous formulas with _C_ replaced by _S_ . The time step _τ_ has to be bounded by the CFL condition _β_ 1 _, β_ 2 _, M_ _C_ (1 + _M_ 3) _, M_ _S_ _,_ _M/ε_ <sup>˜</sup> , the volumetric flows, and the _τ_ max _≤_ 1 _,_ (CFL) constitutive functions by where _β_ 1 and _β_ 2 depend on _h_, _h_ <sup>2</sup>, the volumetric flows, and the constitutive functions by _∥d∥X_ <sup>ˆ</sup> + _D_ ( _X_ <sup>ˆ</sup> ) <u>�</u> _<u>v</u>_ <u>hs(0)</u> _<u>XM</u>_ ˆ _<u>D</u>_ <u>(</u> _<u>X</u>_ <sup>ˆ</sup> <u>)</u> _,_ _h_ <sup>2</sup> _β_ 1 := _A_ <sup>_<u>∥Q</u>_</sup> min <sup>_<u>∥T</u>_</sup> _A_ <sup>_<u>∥Q</u>_</sup> min <sup>_<u>∥T</u>_</sup> _h_ <sup>+</sup> <sup>_<u>M</u>_</sup> _h_ <sup><u>1</u></sup> _h_ _∥v_ hs <sup>_′_</sup> <u>�</u> hs <sup>_′_</sup> <sup>_∥X_</sup> <sup>ˆ</sup> <sup>+</sup> <sup>_v_</sup> <sup>hs(0)</sup> _h_ <sup>2</sup> _β_ 2 := max _{M_ 1 _,_ 1 _}_ <sup>_<u>ρX</u>_</sup> <sup><u>+</u></sup> <sup>_<u>X</u>_</sup> <sup>ˆ</sup> _ρX_ _−_ _X_ <sup>ˆ</sup> _<u>XM</u>_ ˆ <u>1</u> _ρX_ _−_ _X_ <sup>ˆ</sup> + <sup><u>2</u></sup> <sup>_<u>M</u>_</sup> <sup><u>2</u></sup> _h_ <sup>2</sup> <u>�</u> _<u>XM</u>_ ˆ <u>1</u> _<u>XM</u>_ ˆ <u>2</u> _ρX_ _−_ _X_ <sup>ˆ</sup> _,_ <u>�</u> <u>2</u> _ρX_ _−_ _X_ <sup>ˆ</sup> _<u>∥Q∥T</u>_ _A_ min _h_ <sup>+</sup> <u>2</u> _<u>v</u>_ <u>hs(0)</u> + _h_ and where the constants are given by (here, _ξ_ represents _v_ hs _, v_ hs <sup>_′_</sup> <sup>or</sup> <sup>_d_</sup> <sup>)</sup> <sup>(cf.</sup> <sup>(8))</sup> _ξ_ <sup>(</sup> <sup>_l_</sup> <sup>)(</sup> <sup>_C_</sup> <sup>_,_</sup> <sup>_S_</sup> <sup>)</sup> <sup>_,_</sup> _ξ_ _∈{_ _C_ _,_ _S_ _},_ _M_ ˜ := sup _U_ _∈_ Ω _U_ _∈_ Ω _M_ _ξ_ := sup _U_ _∈_ Ω _,_ 1 _≤k≤k_ _ξ_ _l∈I_ _ξ_ <sup>_−_</sup> _∈_ - _I_ _ξ_ <sup>_−_</sup> _ξ_ _,k_ _R_ ˜ _C_ ( _C_ _,_ _S_ ) _,_ _,_ <u>�</u> _ξ_ _|σ_ <sup>(</sup> <sup>_k,l_</sup> <sup>)</sup> _ξ_ <sup>(</sup> <sup>_k,l_</sup> <sup>)</sup> _|r_ ¯ _ξ_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> _∥ξ∥_ := 0 _≤_ max _X≤X_ <sup>ˆ</sup> _M_ 1 := max _j_ =1 _,...,N_ _|ξ_ ( _X_ ) _|,_ _∥Q∥T_ := max 0 _≤t≤_ _Aj_ +1 - _<u>Aj</u>_ _Aj_ - _<u>Aj</u>_ <u>+1</u> _<u>/</u>_ <u>2</u> _Aj_ - _<u>Aj</u>_ <u>+1</u> _<u>/</u>_ <u>2 +</u> _<u>Aj−</u>_ <u>1</u> _<u>/</u>_ <u>2</u> _,_ _,_ <sup>_<u>Aj−</u>_</sup> <sup><u>1</u></sup> <sup>_<u>/</u>_</sup> <sup><u>2</u></sup> _,_ _M_ 2 := max _j_ =1 _,...,N_ max _|Q_ u( _t_ ) _−_ _Q_ f ( _t_ ) _|, Q_ u( _t_ ) + _Q_ e( _t_ ) 0 _≤t≤T_ _Aj_ _M_ 3 := max _j_ =1 _,...,N_ _−_ 1 _._ 10 Theorem 1. _Consider_ _the_ _numerical_ _splitting_ _method_ _in_ _Section_ _3.5._ _If_ _U_ <sup>_n_</sup> _j_ <sup>_n_</sup> _j_ <sup>_,_</sup> <sup>_S_</sup> <sup>_n_</sup> _j_ Theorem 1. _Consider_ _the_ _numerical_ _splitting_ _method_ _in_ _Section_ _3.5._ _If_ _U_ <sup>_n_</sup> _j_ <sup>:= (</sup> <sup>_C_</sup> <sup>_n_</sup> _j_ <sup>_,_</sup> <sup>_S_</sup> <sup>_n_</sup> _n_ _n_ _n_ _j_ <sup>)</sup> <sup>_∈_</sup> <sup>Ω</sup> <sup>_for_</sup> _all_ _j̸_ = <sup>¯</sup> _j_ <sup>_n_</sup> _,_ _U_ <sup>¯</sup> ¯ _jn_ := ( _C_ <sup>¯</sup> ¯ _jn,_ _S_ <sup>¯</sup> ¯ _jn_ ) _∈_ Ω _,_ _U_ e <sup>_n_</sup> <sup>:= (</sup> <sup>_C_</sup> <sup>_n_</sup> e <sup>_,_</sup> <sup>_S_</sup> <sup>_n_</sup> e <sup>)</sup> <sup>_∈_</sup> <sup>Ω</sup> <sup>_and_</sup> <sup>(CFL)</sup> <sup>_holds,_</sup> <sup>_then_</sup> _n_ _̸_ ¯ _jn_ := ( _C_ <sup>¯</sup> ¯ _njn_ ) _∈_ Ω _,_ _U_ e <sup>_n_</sup> ¯ _njn,_ _S_ <sup>¯</sup> e <sup>_n_</sup> <sup>:= (</sup> <sup>_C_</sup> <sup>_n_</sup> e <sup>_,_</sup> <sup>_n_</sup> e <sup>_,_</sup> <sup>_S_</sup> <sup>_n_</sup> e <sup>_n_</sup> e <sup>)</sup> <sup>_∈_</sup> <sup>Ω</sup> <sup>_and_</sup> <sup>(CFL)</sup> <sup>_holds,_</sup> <sup>_then_</sup> <sup>_n_</sup> _j_ <sup>:= (</sup> <sup>_C_</sup> <sup>_n_</sup> _j_ ¯ _jnn_ +1 _,_ _U_ <sup>_n_</sup> e <sup>+1</sup> _∈_ Ω _._ ¯ _jnn_ +1 _,_ _U_ <sup>_n_</sup> e <sup>+1</sup> _U_ _j_ <sup>_n_</sup> <sup>+1</sup> _,_ _U_ <sup>¯</sup> _j_ <sup>_n_</sup> <sup>+1</sup> _,_ _U_ <sup>¯</sup> Theorem 1 is proved by the following lemmas and by the fact that (CFL) implies (20), which we have used in the derivation of the scheme. For the proofs write the update formulas as _Cj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> _C_ _,j_ _j_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> _C_ _,j_ = _H_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> _C_ <sup>_n_</sup> _j_ <sup>_n_</sup> _j−_ 1 <sup>_, . . .,_</sup> <sup>_C_</sup> _j_ <sup>_n_</sup> _j_ +3 <sup>_,_</sup> <sup>_S_</sup> <sup>_n_</sup> _j_ <sup>_n_</sup> _j_ for one component _k_ _∈{_ 1 _, . . ., k_ _C_ _}_ (see Section 3.4). That formula includes the underflow concentrations (31) for _j_ = _N_ + 1. Summing for fixed _j_ all components of the update formula (30) for _C_ <sup>_n_</sup> _j_ <sup>+1</sup>, one gets <sup>_n_</sup> _j_ <sup>+1</sup>, one gets _Xj_ <sup>_n_</sup> <sup>+1</sup> _j_ <sup>_n_</sup> <sup>+1</sup> = _Xj_ <sup>_n_</sup> _j_ <sup>_n_</sup> <sup>+</sup> <sup>_λj_</sup> <sup>[∆˜Φ</sup> <sup>_C_</sup> <sup>]</sup> <sup>_n_</sup> _j_ _C_ <sup>_n_</sup> _,j_ <sup>_,_</sup> (38) <sup>_n_</sup> _j_ <sup>+</sup> <sup>_τ_</sup> <sup>_R_</sup> <sup>˜</sup> _C_ <sup>_n_</sup> where Φ <sup>˜</sup> <sup>_C_</sup> and _R_ <sup>˜</sup> _C_ <sup>_n_</sup> where Φ <sup>˜</sup> <sup>_C_</sup> and _R_ <sup>˜</sup> _C_ <sup>_n_</sup> _,j_ <sup>denote the sum of all components, respectively.</sup> <sup>Analogous considerations lead</sup> to formulas for _X_ <sup>¯</sup> _j_ <sup>_n_</sup> <sup>and</sup> <sup>_X_</sup> e <sup>_n_</sup> <sup>+1</sup> . Lemma _U_ <sup>_n_</sup> e <sup>:= (</sup> <sup>_C_</sup> 1. <sup>_n_</sup> e <sup>_,_</sup> <sup>_S_</sup> _Let_ <sup>_n_</sup> e <sup>)</sup> <sup>_∈_</sup> _R_ <sup>Ω</sup> _C_ <sup>_and_</sup> _≡_ 0 <sup>(CFL)</sup> _._ _If_ _U_ <sup>_holds,n_</sup> _j_ <sup>:=</sup> <sup>_then_</sup> <sup>(</sup> <sup>_C_</sup> <sup>_n_</sup> _j_ <sup>_,_</sup> <sup>_S_</sup> <sup>_n_</sup> _j_ <sup>)</sup> <sup>_∈_</sup> <sup>Ω</sup> <sup>_for_</sup> <sup>_all_</sup> <sup>_j̸_</sup> <sup>=</sup> <sup>¯</sup> <sup>_jn,_</sup> <sup>_U_</sup> <sup>¯</sup> ¯ _njn_ := ( _C_ <sup>¯</sup> ¯ _njn,_ _S_ <sup>¯</sup> ¯ _njn_ ) _∈_ Ω _,_ _j_ <sup>_n_</sup> <sup>and</sup> <sup>_X_</sup> e <sup>_n_</sup> <sup>+1</sup> e <sup>_n_</sup> <sup>+1</sup> . ¯ _njn,_ _S_ <sup>¯</sup> _nj_ Lemma _U_ <sup>_n_</sup> e <sup>:= (</sup> <sup>_C_</sup> 1. <sup>_n_</sup> e <sup>_,_</sup> <sup>_S_</sup> _Let_ <sup>_n_</sup> _RC_ _≡_ 0 _._ _If_ _U_ <sup>_n_</sup> _j_ <sup>_n_</sup> _j_ <sup>_,_</sup> <sup>_S_</sup> <sup>_n_</sup> _j_ <sup>_̸_</sup> <sup>_n_</sup> _j_ <sup>)</sup> <sup>_∈_</sup> <sup>Ω</sup> <sup>_for_</sup> <sup>_all_</sup> <sup>_j̸_</sup> <sup>=</sup> <sup>¯</sup> <sup>_jn,_</sup> <sup>_U_</sup> <sup>¯</sup> ¯ _j_ _n_ ¯ _jn_ := ( _C_ <sup>¯</sup> _j_ <sup>_n_</sup> e <sup>:= (</sup> <sup>_C_</sup> <sup>_n_</sup> e <sup>_n_</sup> e <sup>_,_</sup> <sup>_S_</sup> <sup>_n_</sup> e <sup>_n_</sup> e <sup>)</sup> <sup>_∈_</sup> <sup>Ω</sup> <sup>_and_</sup> <sup>(CFL)</sup> <sup>_holds,_</sup> <sup>_then_</sup> <sup>_n_</sup> _j_ <sup>:=</sup> <sup>(</sup> <sup>_C_</sup> <sup>_n_</sup> _j_ _j_ _,_ _X_ <sup>¯</sup> ¯ _j_ <sup>_n_</sup> _n_ <sup>+1</sup> 0 _≤_ _X_ <sup>_n_</sup> <sup>+1</sup> e <sup>_n_</sup> <sup>+1</sup> for all _j._ _≤_ _X_ <sup>ˆ</sup> ¯ _j_ <sup>_n_</sup> _n_ <sup>+1</sup> _, X_ e <sup>_n_</sup> <sup>+1</sup> _Proof._ We write the general update formula (38) as _Xj_ <sup>_n_</sup> <sup>+1</sup> _X,j_ <sup>_n_</sup> <sup>(</sup> <sup>_X_</sup> _j_ <sup>_n_</sup> _j_ <sup>_n_</sup> _−_ 1 <sup>_, . . ., X_</sup> _j_ <sup>_n_</sup> _j_ <sup>_n_</sup> <sup>+1</sup> _X,j_ = _H_ <sup>_n_</sup> _Proof._ We write the general update formula (38) as _Xj_ <sup>_n_</sup> <sup>+1</sup> _X,j_ <sup>(</sup> <sup>_X_</sup> <sup>_n_</sup> _j_ +3 <sup>)</sup> <sup>and</sup> <sup>let</sup> <sup>this</sup> = _H_ <sup>_n_</sup> _j−_ 1 <sup>_, . . ., X_</sup> <sup>_n_</sup> include the surface concentration _X_ <sup>¯</sup> ¯ _j_ <sup>_n_</sup> _n_ <sup>.</sup> <sup>For</sup> <sup>cells</sup> <sup>away</sup> <sup>from</sup> <sup>the</sup> <sup>moving</sup> <sup>surface,</sup> <sup>we</sup> <sup>refer</sup> <sup>to</sup> <sup>[5,</sup> Theorem 3.1] from which we also collect <sup>2</sup> _v_ hs( _Xj_ <sup>_n_</sup> _<u>Q</u>_ <sup>_n_</sup> <u>u</u> 2 _Aj_ +1 _/_ ��+ _≤_ _vj_ <sup>_X,n,_</sup> +1 _/_ <sup>+</sup> 2 <sup>=</sup> _qj_ <sup>_n_</sup> + _v_ hs(0) + <sup>_<u>D</u>_</sup> <sup><u>(</u></sup> <sup>_<u>X</u>_</sup> <sup>ˆ</sup> <sup><u>)</u></sup> _._ _h_ _j_ <sup>_n_</sup> +1 _/_ 2 <sup>+</sup> <sup>_γj_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_n_</sup> _j_ +1 _/_ _j_ +1 <sup>)</sup> <sup>_−_</sup> <sup>_J_</sup> <sup>_C_</sup> <sup>_,n_</sup> _j_ +1 _/_ 2 <u>u</u> _Aj_ +1 _/_ 2 To show the monotonicity for the cells near the surface, we set _χ_ <sup>+</sup> := _χ{v_ ¯ _jnX,n_ +1 + <sup>_<u>D</u>_</sup> <sup><u>(</u></sup> <sup>_<u>X</u>_</sup> <sup>ˆ</sup> <sup><u>)</u></sup> _h_ ¯ _jnX,n_ +1 _/_ 2 <sup>_≥_</sup> <sup>0</sup> <sup>_},_</sup> _χ_ <sup>_−_</sup> := _χ{v_ ¯ _jnX,n_ +1 ¯ _jnX,n_ +1 _/_ 2 <sup>_≤_</sup> <sup>0</sup> <sup>_},_</sup> _χ_ <sup>_−_</sup> e <sup>_−_</sup> e <sup>:=</sup> <sup>_χ_</sup> _{v_ e <sup>_X,n_</sup> _,_ <sup>¯</sup> _j_ <sup>_n_</sup> e <sup>_X,n_</sup> _,_ <sup>¯</sup> _j_ <sup>_n_</sup> +1 _/_ 2 <sup>_≤_</sup> <sup>0</sup> <sup>_},_</sup> + <sup>_<u>D</u>_</sup> <sup><u>(</u></sup> <sup>_<u>X</u>_</sup> <sup>ˆ</sup> <sup><u>)</u></sup> _h_ _ν_ 1 := _X_ <sup>ˆ</sup> + _v_ hs(0) _h_ - _<u>∥d∥</u>_ <sup><u>(</u></sup> <sup>_<u>X</u>_</sup> <sup>ˆ</sup> <sup><u>)</u></sup> _,_ _ν_ 2 := _X_ <sup>ˆ</sup> _h_ _h_ + _∥v_ hs <sup>_′_</sup> - _<u>∥d∥</u>_ hs <sup>_′_</sup> <sup>_∥_</sup> <sup>_<u>X</u>_</sup> <sup>ˆ</sup> <sup><u>)</u></sup> _,_ _h_ and calculate for _j_ = <sup>¯</sup> _j_ <sup>_n_</sup> _∂vj_ <sup>_X,n,_</sup> <u>+1</u> _<u>/</u>_ <sup>_<u>±</u>_</sup> <u>2</u> = _v_ <sup>_′_</sup> hs <sup>_′_</sup> <sup>(</sup> <sup>_X_</sup> <sup>_n_</sup> _j_ _∂vj_ <sup>_X,n,_</sup> <u>+1</u> _<u>/</u>_ <sup>_<u>±</u>_</sup> <u>2</u> _<u>j</u>_ <u>+1</u> _<u>/</u>_ <u>2</u> _∂Xj_ <sup>_<u>n</u>_</sup> +1 _j_ +1 _<u>j</u>_ <u>+1</u> _<u>/</u>_ <u>2</u> _∂Xj_ <sup>_<u>n</u>_</sup> _<u>j</u>_ <sup>)</sup> = _χ_ <sup>_±_</sup> <sup>_d_</sup> <sup>(</sup> <sup>_X_</sup> <sup>_n_</sup> _,_ _h_ _<u>j</u>_ <sup>_n_</sup> _j_ +1 <sup>)</sup> <sup>_−_</sup> <sup>_χ± d_</sup> <sup>(</sup> <sup>_X_</sup> _h_ <sup>_n_</sup> _<u>j</u>_ <u>+1</u> <sup>)</sup> _,_ _h_ <sup>_n_</sup> _j_ _∂_ Φ <sup>˜</sup> <sup>_C_</sup> _<u>j</u>_ <u>+1</u> <sup>_,n_</sup> _<u>j</u>_ <sup>_n_</sup> _j_ +1 <sup>)</sup> <sup>_−_</sup> <sup>_d_</sup> <sup>(</sup> <sup>_X_</sup> _h_ <sup>_n_</sup> _<u>j</u>_ <u>+1</u> _<u>/</u>_ <u>2</u> _∂Xj_ <sup>_<u>n</u>_</sup> _j_ +1 _/_ 2 _χ_ <sup>_−_</sup> _Xj_ <sup>_n_</sup> �� _vj_ <sup>_X,n,_</sup> +1 _/_ <sup>_−_</sup> 2 <u>�</u> <u>f</u> _<u>,j</u>_ _∂Xj_ <sup>_<u>n</u>_</sup> _j_ <sup>_n_</sup> +1 <sup>+</sup> <sup>_χ_</sup> <sup>+</sup> <sup>_X_</sup> _j_ <sup>_n_</sup> _≤_ _Aj_ +1 _/_ 2 _ν_ 1 + _Q_ u <sup>_n_</sup> u <sup>_n,_</sup> _j_ _j_ _∂_ Φ <sup>˜</sup> <sup>_C_</sup> _<u>j</u>_ <u>+1</u> <sup>_,n_</sup> _<u>j</u>_ <sup>)</sup> _h_ + _vj_ <sup>_X,n,_</sup> +1 _/_ <sup>+</sup> 2 - _d_ ( _X_ <sup>_n_</sup> _≤_ 0 _,_ �� _<u>j</u>_ <u>+1</u> _<u>/</u>_ <u>2</u> _∂Xj_ <sup>_<u>n</u>_</sup> +1 hs <sup>_′_</sup> <sup>(</sup> <sup>_X_</sup> <sup>_n_</sup> _j_ _<u>j</u>_ <u>+1</u> <sup>)</sup> <sup>_X_</sup> _h_ <sup>_n_</sup> _χ_ <sup>_−_</sup> _Xj_ <sup>_n_</sup> _j_ <sup>_n_</sup> +1 <sup>+</sup> <sup>_χ_</sup> <sup>+</sup> <sup>_X_</sup> _j_ <sup>_n_</sup> _v_ <sup>_′_</sup> - <sup>�</sup> _j_ +1 _j_ <sup>_X,n,_</sup> +1 _/_ <sup>_−_</sup> 2 <sup>+</sup> _j_ _∂_ Ψ <sup>˜</sup> <sup>_C_</sup> <u>f</u> _<u>,j</u>_ <sup>_,n_</sup> = _Aj_ +1 _/_ 2 = _Aj_ +1 _/_ 2 = 0 _,_ _∂_ Ψ <sup>˜</sup> <sup>_C_</sup> <u>f</u> _<u>,j</u>_ <sup>_,n_</sup> = 0 _,_ <u>f</u> _<u>,j</u>_ _∂X_ <sup>_<u>n</u>_</sup> _j_ _j−_ 1 _∂_ Φ <sup>˜</sup> <sup>_C_</sup> _<u>j</u>_ <u>+3</u> <sup>_,n_</sup> _∂_ Ψ <sup>˜</sup> <sup>_C_</sup> <u>f</u> _<u>,j</u>_ <sup>_,n_</sup> _∂_ Φ <sup>˜</sup> <sup>_C_</sup> _<u>j</u>_ <u>+3</u> <sup>_,n_</sup> _≥−Aj_ +3 _/_ 2 _ν_ 1 _−_ _Q_ u <sup>_n,_</sup> _j_ +2 _≥_ 0 _._ <u>f</u> _<u>,j</u>_ _∂Xj_ <sup>_<u>n</u>_</sup> _∂_ Ψ <sup>˜</sup> <sup>_C_</sup> <u>f</u> _<u>,j</u>_ <sup>_,n_</sup> <u>f</u> _<u>,j</u>_ _∂Xj_ <sup>_<u>n</u>_</sup> _<u>j</u>_ <u>+3</u> _<u>/</u>_ <u>2</u> _∂Xj_ <sup>_<u>n</u>_</sup> +1 _j_ +1 _<u>j</u>_ <u>+3</u> _<u>/</u>_ <u>2</u> _∂Xj_ <sup>_<u>n</u>_</sup> +2 _j_ +2 _j_ +1 = _−_ = _−_ For ease of notation, we introduce <sup>_n_</sup> _j_ +1 <sup>+</sup> <sup>_λj_</sup> <sup>Ψ</sup> f <sup>_C_</sup> _,j_ <sup>_,n_</sup> Υ <sup>_C_</sup> f _,j_ <sup>_,n_</sup> <sup>_n_</sup> _j_ <sup>+</sup> <sup>_<u>Aj</u>_</sup> <sup><u>+1</u></sup> _Aj_ <sup>_C_</sup> f _,j_ <sup>_,n_</sup> := _C_ <sup>_n_</sup> _j_ _Aj_ f <sup>_C_</sup> _,j_ <sup>_,n_</sup> (39) _C_ <sup>_n_</sup> _j_ 11 f and let as usual tilde denote the sum of all components of a vector. In the case _tn_ _∈_ _T_ <sup>num</sup> coefficients _ω_ <sup>f</sup> <sup>_,n_</sup> for Υ <sup>˜</sup> <sup>_C_</sup> <sup>_,n_</sup> in (34) are non-negative, f, all the and let as usual tilde denote the sum of all components of a vector. In the case _tn_ _∈_ _T_ <sup>num</sup> coefficients _ωj_ <sup>f</sup> <sup>_,n_</sup> for Υ <sup>˜</sup> <sup>_C_</sup> f _,j_ <sup>_,n_</sup> in (34) are non-negative, so it suffices to show that the derivatives of this function are non-negative under (CFL): _j_ <sup>f</sup> <sup>_,n_</sup> for Υ <sup>˜</sup> <sup>_C_</sup> f _,j_ <sup>_,n_</sup> _∂_ Υ <sup>˜</sup> <sup>_C_</sup> <u>f</u> _<u>,j</u>_ <sup>_,n_</sup> = _λj_ _∂_ Ψ <sup>˜</sup> <sup>_C_</sup> <u>f</u> _<u>,j</u>_ <sup>_,n_</sup> = 0 _,_ = _λj_ <u>f</u> _<u>,j</u>_ _∂X_ <sup>_<u>n</u>_</sup> _j_ +2 _∂_ Υ <sup>˜</sup> <sup>_C_</sup> <u>f</u> _<u>,j</u>_ <sup>_,n_</sup> <u>f</u> _<u>,j</u>_ _∂Xj_ <sup>_<u>n</u>_</sup> _∂_ Ψ <sup>˜</sup> <sup>_C_</sup> <u>f</u> _<u>,j</u>_ <sup>_,n_</sup> <u>f</u> _<u>,j</u>_ _∂Xj_ <sup>_<u>n</u>_</sup> _j−_ 1 <u>f</u> _<u>,j</u>_ _∂X_ <sup>_<u>n</u>_</sup> _j−_ 1 _j_ +2 _≥_ 0 _,_ _∂_ Υ <sup>˜</sup> <sup>_C_</sup> <u>f</u> _<u>,j</u>_ <sup>_,n_</sup> = 1 + _λj_ _≥_ 1 + 0 _≥_ 0 _,_ = <sup>_<u>Aj</u>_</sup> <sup><u>+1</u></sup> _∂_ Ψ <sup>˜</sup> <sup>_C_</sup> <u>f</u> _<u>,j</u>_ <sup>_,n_</sup> <u>f</u> _<u>,j</u>_ _∂Xj_ <sup>_<u>n</u>_</sup> <u>f</u> _<u>,j</u>_ _∂Xj_ <sup>_<u>n</u>_</sup> _∂_ Υ <sup>˜</sup> <sup>_C_</sup> <u>f</u> _<u>,j</u>_ <sup>_,n_</sup> <u>f</u> _<u>,j</u>_ _∂Xj_ <sup>_<u>n</u>_</sup> _j_ +1 _∂_ Ψ <sup>˜</sup> <sup>_C_</sup> <u>f</u> _<u>,j</u>_ <sup>_,n_</sup> <u>f</u> _<u>,j</u>_ _∂Xj_ <sup>_<u>n</u>_</sup> + _λj_ _j_ +1 _j_ _j_ _Aj_ _≥_ 0 _._ �� _j_ +1 1 _−_ _τ_ _h_ + _A_ <sup>_<u>∥Q</u>_</sup> min <sup>_<u>∥T</u>_</sup> _h_ - - _<u>M</u>_ <u>1</u> _<u>ν</u>_ <u>1</u> _≥_ <sup>_<u>A</u>_</sup> _A_ <sup>_<u>j</u>_</sup> <sup><u>+1</u></sup> _j_ _−_ _λj_ u _A_ min _h_ e In the case _tn_ _∈_ _T_ <sup>num</sup> _Aj_ +3 _/_ 2 _ν_ 1 + _Q_ <sup>_n_</sup> u _j_ _v_ <sup>_′_</sup> e, we first estimate <sup>num</sup> _≥_ <sup>_<u>A</u>_</sup> _A_ <sup>_<u>j</u>_</sup> <sup><u>+1</u></sup> _j_ _≥−Aj_ +1 _/_ 2 _ν_ 2 _−_ _Q_ e <sup>_n._</sup> _≥−Aj_ +1 _/_ 2 _ν_ 2 _−_ _Q_ e <sup>_n_</sup> _∂_ Φ <sup>˜</sup> <sup>_C_</sup> <u>e</u> _<u>,j</u>_ <sup>_,n_</sup> = _Aj_ +1 _/_ 2 _Xj_ +1 + _v_ e <sup>_X,n,_</sup> _,j_ +1 <sup>_−_</sup> _/_ 2 _Xj_ +1 + _v_ e <sup>_X,n,_</sup> _,j_ +1 <sup>_−_</sup> _/_ <u>e</u> _<u>,j</u>_ <u>+1</u> _<u>/</u>_ <u>2</u> _∂Xj_ <sup>_<u>n</u>_</sup> +1 _χ_ <sup>_−_</sup> e _<u>j</u>_ <u>+1</u> <sup>)</sup> <sup>_X_</sup> _h_ <sup>_n_</sup> _v_ hs <sup>_′_</sup> <sup>(</sup> <sup>_X_</sup> <sup>_n_</sup> _j_ _<u>j</u>_ <sup>_n_</sup> _j_ +1 <sup>)</sup> <sup>_−_</sup> <sup>_d_</sup> <sup>(</sup> <sup>_X_</sup> _h_ <sup>_n_</sup> _j_ +1 This estimation shall be added to the derivatives of Ψ <sup>˜</sup> <sup>_C_</sup> f _,j_ <sup>_,n_</sup> <sup>_C_</sup> e _,j_ <sup>_,n_</sup> <sup>.</sup> <sup>Introducing</sup> <sup>_C_</sup> f _,j_ <sup>_,n_</sup> to obtain those for Ψ <sup>˜</sup> <sup>_C_</sup> e _,j_ <sup>_,n_</sup> Υ <sup>_C_</sup> e _,j_ <sup>_,n_</sup> <sup>_n_</sup> _j_ <sup>+</sup> <sup>_<u>Aj</u>_</sup> <sup><u>+1</u></sup> _Aj_ <sup>_C_</sup> e _,j_ <sup>_,n,_</sup> (40) <sup>_C_</sup> e _,j_ <sup>_,n_</sup> := _C_ <sup>_n_</sup> _j_ _Aj_ _C_ <sup>_n_</sup> _j_ <sup>_n_</sup> _j_ +1 <sup>+</sup> <sup>_λj_</sup> <sup>Ψ</sup> <sup>_C_</sup> e _,j_ <sup>_,n,_</sup> we see that the only derivative that differs from those above is _∂_ Υ <sup>˜</sup> <sup>_C_</sup> <u>e</u> _<u>,j</u>_ <sup>_,n_</sup> + _λj_ _∂_ Ψ <sup>˜</sup> <sup>_C_</sup> <u>e</u> _<u>,j</u>_ <sup>_,n_</sup> _j_ +1 _−_ _λj_ _≥_ <sup>_<u>A</u>_</sup> _A_ <sup>_<u>j</u>_</sup> <sup><u>+1</u></sup> _j_ <u>e</u> _<u>,j</u>_ _∂Xj_ <sup>_<u>n</u>_</sup> +1 _Aj_ +1 _/_ 2 _ν_ 2 + _Q_ <sup>_n_</sup> e <u>�</u> <sup>_n_</sup> e <sup>+</sup> <sup>_A_</sup> _j_ +3 _/_ 2 <sup>_ν_</sup> <sup>1</sup> <sup>+</sup> <sup>_Q_</sup> u <sup>_n_</sup> u _j_ +1 = <sup>_<u>Aj</u>_</sup> <sup><u>+1</u></sup> _Aj_ <u>e</u> _<u>,j</u>_ _∂Xj_ <sup>_<u>n</u>_</sup> _Aj_ _≥_ 0 _._ �� _≥_ <sup>_<u>A</u>_</sup> _A_ <sup>_<u>j</u>_</sup> <sup><u>+1</u></sup> _j_ _j_ +1 1 _−_ _τ_ _h_ + _A_ <sup>_<u>∥Q</u>_</sup> min <sup>_<u>∥T</u>_</sup> _h_ - - _<u>M</u>_ <u>1(</u> _<u>ν</u>_ <u>1 +</u> _<u>ν</u>_ <u>2)</u> _A_ min _h_ We write _C_ e <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> e <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> _C_ e = _H_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> _C_ <sup>(</sup> <sup>_k_</sup> e <sup>)</sup> <sup>_,n_</sup> ( _C_ <sup>_n_</sup> e <sup>_,_</sup> <sup>_n_</sup> e <sup>_,_</sup> <sup>_C_</sup> ¯ _j_ <sup>_n_</sup> ¯ _j_ <sup>_n_</sup> _n_ +1 <sup>)</sup> <sup>for</sup> <sup>the</sup> <sup>update</sup> <sup>formula</sup> <sup>for</sup> <sup>one</sup> <sup>component</sup> <sup>(they</sup> <sup>are</sup> <sup>all</sup> e <sup>_n_</sup> <sup>+1</sup> _C_ e = _H_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> equal) of the effluent concentration. Summing all the components, we obtain _X_ e <sup>_n_</sup> <sup>+1</sup> _C_ <sup>(</sup> <sup>_k_</sup> e <sup>)</sup> <sup>_,n_</sup> ( _X_ e <sup>_n_</sup> equal) of the effluent concentration. Summing all the components, we obtain _X_ e <sup>_n_</sup> <sup>+1</sup> = _H_ _C_ <sup>(</sup> <sup>_k_</sup> e <sup>)</sup> <sup>_,n_</sup> ( _X_ e <sup>_n, X_</sup> ¯ _j_ <sup>_n_</sup> _n_ +1 <sup>)</sup> f e, we get for any fixed _k_ _∈{_ 1 _, . . ., k_ _C_ _}_ . This formula is trivial for _tn_ _∈_ _T_ <sup>num</sup>, and for _tn_ _∈_ _T_ <sup>num</sup> f e <sup>num</sup>, and for _tn_ _∈_ _T_ <sup>num</sup> e <sup>_n, X_</sup> ¯ _j_ <sup>_n_</sup> e, we get <sup>num</sup> _<u>C</u>_ <u>e</u> _∂H_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> = 1 _−_ _λ_ 1 _Q_ <sup>_n_</sup> e <sup>_n_</sup> e <sup>_≥_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_τ_</sup> <sup>_<u>∥Q∥T</u>_</sup> _A_ min _≥_ 0 _._ _<u>C</u>_ <u>e</u> _<u>H</u>_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _∂X_ e <sup>_<u>n</u>_</sup> _<u>C</u>_ <u>e</u> _∂H_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>_<u>∥Q∥T</u>_</sup> _∂X_ ¯ _j_ <sup>_<u>n</u>_</sup> _n_ +1 _A_ min _h_ <sup>_≥_</sup> <sup>0</sup> <sup>_,_</sup> _<u>C</u>_ <u>e</u> _∂H_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _∂X_ ¯ _j_ <sup>_<u>n</u>_</sup> _n_ ¯ _j_ <sup>_<u>n</u>_</sup> _n_ +1 _∂_ Φ <sup>˜</sup> <sup>_C_</sup> <u>e</u> _<u>,j</u>_ <sup>_,n_</sup> <u>e</u> _<u>,j</u>_ <u>+1</u> _<u>/</u>_ <u>2</u> _∂Xj_ <sup>_<u>n</u>_</sup> +1 _j_ +1 = _−λ_ 1 e To prove the boundedness, the monotonicity in each variable of _HX,j_ <sup>_n_</sup> and _j_ = <sup>¯</sup> _j_ <sup>_n_</sup> = <sup>¯</sup> _j_ <sup>_n_</sup> <sup>+1</sup>, To prove the boundedness, the monotonicity in each variable of _HX,j_ <sup>_n_</sup> <sup>and</sup> <sup>the</sup> <sup>assumption</sup> <sup>(7)</sup> f and _j_ = <sup>¯</sup> _j_ <sup>_n_</sup> = <sup>¯</sup> _j_ <sup>_n_</sup> <sup>+1</sup>, are used to obtain, for _tn_ _∈_ _T_ <sup>num</sup> f and _j_ = <sup>¯</sup> _j_ <sup>_n_</sup> = <sup>¯</sup> _j_ <sup>_n_</sup> <sup>+1</sup>, <sup>num</sup> u <sup>_nX_</sup> <sup>ˆ</sup> 0 _≤_ _α_ <sup>_n_</sup> <sup>+1</sup> _ηj_ <sup>_n_</sup> <sup>+1</sup> _λjQ_ <sup>_n_</sup> f 0 _, Xj_ <sup>_n, . . ., X_</sup> _j_ <sup>_n_</sup> ˆ + _λj_ _Q_ <sup>_n_</sup> f <sup>_X_</sup> <sup>_n_</sup> _Q_ <sup>_n_</sup> f f <sup>_n_</sup> <sup>=</sup> <sup>_Hn_</sup> <sup>_n_</sup> f <sup>_X_</sup> f <sup>_n_</sup> _j_ _X,j_ <sup>_n_</sup> <sup>(0</sup> <sup>_, . . .,_</sup> <sup>0)</sup> <sup>_≤_</sup> <sup>_X_</sup> <sup>_n_</sup> <sup>+1</sup> _X,j_ _j_ +3 _j_ _α_ <sup>_n_</sup> _X_ <sup>ˆ</sup> + <sup>_<u>Aj</u>_</sup> <sup><u>+1</u></sup> _Aj_ u <sup>_n_</sup> <sup>)</sup> _j_ <sup>_n_</sup> <sup>+1</sup> = _H_ <sup>_n_</sup> + _α_ <sup>_n_</sup> <sup>+1</sup> - <sup>�</sup> = _α_ <sup>_n_</sup> <sup>+1</sup> _X._ <sup>ˆ</sup> <sup>_n_</sup> f <sup>_X_</sup> f <sup>_n_</sup> _X,j_ _≤H_ <sup>_n_</sup> _X,j_ _≤H_ <sup>_n_</sup> 0 _, α_ <sup>_n_</sup> _X,_ <sup>ˆ</sup> _X,_ <sup>ˆ</sup> _X,_ <sup>ˆ</sup> _X_ <sup>ˆ</sup> = _α_ <sup>_n_</sup> <sup>+1</sup> _ηj_ <sup>_n_</sup> <sup>+1</sup> - <u>�</u> _j_ _Aj_ _X_ ˆ + _λj_ f <sup>_n_</sup> <sup>_−_</sup> <sup>_Q_</sup> u <sup>_n_</sup> _j_ _X_ ˆ <sup>_n_</sup> <sup>+1</sup> _α_ <sup>_n_</sup> + <sup>_<u>Aj</u>_</sup> <sup><u>+1</u></sup> _Aj_ _Aj_ _j_ _≤_ _α_ <sup>_n_</sup> <sup>+1</sup> _η_ <sup>_n_</sup> <sup>+1</sup> <sup>)</sup> (23)= _α_ <sup>_n_</sup> <sup>+1</sup> _Xη_ <sup>ˆ</sup> _j_ <sup>_n_</sup> <sup>+1</sup> _j_ _Aj_ - _<u>Aj</u>_ <u>+1</u> + _λj_ ( _Q_ <sup>_n_</sup> f <sup>_n_</sup> f <sup>_−_</sup> <sup>_Q_</sup> u <sup>_n_</sup> f For _tn_ _∈_ _T_ <sup>num</sup> and _j_ = <sup>¯</sup> _j_ <sup>_n_</sup> _−_ 1 = <sup>¯</sup> _j_ <sup>_n_</sup> <sup>+1</sup>, we first see that (22) implies; cf. Figure 3(c), _α_ <sup>_n_</sup> <sup>+1</sup> _A_ ¯ _jn−_ 1 + _A_ ¯ _jn_ _−_ _α_ <sup>_n_</sup> _A_ ¯ _jn_ = ( _Q_ <sup>_n_</sup> f <sup>_n_</sup> f <sup>_−_</sup> <sup>_Q_</sup> u <sup>_n_</sup> u <sup>_n_</sup> <sup>)</sup> <sup>_κ,_</sup> (41) which we use at the end of the following estimate: 0 _≤_ _α_ <sup>_n_</sup> <sup>+1</sup> _θ_ <sup>_n_</sup> <sup>+1</sup> _λ_ ¯ _jn−_ 1 _Q_ f _X_ f <sup>_n_</sup> <sup>=</sup> <sup>_H_</sup> _X,_ <sup>_n_</sup> _≤_ _α_ <sup>_n_</sup> <sup>+1</sup> _θ_ <sup>_n_</sup> <sup>+1</sup> _λ_ ¯ _jn−_ 1 _Q_ f _X_ f <sup>_n_</sup> <sup>=</sup> <sup>_H_</sup> _X,_ <sup>_n_</sup> <sup>¯</sup> _j_ <sup>_n_</sup> _−_ 1 <sup>(0</sup> <sup>_, . . .,_</sup> <sup>0)</sup> <sup>_≤_</sup> <sup>_X_</sup> ¯ _j_ <sup>_n_</sup> _n_ <sup>+1</sup> _−_ 1 0 _,_ 0 _, X_ ¯ _j_ <sup>_n_</sup> _n_ <sup>_, X_</sup> ¯ _j_ <sup>_n_</sup> _n_ +1 <sup>_, X_</sup> ¯ _j_ <sup>_n_</sup> _n_ +2 0 _,_ 0 _, α_ = _HX,_ <sup>_n_</sup> <sup>¯</sup> _j_ <sup>_n_</sup> _−_ 1 _≤HX,_ <sup>_n_</sup> <sup>¯</sup> _j_ <sup>_n_</sup> _−_ 1 - - 0 _,_ 0 _, X_ ¯ _j_ <sup>_n_</sup> _n_ <sup>_, X_</sup> ¯ _j_ <sup>_n_</sup> _α_ <sup>_n_</sup> _X_ <sup>ˆ</sup> + <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>j</u>_</sup> _X,_ <sup>_n_</sup> <sup>¯</sup> _j_ <sup>_n_</sup> _−_ 1 <sup>(0</sup> <sup>_, . . .,_</sup> <sup>0)</sup> <sup>_≤_</sup> <sup>_X_</sup> ¯ _j_ <sup>_n_</sup> _n_ <sup>+1</sup> _−_ 1 f <sup>_n_</sup> <sup>_−_</sup> <sup>_Q_</sup> u <sup>_n_</sup> _≤HX,_ <sup>_n_</sup> ¯ _jn_ _Q_ <sup>_n_</sup> f _X,_ <sup>_n_</sup> <sup>¯</sup> _j_ <sup>_n_</sup> _−_ 1 _α_ <sup>_n_</sup> _X_ <sup>ˆ</sup> + <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> _A_ ¯ _jn_ ¯ _j_ <sup>_n_</sup> _n_ +1 <sup>_, X_</sup> ¯ _j_ <sup>_n_</sup> _X,_ <sup>_n_</sup> <sup>¯</sup> _j_ <sup>_n_</sup> _−_ 1 ¯ _jn−_ 1 0 _,_ 0 _, α_ <sup>_n_</sup> _X,_ <sup>ˆ</sup> _X,_ <sup>ˆ</sup> _X_ <sup>ˆ</sup> - u <sup>_X_</sup> <sup>ˆ</sup> ¯ _j_ <sup>_n_</sup> _n_ +2 _Q_ <sup>_n_</sup> f <sup>_n_</sup> f <sup>_X_</sup> f <sup>_n_</sup> - <sup>�</sup> = _α_ <sup>_n_</sup> <sup>+1</sup> _θ_ <sup>_n_</sup> <sup>+1</sup> _A_ ¯ _jn_ u <sup>_nX_</sup> <sup>ˆ</sup> _X_ ˆ + _λ_ ¯ _jn_ 12 _≤_ _α_ <sup>_n_</sup> <sup>+1</sup> _Xθ_ <sup>ˆ</sup> <sup>_n_</sup> <sup>+1</sup> _α_ <sup>_n_</sup> + <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> _A_ ¯ _jn_ <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> + _α_ <sup>_n_</sup> <sup>+1</sup> <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn−</u>_</sup> <sup><u>1</u></sup> _A_ ¯ _jn_ _A_ ¯ _jn_ <sup>¯</sup> <sup>_<u>jn−</u>_</sup> <sup><u>1</u></sup> _A_ ¯ _jn_ + 1 _−_ _α_ <sup>_n_</sup> = _α_ <sup>_n_</sup> <sup>+1</sup> _X._ <sup>ˆ</sup> In the case _j_ = <sup>¯</sup> _j_ <sup>_n_</sup> = <sup>¯</sup> _j_ <sup>_n_</sup> <sup>+1</sup> + 1 (cf. Figure 3(c)) we can still use (41) to obtain 0 _≤_ _θ_ <sup>_n_</sup> <sup>+1</sup> _λ_ ¯ _jnQ_ f _X_ f <sup>_n_</sup> <sup>=</sup> <sup>_H_</sup> _X,_ <sup>_n_</sup> 0 _,_ 0 _, α_ <sup>_n_</sup> _X,_ <sup>ˆ</sup> _X,_ <sup>ˆ</sup> _X_ <sup>ˆ</sup> - u <sup>_X_</sup> <sup>ˆ</sup> u <sup>_nX_</sup> <sup>ˆ</sup> ¯ _jn_ _X,_ = _H_ <sup>_n_</sup> ¯ _jn_ _X,_ <sup>_n_</sup> <sup>¯</sup> _j_ <sup>_n_</sup> <sup>(0</sup> <sup>_, . . .,_</sup> <sup>0)</sup> <sup>_≤_</sup> <sup>_X_</sup> <sup>_n_</sup> <sup>+1</sup> _X,_ <sup>¯</sup> _j_ <sup>_n_</sup> ¯ _j_ <sup>_n_</sup> _n_ +1 <sup>_, X_</sup> ¯ _j_ <sup>_n_</sup> _n_ _X,_ <sup>¯</sup> _j_ <sup>_n_</sup> ¯ _j_ <sup>_n_</sup> _n_ +2 _X,_ _≤H_ <sup>_n_</sup> <u>�</u> _Q_ <sup>_n_</sup> f <sup>_X_</sup> <sup>_n_</sup> <sup>_n_</sup> f <sup>_X_</sup> f <sup>_n_</sup> f <sup>_n_</sup> <sup>_−_</sup> <sup>_Q_</sup> u <sup>_n_</sup> - <sup>�</sup> = _X._ <sup>ˆ</sup> = _θ_ <sup>_n_</sup> <sup>+1</sup> _α_ <sup>_n_</sup> _X_ <sup>ˆ</sup> + <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> _A_ ¯ _jn_ 0 _,_ 0 _, X_ ¯ _j_ <sup>_n_</sup> _n_ <sup>_, X_</sup> ¯ _j_ <sup>_n_</sup> _n_ _α_ <sup>_n_</sup> _X_ <sup>ˆ</sup> + <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> _A_ ¯ _jn_ _X_ ˆ + _λ_ ¯ _jn_ _Q_ <sup>_n_</sup> f <u>�</u> _≤_ _Xθ_ <sup>ˆ</sup> <sup>_n_</sup> <sup>+1</sup> _α_ <sup>_n_</sup> + <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> _A_ ¯ _jn_ <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> + _α_ <sup>_n_</sup> <sup>+1</sup> <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn−</u>_</sup> <sup><u>1</u></sup> _A_ ¯ _jn_ _A_ ¯ _jn_ <sup>¯</sup> <sup>_<u>jn−</u>_</sup> <sup><u>1</u></sup> _A_ ¯ _jn_ + 1 _−_ _α_ <sup>_n_</sup> A similar estimation can be made for the case _j_ = <sup>¯</sup> _j_ <sup>_n_</sup> +1 = <sup>¯</sup> _j_ <sup>_n_</sup> <sup>+1</sup> +2. For the case _j_ = <sup>¯</sup> _j_ <sup>_n_</sup> +1 = <sup>¯</sup> _j_ <sup>_n_</sup> <sup>+1</sup> ; see Figure 3(a), we note that (22) implies _α_ <sup>_n_</sup> <sup>+1</sup> _A_ ¯ _jn_ +1 _−_ ( _α_ <sup>_n_</sup> _A_ ¯ _jn_ + _A_ ¯ _jn_ +1) = ( _Q_ <sup>_n_</sup> f <sup>_n_</sup> f <sup>_−_</sup> <sup>_Q_</sup> u <sup>_n_</sup> u <sup>_n_</sup> <sup>)</sup> <sup>_κ,_</sup> which we use to estimate _<u>A</u>_ ¯ _<u>jn</u>_ 0 _≤_ _A_ ¯ _jn_ +1 _λ_ ¯ _jnQ_ f _X_ f <sup>_n_</sup> f <sup>_n_</sup> <sup>=</sup> <sup>_H_</sup> _X,_ <sup>_n_</sup> ¯ _jn_ +1 _X,_ <sup>_n_</sup> <sup>¯</sup> _j_ <sup>_n_</sup> +1 <sup>(0</sup> <sup>_, . . .,_</sup> <sup>0)</sup> <sup>_≤_</sup> <sup>_X_</sup> <sup>_n_</sup> <sup>+1</sup> ¯ _jn_ +1 f <sup>_n_</sup> <sup>_−_</sup> <sup>_Q_</sup> u <sup>_n_</sup> _Q_ <sup>_n_</sup> f <u>�</u> _X,_ = _H_ <sup>_n_</sup> _X,_ _≤H_ <sup>_n_</sup> _λ_ ¯ _jn_ _Q_ _X,_ <sup>¯</sup> _j_ <sup>_n_</sup> +1 _X,_ <sup>¯</sup> _j_ <sup>_n_</sup> +1 ¯ _j_ <sup>_n_</sup> _n_ +3 _<u>A</u>_ ¯ _<u>jn</u>_ = _A_ ¯ _jn_ +1 _<u>A</u>_ ¯ _<u>jn</u>_ _≤_ _A_ ¯ _jn_ +1 _α_ <sup>_n_</sup> _X_ <sup>ˆ</sup> + <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> _A_ ¯ _jn_ 0 _, X_ ¯ _j_ <sup>_n_</sup> _n_ <sup>_, . . ., X_</sup> ¯ _j_ <sup>_n_</sup> _n_ _α_ <sup>_n_</sup> _X_ <sup>ˆ</sup> + <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> _X_ ˆ _α_ <sup>_n_</sup> + <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> _A_ ¯ _jn_ <sup>_n_</sup> f <sup>_X_</sup> f <sup>_n_</sup> - <sup><u>�</u></sup> 0 _, α_ <sup>_n_</sup> _X,_ <sup>ˆ</sup> _X,_ <sup>ˆ</sup> _X,_ <sup>ˆ</sup> _X_ <sup>ˆ</sup> - u <sup>_X_</sup> <sup>ˆ</sup> u <sup>_nX_</sup> <sup>ˆ</sup> _A_ ¯ _jn_ _X_ ˆ + _λ_ ¯ _jn_ _α_ <sup>_n_</sup> + <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> _A_ ¯ _jn_ _X_ ˆ <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> + _α_ <sup>_n_</sup> <sup>+1</sup> <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> _A_ ¯ _jn_ _A_ ¯ _jn_ <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> _A_ ¯ _jn_ _−_ _A_ ¯ _jn_ = _α_ <sup>_n_</sup> <sup>+1</sup> _X._ <sup>ˆ</sup> �� e The remaining fill cases are similar; we omit details. For _tn_ _∈_ _T_ <sup>num</sup> only difference is that _Q_ f _X_ f <sup>_n_</sup> <sup>is</sup> <sup>replaced</sup> <sup>by</sup> <sup>˜Φ</sup> e <sup>_C_</sup> _,j_ <sup>_,n_</sup> +1 _/_ 2 <sup>,</sup> <sup>which</sup> e, similar estimations apply; the The remaining fill cases are similar; we omit details. For _tn_ _∈_ _T_ <sup>num</sup> only difference is that _Q_ f _X_ f <sup>_n_</sup> <sup>is</sup> <sup>replaced</sup> <sup>by</sup> <sup>˜Φ</sup> e <sup>_C_</sup> _,j_ <sup>_,n_</sup> +1 _/_ 2 <sup>,</sup> <sup>which</sup> <sup>equals</sup> <sup>zero</sup> <sup>when</sup> <sup>the</sup> <sup>concentrations</sup> f <sup>_n_</sup> <sup>is</sup> <sup>replaced</sup> <sup>by</sup> <sup>˜Φ</sup> e <sup>_C_</sup> _,j_ <sup>_,n_</sup> +1 only difference is that _Q_ f _X_ f <sup>_n_</sup> <sup>is</sup> <sup>replaced</sup> <sup>by</sup> <sup>˜Φ</sup> e <sup>_C_</sup> _,j_ <sup>_,n_</sup> +1 _/_ 2 <sup>,</sup> <sup>which</sup> <sup>equals</sup> <sup>zero</sup> <sup>when</sup> <sup>the</sup> <sup>concentrations</sup> e <sup>instead</sup> are zero, to prove the lower bound. For the upper bound, one uses (22) with _Q_ <sup>¯</sup> <sup>_n_</sup> = _−Q_ <sup>_n_</sup> of _Q_ <sup>_n_</sup> e <sup>instead</sup> are zero, to prove the lower bound. For the upper bound, one uses (22) with _Q_ <sup>¯</sup> <sup>_n_</sup> = _−Q_ <sup>_n_</sup> of _Q_ <sup>_n_</sup> f <sup>.</sup> <sup>For</sup> <sup>the</sup> <sup>effluent,</sup> <sup>we</sup> <sup>get</sup> <sup>_n_</sup> f <sup>.</sup> <sup>For</sup> <sup>the</sup> <sup>effluent,</sup> <sup>we</sup> <sup>get</sup> - _X,_ ˆ _X_ ˆ e 0 = _H_ _C_ <sup>_n_</sup> e <sup>(0</sup> <sup>_,_</sup> <sup>0)</sup> <sup>_≤_</sup> <sup>_X_</sup> <sup>_n_</sup> <sup>+1</sup> _C_ e _≤H_ <sup>_n_</sup> _C_ _≤H_ <sup>_n_</sup> _X_ e <sup>_n_</sup> _C_ e e <sup>_n, X_</sup> ¯ _j_ <sup>_n_</sup> ¯ _j_ <sup>_n_</sup> _n_ +1 = _X_ <sup>ˆ</sup> _−_ _λ_ 1( _Q_ e <sup>_n_</sup> e _C_ <sup>_n_</sup> <sup>+1</sup> = _H_ <sup>_n_</sup> <sup>_n_</sup> u <sup>) ˆ</sup> <sup>_X_</sup> <sup>_≤_</sup> <sup>_X._</sup> <sup>ˆ</sup> e <sup>_n_</sup> <sup>+</sup> <sup>_Qn_</sup> u Lemma _U_ <sup>_n_</sup> e <sup>:= (</sup> <sup>_C_</sup> 2. <sup>_n_</sup> e <sup>_,_</sup> <sup>_S_</sup> _Let_ <sup>_n_</sup> e <sup>)</sup> <sup>_∈_</sup> _R_ <sup>Ω</sup> _C_ <sup>_and_</sup> _≡_ 0 <sup>(CFL)</sup> _._ _If_ _U_ <sup>_holds,n_</sup> _j_ <sup>:=</sup> <sup>_then_</sup> <sup>(</sup> <sup>_C_</sup> <sup>_n_</sup> _j_ <sup>_,_</sup> <sup>_S_</sup> <sup>_n_</sup> _j_ <sup>)</sup> <sup>_∈_</sup> <sup>Ω</sup> <sup>_for_</sup> <sup>_all_</sup> <sup>_j̸_</sup> <sup>=</sup> <sup>¯</sup> <sup>_jn,_</sup> <sup>_U_</sup> <sup>¯</sup> ¯ _njn_ := ( _C_ <sup>¯</sup> ¯ _njn,_ _S_ <sup>¯</sup> ¯ _njn_ ) _∈_ Ω _,_ ¯ _njn,_ _S_ <sup>¯</sup> Lemma _U_ <sup>_n_</sup> e <sup>:= (</sup> <sup>_C_</sup> 2. <sup>_n_</sup> e <sup>_,_</sup> <sup>_S_</sup> _Let_ <sup>_n_</sup> _RC_ _≡_ 0 _._ _If_ _U_ <sup>_n_</sup> _j_ <sup>_n_</sup> _j_ <sup>_,_</sup> <sup>_S_</sup> <sup>_n_</sup> _j_ <sup>_̸_</sup> <sup>_n_</sup> _j_ <sup>)</sup> <sup>_∈_</sup> <sup>Ω</sup> <sup>_for_</sup> <sup>_all_</sup> <sup>_j̸_</sup> <sup>=</sup> <sup>¯</sup> <sup>_jn,_</sup> <sup>_U_</sup> <sup>¯</sup> _n_ <sup>_̸_</sup> ¯ _jn_ := ( _C_ <sup>¯</sup> <sup>_n_</sup> e <sup>:= (</sup> <sup>_C_</sup> <sup>_n_</sup> e <sup>_n_</sup> e <sup>_,_</sup> <sup>_S_</sup> <sup>_n_</sup> e <sup>_n_</sup> e <sup>)</sup> <sup>_∈_</sup> <sup>Ω</sup> <sup>_and_</sup> <sup>(CFL)</sup> <sup>_holds,_</sup> <sup>_then_</sup> <sup>_n_</sup> _j_ <sup>:=</sup> <sup>(</sup> <sup>_C_</sup> <sup>_n_</sup> _j_ _n_ +1 ¯ _jn_ _,_ _C_ <sup>_n_</sup> e <sup>+1</sup> for all _j._ _≤_ _X_ <sup>ˆ</sup> ¯ _jnn_ +1 _,_ _C_ <sup>_n_</sup> e <sup>+1</sup> _j_ _,_ _C_ <sup>¯</sup> 0 _≤_ _C_ <sup>_n_</sup> <sup>+1</sup> _Proof._ This follows directly from Lemma 1, since each component of the update formula for _C_ <sup>_n_</sup> _j_ _Proof._ This follows directly from Lemma 1, since each component of the update formula for _C_ <sup>_n_</sup> _j_ <sup>is</sup> equal to that of _Xj_ <sup>_n_</sup> <sup>(there</sup> <sup>is</sup> <sup>no</sup> <sup>reaction</sup> <sup>term).</sup> Lemma 3. _Let_ _RS_ _≡_ 0 _._ _If_ _U_ <sup>_n_</sup> _j_ <sup>:=</sup> <sup>(</sup> <sup>_C_</sup> <sup>_n_</sup> _j_ <sup>_,_</sup> <sup>_S_</sup> <sup>_n_</sup> _j_ <sup>)</sup> <sup>_∈_</sup> <sup>Ω</sup> <sup>_for_</sup> <sup>_all_</sup> <sup>_j̸_</sup> <sup>=</sup> <sup>¯</sup> <sup>_jn,_</sup> <sup>_U_</sup> <sup>¯</sup> ¯ _njn_ := ( _C_ <sup>¯</sup> ¯ _njn,_ _S_ <sup>¯</sup> ¯ _njn_ ) _∈_ Ω _,_ _U_ <sup>_n_</sup> e <sup>:= (</sup> <sup>_C_</sup> <sup>_n_</sup> e <sup>_,_</sup> <sup>_S_</sup> <sup>_n_</sup> e <sup>)</sup> <sup>_∈_</sup> <sup>Ω</sup> <sup>_and_</sup> <sup>(CFL)</sup> <sup>_holds,_</sup> <sup>_then_</sup> <sup>_S_</sup> _j_ <sup>_n_</sup> <sup>+1</sup> _≥_ 0 _for_ _all_ _j_ _and_ _S_ e <sup>_n_</sup> <sup>+1</sup> _≥_ 0 _._ _j_ <sup>_n_</sup> <sup>(there</sup> <sup>is</sup> <sup>no</sup> <sup>reaction</sup> <sup>term).</sup> ¯ _njn,_ _S_ <sup>¯</sup> Lemma 3. _Let_ _RS_ _≡_ 0 _._ _If_ _U_ <sup>_n_</sup> _j_ _U_ <sup>_n_</sup> <sup>_n_</sup> _j_ <sup>_,_</sup> <sup>_S_</sup> <sup>_n_</sup> _j_ <sup>_̸_</sup> <sup>_n_</sup> _j_ <sup>)</sup> <sup>_∈_</sup> <sup>Ω</sup> <sup>_for_</sup> <sup>_all_</sup> <sup>_j̸_</sup> <sup>=</sup> <sup>¯</sup> <sup>_jn,_</sup> <sup>_U_</sup> <sup>¯</sup> _j_ e <sup>_n_</sup> <sup>+1</sup> _≥_ 0 _for_ _all_ _j_ _and_ _S_ <sup>_n_</sup> <sup>+1</sup> <sup>_n_</sup> e <sup>:= (</sup> <sup>_C_</sup> <sup>_n_</sup> e <sup>_̸_</sup> <sup>_n_</sup> e <sup>)</sup> <sup>_∈_</sup> <sup>Ω</sup> <sup>_and_</sup> <sup>(CFL)</sup> <sup>_holds,_</sup> <sup>_then_</sup> <sup>_S_</sup> _j_ <sup>_n_</sup> <sup>+1</sup> <sup>_n_</sup> e <sup>_,_</sup> <sup>_S_</sup> <sup>_n_</sup> e <sup>_n_</sup> _j_ <sup>:=</sup> <sup>(</sup> <sup>_C_</sup> <sup>_n_</sup> _j_ <sup>_̸_</sup> e <sup>_n_</sup> <sup>+1</sup> _≥_ 0 _._ _n_ ¯ _jn_ := ( _C_ <sup>¯</sup> _Proof._ We start as in the proof of Lemma 1, use the notation and estimations from there, and prove monotonicity of each component of the right-hand side _H_ _S_ <sup>(</sup> <sup>_k_</sup> _,_ <sup>)¯</sup> _j_ <sup>_,nn_</sup> <sup>of</sup> <sup>the</sup> <sup>update</sup> <sup>formula</sup> <sup>for</sup> component _S_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup>, which we write as _S_ <sup>_n_</sup> prove monotonicity of each component of the right-hand side _H_ _S_ <sup>(</sup> <sup>_k_</sup> _,_ <sup>)¯</sup> _j_ <sup>_,nn_</sup> <sup>of</sup> <sup>the</sup> <sup>update</sup> <sup>formula</sup> <sup>for</sup> component _Sj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup>, which we write as _Sj_ <sup>_n_</sup> <sup>.</sup> <sup>We</sup> <sup>also</sup> <sup>skip</sup> <sup>the</sup> <sup>superscript</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>for</sup> <sup>components</sup> <sup>of</sup> <sup>other</sup> vectors. We let _ρ_ ˆ := 1 _/_ ( _ρX_ _−_ _X_ <sup>ˆ</sup> ) and _j_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup>, which we write as _Sj_ <sup>_n_</sup> _X_ ˆ _._ ( _ρX_ + _X_ <sup>ˆ</sup> ) <sup>_<u>∥Q∥T</u>_</sup> _A_ min _ν_ 3 := _ρ_ ˆ _A_ min + 13 _v_ hs(0) + <sup>_<u>D</u>_</sup> <sup><u>(</u></sup> <sup>_<u>X</u>_</sup> <sup>ˆ</sup> <sup><u>)</u></sup> _h_ _h_ The numerical fluxes are different and we get _∂_ Φ <sup>_S_</sup> _<u>j</u>_ <u>+1</u> <sup>_,n_</sup> = _Aj_ +1 _/_ 2 <sup>_X,n_</sup> _<u>j</u>_ <u>+1</u> _<u>/</u>_ <u>2</u> <sup>)+</sup> _≤_ _Aj_ +1 _/_ 2 _ρ_ ˆ _<u>j</u>_ <u>+1</u> _<u>/</u>_ <u>2</u> _∂Sj_ <sup>_<u>n</u>_</sup> ( _ρX_ _qj_ <sup>_n_</sup> _ρ_ ˆ _ρX_ _qj_ <sup>_n_</sup> _j_ <sup>_n_</sup> +1 _/_ 2 <sup>_−_</sup> <sup>_v_</sup> _j_ <sup>_X,n,_</sup> +1 _/_ <sup>_−_</sup> 2 _j_ <sup>_X,n,_</sup> +1 _/_ <sup>_−_</sup> 2 <sup>_X_</sup> <sup>ˆ</sup> _<u>j</u>_ <sup>_n_</sup> <u>+1</u> _<u>/</u>_ <u>2</u> <sup>_<u>−</u>_</sup> <sup>_F X,n_</sup> _<u>j</u>_ <u>+1</u> _<u>/</u>_ _j_ _j_ _ρ_ ˆ _ρX_ _qj_ <sup>_n_</sup> <u>�</u> = _Aj_ +1 _/_ 2 _ρ_ ˆ _qj_ <sup>_n_</sup> +1 _/_ 2 <sup>+</sup> <sup>_v_</sup> _j_ <sup>_X,n,_</sup> +1 _/_ <sup>+</sup> 2 _j_ _ρX_ _−_ _X_ <sup>_n_</sup> _qj_ <sup>_n_</sup> <u>�</u> <sup>_X,n_</sup> _<u>j</u>_ <u>+1</u> _<u>/</u>_ <u>2</u> <sup>)</sup> <sup>_<u>−</u>_</sup> _j_ <sup>_X,n,_</sup> +1 _/_ <sup>+</sup> 2 <sup>_X_</sup> <sup>ˆ</sup> _X_ ˆ _≤_ _Aj_ +1 _/_ 2 _ν_ 3 _,_ - _≤_ _Aj_ +1 _/_ 2 _ρ_ ˆ _j_ <sup>_n_</sup> +1 _/_ 2 <sup>+</sup> _j_ <sup>_n_</sup> +1 _/_ 2 <sup>+</sup> <sup>_v_</sup> <sup>hs(0) +</sup> <sup>_<u>D</u>_</sup> <sup><u>(</u></sup> <sup>_<u>X</u>_</sup> <sup>ˆ</sup> <sup><u>)</u></sup> _h_ _h_ _∂_ Φ <sup>_S_</sup> _<u>j</u>_ <u>+1</u> <sup>_,n_</sup> = _Aj_ +1 _/_ 2 _ρ_ ˆ _ρX_ _qj_ <sup>_n_</sup> <u>�</u> _≤_ 0 _._ _<u>j</u>_ <u>+1</u> _<u>/</u>_ <u>2</u> _∂Sj_ <sup>_<u>n</u>_</sup> +1 ( _ρX_ _qj_ <sup>_n_</sup> _<u>j</u>_ <sup>_n_</sup> <u>+1</u> _<u>/</u>_ <u>2</u> <sup>_<u>−</u>_</sup> <sup>_F X,n_</sup> _<u>j</u>_ <u>+1</u> _<u>/</u>_ _ρX_ _−_ _Xj_ +1 _j_ +1 Because of the similarities between Ψ <sup>_C_</sup> f _,j_ <sup>_,n_</sup> <sup>_S_</sup> f _,j_ <sup>_,n_</sup> <sup>,</sup> <sup>we</sup> <sup>only</sup> <sup>write</sup> <sup>the</sup> <sup>difference</sup> <sup>here:</sup> <sup>_C_</sup> f _,j_ <sup>_,n_</sup> and Ψ <sup>_S_</sup> f _,j_ <sup>_,n_</sup> <sup>,</sup> _∂_ Ψ <sup>_S_</sup> <u>f</u> _<u>,j</u>_ <sup>_,n_</sup> _∂_ Φ <sup>_S_</sup> _<u>j</u>_ <u>+3</u> <sup>_,n_</sup> _≥−Aj_ +3 _/_ 2 _ν_ 3 _._ <u>f</u> _<u>,j</u>_ _∂Sj_ <sup>_<u>n</u>_</sup> +1 _<u>j</u>_ <u>+3</u> _<u>/</u>_ <u>2</u> _∂Sj_ <sup>_<u>n</u>_</sup> +1 _j_ +1 _j_ +1 = _−_ f, To prove the monotonicity in the case _tn_ _∈_ _T_ <sup>num</sup> similar to those in the proof of Lemma 2 with the f, we conclude that the estimations are in To prove the monotonicity in the case _tn_ _∈_ _T_ <sup>num</sup> fact similar to those in the proof of Lemma 2 with the following difference (where Υ <sup>_S_</sup> f _,j_ <sup>_,n_</sup> is defined analogously to (39) and Υ <sup>_S_</sup> f _,j_ <sup>_,n_</sup> denotes an arbitrary component of that vector): <sup>_S_</sup> f _,j_ <sup>_,n_</sup> denotes an arbitrary component of that vector): _∂_ Υ <sup>_S_</sup> <u>f</u> _<u>,j</u>_ <sup>_,n_</sup> 1 _−_ _τ_ <sup>_<u>M</u>_</sup> _h_ <sup><u>1</u></sup> <sup>_<u>ν</u>_</sup> <sup><u>3</u></sup> _≥_ 0 _._ - <u>f</u> _<u>,j</u>_ _∂Sj_ <sup>_<u>n</u>_</sup> +1 _j_ +1 _≥_ <sup>_<u>A</u>_</sup> _A_ <sup>_<u>j</u>_</sup> <sup><u>+1</u></sup> _j_ e, To prove the monotonicity in the case _tn_ _∈_ _T_ <sup>num</sup> e, we first estimate <sup>num</sup> _∂_ Φ <sup>_S_</sup> <u>e</u> _<u>,j</u>_ <sup>_,n_</sup> = e _−_ _Q_ <sup>_n_</sup> - _−_ <u>e</u> _<u>,j</u>_ <u>+1</u> _<u>/</u>_ <u>2</u> _∂Sj_ <sup>_<u>n</u>_</sup> +1 _<u>j</u>_ _−_ <sup>_Aj_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_X_</sup> _j_ <sup>_n_</sup> - _ρX_ _−_ _X_ <sup>_n_</sup> _j_ +1 e <sup>_n._</sup> _<u>j</u>_ <sup>_n_</sup> _j_ +1 <sup>)</sup> <sup>_−_</sup> <sup>_D_</sup> <sup>(</sup> <sup>_X_</sup> _h_ <sup>_n_</sup> _<u>j</u>_ <u>+1</u> <sup>)</sup> <sup>_X_</sup> _h_ <sup>_n_</sup> _<u>j</u>_ <u>+1</u> <sup>_Aj_</sup> <sup>+1</sup> <sup>_/_</sup> <sup>2</sup> <sup>_X_</sup> _j_ <sup>_n_</sup> +1 _ρX_ _−_ _X_ <sup>_n_</sup> _j_ +1 _v_ hs( _X_ <sup>_n_</sup> _j_ _≥−Aj_ +1 _/_ 2 _ρ_ ˆ _Xv_ <sup>ˆ</sup> hs(0) _−_ _Q_ e <sup>_n_</sup> Following the same procedure as in the proof of Lemma 2 (with Υ <sup>_S_</sup> e _,j_ <sup>_,n_</sup> is defined analogously to (40)), we now get _∂_ Υ <sup>_S_</sup> <u>e</u> _<u>,j</u>_ <sup>_,n_</sup> = <sup>_<u>Aj</u>_</sup> <sup><u>+1</u></sup> _−_ _λj_ _v_ hs(0) + <sup>_<u>D</u>_</sup> <sup><u>(</u></sup> <sup>_<u>X</u>_</sup> <sup>ˆ</sup> <sup><u>)</u></sup> _h_ <u>�</u> <u>e</u> _<u>,j</u>_ _∂Sj_ <sup>_<u>n</u>_</sup> _Aj_ +1 _/_ 2 _ρ_ ˆ _X_ _Xv_ <sup>ˆ</sup> hs(0) + _Q_ <sup>_n_</sup> e _∂_ Ψ <sup>_S_</sup> <u>e</u> _<u>,j</u>_ <sup>_,n_</sup> <u>e</u> _<u>,j</u>_ _∂Sj_ <sup>_<u>n</u>_</sup> + _λj_ _j_ +1 _j_ +1 _Aj_ ( _ρX_ + _X_ <sup>ˆ</sup> ) _Q_ <sup>_n_</sup> u <u>�</u> _≥_ <sup>_<u>A</u>_</sup> _A_ <sup>_<u>j</u>_</sup> <sup><u>+1</u></sup> _j_ _≥_ <sup>_<u>A</u>_</sup> _A_ <sup>_<u>j</u>_</sup> <sup><u>+1</u></sup> _j_ e _≥_ 0 _._ �� + _ρ_ ˆ <sup>_n_</sup> u <sup>+</sup> <sup>_A_</sup> _j_ +3 _/_ 2 _X_ ˆ _h_ _≥_ <sup>_<u>A</u>_</sup> _A_ <sup>_<u>j</u>_</sup> <sup><u>+1</u></sup> _j_ _Aj_ 1 _−_ _τ_ <sup>_<u>M</u>_</sup> <sup><u>1(ˆ</u></sup> <sup>_<u>ρX</u>_</sup> <sup>_<u>Xv</u>_</sup> <sup>ˆ</sup> _h_ <sup><u>hs(0) +</u></sup> <sup>_<u>ν</u>_</sup> <sup><u>3)</u></sup> For the update of the effluent concentrations, we get the same result for _S_ <sup>_n_</sup> e <sup>_n_</sup> e <sup>as</sup> <sup>for</sup> <sup>_C_</sup> <sup>_n_</sup> e the update of the effluent concentrations, we get the same result for _S_ <sup>_n_</sup> e <sup>as</sup> <sup>for</sup> <sup>_C_</sup> <sup>_n_</sup> e <sup>.</sup> The proof of positivity can be done as in the proof of Lemma 2. Lemma 4. _If_ _C_ <sup>ˇ</sup> _nj_ +1 _,_ _S_ <sup>ˇ</sup> _nj_ +1 _≥_ 0 _for_ _all_ _j_ _and_ (CFL) _holds,_ _then_ _the_ _second_ _step_ _of_ _the_ _splitting_ _scheme_ (33) _,_ (36) _and_ (37) _(and_ _the_ _analogous_ _formulas_ _for_ _S_ <sup>_n_</sup> _j_ <sup>+1</sup> _)_ _satisfy_ _C_ <sup>_n_</sup> _j_ <sup>+1</sup> _,_ _S_ <sup>_n_</sup> _j_ <sup>+1</sup> _≥_ 0 _for_ _nj_ +1 _,_ _S_ <sup>ˇ</sup> _nj_ <sup>_n_</sup> _j_ <sup>+1</sup> _)_ _satisfy_ _C_ <sup>_n_</sup> _j_ <sup>+1</sup> <sup>_n_</sup> _j_ <sup>+1</sup> _,_ _S_ <sup>_n_</sup> _j_ <sup>+1</sup> Lemma 4. _If_ _C_ <sup>ˇ</sup> _scheme_ (33) _,_ (36) _and_ (37) _(and_ _the_ _analogous_ _formulas_ _for_ _S_ <sup>_n_</sup> _j_ <sup>+1</sup> _)_ _satisfy_ _C_ <sup>_n_</sup> _j_ <sup>+1</sup> _,_ _S_ <sup>_n_</sup> _j_ <sup>+1</sup> _≥_ 0 _for_ _all_ _j._ _Proof._ Component _k_ of (33) can be written and estimated by means of (5) and (8) as _∈_ - _I_ _C_ <sup>_−_</sup> _σ_ _C_ <sup>(</sup> <sup>_k,l_</sup> <sup>)</sup> _r_ ¯ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> ( _C_ <sup>ˇ</sup> _Cj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> _j_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> = _C_ <sup>ˇ</sup> _j_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> _j_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> + _τ_ _nj_ +1 _,_ _S_ <sup>ˇ</sup> _n_ +1 _j_ ) + _τ_ _nj_ +1 _,_ _S_ <sup>ˇ</sup> _nj_ +1) _C_ <sup>ˇ</sup> _j_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> _nj_ +1) _C_ <sup>ˇ</sup> _j_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> _∈_ - _I_ _C_ <sup>+</sup> _σ_ _C_ <sup>(</sup> <sup>_k,l_</sup> <sup>)</sup> _r_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> ( _C_ <sup>ˇ</sup> _σ_ _C_ <sup>(</sup> <sup>_k,l_</sup> <sup>)</sup> _l∈I_ _C_ <sup>_−_</sup> _l∈I_ _C_ <sup>+</sup> _C_ _,k_ _l∈I_ _C_ <sup>_−_</sup> _C_ _,k_ _C_ _,k_ _j_ _≥_ _C_ <sup>ˇ(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> (1 _−_ _τM_ _C_ ) _≥_ 0 _,_ _j_ _≥_ _C_ <sup>ˇ(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> _j_ _≥_ _C_ <sup>ˇ(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> 1 + _τ_ _l∈_ - _I_ _C_ <sup>_−_</sup> _σ_ _C_ <sup>(</sup> <sup>_k,l_</sup> <sup>)</sup> _r_ ¯ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> ( _C_ <sup>ˇ</sup> _σ_ _C_ <sup>(</sup> <sup>_k,l_</sup> <sup>)</sup> _nj_ +1 _,_ _S_ <sup>ˇ</sup> 14 _n_ +1 _j_ ) where the latter inequality follows from (CFL). Consider now the formula (36) for the fill case (a) with the non-zero coefficient _ω_ ¯ _j_ <sup>f</sup> <sup>_,n_</sup> _n_ +1 <sup>:=</sup> <sup>_A_</sup> <sup>¯</sup> _j_ <sup>_n/A_</sup> <sup>¯</sup> _j_ <sup>_n_</sup> +1 <sup>(the</sup> <sup>others</sup> <sup>are</sup> <sup>trivial).</sup> <sup>Then</sup> <sup>component</sup> <sup>_k_</sup> of (36) is estimated by using the rewriting above applied to both reaction terms: ¯ _njn_ +1+1 _,_ _S_ <sup>ˇ</sup> - _C_ ˇ + _R_ _C_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> - <sup>�</sup> _C_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> ¯ _jn_ +1 <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> = _C_ <sup>ˇ(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> ¯ _jn_ +1 ¯ _jn_ +1 <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> + _τ_ ¯ _jn_ +1 _S_ ˇ _C_ _α_ <sup>_n_</sup> <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn</u>_</sup> _A_ ¯ _jn_ _A_ ¯ _jn_ +1 _n_ +1 ¯ _jn_ +1 _R_ _C_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _R_ _C_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> 1 _−_ _τ_ _A_ ¯ _jn_ +1 - - _<u>A</u>_ ¯ _<u>jn</u>_ _n_ +1 ¯ _<u>jn</u>_ _α_ <sup>_n_</sup> <sup>_,_</sup> - _C_ ˇ _M_ _C_ ¯ _jn_ +1 _≥_ _C_ <sup>ˇ(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> _n_ +1 ¯ _<u>jn</u>_ _α_ <sup>_n_</sup> ¯ _jn_ +1 _≥_ _C_ <sup>ˇ(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> + 1 ¯ _jn_ +1 1 _−_ _τ_ ( _M_ 3 + 1) _M_ _C_ _≥_ 0 _,_ - where the latter inequality follows from (CFL). For fill case (b), we get in the case _ω_ ¯ _j_ <sup>f</sup> <sup>_,n_</sup> _n_ ¯ _j_ <sup>f</sup> <sup>_,n_</sup> _n_ +1 <sup>:=</sup> <sup>_ηn_</sup> <sup>+1</sup> ¯ _jn_ +1 _≥_ _C_ <sup>ˇ(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> _M_ _C_ <u>�</u> _M_ _C_ _C_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> ¯ _jn_ +1 <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> ¯ _jn_ +1 ¯ _jn_ +1 _≥_ _C_ <sup>ˇ(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> ¯ _jn_ +1 1 + <sup>_<u>A</u>_</sup> <sup>¯</sup> <sup>_<u>jn</u>_</sup> <sup><u>+1</u></sup> 1 _−_ _τη_ <sup>_n_</sup> <sup>+1</sup> _A_ ¯ _jn_ - <u>�</u> 1 _−_ _τ_ ( _M_ 3 + 1) _M_ _C_ _≥_ 0 _._ - ¯ _jn_ +1 _≥_ _C_ <sup>ˇ(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> _<u>A</u>_ ¯ _<u>jn</u>_ <u>+</u> _<u>A</u>_ ¯ _<u>jn</u>_ <u>+1</u> 1 _−_ _τ_ _α_ <sup>_n_</sup> <sup>+1</sup> _A_ ¯ _jn_ + _A_ ¯ _jn_ +1 - ¯ _j_ <sup>f</sup> <sup>_,n_</sup> _n_ +1 <sup>:=</sup> <sup>_θn_</sup> <sup>+1</sup> <sup>one</sup> <sup>gets</sup> The other cases are similar, for example, in case (c) with _ω_ ¯ _j_ <sup>f</sup> <sup>_,n_</sup> _n_ ¯ _jn_ +1 _≥_ _C_ <sup>ˇ(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> (1 _−_ _τM_ _C_ ) _≥_ 0 _._ ¯ _jn_ +1 _≥_ _C_ <sup>ˇ(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> _C_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> ¯ _jn_ +1 <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> ¯ _jn_ +1 ¯ _jn_ +1 _≥_ _C_ <sup>ˇ(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> ¯ _jn_ +1 _<u>A</u>_ ¯ _<u>jn</u>_ <u>+</u> _<u>A</u>_ ¯ _<u>jn</u>_ <u>+1</u> 1 _−_ _τ_ - - _α_ <sup>_n_</sup> <sup>+1</sup> _A_ ¯ _jn−_ 1 + _A_ ¯ _jn_ + _A_ ¯ _jn_ +1 _M_ _C_ The cases of extraction are the same and so are the analogous ones for _S_ <sup>_n_</sup> _j_ +1 <sup>.</sup> Lemma 5. _Consider_ _the_ _second_ _step_ _of_ _the_ _splitting_ _scheme_ _with_ _formula_ (33) _and_ _the_ _formula_ _ob-_ _tained_ _by_ _summing_ _all_ _vector_ _components._ _If_ _X_ <sup>ˇ</sup> _j_ <sup>_n_</sup> <sup>+1</sup> := _C_ <sup>ˇ(1)</sup> <sup>_,n_</sup> <sup>+1</sup> + _· · ·_ + _C_ <sup>ˇ(</sup> <sup>_k_</sup> <sup>_C_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>+1</sup> _≤_ _X_ <sup>ˆ</sup> _and_ (CFL) _holds,_ _then_ _the_ _second_ _step_ _of_ _the_ _splitting_ _scheme_ _corresponding_ _to_ (33) _satisfies_ _≤_ _X._ <sup>ˇ</sup> (42) - _near_ _the_ _surface._ _j_ <sup>_n_</sup> <sup>+1</sup> = _X_ <sup>ˇ</sup> _j_ <sup>_n_</sup> <sup>+1</sup> _nj_ +1 _,_ _S_ <sup>ˇ</sup> - _C_ ˇ _formulas_ _n_ +1 _j_ _Xj_ <sup>_n_</sup> <sup>+1</sup> _j_ <sup>_n_</sup> <sup>+1</sup> + _τ_ _R_ <sup>˜</sup> _C_ _The_ _analogous_ _statement_ _is_ _true_ _for_ _the_ _other_ _update_ _formulas_ _near_ _the_ _surface._ _Proof._ If _X_ <sup>ˇ</sup> _j_ <sup>_n_</sup> <sup>+1</sup> _Proof._ If _X_ <sup>ˇ</sup> _j_ <sup>_n_</sup> <sup>+1</sup> _nj_ +1 _,_ _S_ <sup>ˇ</sup> _nj_ +1) = 0 by assumption (6). Otherwise _X_ <sup>ˇ</sup> _j_ <sup>_n_</sup> <sup>+1</sup> _≥_ _X_ <sup>ˆ</sup> _−_ _ε_, then _R_ <sup>˜</sup> _C_ ( _C_ <sup>ˇ</sup> _<_ _X_ <sup>ˆ</sup> _−_ _ε_ and (CFL) gives that _Xj_ <sup>_n_</sup> <sup>+1</sup> is estimated by _j_ <sup>_n_</sup> <sup>+1</sup> _≥_ _X_ <sup>ˆ</sup> _−_ _ε_, then _R_ <sup>˜</sup> _C_ ( _C_ <sup>ˇ</sup> gives that _X_ <sup>_n_</sup> <sup>+1</sup> is _nj_ +1 _,_ _S_ <sup>ˇ</sup> _j_ _nj_ +1) = 0 by assumption (6). Otherwise _X_ <sup>ˇ</sup> _j_ <sup>_n_</sup> <sup>+1</sup> _j_ <sup>_n_</sup> <sup>+1</sup> is estimated by _Xj_ <sup>_n_</sup> <sup>+1</sup> _<_ _X_ <sup>ˆ</sup> _−_ _ε_ + _τ_ _M_ <sup>˜</sup> _≤_ _X._ <sup>ˆ</sup> The rest of the update formulas are treated in the same way and the resulting formula contains an additional factor _ωj_ <sup>f</sup> <sup>_,n_</sup> _∈_ [0 _,_ 1] multiplying _τ_, so the result also holds for that formula. _3.6._ _Numerics_ _for_ _full_ _mixing_ During the react stage, mixing occurs due to aeration or the movement of an impeller; see Figure 2. Then there is no relative velocity between the solids and the liquid, but reactions take place, and the time-dependent concentrations for the mixture below the surface are given by the ODEs (18). Suppose the (PDE or numerical) solution _C_ ( _z, T_ 0) is known at _t_ = _T_ 0 = _tn_ 0 when a period of complete mixing starts. The initial concentrations for the ODEs (18) are defined as the averages (for _k_ = 1 _, . . ., k_ _C_ ; analogously for _S_ ) _N_ _<u>h</u>_ _A_ ( _ξ_ ) _C_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> ( _ξ, T_ 0) d _ξ_ _≈_ _V_ <u>¯ (</u> _T_ 0) _i_ =1 <u>1</u> _C_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> ( _T_ 0) := _V_ <u>¯ (</u> _T_ 0) _z_ ¯( _T_ 0) - _B_ _AiCi_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>0</sup> aver <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>0</sup> _._ _i_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>0</sup> =: _C_ aver <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>0</sup> The ODE system (18) can then be time integrated. If an ODE mixing period ends at _t_ = _tn_ ˜ and the PDE model is to be simulated thereafter, then the total mass below the surface is distributed among the cells by _Cj_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>˜</sup> :=      0 for _j_ = 1 _, . . .,_ <sup>¯</sup> _j_ <sup>_n_</sup> <sup>˜</sup> _−_ 1, _α_ <sup>_n_</sup> <sup>˜</sup> _C_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>˜</sup> aver for _j_ = <sup>¯</sup> _j_ <sup>_n_</sup> <sup>˜</sup>, aver <sup>= (</sup> <sup>_z_</sup> ¯ _j_ <sup>_n_</sup> <sup>˜</sup> +1 _/_ 2 <sup>_−_</sup> <sup>_z_</sup> <sup>¯</sup> <sup>_n_</sup> <sup>˜)</sup> <sup>_C_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>˜</sup> _α_ <sup>_n_</sup> <sup>˜</sup> _C_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>˜</sup> aver for _j_ = <sup>¯</sup> _j_ <sup>_n_</sup> <sup>˜</sup>, aver <sup>= (</sup> <sup>_z_</sup> ¯ _j_ <sup>_n_</sup> <sup>˜</sup> +1 _/_ 2 <sup>_−_</sup> <sup>_z_</sup> <sup>¯</sup> <sup>_n_</sup> <sup>˜)</sup> <sup>_C_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>˜</sup> _C_ aver <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>˜</sup> for _j_ = <sup>¯</sup> _j_ <sup>_n_</sup> <sup>˜</sup> aver <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>˜</sup> for _j_ = <sup>¯</sup> _j_ <sup>_n_</sup> <sup>˜</sup> + 1 _, . . ., N_ . <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>˜</sup> aver aver <sup>= (</sup> <sup>_z_</sup> ¯ _j_ <sup>_n_</sup> <sup>˜</sup> +1 _/_ 2 <sup>_−_</sup> <sup>_z_</sup> <sup>¯</sup> <sup>_n_</sup> <sup>˜)</sup> <sup>_C_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_,n_</sup> <sup>˜</sup> <sup>_,n_</sup> <sup>˜</sup> 15 Table 1: List of ASM1 variables of the biokinetic reaction model. Material Notation Unit Particulate inert organic matter _X_ I (g COD) m <sup>_−_</sup> <sup>3</sup> Slowly biodegradable substrate _X_ S (g COD) m <sup>_−_</sup> <sup>3</sup> Active heterotrophic biomass _X_ B _,_ H (g COD) m <sup>_−_</sup> <sup>3</sup> Active autotrophic biomass _X_ B _,_ A (g COD) m <sup>_−_</sup> <sup>3</sup> Particulate products arising from biomass decay _X_ P (g COD) m <sup>_−_</sup> <sup>3</sup> Particulate biodegradable organic nitrogen _X_ ND (g N) m <sup>_−_</sup> <sup>3</sup> Soluble inert organic matter _S_ I (g COD) m <sup>_−_</sup> <sup>3</sup> Readily biodegradable substrate _S_ S (g COD) m <sup>_−_</sup> <sup>3</sup> Oxygen _S_ O _−_ (g COD) m <sup>_−_</sup> <sup>3</sup> Nitrate and nitrite nitrogen (g COD) m <sup>_−_</sup> <sup>3</sup> Nitrate and nitrite nitrogen _S_ NO (g COD) m <sup>_−_</sup> <sup>3</sup> NH <sup>+</sup> 4 <sup>+</sup> 4 <sup>+ NH3</sup> <sup>nitrogen</sup> _S_ NH (g COD) m <sup>_−_</sup> <sup>3</sup> Soluble biodegradable organic nitrogen _S_ ND (g COD) m <sup>_<u>−</u>_</sup> <sup>3</sup> Table 2: Time functions for the simulated SBR cycle. ‘Model’ refers to either PDE (17) or ODE (18). Stage Time period [h] _X_ f ( _t_ ) [kg _/_ m <sup>3</sup> ] _Q_ f ( _t_ ) [m <sup>3</sup> _/_ h] _Q_ u( _t_ ) [m <sup>3</sup> _/_ h] _Q_ e( _t_ ) [m <sup>3</sup> _/_ h] Model Fill 0 _≤_ _t <_ 1 5 790 0 0 PDE React 1 _≤_ _t <_ 3 0 0 0 0 ODE Settle 3 _≤_ _t <_ 5 0 0 0 0 PDE Draw 5 _<u>≤</u>_ _t <_ 5 _._ 5 0 0 0 1570 PDE Idle 5 _._ 5 _<u>≤</u>_ _t <_ 6 0 0 10 0 PDE Recall that the ODEs (18) are averages of the PDE model (17a) and (17b) when the convective and diffusive terms are zero [4]. Therefore, if time integration is made with the explicit Euler method and (CFL) holds, then also the numerical approximations of the ODE solutions to (18) belong to Ω. 4. Numerical simulations The numerical method in Section 3.4 with condition (CFL) is first used for the simulation of an SBR process. In [4], we demonstrated the process by letting the reaction terms model a denitrification process, which occurs when there is no oxygen present. Here, the reactions are a modified ASM1 model without alkalinity; see Table 1 for the six particulate and six soluble state variables, and Appendix A for the reaction terms. Furthermore, we assume that the mixing during the react stage is achieved by aeration, which means that the liquid is saturated with dissolved oxygen; a concentration about _S_ O = 10 g _/_ m <sup>3</sup> . The constitutive functions used for sedimentation and compression are _<u>v</u>_ <u>0</u> _v_ hs( _X_ ) := 1 + ( _X/X_ <sup>˘</sup> ) <sup>_η_</sup> <sup>_,_</sup> _σ_ e( _X_ ) := _αχ{X≥X_ c _}_ ( _X_ _−_ _X_ c) _,_ with _v_ 0 = 1 _._ 76 _×_ 10 <sup>_−_</sup> <sup>3</sup> m _/_ s, _X_ <sup>˘</sup> = 3 _._ 87 kg _/_ m <sup>3</sup>, _η_ = 3 _._ 58, _X_ c = 5 kg _/_ m <sup>3</sup> and _α_ = 0 _._ 2 m <sup>2</sup> _/_ s <sup>2</sup> . Other parameters are _ρX_ = 1050 kg _/_ m <sup>3</sup>, _ρL_ = 998 kg _/_ m <sup>3</sup>, _g_ = 9 _._ 81 m _/_ s <sup>2</sup>, and _B_ = 3 m. We simulate one sequence of an SBR with the stages specified in Table 2. (This is the same scenario as in the first example of [4] with a denitrification reaction model and without oxygen supply.) Condition (CFL) implies the step length _τ_ = 4 _._ 3716 _·_ 10 <sup>_−_</sup> <sup>5</sup> s. The initial concentrations have been chosen as _C_ <sup>0</sup> ( _z_ ) = 0 kg _/_ m <sup>3</sup> if _z_ _<_ 2 _._ 0 m, 16 Table 3: Relative differences _<u>DN</u>_ ( _T_ ) at the final simulation time _T_ = 6 h. _N_ _<u>DN</u>_ ( _T_ ) 50 5.8716e-02 100 3.5451e-02 200 1.6195e-02 400 7.5170e-03 800 3.3273e-03 _C_ <sup>0</sup> ( _z_ ) = (0 _._ 8889 _,_ 0 _._ 0295 _,_ 1 _._ 4503 _,_ 0 _._ 0904 _,_ 0 _._ 7371 _,_ 0 _._ 0025) <sup>T</sup> kg _/_ m <sup>3</sup> if _z_ _≥_ 2 _._ 0 m, _S_ <sup>0</sup> ( _z_ ) = 0 kg _/_ m <sup>3</sup> if _z_ _<_ 2 _._ 0 m, _S_ <sup>0</sup> ( _z_ ) = (0 _._ 0400 _,_ 0 _._ 0026 _,_ 0 _._ 0 _,_ 0 _._ 0333 _,_ 0 _._ 0004 _,_ 0 _._ 0009) <sup>T</sup> kg _/_ m <sup>3</sup> if _z_ _≥_ 2 _._ 0 m, while the feed concentrations are [21] _C_ f ( _t_ ) = _X_ f ( _t_ )(0 _._ 1273 _,_ 0 _._ 5091 _,_ 0 _._ 3055 _,_ 3 _._ 1819 _·_ 10 <sup>_−_</sup> <sup>6</sup> _,_ 0 _._ 0 _,_ 0 _._ 0582) <sup>T</sup> kg _/_ m <sup>3</sup> _,_ _S_ f ( _t_ ) = (0 _._ 04 _,_ 0 _._ 064 _,_ 0 _._ 0 _,_ 0 _._ 001 _,_ 0 _._ 0125 _,_ 0 _._ 0101) <sup>T</sup> kg _/_ m <sup>3</sup> _,_ where the total solids feed concentration _X_ f ( _t_ ) varies with time according to Table 2. Figures 4 and 5 show the simulation results for the concentrations within the vessel of the particulate and soluble components, respectively. The numerical scheme resolves all the discontinuities accurately. At time _t_ = 1 h, the tank has been filled and the react stage starts and there is full mixing by aeration. Consequently, the available components in the tank are distributed homogeneously. During the react stage, the growth of biomass is slow but the fast consumption of _S_ S and increase of _S_ NH are visible in Figures 5(b) and (e), respectively. The nitrification process uses oxygen to produce nitrate and nitrite, which can be seen in plot (d). After the react stage, _t ≥_ 3 h, the oxygen is quickly consumed (plot (c)), but only where there is biomass and _S_ S and _S_ NH are positive. The convergence of the numerical scheme is demonstrated in Figure 6, where some of the effluent concentrations are plotted. As was illustrated with the example of denitrification in [4] and the present one for the modified ASM1 model, simulations seem to satisfy the invariant-region property although we only have a proof of this for the splitting scheme of Section 3.5. For the ASM1 example here and a given number of cells _N_, we calculate the _L_ <sup>1</sup> relative difference between the simulation result of the two variants of the numerical scheme according to the following formula, where _C_ _N_ is the result without splitting and _C_ <sup>split</sup> _N_ with splitting: _N_ <sup>split</sup> <sup>_,_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> ( _·, t_ ) _∥L_ 1(0 _,B_ ) _N_ <sup>split</sup> <sup>_,_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> ( _·, t_ ) _∥L_ 1(0 _,B_ ) _<u>∥</u>_ <u>(</u> _<u>CN</u>_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _<u>N</u>_ _<u>N</u>_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_<u>−</u>_</sup> <sup>_<u>C</u>_</sup> <sup>split</sup> <sup>_,_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _<u>∥</u>_ <u>(</u> _<u>SN</u>_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _<u>N</u>_ _<u>N</u>_ <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <sup>_<u>−</u>_</sup> <sup>_<u>S</u>_</sup> <sup>split</sup> <sup>_,_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> _DN_ ( _t_ ) := _k_ _C_ _k_ =1 _<u>N</u>_ <sup>_k_</sup> <sup>)</sup> <sup>_<u>−</u>_</sup> <sup>_<u>C</u>_</sup> <sup>split</sup> <sup>_,_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <u>)(</u> _<u>·, t</u>_ <u>)</u> _<u>∥L</u>_ 1(0 _<u>,B</u>_ <u>)</u> _N_ _∥C_ <sup>split</sup> <sup>_,_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> ( _·, t_ ) _∥L_ 1(0 _,B_ ) _k_ _S_ _k_ =1 _<u>N</u>_ <sup>_k_</sup> <sup>)</sup> <sup>_<u>−</u>_</sup> <sup>_<u>S</u>_</sup> <sup>split</sup> <sup>_,_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> <u>)(</u> _<u>·, t</u>_ <u>)</u> _<u>∥L</u>_ 1(0 _<u>,B</u>_ <u>)</u> _N_ _∥S_ <sup>split</sup> <sup>_,_</sup> <sup>(</sup> <sup>_k_</sup> <sup>)</sup> ( _·, t_ ) _∥L_ 1(0 _,B_ ) + _._ The result at time _t_ = _T_ = 6 h is shown in Table 3. The relative difference is approximately halved as _N_ is doubled. 5. Conclusions The general model of multi-component reactive settling of flocculated particles given by a quasione-dimensional PDE system with moving boundary in Section 2 was derived in [4]. The unknowns are concentrations of biomass particles and soluble substrates, and the reaction terms of the PDE model can be given by any model for biochemical reactions in wastewater treatment. The numerical scheme in Section 3.4 is designed to ensure conservation of mass across the surface during fill and draw. Away from the moving boundary, the scheme is the same as in [24], where it is demonstrated that its order of convergence is not more than one. The extra treatment near surface will of course not improve that. An indication of the convergence of the numerical scheme as the mesh size is reduced is demonstrated in Figure 6. 17 (a) Particulate inert organic matter (b) Slowly biodegradable substrate (c) Active heterotrophic biomass (d) Active autotrophic biomass (e) Particle products arising from biomass decay (f) Particulate biodegradable organic nitrogen Figure 4: Concentrations of the six solid components during a numerical simulation with _N_ = 100 until _T_ = 6 h. For visualization purposes, we do not plot zero numerical concentrations above the surface, but fill this region with grey colour. 18 (a) Soluble inert organic matter (b) Readily biodegradable substrate (c) Oxygen (d) Nitrate and nitrite nitrogen (e) _NH_ 4 <sup>+</sup> + _NH_ 3 nitrogen (f) Soluble biodegradable organic nitrogen Figure 5: Concentrations of the six dissolved components during a numerical simulation with _N_ = 100 until _T_ = 6 h. The downwards-pointing peaks at large discontinuities arise because we do not plot zero concentration. 19 <u>10</u> <sup>-3</sup> 5 4 3 2 1 0 4.8 5 5.2 5.4 5.6 5.8 6 <u>10</u> <sup>-2</sup> 1.5 1 0.5 0 4.8 5 5.2 5.4 5.6 5.8 6 <u>10</u> <sup>-2</sup> 4 3 2 1 0 4.8 5 5.2 5.4 5.6 5.8 6 <u>10</u> <sup>-2</sup> 3 2.5 2 1.5 1 0.5 0 4.8 5 5.2 5.4 5.6 5.8 6 <u>10</u> <sup>-3</sup> 8 6 4 2 0 4.8 5 5.2 5.4 5.6 5.8 6 <u>10</u> <sup>-3</sup> 2 1.5 1 0.5 0 4.8 5 5.2 5.4 5.6 5.8 6 Figure 6: Simulated effluent concentrations, all in kg _/_ m <sup>3</sup>, during _t_ _∈_ [4 _._ 8 h _,_ 6 h] obtained by the discretizations where the number of computational cells within the tank is 50, 100, 200 and 400. The main result of this work is an invariant-region property (Theorem 1) for the numerical solution if the scheme is computed in a Lie-Trotter-Kato splitting way where the first time step is taken without any reactions and then a step with only the reactions. Then all the concentrations are nonnegative and the solids concentrations never exceed the maximal packing one. In particular, the scheme is monotone when the reaction terms are zero. Simulations with or without splitting have shown to produce very similar outputs and this is demonstrated by the diminishing relative error between such simulations in Table 3. A proof of convergence of the method (as _h_ _→_ 0) to a suitably defined weak or entropy weak solution, as well as the corresponding well-posedness (existence and uniqueness) analysis, are still pending. That said, we point out that available convergence analyses for related strongly degenerate, scalar PDEs with discontinuous flux (cf., e.g., [12, 13, 14]) rely on the monotonicity of the underlying scheme as well as a uniform bound on the numerical solution, among other properties. Theorem 1 and its proof may be therefore viewed as a partial result to prove convergence of the numerical scheme presented herein. Given a moving boundary and a fixed spatial discretization for the numerical scheme, local mass balances have been used to obtain correct update formulas for numerical cells near the surface. This results in a scheme with several cases depending on the surface movement. A certain limitation of the explicit numerical scheme, used without or with splitting, is the restrictive CFL condition (where the time step is esentially proportional to the square of the cell size), implying that very small time steps are needed if accurate approximations on a fine spatial mesh are sought. An alternative approach would be to transform the PDE system and have a fixed number of cells below the moving surface. Such a scheme could possibly also be easier to generalize to a high-order scheme or a more efficient one with semi-implicit time discretization. The advantage of the present fixed-cell-size numerical scheme is, however, that the model can more easily be generalized to include further sources or sinks at fixed locations, a desirable feature in applications to wastewater treatment. 20 Acknowledgements RB is supported by ANID (Chile) through projects Centro de Modelamiento Matem´atico (BASAL projects ACE210010 and FB210005); Anillo project ANID/PIA/ACT210030; CRHIAM, project ANID/FONDAP/15130015; and Fondecyt project 1210610. SD acknowledges support from the Swedish Research Council (Vetenskapsr˚adet, 2019-04601). RP is supported by ANID scholarship ANID-PCHA/Doctorado Nacional/2020-21200939. Appendix A. The modified ASM1 model The alkalinity variable in the original ASM1 model [25] is removed since it does not influence any other variable. We introduce an extra Monod factor with a small half-saturation parameter _K_ <sup>¯</sup> NH for the concentration _S_ NH in processes nos 1 and 2 (component nos 1 and 2 of the vector _r_ ) in order to satisfy condition (8)- and guarantee non-negative solutions of the ODE system (9). The stoichiometric matrices of the reaction-rate vectors are       0 0 0 0 0 0 0 0  _σC_ := _σS_ := 0 0 0 0 0 0 0 0 0 0 0 1 _−_ _f_ P 1 _−_ _f_ P 0 _−_ 1 0 1 1 0 _−_ 1 0 0 0 0 0 0 1 0 _−_ 1 0 0 0 0 0 0 _f_ P _f_ P 0 0 0 0 0 0 _i_ XB _−_ _f_ P _i_ XP _i_ XB _−_ _f_ P _i_ XP 0 0 _−_ 1 0 _−_ 2 <sup><u>1</u></sup> _._ <sup>_<u>−</u>_</sup> 86 <sup>_<u>Y</u>_</sup> _Y_ <sup><u>H</u></sup> H _,_  _−_ _Y_ <sup><u>1</u></sup> H   _−_ _Y_ <sup><u>1</u></sup> H 0 0 0 0 1 0 _−_ <sup><u>1</u></sup> <sup>_<u>−</u>_</sup> _Y_ H <sup>_<u>Y</u>_</sup> <sup><u>H</u></sup> 0 _−_ <sup><u>4</u></sup> <sup>_<u>.</u>_</sup> <sup><u>57</u></sup> _Y_ <sup>_<u>−</u>_</sup> A <sup>_<u>Y</u>_</sup> <sup><u>A</u></sup>   _,_ _Y_ H 0 0 0 0 0 <u>1</u> _Y_ A 0 0 0 0 0 _−i_ XB _−i_ XB _−i_ XB _−_ _Y_ <sup><u>1</u></sup> _Y_ A 0 0 1 0 0 0 0 0 0 0 _−_ 1 0 1 and the eight processes are contained in the vector   _<u>S</u>_ <u>NH</u> _K_ <u>¯</u> NH + _S_ NH _µ_ A _<u>S</u>_ <u>O</u> _X_ B _,_ H _K_ O _,_ H + _S_ O _<u>S</u>_ <u>NH</u> _K_ <u>¯</u> NH + _S_ NH _<u>S</u>_ <u>S</u> _K_ S + _S_ S _µ_ H _<u>K</u>_ <u>O</u> _<u>,</u>_ <u>H</u> _K_ O _,_ H + _S_ O _<u>S</u>_ <u>NO</u> _K_ NO + _S_ NO _<u>S</u>_ <u>S</u> _K_ S + _S_ S _X_ B _,_ A _µ_ H _η_ g _X_ B _,_ H _<u>S</u>_ <u>NH</u> _K_ NH + _S_ NH _<u>S</u>_ <u>O</u> _K_ O _,_ A + _S_ O _r_ ( _C_ _,_ _S_ ) := where we define                           _b_ H _X_ B _,_ H _b_ A _X_ B _,_ A _k_ a _S_ ND _X_ B _,_ H _,_ _<u>S</u>_ <u>O</u> _K_ O _,_ H + _S_ O _<u>S</u>_ <u>NO</u> _K_ NO + _S_ NO <u>�</u> _k_ h _µ_ 7( _X_ S _, X_ B _,_ H) + _η_ h _<u>S</u>_ <u>O</u> _K_ O _,_ H + _S_ O _<u>K</u>_ <u>O</u> _<u>,</u>_ <u>H</u> _K_ O _,_ H + _S_ O                           _<u>S</u>_ <u>NO</u> _K_ NO + _S_ NO _k_ h _µ_ 8( _X_ B _,_ H _, X_ ND) + _η_ h _<u>K</u>_ <u>O</u> _<u>,</u>_ <u>H</u> _K_ O _,_ H + _S_ O _µ_ 7( _X_ S _, X_ B _,_ H) :=      0 if _X_ S = 0 or _X_ B _,_ H = 0, _<u>X</u>_ <u>S</u> _<u>X</u>_ <u>B</u> _<u>,</u>_ <u>H</u> otherwise, _K_ X _X_ B _,_ H + _X_ S otherwise, 21 Table A.4: Stoichiometric and kinetic parameters. Symbol Name Value Unit _Y_ A Yield for autotrophic biomass 0.24 (g COD)(g N) <sup>_−_</sup> <sup>1</sup> _Y_ H Yield for heterotrophic biomass 0.57 (g COD)(g COD) <sup>_−_</sup> <sup>1</sup> _f_ P Fraction of biomass leading to particulate products 0.1 dimensionless _i_ XB Mass of nitrogen per mass of COD in biomass 0.07 (g N)(g COD) <sup>_−_</sup> <sup>1</sup> _i_ XP Mass of nitrogen per mass of COD in products from biomass _µ_ H Maximum specific growth rate for heterotrophic biomass 0.06 (g N)(g COD) <sup>_−_</sup> <sup>1</sup> 4.0 d <sup>_−_</sup> <sup>1</sup> _K_ S Half-saturation coefficient for heterotrophic biomass 20.0 (g COD) m <sup>_−_</sup> <sup>3</sup> _K_ O _,_ H Oxygen half-saturation coefficient for heterotrophic biomass _K_ NO Nitrate half-saturation coefficient for denitrifying heterotrophic biomass 0.25 _−_ (g COD) m <sup>_−_</sup> <sup>3</sup> 0.5 (g NO3-N) m <sup>_−_</sup> <sup>3</sup> _b_ H Decay coefficient for heterotrophic biomass 0.5 d <sup>_−_</sup> <sup>1</sup> _η_ g Correction factor for _µ_ H under anoxic conditions 0.8 dimensionless _η_ h Correction factor for hydrolysis under anoxic condi- 0.35 dimensionless tions _k_ h Maximum specific hydrolysis rate 1.5 (g COD) (g COD) <sup>_−_</sup> <sup>1</sup> d <sup>_−_</sup> <sup>1</sup> _K_ X Half-saturation coefficient for hydrolysis of slowly biodegradable substrate _µ_ A Maximum specific growth rate for autotrophic biomass _K_ ¯ NH Ammonia half-saturation coefficient for aerobic and anaerobic growth of heterotrophs _K_ NH Ammonia half-saturation coefficient for autotrophic biomass 0.02 (g COD)(g COD) <sup>_−_</sup> <sup>1</sup> 0.879 d <sup>_−_</sup> <sup>1</sup> 0.007 (g NO3-N) m <sup>_−_</sup> <sup>3</sup> 1.0 (g NH3-N) m <sup>_−_</sup> <sup>3</sup> _b_ A Decay coefficient for autotrophic biomass 0.132 d <sup>_−_</sup> <sup>1</sup> _K_ O _,_ A Oxygen half-saturation coefficient for autotrophic biomass 0.5 _−_ (g COD) m <sup>_−_</sup> <sup>3</sup> _k_ a Ammonification rate 0.08 m <sup>3</sup> (gCOD) <sup>_<u>−</u>_</sup> <sup>1</sup> d <sup>_<u>−</u>_</sup> <sup>1</sup> _µ_ 8( _X_ B _,_ H _, X_ ND) :=      0 if _X_ B _,_ H = 0, _<u>X</u>_ <u>B</u> _<u>,</u>_ <u>H</u> _<u>X</u>_ <u>ND</u> otherwise. _K_ X _X_ B _,_ H + _X_ S otherwise. All the constants are given in Table A.4. References [1] G. Chen, M. C. M. van Loosdrecht, G. A. Ekama, D. Brdjaniovic, Biological Wastewater Treatment, 2nd Edition, IWA Publishing, London, UK, 2020. [2] R. Droste, R. Gear, Theory and Practice of Water and Wastewater Treatment, 2nd Edition, Wiley, Hoboken, NJ, USA, 2019. [3] L. Metcalf, H. P. Eddy, Wastewater Engineering. Treatment and Resource Recovery, 5th Edition, McGraw-Hill, New York, USA, 2014. [4] R. B¨urger, S. Diehl, J. Careaga, R. Pineda, A moving-boundary model of reactive settling in wastewater treatment. Part 1: Governing equations, submitted (2021). 22 [5] R. B¨urger, J. Careaga, S. Diehl, A method-of-lines formulation for a model of reactive settling in tanks with varying cross-sectional area, IMA J. Appl. Math. 86 (2021) 514–546. [6] R. B¨urger, J. Careaga, S. Diehl, C. Mej´ıas, I. Nopens, E. Torfs, P. A. Vanrolleghem, Sim ulations of reactive settling of activated sludge with a reduced biokinetic model, Computers Chem. Eng. 92 (2016) 216–229. [7] R. B¨urger, S. Diehl, C. Mej´ıas, A difference scheme for a degenerating convection-diffusion reaction system modelling continuous sedimentation, ESAIM: Math. Modelling Numer. Anal. 52 (2) (2018) 365–392. [8] Adimurthi, J. Jaffr´e, G. D. V. Gowda, Godunov-type methods for conservation laws with a flux function discontinuous in space, SIAM J. Numer. Anal. 42 (1) (2004) 179–208. [9] B. Andreianov, K. H. Karlsen, N. H. Risebro, A theory of _L_ <sup>1</sup> -dissipative solvers for scalar conservation laws with discontinuous flux, Arch. Ration. Mech. Anal. 201 (2011) 1–60. [10] S. Diehl, On scalar conservation laws with point source and discontinuous flux function, SIAM J. Math. Anal. 26 (6) (1995) 1425–1451. [11] T. Gimse, N. H. Risebro, Solution of the Cauchy problem for a conservation law with a discontinuous flux function, SIAM J. Math. Anal. 23 (3) (1992) 635–648. [12] K. H. Karlsen, N. H. Risebro, J. D. Towers, Upwind difference approximations for degenerate parabolic convection-diffusion equations with a discontinuous coefficient, IMA J. Numer. Anal. 22 (4) (2002) 623–664. [13] K. H. Karlsen, N. H. Risebro, J. D. Towers, _L_ <sup>1</sup> stability for entropy solutions of nonlinear de generate parabolic convection-diffusion equations with discontinuous coefficients, Trans. Royal Norwegian Society Sci. Letters (Skr. K. Nor. Vidensk. Selsk.) 3 (2003) 49. [14] R. B¨urger, K. H. Karlsen, J. D. Towers, A model of continuous sedimentation of flocculated suspensions in clarifier-thickener units, SIAM J. Appl. Math. 65 (2005) 882–940. [15] R. B¨urger, J. Careaga, S. Diehl, A simulation model for settling tanks with varying cross sectional area, Chem. Eng. Commun. 204 (11) (2017) 1270–1281. [16] J.-P. Chancelier, M. Cohen de Lara, F. Pacard, Analysis of a conservation PDE with discon tinuous flux: a model of settler, SIAM J. Appl. Math. 54 (4) (1994) 954–995. [17] S. Diehl, A conservation law with point source and discontinuous flux function modelling continuous sedimentation, SIAM J. Appl. Math. 56 (2) (1996) 388–419. [18] S. Diehl, Dynamic and steady-state behavior of continuous sedimentation, SIAM J. Appl. Math. 57 (4) (1997) 991–1018. [19] H. Holden, K. H. Karlsen, K.-A. Lie, N. H. Risebro, Splitting Methods for Nonlinear Partial Differential Equations with Rough coefficients: Analysis and MATLAB programs, European Mathematical Society Publishing House, Z¨urich, Switzerland, 2010. [20] R. B¨urger, S. Diehl, I. Nopens, A consistent modelling methodology for secondary settling tanks in wastewater treatment, Water Res. 45 (6) (2011) 2247–2260. [21] M. Henze, C. P. L. Grady, W. Gujer, G. V. R. Marais, T. Matsuo, A general model for single-sludge wastewater treatment systems, Water Res. 21 (5) (1987) 505–515. [22] J. Makinia, E. Zaborowska, Mathematical Modelling and Computer Simulation of Activated Sludge Systems, 2nd Edition, IWA Publishing, London, UK, 2020. [23] L. Formaggia, A. Scotti, Positivity and conservation properties of some integration schemes for mass action kinetics, SIAM J. Num. Anal. 49 (3) (2011) 1267–1288. 23 [24] R. B¨urger, J. Careaga, S. Diehl, A method-of-lines formulation for a model of reactive settling in tanks with varying cross-sectional area, IMA J. Appl. Math. 86 (2021) 514–546. [25] M. Henze, Gujer, T. W., Mino, M. C. M. van Loosdrecht, Activated Sludge Models ASM1, ASM2, ASM2d and ASM3, IWA Scientific and Technical Report No. 9, IWA Publishing, London, UK, 2000. 24

섹션 본문 257문단 · 63,255자

(제목 없음)

1A numerical scheme is proposed for the simulation of reactive settling in sequencing batch reactors (SBRs) in wastewater treatment plants. Reactive settling is the process of sedimentation of flocculated particles (biomass; activated sludge) consisting of several material components that react with substrates dissolved in the fluid. An SBR is operated in cycles of consecutive fill, react, settle, draw and idle stages, which means that the volume in the tank varies and the surface moves with time. The process is modelled by a system of spatially one-dimensional, nonlinear, strongly degenerate parabolic convection-diffusion-reaction equations. This system is coupled via conditions of mass conservation to transport equations on a half line whose origin is located at a moving boundary and that models the effluent pipe. A finite-difference scheme is proved to satisfy an invariant-region property (in particular, it is positivity preserving) if executed in a simple splitting way. Simulations are presented with a modified variant of the established activated sludge model no. 1 (ASM1).

Introduction

2A sequencing batch reactor (SBR) is a tank (with possibly varying cross-sectional area) used for the purification of wastewater (e.g., [1,2,3]). It has a controlled outlet at the bottom and at the surface of the mixture, a floating device allows for controlled fill or extraction of mixture; see Figure 1. It is operated batch-wise in a sequence of cycles of fill, react, settle, draw and idle stages; see see Figure 2. The mixture consists of flocculated particles of biomass (activated sludge) consisting of several components that react with dissolved substrates (nutrients) in the liquid. (The removal of these substrates is the purpose of an SBR.) The full model of the process consists of a system of nonlinear partial differential equations (PDEs); see [4], to which we also refer for references to previous related works. To the authors' knowledge, models for SBRs with reactions during all stages (including the settle) have rarely been proposed in the literature. Models of reactive settling in continuously operated secondary settling tanks (SSTs) based on PDEs and numerical schemes are presented in [5,6,7]; see also references therein.

3In addition to the mathematical and numerical difficulties of an SST model, the moving boundary in an SBR means a special challenge. Although in normal operation only liquid is extracted through the pipe in the draw phase, our model and numerical scheme are capable to handle any concentrations at the mixture surface.

4The moving-boundary model has a connected half-axis with transport equations and nonlinear mass-preserving coupling conditions that do not define the coupling concentrations uniquely. Such a problem of nonuniqueness arises already for a scalar conservation law with discontinuous flux, which has been investigated widely [8,9,10,11,12,13]; in particular, in the context of continuous sedimentation [14,15,16,17,18] where a monotone numerical scheme approximates the correct solutions [14]. It is the purpose of this contribution to present a numerical scheme that can handle the strong type degeneracy of the PDEs as well as the moving boundary where both a source is located and a half-line model attached. The scheme is monotone when the reaction terms are zero. We prove that if the scheme is used in the simple Lie-Trotter-Kato splitting way (e.g. [19]), namely, one explicit time step is taken without reactions and a another step with only reactions, then the numerical solutions have an invariant-region property under a convenient Courant-Friedrichs-Lewy (CFL) condition. In particular, concentrations are nonnegative.

5The PDE model is presented in Section 2. Section 3 contains the numerical scheme based on the one proposed in [5] but modified to handle the moving boundary. The fully discrete and explicit scheme is presented in Section 3.4 and its splitting version with the CFL condition and invariantregion property is presented in Section 3.5. The numerical scheme during the full mixing stage can be found in Section 3.6. In Section 4, we show a numerical examples of SBR operation with a constant cross-sectional area (cylindrical vessel) and a commonly used activated sludge model for the biokinetic reactions; however, slightly adjusted to deliver non-negative concentrations only. Some conclusions can be found in Section 5.

The model

6The vertical z-axis of the governing model and the moving coordinate system with the x-halfaxis are shown in Figure 1. The characteristic function γ equals one inside the mixture and zero otherwise, i.e., γ(z, t) = χ {z(t)<z<B} , where χ I is the indicator function which equals one if and only if I is true, and z =z(t) is the surface location. We let A = A(z) denote the cross-sectional area of the tank that may depend on depth z.

7The solid phase consists of flocculated particles of k C types with concentrations C (1) , . . . , C (k C ) . The components of the liquid phase are water of concentration W and k S dissolved substrates of concentrations S (1) , . . . , S (k S ) . The total concentrations of solids X and liquid L are

8All these concentrations depend on z and t.

9At the surface of the mixture, z =z(t), we model a floating device connected to a pipe through which one can feed the tank with a given volume rate Q f (t) and given feed concentrations C f (t) and S f (t); see Figure 1. Alternatively, this floating device allows to extract mixture at a given volume rate Q e (t) > 0 through the same pipe; hence, one cannot fill and extract simultaneously. If [0, T ] denotes the total time interval of modelling (and simulation in Section 3), we assume that

10When t ∈ T e , we model in [4] the extraction flow in the effluent pipe by a moving coordinate system, namely a half line x ≥ 0, where x = 0 is attached to z =z(t); see Figure 1. Since we assume that there are no reactions in the pipe and all components have the same velocity, the conservation law for the pipe is the linear advection equation A e ∂ tC + Q e (t)∂ xC = 0 where A e is the cross-sectional area of the pipe. However, we are only interested in the effluent concentrations in the pipe at x = 0 + , which we denote by C e (t) and S e (t). At the bottom, z = B, one can withdraw mixture at a given volume rate Q u (t) ≥ 0. The underflow region z > B is for simplicity modelled by setting A(z) := A(B), since we are only interested in the underflow concentration C u (t), which is an outcome of the model (analogously for S u (t)). Below the surface, the volume fractions of solids and liquid add to one, i.e.,

11The same holds for the feed concentrations. For known C and S, (1) implies the water concentration

12This concentration is not part of any reaction and can be computed afterwards. For computational purposes, we define a maximal concentrationX of solids and assume that the density of all solids is the same, namely ρ X >X. Similarly, we assume that the liquid phase has the density ρ L < ρ X , typically the density of water. The velocity of a solid particle v X = q + v is the sum of the average volumetric velocity, or bulk velocity, of the mixture

13and the excess velocity v, which is given by the following commonly used expression [14,20]:

14where

15Here, ∆ρ := ρ X − ρ L , g is the acceleration of gravity, v hs = v hs (X) is the hindered-settling velocity, which is assumed to be decreasing and satisfy v hs (X) = 0, σ e = σ e (X) the effective solids stress, which satisfies σ e (X) = 0 for X ≤ X c and σ e (X) > 0 for X > X c , where X c is a critical concentration above which the particles touch each other and form a network that can bear a certain stress.

16The reaction terms for all components are collected in the vectors

17which model the increase of solid and soluble components, respectively, where σ C and σ S are constant stoichiometric matrices and r(C, S) ≥ 0 is a vector of non-negative reaction rates, which are assumed to be bounded and Lipschitz continuous functions. We set

18(analogously forR S (C, S)).

19In the present work the matrices σ C and σ S and the vector r are given by expressions that represent a slightly modified version of the activated sludge model no. 1, usually abbreviated 'ASM1' in wastewater engineering. The model was the first comprehensive activated sludge model developed by a task group of the International Water Association (IWA) (see [21]). The model describes the principal biochemical reactions that occur within the activated sludge process, which is the most widespread technology for the secondary treatment of municipal wastewater and as commented in [22], constitutes 'the heart' of many wastewater treatment plants. Later versions, known as ASM2, ASM2d, and ASM3, account for additional reactions such as fermentation and chemical or biological phosphorus removal (not considered in the present work). Commercial software packages that include these models are used commonly by wastewater process design engineers for the process design of various activated sludge system configurations [3]. We refer to Appendix A for the description of the modified ASM1 model used herein and to [1,3,22] for further information on activated sludge models.

20In order to establish an invariant-region property for the numerical solution, we make some technical assumptions. To ensure that the numerical solution for the solids does not exceed the maximal concentrationX, we assume the following:

21v(X, ∂ z X, z, t) = 0.

22These conditions mean that when the concentration is (near) the maximal one, biomass cannot grow any more and its relative velocity to the liquid phase is zero. To obtain positivity of component k of the concentration vector C, we let

23denote the sets of indices l that have negative and positive stoichiometric coefficients, respectively, and assume the following (analogously for S):

24if l ∈ I − C,k , then r (l) (C, S) =r (l) (C, S)C (k) withr (l) bounded.

25Assumption (8) implies that

26. , k C (analogously for S), which means that the system of ODEs

27has a non-negative solution if the initial data are non-negative [23]. This positivity property is carried over to the numerical splitting scheme suggested here. The volume of the mixture is defined bȳ

28The function V is invertible since V (z) = −A(z) < 0; in particular,

29It turns out that the surface location is given by the following explicit expression of the given volumetric flows:

30Alternatively,z(t) can be obtained from

31To state the governing model, we define the velocities

32and then introduce the total mass fluxes as

33The complete model is the following (δ is the delta function):

34The water concentration W can always be calculated from (2). No initial data are needed for the outlet concentrations, but for C and S, namely

35During the react stage of an SBR (see Figure 2), full mixing occurs and the system of PDEs (17a) and (17b) reduces to the following system of ordinary differential equations (ODEs) for the homogeneous concentrations inz(t) < z < B:

36where all concentrations depend on time only since they are averages (below the surface). As before, W can be obtained afterwards from (2). In the region 0 < z <z(t) all concentrations are zero. Because of (15) and (17c) we have C u (t) = C(t) and C e (t) = C(t)χ {t∈Te} (analogously for S).

Spatial discretization and numerical fluxes

37We divide the tank into N computational cells each having depth h = B/N . Assume that the midpoint of cell j has the coordinate z j , hence, the cell is the interval [z j−1/2 , z j+1/2 ]. The top cell 1 is thus [z 1/2 , z 3/2 ] = [0, h], and the bottom location is z = z N +1/2 = B. To obtain the underflow concentrations, we add one cell below z = B. To obtain the extraction concentrations, we add one cell [0, ∆x] of the x-coordinate system. To approximate the cell volumes, we define the average cross-sectional areas

38The unknowns are approximated by functions that are piecewise constant in each cell j, i.e.

39, which are collected in the vector C j (t). We definej(t) := z(t)/h , which is the smallest integer larger than or equal toz(t)/h. Then the surface z =z(t) is located in the surface cellj(t).

40We let γ j+1/2 (t) := γ(z j+1/2 , t) and define the approximate volume-average velocity q j+1/2 (t) :

41Using the notation a − := min{a, 0} and a + := max{a, 0}, we define

42In particular, we have Φ C j+1/2 = Φ S j+1/2 = 0 for j <j(t). We denote by [∆Φ] j := Φ j+1/2 − Φ j−1/2 the flux difference associated with cell j. For the single cell on the x-axis, the advective fluxes at x = ∆x are Q e (t)C e (t) and Q e (t)S e (t).

Time discretization and surface fluxes

43We let T denote the total simulation time, t n , n = 0, 1, . . . , N T , the discrete time points and τ := T /N T the time step that should satisfy a certain CFL condition; see below. The value of a variable at time t n is denoted by an upper index, e.g., C n j and it is thus assumed to be constant in time during t n ≤ t < t n+1 . The discrete surface index is defined byj n :=j(t n ) and we let z n :=z(t n ). For the volumetric flows, we define the averages

44and assume for simplicity that any of the volumetric flows changes sign at most at the discrete time points t n . This implies thatz(t) is monotone on every interval [t n , t n+1 ]. To ensure that the surface does not travel more than one cell width h during τ , the CFL condition has to imply (cf.

45To show that the cell concentrations C n j n do not exceed the maximal oneX, we also introduce the concentrationC n j n obtained when all the mass in the surface cellj n is located below the surface within the cell; cf. Figure 3 (a). The mass in the cell is C n j n Ajn α n h = C n j n Ajn h, where α n h := zjn +1/2 −z n . We setX n j :=C

46If the surface stays within one cell between t n and t n+1 ; then (22) is equivalent to

47(cf. Figure 3 (b) and (e)). During extraction, the surface cannot rise and is thus located somewhere in cellsj n andj n + 1 (cf. Figure 3 (d) and (e)). In light of (15) and (16), we approximate the fluxes, which have to be non-positive, just below the surface in the following way:

48Φ S,n e,j n +1/2 := −

Derivation of update formulas

49We here derive the update formulas for C n j . Analogous formulas hold for S n j when replacing C by S; however, with different definitions of velocities and fluxes. First come cells that lie below the surface z =z(t) at t n and t n+1 . Special treatment is needed for the cells near the surface. All cells strictly above the surface have zero concentrations. Let κ := τ /h.

Cells away from the surface

50Using the integrated form of the balance law on a rectangle [z j−1/2 , z j+1/2 ] × [t n , t n+1 ] strictly below the surface; see the gray rectangle in Figure 3 (a), we get the update formula (mass per h)

51and the analogous one for S n j . For cell N + 1, we get in the similar way the update formula for the underflow concentration; see Section 3.4.

Cells near the surface during fill (t ∈ T f )

52To obtain a monotone scheme with an invariant-region property, we determine how the mass in the surface cell and the one below evolves; see the trapezoids in Figure 3. The mass per h at t n is (we use (21)) m C,n j n = Ajn α nC n j n + Ajn +1 C n j n +1 = Ajn C n j n + Ajn +1 C n j n +1 .

53During τ , the feed source along the moving surface is Q n f C n f , whereas the outflux is Φ C,n j n +3/2 . Thus, by the balance law on any trapezoid the mass (per h) at t n+1 is

54where the in-and outflux and source terms are

55(the concentration in cellj n below the surface isC n j n ). Case (a): Fill casej n =j n+1 − 1, Figure 3 (a): The surface moves downwards and crosses a cell boundary. All the mass ends up in one cell: Figure 3 (b): When the surface does not cross any cell boundary during τ , the mass (28) is distributed among the two cells with respect to their volumes (below the surface):

56Case (c): Fill casej n =j n+1 + 1, Figure 3 (c): After the balance law is used on the purple trapezoid, the final mass (per h) is distributed among three cells:

57Cells near the surface during extraction (t ∈ T e ) During extraction, the surface necessarily moves downwards. The initial mass is (27) and the balance law on a red trapezoid (Figures 3 (d) and (e)) gives m C,n+1 j n = m C,n j n + κΨ C,n e,j n , where Ψ C,n e,j n := Φ C,n e,j n +1/2 − Φ C,n j n +3/2 + h α n Ajn R C C n j n α n , S n j n α n + Ajn +1 R n C,j n +1 .

58Extraction casej n =j n+1 −1, Figure 3

The cell in the extraction pipe

59The conservation law for the cell on the x-axis gives the mass equality (Figure 3 (d))

60where the cross-sectional area A e of the effluent pipe is of less importance, since we are only interested in C n e and therefore may choose any ∆x; we set A e ∆x := A 1 h.

Explicit fully discrete scheme

61Given data at t n and the valuesz n+1 andj n+1 , the update formulas for the particulate concentrations are given here and we distinguish between fill and extraction. We define λ j := κ/A j = τ /(A j h) and The update formulas for the top cells below the surface are different depending on whether fill or extraction occurs.

Update formulas for top cells during fill

62If t n ∈ T num f , then C n+1 e = 0. The numerical flux is given by (24) and the marching formulas depending on each layer are computed as follows for the top cells j ∈ {j n −1,j n ,j n +1} (analogously for S):

63where the coefficients ω f,n j are defined in the cases described in Figure 3 by:

64Case (a):j n =j n+1 − 1 : ω f,n j n −1 := 0, ω f,n j n := 0, ω f,n j n +1 := Ajn /Ajn +1 , Case (b):j n =j n+1 : ω f,n j n −1 := 0, ω f,n j n := α n+1 η n+1 , ω f,n j n +1 := η n+1 , Case (c):j n =j n+1 + 1 : ω f,n j n −1 := α n+1 θ n+1 , ω f,n j n := θ n+1 , ω f,n j n +1 := θ n+1 .

Update formulas for top cells during extraction

65If t n ∈ T num e , then we compute the numerical fluxes with (25) and for the top layers j ∈ {j n ,j n + 1}, the formula is (analogously for S) C n+1 j = ω e,n j C n j n + Ajn +1 Ajn C n j n +1 + λjn Φ C,n e,j n +1/2 − Φ C,n j n +3/2

66= ω e,n j C n j n + Ajn +1 Ajn C n j n +1 + λjn Ψ C,n e,j n , where the coefficients ω e,n j are defined in the cases described in Figure 3 by:

67Case (d):j n =j n+1 : ω e,n j n := α n+1 η n+1 , ω e,n j n +1 := η n+1 , Case (e):j n =j n+1 − 1 : ω e,n j n := 0, ω e,n j n +1 := Ajn/Ajn +1 .

68The effluent concentration is given by

Other concentrations

69For the cells j =j n + 2, . . . , N , the update formula is (analogously for S), at every time point t n ,

70where the numerical flux is computed by (19). For the cells above the surface, we have C n+1 j = 0 for j <j n − 1. Finally, one computes

71,n j + · · · + S (k S ),n j .

A splitting scheme and invariant-region property

72It is desirable that the solution vectors U := (C, S) and U e := (C e , S e ) of the model (17) stay in the set Ω := U ∈ R k C +k S : C ≥ 0, S ≥ 0, C (1) + · · · + C (k C ) ≤X .

73To ensure that Ω is an invariant set for the numerical solutions, we split the scheme in Section 3.4 by taking one time step without the reaction terms and then one time step with only the reaction terms. For a cell strictly below the surface and the solid concentrations, the update formula (30) can be written C n+1 j = C n j − λ j [∆Φ C ] n j + τ R C (C n j , S n j ). and similarly for S n j . The splitting principle is to compute the expression in the curled brackets first and then use the result for the second step as follows:

74For the cells involving the surface, the first-step update formulas, j ∈ {j n − 1,j n ,j n + 1} arě

75and the analogous formulas with C replaced by S. The second step consists in the formulas

76and the analogous formulas with C replaced by S. The time step τ has to be bounded by the CFL condition

77where β 1 and β 2 depend on h, h 2 , the volumetric flows, and the constitutive functions by

78and where the constants are given by (here, ξ represents v hs , v hs or d) (cf. (8))

79Theorem 1. Consider the numerical splitting method in Section 3.5. If U n j := (C n j , S n j ) ∈ Ω for all j =j n ,Ū n j n := (C n j n ,S n j n ) ∈ Ω, U n e := (C n e , S n e ) ∈ Ω and (CFL) holds, then

80Theorem 1 is proved by the following lemmas and by the fact that (CFL) implies (20), which we have used in the derivation of the scheme. For the proofs write the update formulas as

81whereΦ C andR n C,j denote the sum of all components, respectively. Analogous considerations lead to formulas forX n j and X n+1 e . Lemma 1. Let R C ≡ 0. If U n j := (C n j , S n j ) ∈ Ω for all j =j n ,Ū Proof. We write the general update formula (38) as X n+1 j = H n X,j (X n j−1 , . . . , X n j+3 ) and let this include the surface concentrationX n j n . For cells away from the moving surface, we refer to [5, Theorem 3.1] from which we also collect v X,n,+ j+1/2 = q n j+1/2 + γ j+1/2 v hs (X n j+1 ) − J C,n j+1/2

82To show the monotonicity for the cells near the surface, we set χ + := χ {v X,n j n +1/2 ≥0} , χ − := χ {v X,n j n +1/2 ≤0} , χ − e := χ {v X,n e,j n +1/2 ≤0} ,

83and calculate for j =j n ∂v X,n,± j+1/2

84≥ 0.

85For ease of notation, we introduce

86and let as usual tilde denote the sum of all components of a vector. In the case t n ∈ T num f , all the coefficients ω f,n j forΥ C,n f,j in (34) are non-negative, so it suffices to show that the derivatives of this function are non-negative under (CFL):

87In the case t n ∈ T num e , we first estimate

88This estimation shall be added to the derivatives ofΨ C,n f,j to obtain those forΨ C,n e,j . Introducing

89we see that the only derivative that differs from those above is

90We write C Ce (X n e , X n j n +1 ) for any fixed k ∈ {1, . . . , k C }. This formula is trivial for t n ∈ T num f , and for t n ∈ T num e , we get

91To prove the boundedness, the monotonicity in each variable of H n X,j and the assumption (7) are used to obtain, for t n ∈ T num f and j =j n =j n+1 ,

92For t n ∈ T num f and j =j n − 1 =j n+1 , we first see that (22) implies; cf. Figure 3(c),

93which we use at the end of the following estimate:

94= H n X,j n −1 0, 0, X n j n , X n j n +1 , X n j n +2 ≤ H n X,j n −1 0, 0, α nX ,X,X

95In the case j =j n =j n+1 + 1 (cf. Figure 3(c)) we can still use (41) to obtain 0 ≤ θ n+1 λjn Q f X n f = H n X,j n (0, . . . , 0) ≤ X n+1 j n = H n X,j n 0, 0, X n j n , X n j n +1 , X n j n +2 ≤ H n X,j n 0, 0, α nX ,X,X

96A similar estimation can be made for the case j =j n +1 =j n+1 +2. For the case j =j n +1 =j n+1 ; see Figure 3(a), we note that (22) implies

97which we use to estimate

98= H n X,j n +1 0, X n j n , . . . , X n j n +3 ≤ H n X,j n +1 0, α nX ,X,X,X

99The remaining fill cases are similar; we omit details. For t n ∈ T num e , similar estimations apply; the only difference is that Q f X n f is replaced byΦ C,n e,j+1/2 , which equals zero when the concentrations are zero, to prove the lower bound. For the upper bound, one uses (22) withQ n = −Q n e instead of Q n f . For the effluent, we get 0 = H n Ce (0, 0) ≤ X n+1 e = H n Ce X n e , X n j n +1 ≤ H n Ce X ,X =X − λ 1 (Q n e + Q n u )X ≤X.

100Lemma 2. Let R C ≡ 0. If U n j := (C n j , S n j ) ∈ Ω for all j =j n ,Ū n j n := (C n j n ,S n j n ) ∈ Ω, U n e := (C n e , S n e ) ∈ Ω and (CFL) holds, then

101Proof. This follows directly from Lemma 1, since each component of the update formula for C n j is equal to that of X n j (there is no reaction term). Proof. We start as in the proof of Lemma 1, use the notation and estimations from there, and prove monotonicity of each component of the right-hand side H (k),n S,j n of the update formula for component S (k),n j , which we write as S n j . We also skip the superscript (k) for components of other vectors. We letρ := 1/(ρ X −X) and

102The numerical fluxes are different and we get

103Because of the similarities between Ψ C,n f,j and Ψ S,n f,j , we only write the difference here:

104To prove the monotonicity in the case t n ∈ T num f , we conclude that the estimations are in fact similar to those in the proof of Lemma 2 with the following difference (where Υ S,n f,j is defined analogously to (39) and Υ S,n f,j denotes an arbitrary component of that vector):

105To prove the monotonicity in the case t n ∈ T num e , we first estimate

106Following the same procedure as in the proof of Lemma 2 (with Υ S,n e,j is defined analogously to (40)), we now get

107For the update of the effluent concentrations, we get the same result for S n e as for C n e . The proof of positivity can be done as in the proof of Lemma 2. Proof. Component k of (33) can be written and estimated by means of (5) and (8) as

108where the latter inequality follows from (CFL). Consider now the formula (36) for the fill case (a) with the non-zero coefficient ω f,n j n +1 := Ajn/Ajn +1 (the others are trivial). Then component k of (36) is estimated by using the rewriting above applied to both reaction terms:

109where the latter inequality follows from (CFL). For fill case (b), we get in the case ω f,n j n +1 := η n+1

110The other cases are similar, for example, in case (c) with ω f,n j n +1 := θ n+1 one gets

111The cases of extraction are the same and so are the analogous ones for S n j+1 . Lemma 5. Consider the second step of the splitting scheme with formula (33) and the formula obtained by summing all vector components. IfX n+1 j :=Č (1),n+1 + · · · +Č (k C ),n+1 ≤X and (CFL) holds, then the second step of the splitting scheme corresponding to (33) satisfies

112The analogous statement is true for the other update formulas near the surface.

113Proof. IfX n+1 j ≥X − ε, thenR C (Č n+1 j ,Š n+1 j ) = 0 by assumption (6). OtherwiseX n+1 j <X − ε and (CFL) gives that X n+1 j is estimated by

114The rest of the update formulas are treated in the same way and the resulting formula contains an additional factor ω f,n j ∈ [0, 1] multiplying τ , so the result also holds for that formula.

Numerics for full mixing

115During the react stage, mixing occurs due to aeration or the movement of an impeller; see Figure 2. Then there is no relative velocity between the solids and the liquid, but reactions take place, and the time-dependent concentrations for the mixture below the surface are given by the ODEs (18).

116Suppose the (PDE or numerical) solution C(z, T 0 ) is known at t = T 0 = t n0 when a period of complete mixing starts. The initial concentrations for the ODEs (18) are defined as the averages (for k = 1, . . . , k C ; analogously for S)

117aver .

118The ODE system (18) can then be time integrated. If an ODE mixing period ends at t = tñ and the PDE model is to be simulated thereafter, then the total mass below the surface is distributed among the cells by

Material

119Notation Unit

120Particulate inert organic matter X I (g COD) m −3 Slowly biodegradable substrate X S (g COD) m −3 Active heterotrophic biomass X B,H (g COD) m −3 Active autotrophic biomass X B,A (g COD) m −3 Particulate products arising from biomass decay X P (g COD) m −3 Particulate biodegradable organic nitrogen

121Recall that the ODEs (18) are averages of the PDE model (17a) and (17b) when the convective and diffusive terms are zero [4]. Therefore, if time integration is made with the explicit Euler method and (CFL) holds, then also the numerical approximations of the ODE solutions to (18) belong to Ω.

Numerical simulations

122The numerical method in Section 3.4 with condition (CFL) is first used for the simulation of an SBR process. In [4], we demonstrated the process by letting the reaction terms model a denitrification process, which occurs when there is no oxygen present. Here, the reactions are a modified ASM1 model without alkalinity; see Table 1 for the six particulate and six soluble state variables, and Appendix A for the reaction terms. Furthermore, we assume that the mixing during the react stage is achieved by aeration, which means that the liquid is saturated with dissolved oxygen; a concentration about S O = 10 g/m 3 . The constitutive functions used for sedimentation and compression are We simulate one sequence of an SBR with the stages specified in Table 2. (This is the same scenario as in the first example of [4] with a denitrification reaction model and without oxygen supply.) Condition (CFL) implies the step length τ = 4.3716 · 10 −5 s. The initial concentrations have been chosen as where the total solids feed concentration X f (t) varies with time according to Table 2. Figures 4 and 5 show the simulation results for the concentrations within the vessel of the particulate and soluble components, respectively. The numerical scheme resolves all the discontinuities accurately. At time t = 1 h, the tank has been filled and the react stage starts and there is full mixing by aeration. Consequently, the available components in the tank are distributed homogeneously. During the react stage, the growth of biomass is slow but the fast consumption of S S and increase of S NH are visible in Figures 5(b) and (e), respectively. The nitrification process uses oxygen to produce nitrate and nitrite, which can be seen in plot (d). After the react stage, t ≥ 3 h, the oxygen is quickly consumed (plot (c)), but only where there is biomass and S S and S NH are positive.

123The convergence of the numerical scheme is demonstrated in Figure 6, where some of the effluent concentrations are plotted. As was illustrated with the example of denitrification in [4] and the present one for the modified ASM1 model, simulations seem to satisfy the invariant-region property although we only have a proof of this for the splitting scheme of Section 3.5.

124For the ASM1 example here and a given number of cells N , we calculate the L 1 relative difference between the simulation result of the two variants of the numerical scheme according to the following formula, where C N is the result without splitting and C split N with splitting:

125The result at time t = T = 6 h is shown in Table 3. The relative difference is approximately halved as N is doubled.

Conclusions

126The general model of multi-component reactive settling of flocculated particles given by a quasione-dimensional PDE system with moving boundary in Section 2 was derived in [4]. The unknowns are concentrations of biomass particles and soluble substrates, and the reaction terms of the PDE model can be given by any model for biochemical reactions in wastewater treatment.

127The numerical scheme in Section 3.4 is designed to ensure conservation of mass across the surface during fill and draw. Away from the moving boundary, the scheme is the same as in [24], where it is demonstrated that its order of convergence is not more than one. The extra treatment near surface will of course not improve that. An indication of the convergence of the numerical scheme as the mesh size is reduced is demonstrated in Figure 6. The main result of this work is an invariant-region property (Theorem 1) for the numerical solution if the scheme is computed in a Lie-Trotter-Kato splitting way where the first time step is taken without any reactions and then a step with only the reactions. Then all the concentrations are nonnegative and the solids concentrations never exceed the maximal packing one. In particular, the scheme is monotone when the reaction terms are zero. Simulations with or without splitting have shown to produce very similar outputs and this is demonstrated by the diminishing relative error between such simulations in Table 3.

128A proof of convergence of the method (as h → 0) to a suitably defined weak or entropy weak solution, as well as the corresponding well-posedness (existence and uniqueness) analysis, are still pending. That said, we point out that available convergence analyses for related strongly degenerate, scalar PDEs with discontinuous flux (cf., e.g., [12,13,14]) rely on the monotonicity of the underlying scheme as well as a uniform bound on the numerical solution, among other properties. Theorem 1 and its proof may be therefore viewed as a partial result to prove convergence of the numerical scheme presented herein.

129Given a moving boundary and a fixed spatial discretization for the numerical scheme, local mass balances have been used to obtain correct update formulas for numerical cells near the surface. This results in a scheme with several cases depending on the surface movement. A certain limitation of the explicit numerical scheme, used without or with splitting, is the restrictive CFL condition (where the time step is esentially proportional to the square of the cell size), implying that very small time steps are needed if accurate approximations on a fine spatial mesh are sought. An alternative approach would be to transform the PDE system and have a fixed number of cells below the moving surface. Such a scheme could possibly also be easier to generalize to a high-order scheme or a more efficient one with semi-implicit time discretization. The advantage of the present fixed-cell-size numerical scheme is, however, that the model can more easily be generalized to include further sources or sinks at fixed locations, a desirable feature in applications to wastewater treatment.

Introduction

130A sequencing batch reactor (SBR) is a tank (with possibly varying cross-sectional area) used for the purification of wastewater (e.g., [1,2,3]). It has a controlled outlet at the bottom and at the surface of the mixture, a floating device allows for controlled fill or extraction of mixture; see Figure 1. It is operated batch-wise in a sequence of cycles of fill, react, settle, draw and idle stages; see see Figure 2. The mixture consists of flocculated particles of biomass (activated sludge) consisting of several components that react with dissolved substrates (nutrients) in the liquid. (The removal of these substrates is the purpose of an SBR.) The full model of the process consists of a system of nonlinear partial differential equations (PDEs); see [4], to which we also refer for references to previous related works. To the authors' knowledge, models for SBRs with reactions during all stages (including the settle) have rarely been proposed in the literature. Models of reactive settling in continuously operated secondary settling tanks (SSTs) based on PDEs and numerical schemes are presented in [5,6,7]; see also references therein.

131In addition to the mathematical and numerical difficulties of an SST model, the moving boundary in an SBR means a special challenge. Although in normal operation only liquid is extracted through the pipe in the draw phase, our model and numerical scheme are capable to handle any concentrations at the mixture surface.

132The moving-boundary model has a connected half-axis with transport equations and nonlinear mass-preserving coupling conditions that do not define the coupling concentrations uniquely. Such a problem of nonuniqueness arises already for a scalar conservation law with discontinuous flux, which has been investigated widely [8,9,10,11,12,13]; in particular, in the context of continuous sedimentation [14,15,16,17,18] where a monotone numerical scheme approximates the correct solutions [14]. It is the purpose of this contribution to present a numerical scheme that can handle the strong type degeneracy of the PDEs as well as the moving boundary where both a source is located and a half-line model attached. The scheme is monotone when the reaction terms are zero. We prove that if the scheme is used in the simple Lie-Trotter-Kato splitting way (e.g. [19]), namely, one explicit time step is taken without reactions and a another step with only reactions, then the numerical solutions have an invariant-region property under a convenient Courant-Friedrichs-Lewy (CFL) condition. In particular, concentrations are nonnegative.

133The PDE model is presented in Section 2. Section 3 contains the numerical scheme based on the one proposed in [5] but modified to handle the moving boundary. The fully discrete and explicit scheme is presented in Section 3.4 and its splitting version with the CFL condition and invariantregion property is presented in Section 3.5. The numerical scheme during the full mixing stage can be found in Section 3.6. In Section 4, we show a numerical examples of SBR operation with a constant cross-sectional area (cylindrical vessel) and a commonly used activated sludge model for the biokinetic reactions; however, slightly adjusted to deliver non-negative concentrations only. Some conclusions can be found in Section 5.

The model

134The vertical z-axis of the governing model and the moving coordinate system with the x-halfaxis are shown in Figure 1. The characteristic function γ equals one inside the mixture and zero otherwise, i.e., γ(z, t) = χ {z(t)<z<B} , where χ I is the indicator function which equals one if and only if I is true, and z =z(t) is the surface location. We let A = A(z) denote the cross-sectional area of the tank that may depend on depth z.

135The solid phase consists of flocculated particles of k C types with concentrations C (1) , . . . , C (k C ) . The components of the liquid phase are water of concentration W and k S dissolved substrates of concentrations S (1) , . . . , S (k S ) . The total concentrations of solids X and liquid L are

136All these concentrations depend on z and t.

137At the surface of the mixture, z =z(t), we model a floating device connected to a pipe through which one can feed the tank with a given volume rate Q f (t) and given feed concentrations C f (t) and S f (t); see Figure 1. Alternatively, this floating device allows to extract mixture at a given volume rate Q e (t) > 0 through the same pipe; hence, one cannot fill and extract simultaneously. If [0, T ] denotes the total time interval of modelling (and simulation in Section 3), we assume that

138When t ∈ T e , we model in [4] the extraction flow in the effluent pipe by a moving coordinate system, namely a half line x ≥ 0, where x = 0 is attached to z =z(t); see Figure 1. Since we assume that there are no reactions in the pipe and all components have the same velocity, the conservation law for the pipe is the linear advection equation A e ∂ tC + Q e (t)∂ xC = 0 where A e is the cross-sectional area of the pipe. However, we are only interested in the effluent concentrations in the pipe at x = 0 + , which we denote by C e (t) and S e (t). At the bottom, z = B, one can withdraw mixture at a given volume rate Q u (t) ≥ 0. The underflow region z > B is for simplicity modelled by setting A(z) := A(B), since we are only interested in the underflow concentration C u (t), which is an outcome of the model (analogously for S u (t)). Below the surface, the volume fractions of solids and liquid add to one, i.e.,

139The same holds for the feed concentrations. For known C and S, (1) implies the water concentration

140This concentration is not part of any reaction and can be computed afterwards. For computational purposes, we define a maximal concentrationX of solids and assume that the density of all solids is the same, namely ρ X >X. Similarly, we assume that the liquid phase has the density ρ L < ρ X , typically the density of water. The velocity of a solid particle v X = q + v is the sum of the average volumetric velocity, or bulk velocity, of the mixture

141and the excess velocity v, which is given by the following commonly used expression [14,20]:

142where

143Here, ∆ρ := ρ X − ρ L , g is the acceleration of gravity, v hs = v hs (X) is the hindered-settling velocity, which is assumed to be decreasing and satisfy v hs (X) = 0, σ e = σ e (X) the effective solids stress, which satisfies σ e (X) = 0 for X ≤ X c and σ e (X) > 0 for X > X c , where X c is a critical concentration above which the particles touch each other and form a network that can bear a certain stress.

144The reaction terms for all components are collected in the vectors

145which model the increase of solid and soluble components, respectively, where σ C and σ S are constant stoichiometric matrices and r(C, S) ≥ 0 is a vector of non-negative reaction rates, which are assumed to be bounded and Lipschitz continuous functions. We set

146(analogously forR S (C, S)).

147In the present work the matrices σ C and σ S and the vector r are given by expressions that represent a slightly modified version of the activated sludge model no. 1, usually abbreviated 'ASM1' in wastewater engineering. The model was the first comprehensive activated sludge model developed by a task group of the International Water Association (IWA) (see [21]). The model describes the principal biochemical reactions that occur within the activated sludge process, which is the most widespread technology for the secondary treatment of municipal wastewater and as commented in [22], constitutes 'the heart' of many wastewater treatment plants. Later versions, known as ASM2, ASM2d, and ASM3, account for additional reactions such as fermentation and chemical or biological phosphorus removal (not considered in the present work). Commercial software packages that include these models are used commonly by wastewater process design engineers for the process design of various activated sludge system configurations [3]. We refer to Appendix A for the description of the modified ASM1 model used herein and to [1,3,22] for further information on activated sludge models.

148In order to establish an invariant-region property for the numerical solution, we make some technical assumptions. To ensure that the numerical solution for the solids does not exceed the maximal concentrationX, we assume the following:

149v(X, ∂ z X, z, t) = 0.

150These conditions mean that when the concentration is (near) the maximal one, biomass cannot grow any more and its relative velocity to the liquid phase is zero. To obtain positivity of component k of the concentration vector C, we let

151denote the sets of indices l that have negative and positive stoichiometric coefficients, respectively, and assume the following (analogously for S):

152if l ∈ I − C,k , then r (l) (C, S) =r (l) (C, S)C (k) withr (l) bounded.

153Assumption (8) implies that

154. , k C (analogously for S), which means that the system of ODEs

155has a non-negative solution if the initial data are non-negative [23]. This positivity property is carried over to the numerical splitting scheme suggested here. The volume of the mixture is defined bȳ

156The function V is invertible since V (z) = −A(z) < 0; in particular,

157It turns out that the surface location is given by the following explicit expression of the given volumetric flows:

158Alternatively,z(t) can be obtained from

159To state the governing model, we define the velocities

160and then introduce the total mass fluxes as

161The complete model is the following (δ is the delta function):

162The water concentration W can always be calculated from (2). No initial data are needed for the outlet concentrations, but for C and S, namely

163During the react stage of an SBR (see Figure 2), full mixing occurs and the system of PDEs (17a) and (17b) reduces to the following system of ordinary differential equations (ODEs) for the homogeneous concentrations inz(t) < z < B:

164where all concentrations depend on time only since they are averages (below the surface). As before, W can be obtained afterwards from (2). In the region 0 < z <z(t) all concentrations are zero. Because of (15) and (17c) we have C u (t) = C(t) and C e (t) = C(t)χ {t∈Te} (analogously for S).

Spatial discretization and numerical fluxes

165We divide the tank into N computational cells each having depth h = B/N . Assume that the midpoint of cell j has the coordinate z j , hence, the cell is the interval [z j−1/2 , z j+1/2 ]. The top cell 1 is thus [z 1/2 , z 3/2 ] = [0, h], and the bottom location is z = z N +1/2 = B. To obtain the underflow concentrations, we add one cell below z = B. To obtain the extraction concentrations, we add one cell [0, ∆x] of the x-coordinate system. To approximate the cell volumes, we define the average cross-sectional areas

166The unknowns are approximated by functions that are piecewise constant in each cell j, i.e.

167, which are collected in the vector C j (t). We definej(t) := z(t)/h , which is the smallest integer larger than or equal toz(t)/h. Then the surface z =z(t) is located in the surface cellj(t).

168We let γ j+1/2 (t) := γ(z j+1/2 , t) and define the approximate volume-average velocity q j+1/2 (t) :

169Using the notation a − := min{a, 0} and a + := max{a, 0}, we define

170In particular, we have Φ C j+1/2 = Φ S j+1/2 = 0 for j <j(t). We denote by [∆Φ] j := Φ j+1/2 − Φ j−1/2 the flux difference associated with cell j. For the single cell on the x-axis, the advective fluxes at x = ∆x are Q e (t)C e (t) and Q e (t)S e (t).

Time discretization and surface fluxes

171We let T denote the total simulation time, t n , n = 0, 1, . . . , N T , the discrete time points and τ := T /N T the time step that should satisfy a certain CFL condition; see below. The value of a variable at time t n is denoted by an upper index, e.g., C n j and it is thus assumed to be constant in time during t n ≤ t < t n+1 . The discrete surface index is defined byj n :=j(t n ) and we let z n :=z(t n ). For the volumetric flows, we define the averages

172and assume for simplicity that any of the volumetric flows changes sign at most at the discrete time points t n . This implies thatz(t) is monotone on every interval [t n , t n+1 ]. To ensure that the surface does not travel more than one cell width h during τ , the CFL condition has to imply (cf.

173To show that the cell concentrations C n j n do not exceed the maximal oneX, we also introduce the concentrationC n j n obtained when all the mass in the surface cellj n is located below the surface within the cell; cf. Figure 3 (a). The mass in the cell is C n j n Ajn α n h = C n j n Ajn h, where α n h := zjn +1/2 −z n . We setX n j :=C

174If the surface stays within one cell between t n and t n+1 ; then (22) is equivalent to

175(cf. Figure 3 (b) and (e)). During extraction, the surface cannot rise and is thus located somewhere in cellsj n andj n + 1 (cf. Figure 3 (d) and (e)). In light of (15) and (16), we approximate the fluxes, which have to be non-positive, just below the surface in the following way:

176Φ S,n e,j n +1/2 := −

Derivation of update formulas

177We here derive the update formulas for C n j . Analogous formulas hold for S n j when replacing C by S; however, with different definitions of velocities and fluxes. First come cells that lie below the surface z =z(t) at t n and t n+1 . Special treatment is needed for the cells near the surface. All cells strictly above the surface have zero concentrations. Let κ := τ /h.

Cells away from the surface

178Using the integrated form of the balance law on a rectangle [z j−1/2 , z j+1/2 ] × [t n , t n+1 ] strictly below the surface; see the gray rectangle in Figure 3 (a), we get the update formula (mass per h)

179and the analogous one for S n j . For cell N + 1, we get in the similar way the update formula for the underflow concentration; see Section 3.4.

Cells near the surface during fill (t ∈ T f )

180To obtain a monotone scheme with an invariant-region property, we determine how the mass in the surface cell and the one below evolves; see the trapezoids in Figure 3. The mass per h at t n is (we use (21)) m C,n j n = Ajn α nC n j n + Ajn +1 C n j n +1 = Ajn C n j n + Ajn +1 C n j n +1 .

181During τ , the feed source along the moving surface is Q n f C n f , whereas the outflux is Φ C,n j n +3/2 . Thus, by the balance law on any trapezoid the mass (per h) at t n+1 is

182where the in-and outflux and source terms are

183(the concentration in cellj n below the surface isC n j n ). Case (a): Fill casej n =j n+1 − 1, Figure 3 (a): The surface moves downwards and crosses a cell boundary. All the mass ends up in one cell: Figure 3 (b): When the surface does not cross any cell boundary during τ , the mass (28) is distributed among the two cells with respect to their volumes (below the surface):

184Case (c): Fill casej n =j n+1 + 1, Figure 3 (c): After the balance law is used on the purple trapezoid, the final mass (per h) is distributed among three cells:

185Cells near the surface during extraction (t ∈ T e ) During extraction, the surface necessarily moves downwards. The initial mass is (27) and the balance law on a red trapezoid (Figures 3 (d) and (e)) gives m C,n+1 j n = m C,n j n + κΨ C,n e,j n , where Ψ C,n e,j n := Φ C,n e,j n +1/2 − Φ C,n j n +3/2 + h α n Ajn R C C n j n α n , S n j n α n + Ajn +1 R n C,j n +1 .

186Extraction casej n =j n+1 −1, Figure 3

The cell in the extraction pipe

187The conservation law for the cell on the x-axis gives the mass equality (Figure 3 (d))

188where the cross-sectional area A e of the effluent pipe is of less importance, since we are only interested in C n e and therefore may choose any ∆x; we set A e ∆x := A 1 h.

Explicit fully discrete scheme

189Given data at t n and the valuesz n+1 andj n+1 , the update formulas for the particulate concentrations are given here and we distinguish between fill and extraction. We define λ j := κ/A j = τ /(A j h) and The update formulas for the top cells below the surface are different depending on whether fill or extraction occurs.

Update formulas for top cells during fill

190If t n ∈ T num f , then C n+1 e = 0. The numerical flux is given by (24) and the marching formulas depending on each layer are computed as follows for the top cells j ∈ {j n −1,j n ,j n +1} (analogously for S):

191where the coefficients ω f,n j are defined in the cases described in Figure 3 by:

192Case (a):j n =j n+1 − 1 : ω f,n j n −1 := 0, ω f,n j n := 0, ω f,n j n +1 := Ajn /Ajn +1 , Case (b):j n =j n+1 : ω f,n j n −1 := 0, ω f,n j n := α n+1 η n+1 , ω f,n j n +1 := η n+1 , Case (c):j n =j n+1 + 1 : ω f,n j n −1 := α n+1 θ n+1 , ω f,n j n := θ n+1 , ω f,n j n +1 := θ n+1 .

Update formulas for top cells during extraction

193If t n ∈ T num e , then we compute the numerical fluxes with (25) and for the top layers j ∈ {j n ,j n + 1}, the formula is (analogously for S) C n+1 j = ω e,n j C n j n + Ajn +1 Ajn C n j n +1 + λjn Φ C,n e,j n +1/2 − Φ C,n j n +3/2

194= ω e,n j C n j n + Ajn +1 Ajn C n j n +1 + λjn Ψ C,n e,j n , where the coefficients ω e,n j are defined in the cases described in Figure 3 by:

195Case (d):j n =j n+1 : ω e,n j n := α n+1 η n+1 , ω e,n j n +1 := η n+1 , Case (e):j n =j n+1 − 1 : ω e,n j n := 0, ω e,n j n +1 := Ajn/Ajn +1 .

196The effluent concentration is given by

Other concentrations

197For the cells j =j n + 2, . . . , N , the update formula is (analogously for S), at every time point t n ,

198where the numerical flux is computed by (19). For the cells above the surface, we have C n+1 j = 0 for j <j n − 1. Finally, one computes

199,n j + · · · + S (k S ),n j .

A splitting scheme and invariant-region property

200It is desirable that the solution vectors U := (C, S) and U e := (C e , S e ) of the model (17) stay in the set Ω := U ∈ R k C +k S : C ≥ 0, S ≥ 0, C (1) + · · · + C (k C ) ≤X .

201To ensure that Ω is an invariant set for the numerical solutions, we split the scheme in Section 3.4 by taking one time step without the reaction terms and then one time step with only the reaction terms. For a cell strictly below the surface and the solid concentrations, the update formula (30) can be written C n+1 j = C n j − λ j [∆Φ C ] n j + τ R C (C n j , S n j ). and similarly for S n j . The splitting principle is to compute the expression in the curled brackets first and then use the result for the second step as follows:

202For the cells involving the surface, the first-step update formulas, j ∈ {j n − 1,j n ,j n + 1} arě

203and the analogous formulas with C replaced by S. The second step consists in the formulas

204and the analogous formulas with C replaced by S. The time step τ has to be bounded by the CFL condition

205where β 1 and β 2 depend on h, h 2 , the volumetric flows, and the constitutive functions by

206and where the constants are given by (here, ξ represents v hs , v hs or d) (cf. (8))

207Theorem 1. Consider the numerical splitting method in Section 3.5. If U n j := (C n j , S n j ) ∈ Ω for all j =j n ,Ū n j n := (C n j n ,S n j n ) ∈ Ω, U n e := (C n e , S n e ) ∈ Ω and (CFL) holds, then

208Theorem 1 is proved by the following lemmas and by the fact that (CFL) implies (20), which we have used in the derivation of the scheme. For the proofs write the update formulas as

209whereΦ C andR n C,j denote the sum of all components, respectively. Analogous considerations lead to formulas forX n j and X n+1 e . Lemma 1. Let R C ≡ 0. If U n j := (C n j , S n j ) ∈ Ω for all j =j n ,Ū Proof. We write the general update formula (38) as X n+1 j = H n X,j (X n j−1 , . . . , X n j+3 ) and let this include the surface concentrationX n j n . For cells away from the moving surface, we refer to [5, Theorem 3.1] from which we also collect v X,n,+ j+1/2 = q n j+1/2 + γ j+1/2 v hs (X n j+1 ) − J C,n j+1/2

210To show the monotonicity for the cells near the surface, we set χ + := χ {v X,n j n +1/2 ≥0} , χ − := χ {v X,n j n +1/2 ≤0} , χ − e := χ {v X,n e,j n +1/2 ≤0} ,

211and calculate for j =j n ∂v X,n,± j+1/2

212≥ 0.

213For ease of notation, we introduce

214and let as usual tilde denote the sum of all components of a vector. In the case t n ∈ T num f , all the coefficients ω f,n j forΥ C,n f,j in (34) are non-negative, so it suffices to show that the derivatives of this function are non-negative under (CFL):

215In the case t n ∈ T num e , we first estimate

216This estimation shall be added to the derivatives ofΨ C,n f,j to obtain those forΨ C,n e,j . Introducing

217we see that the only derivative that differs from those above is

218We write C Ce (X n e , X n j n +1 ) for any fixed k ∈ {1, . . . , k C }. This formula is trivial for t n ∈ T num f , and for t n ∈ T num e , we get

219To prove the boundedness, the monotonicity in each variable of H n X,j and the assumption (7) are used to obtain, for t n ∈ T num f and j =j n =j n+1 ,

220For t n ∈ T num f and j =j n − 1 =j n+1 , we first see that (22) implies; cf. Figure 3(c),

221which we use at the end of the following estimate:

222= H n X,j n −1 0, 0, X n j n , X n j n +1 , X n j n +2 ≤ H n X,j n −1 0, 0, α nX ,X,X

223In the case j =j n =j n+1 + 1 (cf. Figure 3(c)) we can still use (41) to obtain 0 ≤ θ n+1 λjn Q f X n f = H n X,j n (0, . . . , 0) ≤ X n+1 j n = H n X,j n 0, 0, X n j n , X n j n +1 , X n j n +2 ≤ H n X,j n 0, 0, α nX ,X,X

224A similar estimation can be made for the case j =j n +1 =j n+1 +2. For the case j =j n +1 =j n+1 ; see Figure 3(a), we note that (22) implies

225which we use to estimate

226= H n X,j n +1 0, X n j n , . . . , X n j n +3 ≤ H n X,j n +1 0, α nX ,X,X,X

227The remaining fill cases are similar; we omit details. For t n ∈ T num e , similar estimations apply; the only difference is that Q f X n f is replaced byΦ C,n e,j+1/2 , which equals zero when the concentrations are zero, to prove the lower bound. For the upper bound, one uses (22) withQ n = −Q n e instead of Q n f . For the effluent, we get 0 = H n Ce (0, 0) ≤ X n+1 e = H n Ce X n e , X n j n +1 ≤ H n Ce X ,X =X − λ 1 (Q n e + Q n u )X ≤X.

228Lemma 2. Let R C ≡ 0. If U n j := (C n j , S n j ) ∈ Ω for all j =j n ,Ū n j n := (C n j n ,S n j n ) ∈ Ω, U n e := (C n e , S n e ) ∈ Ω and (CFL) holds, then

229Proof. This follows directly from Lemma 1, since each component of the update formula for C n j is equal to that of X n j (there is no reaction term). Proof. We start as in the proof of Lemma 1, use the notation and estimations from there, and prove monotonicity of each component of the right-hand side H (k),n S,j n of the update formula for component S (k),n j , which we write as S n j . We also skip the superscript (k) for components of other vectors. We letρ := 1/(ρ X −X) and

230The numerical fluxes are different and we get

231Because of the similarities between Ψ C,n f,j and Ψ S,n f,j , we only write the difference here:

232To prove the monotonicity in the case t n ∈ T num f , we conclude that the estimations are in fact similar to those in the proof of Lemma 2 with the following difference (where Υ S,n f,j is defined analogously to (39) and Υ S,n f,j denotes an arbitrary component of that vector):

233To prove the monotonicity in the case t n ∈ T num e , we first estimate

234Following the same procedure as in the proof of Lemma 2 (with Υ S,n e,j is defined analogously to (40)), we now get

235For the update of the effluent concentrations, we get the same result for S n e as for C n e . The proof of positivity can be done as in the proof of Lemma 2. Proof. Component k of (33) can be written and estimated by means of (5) and (8) as

236where the latter inequality follows from (CFL). Consider now the formula (36) for the fill case (a) with the non-zero coefficient ω f,n j n +1 := Ajn/Ajn +1 (the others are trivial). Then component k of (36) is estimated by using the rewriting above applied to both reaction terms:

237where the latter inequality follows from (CFL). For fill case (b), we get in the case ω f,n j n +1 := η n+1

238The other cases are similar, for example, in case (c) with ω f,n j n +1 := θ n+1 one gets

239The cases of extraction are the same and so are the analogous ones for S n j+1 . Lemma 5. Consider the second step of the splitting scheme with formula (33) and the formula obtained by summing all vector components. IfX n+1 j :=Č (1),n+1 + · · · +Č (k C ),n+1 ≤X and (CFL) holds, then the second step of the splitting scheme corresponding to (33) satisfies

240The analogous statement is true for the other update formulas near the surface.

241Proof. IfX n+1 j ≥X − ε, thenR C (Č n+1 j ,Š n+1 j ) = 0 by assumption (6). OtherwiseX n+1 j <X − ε and (CFL) gives that X n+1 j is estimated by

242The rest of the update formulas are treated in the same way and the resulting formula contains an additional factor ω f,n j ∈ [0, 1] multiplying τ , so the result also holds for that formula.

Numerics for full mixing

243During the react stage, mixing occurs due to aeration or the movement of an impeller; see Figure 2. Then there is no relative velocity between the solids and the liquid, but reactions take place, and the time-dependent concentrations for the mixture below the surface are given by the ODEs (18).

244Suppose the (PDE or numerical) solution C(z, T 0 ) is known at t = T 0 = t n0 when a period of complete mixing starts. The initial concentrations for the ODEs (18) are defined as the averages (for k = 1, . . . , k C ; analogously for S)

245aver .

246The ODE system (18) can then be time integrated. If an ODE mixing period ends at t = tñ and the PDE model is to be simulated thereafter, then the total mass below the surface is distributed among the cells by

Material

247Notation Unit

248Particulate inert organic matter X I (g COD) m −3 Slowly biodegradable substrate X S (g COD) m −3 Active heterotrophic biomass X B,H (g COD) m −3 Active autotrophic biomass X B,A (g COD) m −3 Particulate products arising from biomass decay X P (g COD) m −3 Particulate biodegradable organic nitrogen

249Recall that the ODEs (18) are averages of the PDE model (17a) and (17b) when the convective and diffusive terms are zero [4]. Therefore, if time integration is made with the explicit Euler method and (CFL) holds, then also the numerical approximations of the ODE solutions to (18) belong to Ω.

Numerical simulations

250The numerical method in Section 3.4 with condition (CFL) is first used for the simulation of an SBR process. In [4], we demonstrated the process by letting the reaction terms model a denitrification process, which occurs when there is no oxygen present. Here, the reactions are a modified ASM1 model without alkalinity; see Table 1 for the six particulate and six soluble state variables, and Appendix A for the reaction terms. Furthermore, we assume that the mixing during the react stage is achieved by aeration, which means that the liquid is saturated with dissolved oxygen; a concentration about S O = 10 g/m 3 . The constitutive functions used for sedimentation and compression are We simulate one sequence of an SBR with the stages specified in Table 2. (This is the same scenario as in the first example of [4] with a denitrification reaction model and without oxygen supply.) Condition (CFL) implies the step length τ = 4.3716 · 10 −5 s. The initial concentrations have been chosen as where the total solids feed concentration X f (t) varies with time according to Table 2. Figures 4 and 5 show the simulation results for the concentrations within the vessel of the particulate and soluble components, respectively. The numerical scheme resolves all the discontinuities accurately. At time t = 1 h, the tank has been filled and the react stage starts and there is full mixing by aeration. Consequently, the available components in the tank are distributed homogeneously. During the react stage, the growth of biomass is slow but the fast consumption of S S and increase of S NH are visible in Figures 5(b) and (e), respectively. The nitrification process uses oxygen to produce nitrate and nitrite, which can be seen in plot (d). After the react stage, t ≥ 3 h, the oxygen is quickly consumed (plot (c)), but only where there is biomass and S S and S NH are positive.

251The convergence of the numerical scheme is demonstrated in Figure 6, where some of the effluent concentrations are plotted. As was illustrated with the example of denitrification in [4] and the present one for the modified ASM1 model, simulations seem to satisfy the invariant-region property although we only have a proof of this for the splitting scheme of Section 3.5.

252For the ASM1 example here and a given number of cells N , we calculate the L 1 relative difference between the simulation result of the two variants of the numerical scheme according to the following formula, where C N is the result without splitting and C split N with splitting:

253The result at time t = T = 6 h is shown in Table 3. The relative difference is approximately halved as N is doubled.

Conclusions

254The general model of multi-component reactive settling of flocculated particles given by a quasione-dimensional PDE system with moving boundary in Section 2 was derived in [4]. The unknowns are concentrations of biomass particles and soluble substrates, and the reaction terms of the PDE model can be given by any model for biochemical reactions in wastewater treatment.

255The numerical scheme in Section 3.4 is designed to ensure conservation of mass across the surface during fill and draw. Away from the moving boundary, the scheme is the same as in [24], where it is demonstrated that its order of convergence is not more than one. The extra treatment near surface will of course not improve that. An indication of the convergence of the numerical scheme as the mesh size is reduced is demonstrated in Figure 6. The main result of this work is an invariant-region property (Theorem 1) for the numerical solution if the scheme is computed in a Lie-Trotter-Kato splitting way where the first time step is taken without any reactions and then a step with only the reactions. Then all the concentrations are nonnegative and the solids concentrations never exceed the maximal packing one. In particular, the scheme is monotone when the reaction terms are zero. Simulations with or without splitting have shown to produce very similar outputs and this is demonstrated by the diminishing relative error between such simulations in Table 3.

256A proof of convergence of the method (as h → 0) to a suitably defined weak or entropy weak solution, as well as the corresponding well-posedness (existence and uniqueness) analysis, are still pending. That said, we point out that available convergence analyses for related strongly degenerate, scalar PDEs with discontinuous flux (cf., e.g., [12,13,14]) rely on the monotonicity of the underlying scheme as well as a uniform bound on the numerical solution, among other properties. Theorem 1 and its proof may be therefore viewed as a partial result to prove convergence of the numerical scheme presented herein.

257Given a moving boundary and a fixed spatial discretization for the numerical scheme, local mass balances have been used to obtain correct update formulas for numerical cells near the surface. This results in a scheme with several cases depending on the surface movement. A certain limitation of the explicit numerical scheme, used without or with splitting, is the restrictive CFL condition (where the time step is esentially proportional to the square of the cell size), implying that very small time steps are needed if accurate approximations on a fine spatial mesh are sought. An alternative approach would be to transform the PDE system and have a fixed number of cells below the moving surface. Such a scheme could possibly also be easier to generalize to a high-order scheme or a more efficient one with semi-implicit time discretization. The advantage of the present fixed-cell-size numerical scheme is, however, that the model can more easily be generalized to include further sources or sinks at fixed locations, a desirable feature in applications to wastewater treatment.

참고문헌 35건

  1. Wastewater Engineering: Treatment and Resource Recovery 2013
  2. A conservation Law with Point Source and Discontinuous Flux Function Modelling Continuous Sedimentation SIAM Journal on Applied Mathematics · Society for Industrial and Applied Mathematics · 1996 10.1137/s0036139994242425
  3. Model based optimization of the intermittent aeration profile for SBRs under partial nitrification Water Research · Elsevier BV · 2013 10.1016/j.watres.2013.03.044
  4. Optimization of a sequencing batch reactor for biological nitrogen removal Water Research · Elsevier BV · 2000 10.1016/s0043-1354(00)00010-5
  5. Godunov-Type Methods for Conservation Laws with a Flux Function Discontinuous in Space SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 2004 10.1137/s003614290139562x
  6. A Theory of L 1-Dissipative Solvers for Scalar Conservation Laws with Discontinuous Flux Archive for Rational Mechanics and Analysis · Springer Science+Business Media · 2011 10.1007/s00205-010-0389-4
  7. The cutoff method for the numerical computation of nonnegative solutions of parabolic PDEs with application to anisotropic diffusion and Lubrication-type equations Journal of Computational Physics · Elsevier BV · 2013 10.1016/j.jcp.2013.01.052
  8. A consistent modelling methodology for secondary settling tanks in wastewater treatment Water Research · Elsevier BV · 2011 10.1016/j.watres.2011.01.020
  9. Model Equations for Gravitational Sedimentation-Consolidation Processes ZAMM ‐ Journal of Applied Mathematics and Mechanics / Zeitschrift für Angewandte Mathematik und Mechanik · Wiley · 2000 10.1002/(sici)1521-4001(200002)80:2<79::aid-zamm79>3.0.co;2-y
  10. Positivity and Conservation Properties of Some Integration Schemes for Mass Action Kinetics SIAM Journal on Numerical Analysis · Society for Industrial and Applied Mathematics · 2011 10.1137/100789592
  11. Analysis of a Conservation PDE With Discontinuous Flux: A Model of Settler SIAM Journal on Applied Mathematics · Society for Industrial and Applied Mathematics · 1994 10.1137/s0036139993249524
  12. A general model for single-sludge wastewater treatment systems Water Research · Elsevier BV · 1987 10.1016/0043-1354(87)90058-3
  13. On Scalar Conservation Laws with Point Source and Discontinuous Flux Function SIAM Journal on Mathematical Analysis · Society for Industrial and Applied Mathematics · 1995 10.1137/s0036141093242533
  14. Model-based optimization of a sequencing batch reactor for biological nitrogen removal Bioresource Technology · Elsevier BV · 2007 10.1016/j.biortech.2007.05.066
  15. Dynamic and Steady-State Behavior of Continuous Sedimentation SIAM Journal on Applied Mathematics · Society for Industrial and Applied Mathematics · 1997 10.1137/s0036139995290101
  16. A Model of Continuous Sedimentation of Flocculated Suspensions in Clarifier-Thickener Units SIAM Journal on Applied Mathematics · Society for Industrial and Applied Mathematics · 2005 10.1137/04060620x
  17. Solution of the Cauchy Problem for a Conservation Law with a Discontinuous Flux Function SIAM Journal on Mathematical Analysis · Society for Industrial and Applied Mathematics · 1992 10.1137/0523032
  18. Upwind difference approximations for degenerate parabolic convection-diffusion equations with a discontinuous coefficient IMA Journal of Numerical Analysis · Oxford University Press · 2002 10.1093/imanum/22.4.623
  19. Maximum-principle-satisfying and positivity-preserving high-order schemes for conservation laws: survey and new developments Proceedings of the Royal Society A Mathematical Physical and Engineering Sciences · Royal Society · 2011 10.1098/rspa.2011.0153
  20. Optimal but robust N and P removal in SBRs: a model-based systematic study of operation scenarios Water Science & Technology · Pergamon Press · 2004 10.2166/wst.2004.0619
  21. Simulations of reactive settling of activated sludge with a reduced biokinetic model Computers & Chemical Engineering · Elsevier BV · 2016 10.1016/j.compchemeng.2016.04.037
  22. L¹ STABILITY FOR ENTROPY SOLUTIONS OF NONLINEAR DEGENERATE PARABOLIC CONVECTION-DIFFUSION EQUATIONS WITH DISCONTINUOUS COEFFICIENTS 2003
  23. Biological Wastewater Treatment 2019 10.1002/9781119527114.ch9
  24. 2016 20th International Conference on System Theory, Control and Computing (ICSTCC) 2022 26th International Conference on System Theory, Control and Computing (ICSTCC) · 2016 10.1109/icstcc39008.2016
  25. On constitutive functions for hindered settling velocity in 1-D settler models: Selection of appropriate model structure Water Research · Elsevier BV · 2016 10.1016/j.watres.2016.11.067
  26. A simulation model for settling tanks with varying cross-sectional area Chemical Engineering Communications · Taylor & Francis · 2017 10.1080/00986445.2017.1360871
  27. A difference scheme for a degenerating convection-diffusion-reaction system modelling continuous sedimentation ESAIM Mathematical Modelling and Numerical Analysis · EDP Sciences · 2017 10.1051/m2an/2017038
  28. A moving boundary flux stabilization method for Cartesian cut-cell grids using directional operator splitting Journal of Computational Physics · Elsevier BV · 2018 10.1016/j.jcp.2018.04.048
  29. A method-of-lines formulation for a model of reactive settling in tanks with varying cross-sectional area IMA Journal of Applied Mathematics · Oxford University Press · 2021 10.1093/imamat/hxab012
  30. A mathematical framework for optimum design and operation of SBR processes Journal of Water Process Engineering · Elsevier BV · 2020 10.1016/j.jwpe.2020.101703
  31. Mathematical Biology : I. An Introduction 2004 10.1007/b98868
  32. Organic matter parameters in WWTP – a critical review and recommendations for application in activated sludge modelling Water Science & Technology · Pergamon Press · 2021 10.2166/wst.2021.419
  33. A moving-boundary model of reactive settling in wastewater treatment. Part 1: Governing equations Applied Mathematical Modelling · Elsevier BV · 2022 10.1016/j.apm.2022.01.018
  34. Mathematical Modelling and Computer Simulation of Activated Sludge Systems IWA Publishing eBooks · UWA Publishing · 2020 10.2166/9781780409528
  35. Theory and practice of water and wastewater treatment Choice Reviews Online · Association of College and Research Libraries · 1997 10.5860/choice.34-4491