Next Article in Journal
Short Communication: Detecting Heavy Goods Vehicles in Rest Areas in Winter Conditions Using YOLOv5
Previous Article in Journal
An Effective Decomposition-Based Stochastic Algorithm for Solving the Permutation Flow-Shop Scheduling Problem
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

On a Robust and Efficient Numerical Scheme for the Simulation of Stationary 3-Component Systems with Non-Negative Species-Concentration with an Application to the Cu Deposition from a Cu-(β-alanine)-Electrolyte

Materials and Surface Engineering Group, Institute of Materials Science and Engineering, Chemnitz University of Technology, D-09107 Chemnitz, Germany
*
Author to whom correspondence should be addressed.
Submission received: 3 February 2021 / Revised: 25 March 2021 / Accepted: 26 March 2021 / Published: 30 March 2021

Abstract

:
Three-component systems of diffusion–reaction equations play a central role in the modelling and simulation of chemical processes in engineering, electro-chemistry, physical chemistry, biology, population dynamics, etc. A major question in the simulation of three-component systems is how to guarantee non-negative species distributions in the model and how to calculate them effectively. Current numerical methods to enforce non-negative species distributions tend to be cost-intensive in terms of computation time and they are not robust for big rate constants of the considered reaction. In this article, a method, as a combination of homotopy methods, modern augmented Lagrangian methods, and adaptive FEMs is outlined to obtain a robust and efficient method to simulate diffusion–reaction models with non-negative concentrations. Although in this paper the convergence analysis is not described rigorously, multiple numerical examples as well as an application to elctro-deposition from an aqueous Cu 2 + -( β -alanine) electrolyte are presented.

1. Introduction

Diffusion-reaction equations play a central role in the modelling and simulation of chemical processes, as the corresponding system describes the transport of multiple species w.r.t. diffusion and a single reaction. The modelling of processes in the interior of lithium-ion batteries, complexation of metals during electro-plating, the electrical potentials in neurons, diffusion in sensors, etc., are major examples for the usage of three-component systems.
While the classical models in the literature of the speciation and modelling of metal-ions, cf. [1,2,3,4,5,6], are not considering non-negative species-concentrations, this paper aims at a model respecting non-negative species distributions in a simple case and their numerical treatment in a more general setting. This is motivated by the fact that negative species concentrations are unphysical and may and will most likely lead to false conclusions from simulated data.
While the analytical, cf. [7], and numerical, cf. [5,8,9,10], treatment of diffusion–reaction systems, are well known, even under convection, the enforcement of non-negative species distributions, especially in the numerics, are rarely discussed.
The numerical strategy, which is discussed in this article, is based on the reformulation, as discussed in Section 2, of the model equations into a constrained minimization problem in which the positive concentrations are part of the model formulation. The respective mathematical model that is used in this article is an optimization problem of the obstacle type, which is well known in physics and numerics c.f. [11,12,13].
A common strategy, cf. [13,14,15,16], to treat such problems of obstacle type is first to discretize the obstacle-problem and then treat the restrictions. This strategy leads to a restrained minimization problem in finite dimension. The resulting minimization problem can be treated with many methods such as quasi-Newton methods, cf. [17], SQP methods, cf. [18], penalty methods, cf. [19], augmented Lagrangian methods cf. [20,21,22], or Primal-Dual Active-Set Strategies, cf. [23].
This type of strategy (first discretization, then solution) has the advantage to be, in comparison, easy, but have some problems in terms of efficiency, since those methods are iterative methods, due to a fixed triangulation T . Consequence is that for the convergence of the complete scheme, one has to assume that the iterated problems are solvable and stable with respect to T . Hence, one has to invest in a reasonable set of cases more in computation time and data storage than possibly necessary, when using meshes for each iterated problem separately.
Hence, a new methodology will be derived un this article, where the restriction of the constrained minimization problem will first be treated with an augmented Lagrangian method and then a discretization will be made, to use an adaptive FEM, cf. [24], in every iteration of the augmented Lagrangian scheme. As a basis of the algorithm, augmented Lagrangian algorithms, c.f. [25,26], on Banach spaces will be used. As discretization of the considered Banach spaces conforming subspaces will be used, cf. [27,28,29,30].
Because the discretized problems discussed in this paper will be, as quasi-Newtonian schemes, unstable cf. [17], Homotopy methods, cf. [31,32], will be used to gain stability.
For the theoretical background, some fundamental studies on the resulting algorithm, considering some existence theory based on PDE and ODE theory [33,34,35] and the usage of Γ -convergence, cf. [36,37,38,39], will be used. The theoretical results are underlined by an extensive numerical verification of the algorithm, as given in Section 4, indicates convergence of the numerical scheme and efficiency for nonlinear problem formulations and formulations on non-convex domains. Nevertheless, a full proof of convergence, stability, and existence theory will not be given in this paper.
As additional part of this article, a model for the static metal-deposition basing the complexation in a laminar boundary layer will be discussed, see Section 5.1, and numerically evaluated via the simulation methodology that is described in this article.

2. A Generalized Mathematical Model

2.1. The Classical Approach

In this article let Ω R d , for d { 1 , 2 } , be an open, bounded, connected domain with Lipschitz boundary. Furthermore, let the boundary Ω , be split into a Dirichlet boundary Γ D Ω and a Neumann boundary Γ N Ω , such that Γ D and Γ N are relative open w.r.t. the restriction topology, Γ D Γ N = and for the topological completion of Γ N Γ D one assumes the identity Γ N Γ D ¯ = Ω .
During this article, reactions in the following form will be considered:
A + B k 2 k 1 C .
As is known, cf. [1,2,3,4,7], the concentrations of the species A, B, C are formulated, in the stationary case, as a system of ODEs, for d = 1 , and a system of partial differential equations in multiple space dimensions, i.e., for d > 1 , which is for f A , f B , f C L 2 ( Ω ) , for g A , D , g B , D , g C , D L ( Γ D ) , and for g A , N , g B , N , g C , N L ( Γ N ) , given through the following system of equations
0 = D A Δ c A + k 2 c C k 1 c A c B + f A , in Ω ,
0 = D B Δ c B + k 2 c C k 1 c A c B + f B , in Ω ,
0 = D C Δ c C k 2 c C + k 1 c A c B + f C , in Ω ,
g A , D = c A | Γ D , g B , D = c B | Γ D , g C , D = c C | Γ D ,
g A , N = c A | Γ N · ν Γ N , g B , N = c B | Γ N · ν Γ N , g C , N = c C | Γ N · ν Γ N .
Note that, by L 2 ( Ω ) , in this article, the Hilbert space of square integrable functions is denoted, with scalar product ( , ) L 2 ( Ω ) : L 2 ( Ω ) × L 2 ( Ω ) R and induced norm L 2 ( Ω ) : L 2 ( Ω ) R , c.f. [36,40]. Furthermore, the Banach spaces L p ( Ω ) with associated norms L p ( Ω ) , will be considered.
As can be seen, the straight-forward formulation given by the Equation (2a)–(2e) does not contain a condition of the non-negativity of the concentrations c S , with S { A , B , C } . This missing formulation of non-negative species distributions will actually lead to unphysical behavior in the computation results. Hence in the following section, the usual approach to reinforce non-negative species distributions will be discussed.

2.2. Reinforcing Non-Negative Species Distributions

Assuming the system above has a unique solution, one obtains that the solution of the system (2a)–(2e) can be identified, for p S = c S , with the solution of the following minimization problem: Find ( c S , L S , p S , L S ) S { A , B , C } X , such that
( c S , L S , p S , L S ) S { A , B , C } = argmin ( v S , q S ) S { A , B , C } X L S ( v S , q S ) S { A , B , C } ,
where X is a Banach space, which will be defined later, and the non-linear least-squares functional L S ( v S , q S ) S { A , B , C } is given through the following identity:
L S ( v S , q S ) S { A , B , C } : = D A div q A + k 2 v C k 1 v A v B + f A L 2 ( Ω ) 2 + q A v A L 2 ( Ω ) 2 + D B div q B + k 2 v C k 1 v A v B + f B L 2 ( Ω ) 2 + q B v B L 2 ( Ω ) 2 + D C div q C k 2 v C + k 1 v A v B + f C L 2 ( Ω ) 2 + q C v C L 2 ( Ω ) 2 + S { A , B , C } v S g S , D L 2 ( Γ D ) 2 + v S · ν Γ N g S , N L 2 ( Γ D ) 2
For the last terms of the least squares functional above, one has to note that the space L ( Ω ) is continuously embedded into the space L 2 ( Ω ) and, hence, the evaluation of the terms c S g S , D L 2 ( Γ D ) 2 and c S · ν Γ N g S , N L 2 ( Γ D ) 2 are formally correct and simplify the calculations needed to implement a corresponding solver.
In the following, the space X has to be fixed. The space X is defined s.t. the non-linear functional L S ( v S , q S ) S { A , B , C } is well defined, for each element ( v S , q S ) S { A , B , C } X .
First, note that, for each S { A , B , C } , the conditions div q S L 2 ( Ω ) and q L 2 ( Ω ; R d ) have to be fulfilled, since for d = 1 , the divergence reduces to a simple derivative, i.e., div q S = x q S , one obtains, for d = 1 , the inclusion q S H 1 ( Ω ) and for d = 2 , 3 the inclusion q S H ( div ; Ω ) , for the definition of H ( div ; Ω ) see [36,40].
Furthermore, one observes that the inclusion v A v B , v C L 2 ( Ω ) has to be fulfilled, a sufficient condition to fulfil the inclusion above is v A , v B L 4 ( Ω ) and v A , v B , v C L 2 ( Ω ; R d ) , whence v A , v B W 1 , 4 ( Ω ) and v C H 1 ( Ω ) . The spaces W k , p ( Ω ) and H k ( Ω ) denote the usual and well known Sobolev spaces, cf. [36,40]. This gives, for d = 1 , the identity W 1 , 4 ( Ω ) × H 1 ( Ω ) × 2 × H 1 ( Ω ) × H 1 ( Ω ) and for d = 2 the identity W 1 , 4 ( Ω ) × H ( div , Ω ) × 2 × H 1 ( Ω ) × H ( div , Ω ) .
The reformulation discussed in this article is to introduce the positivity of c A , c B , c C as side condition, cf. [11,41].
Find c S , L S , p S , L S S { A , B , C } X , such that
c S , L S , p S , L S S { A , B , C } = argmin ( v S , q S ) S { A , B , C } X L S ( v S , q S ) S { A , B , C } s . t . : 0 v S , S { A , B , C }
where the non-linear least-squares functional L S ( v S , q S ) S { A , B , C } is the same as in (3).

3. Numerical Scheme

This section is devoted to the construction of a robust numerical scheme to approximate a solution to (4). This section provides an outline of the numerical scheme and ommites the proof of convergence. In contrast to [5,42] no finite-difference scheme will be discussed, but a finite-element discretization, which allows for us to employ augmented Lagrangian methods, cf. [25,26], on the continuous level of the model.
In this section, a numerical scheme for a generalized problem in the form (3) will be discussed, by adding additional reaction terms γ S c S . The respective generalized least-squares functional is given through
L S ( v S , q S ) S { A , B , C } : = D A div q A + γ A v A + k 2 v C k 1 v A v B + f A L 2 ( Ω ) 2 + q A v A L 2 ( Ω ) 2 + D B div q B + γ B v B + k 2 v C k 1 v A v B + f B L 2 ( Ω ) 2 + q B v B L 2 ( Ω ) 2 + D C div q C + γ C v C k 2 v C + k 1 v A v B + f C L 2 ( Ω ) 2 + q C v C L 2 ( Ω ) 2 + S { A , B , C } v S g S , D L 2 ( Γ D ) 2 + v S · ν Γ N g S , N L 2 ( Γ D ) 2
In contrast to the usual numerical schemes, as described above, the current augmented Lagrangian methods work on the continuous level of the problem. Applying the algorithms given in [26] and in [25] to (4) yields the following Algorithm 1:
Algorithm 1: augmented Lagrangian algorithm
Input j = 0 , x ( 0 ) , μ ( 0 ) X × L 2 ( Ω ) × 3 , 0 < λ max , 0 < α 0 , τ ] 0 , 1 [ , 1 < γ , ε > 0 .
Output: Approximate solution ( c S , L S ( j + 1 ) , p S , L S ( j + 1 ) ) S { A , B , C } X to (4) and approximation λ ( j ) of the Lagrangian multiplier.
 Follow the steps
S1.: 
 Define λ ( j ) : = min μ ( j ) , λ max and approximate a solution to

( c S , L S ( j + 1 ) , p S , L S ( j + 1 ) ) S { A , B , C } = argmin ( v S , q S ) S { A , B , C } X L S α j ( v S , q S ) S { A , B , C } , λ ( j ) α j
S2.: 
 Define
μ ( j + 1 ) : = λ ( j ) α j [ c A ( j + 1 ) , c B ( j + 1 ) , c C ( j + 1 ) ] + .
 If j = 0 or if
min [ c A ( j + 1 ) , c B ( j + 1 ) , c C ( j + 1 ) ] , λ ( j ) α j L 2 ( Ω ) τ min [ c A ( j ) , c B ( j ) , c C ( j ) ] , λ ( j 1 ) α j 1 L 2 ( Ω )
 then set α j + 1 : = α j , otherwise set α j + 1 = γ α j .
S3.: 
 If
c A ( j + 1 ) , c B ( j + 1 ) , c C ( j + 1 ) · μ ( j + 1 ) ε
 and
c A ( j + 1 ) , c B ( j + 1 ) , c C ( j + 1 ) c A ( j + 1 ) , c B ( j + 1 ) , c C ( j + 1 ) + L 2 ( Ω ) ε
 then break the algorithm.
S4.: 
 Set j = j + 1 and go to S1.
For f L 2 ( Ω ) , the map ( ) + : L 2 ( Ω ) L 2 ( Ω ) is defined as ( f ) + : = max ( 0 , f ) , almost everywhere. Furthermore, let L S α k ( v S , q S ) S { A , B , C } , λ be given for all ( v S , q S ) S { A , B , C } X and for all λ L 2 ( Ω ) × 3 through the following non-linear functional:
L S α ( v S , q S ) S { A , B , C } , λ : = D A div q A + γ A c A + k 2 v C k 1 v A v B + f A L 2 ( Ω ) 2 + q A v A L 2 ( Ω ) 2 + D B div q B + γ B c B + k 2 v C k 1 v A v B + f B L 2 ( Ω ) 2 + q B v B L 2 ( Ω ) 2 + D C div q C + γ C c C k 2 v C + k 1 v A v B + f C L 2 ( Ω ) 2 + q C v C L 2 ( Ω ) 2 + S { A , B , C } α 2 λ S v S + L 2 ( Ω ) 2 + S { A , B , C } v S g S , D L 2 ( Γ D ) 2 + v S · ν Γ N g S , N L 2 ( Γ N ) 2
Remark 1.
Note that the iterated minimization problem (5) generalizes the unrestrained minimization problem (3) through the choice of α = 0 and λ = 0 , as well as γ S = 0 , for all S { A , B , C } . Hence, the choice of a numerical scheme for (5) directly implies a numerical scheme for (3).
The augmented Lagrangian algorithm leaves the unrestrained minimization problems (5) to approximate. As a first step, (5) will be discretized. The essential key to discretize (5) is the discretization of the space X. In this paper a conforming discretization of X was chosen, by choosing a finite-dimensional subspace X h X . The choice of X h will be discussed in the following.
Let T , in the respective dimension, be at first, an arbitrary fixed triangulation of Ω . The index h of the finite dimensional space X h refers to the diameter of T , which is in one space dimension the maximal length of an interval T T and in two, the length of the longest edge in the set of edges E .
For d = 1 , the discrete (finite dimensional) space X h X is constructed by the lowest order conforming discretization S 1 ( T ) W k , p ( Ω ) , where S 1 ( T ) is the space of affine splines that is defined by
S 1 ( T ) : = P 1 ( T ) C 0 ( Ω ) ,
where
P 1 ( T ) : = v L 2 ( T ) | T T a , b R : v | T = a + b x ,
cf. [43]. Hence, in this paper, the discrete space S 1 ( T ) × 6 = : X h X is used as discretization.
For d = 2 , the vector space affine splines S 1 ( T ) , defined analogous as before as
S 1 ( T ) : = P 1 ( T ) C 0 ( Ω ) ,
are used as a conforming discretization of W k , p ( Ω ) , cf. [27,28,30], and the Raviart–Thomas elements given by
R T 0 ( T ) : = P 1 ( T , R d ) H ( div , Ω ) ,
with
P 1 ( T , R d ) : = v L 2 ( Ω ; R d ) | T T a R d , b R : v | T = a + b x ,
as discretization of H ( div , Ω ) . Hence, in this paper, the lowest order discretization X h X , will be discussed, which is given by
X h : = S 1 ( T ) × S 1 ( T ) × 3 , for d = 1 , S 1 ( T ) × R T 0 ( T ) × 3 , for d = 2 .
This leaves the following discrete problem to solve or to approximate:
Find x h X h such that
( c S , L S , h , p S , L S , h ) S { A , B , C } = argmin ( v S , q S ) S { A , B , C } X h L S α j ( v S , q S ) S { A , B , C } , λ ( j ) α j
As a fundamental step of the numerical scheme, a linearization of (8) is introduced. For this, a few calculations are necessary. First, remark that, in contrast to the non-linear functional L S ( v S , C , q S , R T ) , the functional L S α ( v S , C , q S , R T ) , μ is, for α > 0 , not differentiable. The non-differentiability lies in the evaluation of the function μ v S , C + . Hence, for the linearization of μ v S , C + , one has to use a different notion of differentiability than the common Fréchet-differential. Therefore for the linearization of μ v S , C + in this article, the convex subdifferential c v x as defined, c.f. [44], was used. For a convex function f : Y R , for a Banach space Y, its topological dual Y , and the dual pairing , Y , Y , cf. [40], in a point y 0 Y is given through
c v x f ( y 0 ) : = g X | g , x x 0 + f ( y 0 ) f ( y ) , y X .
As it is commonly known, the subdifferential c v x μ S c S ( ) + is for almost all x 0 Ω and all S { A , B , C } , given through
c v x μ S c S ( ) + ( x 0 ) = { 0 } , for μ S c S ( x 0 ) < 0 , { 1 } , for μ S c S ( x 0 ) > 0 , [ 1 , 0 ] , for μ S c S ( x 0 ) = 0 .
Furthermore, for c A , h , c B , h S 1 ( T ) and arbitrary fixed v A , h , v B , h , the following Taylor approximation is considered
v A , h v B , h c A , h c B , h + c A , h v B , h c B , h + c B , h v A , h c A , h = c A , h v B , h + v A , h c B , h c A , h c B , h .
An additional approximation of c S , h , for S { A , B } , is made through
c S , h 0 c S , h
In the notation above, the map, 0 : L 2 ( Ω ) P 0 ( T ) denotes the orthogonal L 2 -projection onto the space of piecewise constant functions, which is given through:
P 0 ( T ) : = v L 2 ( Ω ) | T T c R : v | T c .
i.e., for all f L 2 ( Ω ) , the image of 0 f is given as the solution of the following minimization problem, cf. [30]:
0 f = argmin w 0 P 0 ( T ) f w 0 L 2 ( Ω ) 2 .
Furthermore, for f H 1 ( Ω ) , due to the Poincaré inequality, cf. [40] or [30], there exists a constant 0 < c , such that
f L 2 ( Ω ) 2 = 0 f L 2 ( Ω ) 2 + ( 1 0 ) f L 2 ( Ω ) 2 0 f L 2 ( Ω ) 2 + c h 2 ,
where the equality results from the pythagorean theorem, [40].
The identities (9), (10), and (12) inspire the following quasi-Newton scheme given, for a starting value x 0 X h , through the iterative solution of the following minimization problem:
Find c S , L S , h ( n ) , p S , L S , h ( n ) S { A , B , C } X h , such that the following identity holds true
v S , h ( n ) , q S , h ( n ) S { A , B , C } = argmin v S , h , q S , h S { A , B , C } L S α ( v S , h , q S , h ) S { A , B , C } , μ ; T , n
where L S α ( v S , h , q S , h ) S { A , B , C } , μ ; T is, for all ( v S , h , q S , h ) S { A , B , C } X h , defined as
L S α ( v S , h , q S , h ) S { A , B , C } , μ ; T : = D A div q A + γ A v A , h + k 2 v C , h k 1 0 ( c A , h ( n 1 ) ) v B , h + 0 ( c B , h ( n 1 ) ) v A , h 0 ( c A , h ( n 1 ) c B , h ( n 1 ) ) + 0 f A L 2 ( Ω ) 2 + D B div q B + γ B v B , h + k 2 v C , h k 1 0 ( c A , h ( n 1 ) ) v B , h + 0 ( c B , h ( n 1 ) ) v A , h 0 ( c A , h ( n 1 ) c B , h ( n 1 ) ) + 0 f B L 2 ( Ω ) 2 + D C div q C + γ C v C , h k 2 v A , h + k 1 0 ( c A , h ( n 1 ) ) v B , h + 0 ( c B , h ( n 1 ) ) v A , h 0 ( c A , h ( n 1 ) c B , h ( n 1 ) ) + 0 f C L 2 ( Ω ) 2 + S { A , B , C } 0 q S , h v S , h L 2 ( Ω ) 2 + α 2 χ A ( n 1 ) ( μ S α v S ) L 2 ( Ω ) 2 + S { A , B , C } v S g S , D L 2 ( Γ D ) 2 + v S · ν Γ N g S , N L 2 ( Γ N ) 2
where the set A S ( n 1 ) Ω is the support of μ S c S ( n 1 ) + , where the support of a function f L 2 ( Ω ) is defined as supp ( f ) : = { x Ω | f ( x ) 0 } ¯ . Hence, A S ( n 1 ) is defined as:    
A S ( n 1 ) = supp μ S c S ( n 1 ) +
furthermore for a subset B Ω , the map χ B : Ω [ 0 , 1 ] is given by
χ B ( x ) : = 1 , for x B , 0 , else .
As it can directly be seen, the inclusion χ A ( n 1 ) ( x ) c v x μ S c S ( ) + ( x ) holds true.
As it is commonly known, cf. [17,45,46] Newton and quasi-Newton schemes tend to be unstable. One strategy, as described in [46], is to use stabilized quasi-Newton methods based on a coupling of a quasi-Newton method with a subgradient scheme, on a not linearised problem. Another option, which is used and implemented for the numerical examples, as discussed in the Section 4 and Section 5, are homotopy methods, cf. [31,32], which is a scheme for the solution (13), based on the iterative transformation of a system with known solution into the non-linear system associated to (13). The homotopy methodology is probably the easiest way to stabilize the numerical strategy and increase the robustness.
Remark 2.
The strategy refereed to as quasi-Newtonian scheme is in fact a disturbed variant of a ‘normal’ quasi-Newtonian scheme. The difference between the ‘normal’ quasi-Newtonian scheme and the quasi-Newtonian scheme discussed in this paper is the application of the projections 0 . The sequence that is generated by the corresponding quasi-Newtonian scheme is denoted by y ( k ) .
Some notations are needed to describe the used transformation. First, let, for M N , the following discretisation of the interval [ 0 , 1 ] be given through 0 = t 1 t j t M = 1 . Subsequently, a homotopy method is given by the solution, for 1 j N , by computing the following Algorithm 2:
Algorithm 2: Homotopie-Loop
Input: Inital discretization 0 = t 1 t j t M of the interval [ 0 , 1 ] , system parameters D A , D B , D C , k 1 , k 2 and set j = 0 , set initial value x ( 0 ) X h , 0 < ε .
Output: Approximate solution to (8) and set ( c L S , S , h ( n ) , p L S , S , h ( n ) ) S { A , B , C } = ( c L S , S , h ( n , 1 ) , p L S , S , h ( n , 1 ) ) S { A , B , C } .
 The homotopy algorithm is given through the following steps.
S1: 
 For n = 1 , 2 , solve the following problem.
 Find ( c L S , S , h ( n , j ) , p L S , S , h ) S { A , B , C } X h s.t.
( c L S , S , h ( n , j ) , p L S , S , h ( n , j ) ) S { A , B , C } = argmin ( v S , h , q S , h ) S { A , B , C } X h L S α ( v S , h , q S , h ) S { A , B , C } ; T , n , j
 and break if
S { A , B , C } c S , h j , n c S , h j , n 1 L 2 ( Ω ) 2 + q S , h j , n q S , h j , n 1 L 2 ( Ω ) 2 < ε
 and for all ( v S , h , q S , h ) S { A , B , C } X h , the linear functional L S α ( v S , h , q S , h ) S { A , B , C } ; T , n , j is given by
L S α ( v S , h , q S , h ) S { A , B , C } ; T , n , j : = ( 1 t j ) S { A , B , C } v S , h L 2 ( Ω ) 2 + q S , h L 2 ( Ω ) 2 + t j L S α ( v S , h , q S , h ) S { A , B , C } ; T , n .
S2: 
 If (14) converges for n , go to S3 else refine the decomposition 0 t 0 t M = 1 , set j = 0 and go to S1.
S3: 
 If t j = 1 break the loop, else set j = j + 1 and go to S1.
The usage of the homotopy-algorithm, as described above, yields a cost-intensive numerical scheme. Hence, the usage of adaptive schemes for (5) is the best choice at hand to treat the iterate problems. Adaptive schemes in the homotopy steps are possible, but not implemented for this paper.
Adaptive FEM is used as the last step of the numerical scheme. As described in [24,47,48] the adaptive scheme is given through the following Algorithm 3:
Algorithm 3: AFEM-loop
Input: Initial regular triangulation T 0 , system parameters, set j = 0 .
Output: Fine mesh T , approximate limit of the solutions to (13), estimation of the error.
 The adaptive FEM algorithm is given by the following steps:
S1: 
Solve: Take the limit of the solutions iterated problems (13), approximated through Algorithm 2.
S2: 
Estimate: Estimate the error of the current discrete problem on each element T T j with an estimator η .
S2: 
Break: If the triangulation is fine enough or the estimated error is lower than a given Tolerance, then break the condition.
S4: 
Mark: Mark the elements of the triangulation T T j with the highest estimated local errors.
S5: 
Refine: Refine all marked elements and additonal elements, such that the result T j + 1 is again a regular triangulation.
S6: 
 Set j = j + 1 and go to S1:
At the end of the section, a few remarks have to be made:
Remark and Definition 1
(Used setup of the AFEM-Algorithm for this paper). Note that:
(i) 
In S2 of Algorithm 3, an estimator is evaluated on each element T T j , which has to be defined. Assuming that for the exact solution ( u L S , S , p L S , S ) S { A , B , C } X of (3), the equality
L S ( u L S , S , p L S , S ) S { A , B , C } = 0
holds true. In this paper, the estimator σ : T R 0 and the discrete solution of the discrete solution from S1: of Algorithm 3, for α = 0 and μ 0 , is defined as
η 2 ( T ) : = D A div q A + γ A c A + k 2 v C k 1 v A v B + f A L 2 ( T ) 2 + q A v A L 2 ( T ) 2 + D B div q B + γ B c B + k 2 v C k 1 v A v B + f B L 2 ( T ) 2 + q B v B L 2 ( T ) 2 + D C div q C + γ C c C k 2 v C + k 1 v A v B + f C L 2 ( T ) 2 + q C v C L 2 ( T ) 2 + S { A , B , C } α 2 λ S v S + L 2 ( T ) 2 + S { A , B , C } v S g S , D L 2 ( Γ D T ) 2 + v S · ν Γ N g S , N L 2 ( Γ N T ) 2 .
(ii) 
Because, for the solution ( u L S , S ( j ) , p L S , S ( j ) ) X of (5), in the iteration j N , for given α j and μ ( j ) , one cannot expect the identity
L S α j ( u L S , S ( j ) , p L S , S ( j ) ) , μ ( j ) = 0
to hold true, since a solution of (5) is in general not a solution to a system of non-linear equations. Hence, the usage of
ρ ( T ) : = L S α j ( u L S , S , h ( j ) | T , p L S , S , h ( j ) | T ) S { A , B , C } , μ ( j ) | T = 0 ,
for the solution ( u L S , S , h ( j ) , p L S , S , h ( j ) ) S { A , B , C } of the discrete problem of S 1 of Algorithm 3, is not practical. In the spirit of the usage of adaptive schems an estimator τ, basing on ρ, is used, which gives an estimation on the local changes w.r.t. the elements T T of the evaluation of ρ. For the definition of a practical estimator let for an arbitrary fixed T T the element patch T ( T ) be given through
T ( T ) : = T ^ T | T ^ T .
Afterwards, the new estimator σ is given through:
σ 2 ( T ) = max T ^ T ( T ) | ρ 2 ( T ^ ) ρ ( T ) 2 | .
(iii) 
A common strategy, used for the marking is the so-called Dörfler marking, cf. [49]. In this strategy, a set M is chosen for which, τ 2 { η 2 , σ 2 , ρ 2 } , for a given bulk parameter θ [ 0 , 1 ] the inequality
θ T T τ 2 ( T ) T M τ 2 ( T )
holds true.
(iv) 
Note that the Dörfler marking implies for θ = 1 a simple uniform marking scheme.
(v) 
As discussed in [50,51], one can usually prove convergence of the adaptive scheme by using, as in this article, the least-squares functional as error estimator, but cannot expect optimal convergence rates as discussed in [24] or [47]. Hence, another error estimator has to be derived for which optimal convergence rates are provable.
With the remark and definition above, the numerical scheme is completed. The numerical validation will be made in Section 4, the numerical scheme will be validated.

3.1. Remarks on Existence and Convergence Theory to the Numerical Scheme

This subsection is devoted to a first discussion of some fundamental convergence and existence properties of the algorithm and the underlying optimization methods. The discussion in this section is incomplete, but it gives an important first glance at the theoretical background of the algorithm.

3.1.1. Notes on the Existence Theory

In this section, some theoretical notes on the existence theory will be given. While the existence theory in one space dimension, thanks to the ODE theory and, in particular, thanks to the theorem of Picard–Lindelölf, cf. [35], and for linear PDEs is well known, cf. [33], the existence theory for nonlinear PDEs is, in most of the cases, not known, cf. [34]. The following discussion only tangents the cases known in literature.
Remark 3
(The 1d-case). In this remark, a the 1d case will be discussed.
(i) 
The system of second order ODEs, as given by (2a)–(2e), can equivalently reformulated into a System of first order ODEs, which are uniquely solvable due to the theorem of Picard-Lindelölf, cf. [35].
(ii) 
The assertion in (i) gives directly the solvability of (3)–(5), due to the fact that in the derivation of the least squares functional exactly the needed first order reformulation was used, which was needed for the assertion.
After the remark above on ODE theory, a further remark on the linear PDE theory will by given:
Remark 4
(The linear 2d-case). In this remark, the discussion of linear variants of (2a)–(2e) will be treated. i.e., during this remark k 1 = 0 is assumed. In this case the continuous space X can be extended to X = H 1 ( Ω ) × H ( div , Ω ) 3 , which makes the theory reasonable easier since in this case X is an Hilbert space.
(i) 
First, similar as in [52], the case of minimal assumptions to the problem formulation will be discussed. Essentially one assumes 0 < D A , D B , D C and the injectivity of the linear operator L : H D 1 ( Ω ) 3 H D 1 ( Ω ) 3 = H D 1 ( Ω ) 3 , used in the operator Equation (2a)–(2e). For this, one assumes that k 2 , γ A , γ B and γ C are assumed to be chosen in a way that 0 is no eigenvalue of L .
Indeed, the injectivity, i.e., there is no 0-Eigenvalue of the corresponding operator, assumption together with the assumption of the existence of solutions for given f A , f B , f C L 2 ( Ω ) , gives the unique solvability due to Fredholm’s alternative, cf. [53].
The results above directly apply to the PDE equation that is given by
0 = D A div p A + k 2 c C + f A , i n Ω ,
0 = p A c A , i n Ω ,
0 = D B div p B + k 2 c C + f B , i n Ω ,
0 = p B c B , i n Ω ,
0 = D C div p C k 2 c C + f C , i n Ω ,
0 = p C c C , i n Ω ,
g A , D = c A | Γ D , g B , D = c B | Γ D , g C , D = c C | Γ D ,
g A , N = c A | Γ N · ν Γ N , g B , N = c B | Γ N · ν Γ N , g C , N = c C | Γ N · ν Γ N .
and one obtains unique solvability of (19a)–(19h). The corresponding Operator is denoted by O : H 1 ( Ω ) × H ( div ; Ω ) 3 H 1 ( Ω ) × H ( div ; Ω ) 3 , the RHS is given by a functional g H 1 ( Ω ) × H ( div ; Ω ) 3 .
This solvabllity of (19a)–(19h) directly implies the unique solvability of (3).
(ii) 
Note that in (i) only necessary conditions for the unique solvability are discussed. Some sufficient conditions can be obtained by the decoupling of the PDE. Where in fact the sufficient conditions for the unique solvability can be obtained by sufficient conditions to scalar Diffusion reaction equations, cf. [33,54].
(iii) 
By some standard calculations, as given in e.g., [19,28], one obtains that x X solves (3) if the first order optimality in form of the Euler–Lagrange equations is fulfilled, which is given by the following equation:
Find x X such that for all y X the following equation holds true:
a ( x , y ) : = O x g , O y X = g , O y X .
Note that, due to the unique solvability of (3) and the problem equivalence described above, one obtains the unique solvability of (20).
(iv) 
From the unique solvability of (3), c.f. (i) and (iii), it directly follows, cf. theorem 3.6 on page 120 in [30], that the bilinear form a ( , ) : X × X R is elliptic.
(v) 
From the ellipticity of the bilinear form a, cf. (iv), one directly obtains the unique solvability of (4).

3.1.2. Notes on the Convergence Theory

In this section, a few notes on the convergence theory will be made. Although a proof of convergence of the solutions to the discretisation of (5), will be given in this section, the convergence analysis will be incomplete. For the rest of the necessary convergence theorems, some notes on what to be shown will be given.
First, some remarks on the quasi-Newtonian scheme, as given by the iterative solution of (13) and the Homotopy loop will be made. The remark below gives a sketch of the proof of convergence of the discussed quasi-Newtonian scheme. A mathematical rigorous proof has to be given in a future paper.
Remark 5. 
(i)  First note that the least squares functional L S ( v S , q S ) S { A , B , C } is Fréchet differentiable and explicitly A ( v S , q S ) S { A , B , C } = v A v B is Fréchet differentiable. Recall that the Notion of Fréchet derivatives yields that for given x X and for all 0 < ε , there exists a 0 < δ , such that
A ( x + h ) A ( x ) A ( x ) d Y ε d X , d X < δ .
  • This yields that there exists a constant 0 < c , such that for a solution x h ( n ) X of (13) the following estimate holds true, if the initial value x 0 X h is sufficiently close to the exact solution to (8):
    L S α ( k ) x h ( n ) , λ ( k ) α k L S α ( k ) x h ( n ) , λ ( k ) α k ; T , n ε x h ( n ) x h ( n 1 ) X + c S { A , B , C } ( 1 0 ) p S , h ( n ) L 2 ( Ω ; R d ) + ( 1 0 ) c S , h ( n ) L 2 ( Ω )
  • As discussed in Remark 2, a direct application of a classical quasi-Newtonian scheme to (8) yields a convergent sequence ( y n ) X h , if the initial value y 0 is sufficiently close to the solution x h X h to (8) and it follows with inequality (21), the convergence of x h ( n ) .
  • A similar interpretation, as in Remark 2 of the sequences y h k , x h ( k ) X h and the inequality (21), indicate that there exists a constant c 1 > 0 , such that for initial values y ( 0 ) sufficiently close to the solution x h of (8) and the initial value x h ( 0 ) are sufficiently close to the limit of the quasi-Newtonian scheme, the following inequality holds true:
    x h ( n ) y h ( n ) X c 1 S { A , B , C } ( 1 0 ) p S , h ( n ) L 2 ( Ω ; R d ) + ( 1 0 ) c S , h ( n ) L 2 ( Ω ) .
  • It directly follows
    lim h 0 x h ( n ) y h ( n ) X h = 0 .
(ii) 
The discussion (i) indicates that the quasi-Newtonian scheme described by the iterative solution by (13) has the same issue with stability as classical quasi-Newtonian schemes, cf. [17]. To stabilize the quasi-Newtonian scheme, it was coupled to a homotopy method, cf. [32]. As already discussed, the idea of the method is to solve for a continuous function H : X h × [ 0 , 1 ] X h , with H ( x h , 0 ) = i d X h and H ( x h , 1 ) = L S α k x h , μ ( k ) α k ; T , n and a decomposition 0 = t 0 < < t j < < t M to solve the minimization problem that is given by:
Find x h ( j ) X h susch that
x h ( j ) = argmin x h X h H ( x h , t j ) .
As a solution step, the quasi-Newtonian scheme (13) can be used. For j = 0 , an initial value x 0 for the algorithm is given through x 0 and for j > 0 the x h ( j 1 ) is given as an initial value for the quasi-Newtonian scheme.
In the following lemma, a theoretical statement will be proven, which will be essential for the proof of a simple convergence result for solutions of (8).
For the proof of the following Lemma, recall the Γ -convergence. As defined in [36,37,38,39], a sequence of nonlinear functionals F n : X R is said to Γ -converge to a functional F : X R if the following two conditions are fulfilled:
(i)
For every sequence ( x n ) X , with x = lim n x n , the following inequality holds true:
F ( x ) lim inf n F n ( x n )
(ii)
For every x X , there exists a sequence ( x n ) X with x = lim n x n , such that the following inequality holds true:
F ( x ) lim sup n F n ( x n ) .
Lemma 1.
Let T n be a sequence of tirangulations with h n 0 , where h n denotes the diameter of T n , which fulfills 0 = lim n h n , as well as that T n + 1 is a refinement of T n , i.e., the set of nodes N n of T n is included in the set of nodes N n + 1 of T n + 1 , i.e., N n N n + 1 , then the sequence F n : X R given through,
F n : = F + δ T n ,
Γ-converges to F : = L S α j ( x , λ ´ ( j ) ) . In the notation above, δ n is given through the following definition:
δ n ( x ) = 0 , for x X h n , , else .
Proof. 
To prove the Γ -convergence of the sequence ( F n ) , the assertions (24) and (25) have to be proven.
(i)
ad (24): for the proof of this claim one needs to distinguish two cases. However, first, let x X and x ( k ) X with x = lim k x ( k ) be arbitrary fixed.
(a)
First, assume that up to finitely many n N one has ¬ ( x n X h n ) . From the definition of F n it follows then that, up to finitely many n N , the lowest accumulation point of the sequence F n ( x n ) = + . Hence, one obtains the following inequality:
F ( x ) lim inf n F n ( x n ) = .
The inequality above shows the assertion for this case.
(b)
For the second case, assume that there are infinitely many n N , such that x n X h n . Subsequently, there exists a subsequence ( x n l ) ( x n ) with
F n l ( x n l ) = F ( x n l ) .
Because of the continuity of F and the definition of F n , it follows:
F ( x ) = lim l F ( x n l ) = lim l F n l ( x n l ) = lim inf n F n ( x n ) .
The equalities above yield that the claim for the second case holds true.
The discussion of the two cases above proves the claim.
(ii)
ad (25): first, note that, for all n N , one has a continuous embedding S 1 ( T ) × W k , 2 ( T ) and n S 1 ( T n ) is a dense subset of W k , 2 ( Ω ) , c.f. [19,27,28,29]. Similarly, one has a continuous embedding R T 0 ( T ) H ( div , Ω ) furthermore n R T 0 ( T ) is a dense subset of H ( div , Ω ) , c.f. [19,27,28,29]. From the definitions of X h and X, it follows with the both densities, where n X h n is a dense subset of X. From the assumptions on the sequence T n and the density of n it follows that there exist, for all x X , a sequence with x n X h n s.t. x = lim n x n . Furthermore, it follows from the continuity of F and the definitions above:
F ( x ) = lim n F ( x n ) = lim n F n ( x n ) = lim sup n F n ( x n ) .
The equalities above prove the statement.
From (i) and (ii), the claim of the Lemma follows by definition.    □
Corollary 1.
Let T n be a sequence of triangulations fulfilling N n N n + 1 and h n 0 as n , then the following two statements hold true:
(i) 
Let ( y ( n ) ) h n X , be the sequence of minimizers of (8) generated by the usage of X h n as discrete subspace X h n X in the problem formulation of (4), then every accumulation point of ( y h n ( n ) ) is a minimizer of (4).
(ii) 
Let x h n ( n ) X be the sequence of limits of the sequences that are generated by the solution of (13) on the triangulations T n , then every accumulation point of the sequence x h n ( n ) is a minimizer of (4).
Proof. 
Let the sequences T n , ( y ( n ) ) h n X , x h n ( n ) X be given, as stated in the corollary.
(i)
A common result in the context of Γ -convergence, c.f. in [36,37,38,39], is that if G n : X R Γ -converges to G : X R then every accumulation point of the sequence of minimizers ( x n ) n N , i.e., x n minimizes G n , is a minimizer of G.
Applying this theoretical result to the setup of Lemma 1, one obtains the statement in the corollary.
(ii)
The statement of the lemma directly follows by (i) and by (22).
   □
Remark 6. 
(i)  The convergence proof above is a first result underlining the plausibillity of the described discretization of (5). But first note that from the proof of convergence above no rates of convergence can be obtained. From the classical theory, cf. [19,27,28,29], convergence to a certain rate seems to be a valid hypothesis, at least for the linear cases of the PDE (2a)–(2e), cf. [14,15,19].
(ii) 
Note that convergence of the sequence of limits x h k = lim n x h k ( n ) , where x h k ( n ) is a solution to (13), will only be obtained if one accumulation point of x h k exists, this is fulfilled if (5) is uniquely solvable.
With this result, this section will be concluded. For future discussions, the following discussions have to be made:
  • The stability and the convergence of the augmented Lagrangian Algorithm 1 is proven in [25,26], to prove stability and the convergence of Algorithm 1 for the case that is considered in this article the assumptions of the corresponding theorem in [25] have to be verified.
  • The convergence of the quasi-Newtonian scheme (13) has to be discussed in a much more rigorous way than done in Remark 5.
  • Convergence to a certain rate has to be verified for the discretization of (5).
  • As known to the authors, the existence theory, as described in Section 3.1.1, is for the problem (2a)–(2e) incomplete. A careful study of sufficient and necessary condition has to be made.

4. Numerical Examples and Validation of the Software

In this section, multiple numerical experiments are treated to validate the robustness and the functionality of the numerical scheme. In all three subsections, the numerical examples that are given through the parameters in the Table 1, Table 2 and Table 3 are discussed. Furthermore, for all numerical examples, the starting values for the augmented Lagrangian algorithm were chosen as α ( 0 ) = 5 6 , μ ( 0 ) ( x ) = 0 for all x Ω , τ = 0.9 , and λ max ( x ) = 0.02 for all x Ω .

4.1. Numerical Examples in 1d

For the numerical examples presented in this section, let Ω : = ] 0 , 2 [ . For the examples that are discussed in this section, let an exact solutions c A , c B , c C of the unrestrained problem (3) be given through
c A : = c B : = c C : = x ( x 2 ) + 1 2
and let Γ D = Ω and g A , D = g B , D = g C , D 1 . Afterwards, the functions f A , f B , f C L 2 ( Ω ) are given through
f A = 2 D A k 2 x ( x 2 ) + 1 2 + k 1 x ( x 2 ) + 1 2 2 ,
f B = 2 D B k 2 x ( x 2 ) + 1 2 + k 1 x ( x 2 ) + 1 2 2 ,
f C = 2 D C + k 2 x ( x 2 ) + 1 2 k 1 x ( x 2 ) + 1 2 2 .
As breaking conditions for the simulations, in this subsection, the fulfillment of the following conditions were set:
  • The breaking condition from S3 in Algorithm 1 is fulfilled with a tolerance ε : = 10 4 .
  • The number of nodes in the current mesh increases 10,000 nodes.
  • More than 100,000 iterations of the augmented Lagrangian algorithm were performed.
Before the numerical examples are discussed, note that the exact error is given through:
x x h X 2 = S { A , B , C } c S u S L 2 ( Ω ) 2 + p S , h u S L 2 ( Ω ) 2 + x p S , h 2 x 2 u S L 2 ( Ω ) 2 .
Simulating the unrestrained problem (3), for the the given RHS, as defined above, for the parameters that are defined in the Table 1, Table 2 and Table 3, with the reduced numerical scheme, see Remark 1, one obtains approximations of the defined exact solution (27). For a number of 10,000 DoFs, one obtains the results that are shown in Figure 1, which were simulated for the parameters defined in Table 1. Because no visible difference to the other experiments can be seen, Figure 1 will be the only given pictures of approximate solutions to (3) in this section.
Furthermore, note that, for the simulations, the following setup was chosen:
For all simulations of the ‘classical’ concentration-profiles, with no restrictions on the positivity of the concentrations, the reduced method, as described in Remark 1, was used. Furthermore, in all cases of simulations of (3), the estimtor η was used. For the adaptive refinement of (5), the practical error estimator σ was used for all approximations of solutions of (5). Furthermore, for all adaptive refinement Dörfler marking, cf. Remark 1, was used as marking strategy with common bulk parameter θ = 0.5 .
The first example that will be discussed in the following in more detail is given by the parameters in Table 1. As mentioned before, Figure 1 provides the simulations with a minimum number of 10 4 nodes in the AFEM loop as breaking-condition.
By the evaluation of the error estimators for this example, cf. Figure 2, one can observe convergence of the estimators, except for the practical estimator σ for the uniform refinement. As expected, the rest of the estimators are parallel, from which the equivalence of estimators can be formulated as a conjecture.
In Figure 3, some iterations of the augmented Lagrangian scheme with uniform refinement are shown. The augmented Lagrangian scheme needed 85 steps to obtain non-negative species distributions. The augmented Lagrangian scheme converges to set a non-negative species distributions for this example, as shown in the subfigures (a), (d), (g).
Furthermore, as predicted in Remark 1, the localized evaluation of the least-squares functional, which is given by the estimator η , does not converge to zero in all examples. In this case, for the uniform refinement, the practical error estimator converges lim h 0 σ = 0 .
Additionally, this example also shows the convergence of the multipliers μ A , μ B , and μ C as well, which also seems to converge.
The parameter α grows exponentially over the iterations of the augmented Lagrangian algorithm, as shown in the Figure 4.
In Figure 5, the development of the augmented Lagrangian algorithm is shown, applying the adaptive algorithm in each iteration of (5). The augmented Lagrangian algorithm takes, like for uniform mesh refinement, 85 iterations to guarantee non-negative species distributions, as can be seen in this case. Just observing the discrete solutions c A , h , cf. Figure 5a, c B , h (d), and c C , h (g), and the Lagrangian multipliers μ A (b), μ B (e), and μ C (h), one obtains the same result as for the uniform refinement. The limit of the solutions seems to be identical, but the interesting aspect is the estimators, which are given in the subfigures (c), (f), and (i). The practical errors σ seem to converge to a value b 0 , as well as the estimators η do, as expected to a value a 0 .
The development of the parameter α for the augmented Lagrangian algorithm with adaptive mesh refinement is similar to the development of the augmented Lagrangian algorithm with uniform mesh refinement. No further pictures are given due to the fact that no differences are visible between the developments of α with uniform or adaptive mesh refinement.
The second example that is discussed in this section is given by the parameters shown in Table 2. In Figure 6, the convergence graphs for the approximation of the solution (3), for the given parameters, are shown. In this setting, the evaluation of the least squares functional η for uniform and adaptive refinement are shown, as well as the exact error for uniform and adaptive refinement and the practical error σ again for uniform and adaptive refinement are given. The corresponding graphs are, at most, parallel and show the same behavior and indicate convergence of the numerical scheme for the simulation, as can be seen in Figure 6. The graph indicates that the estimators could be equivalent for the simulation.
Applying the augmented Lagrangian Algorithm 1 onto (4) with the parameters that are given in Table 2 and applying uniform refinement on the mesh, T one obtains, after 89 iterations of the augmented Lagrangian scheme, non-negative species distributions, as seen in Figure 7.
The estimator η converges not to 0 in each iteration of the augmented Lagrangian method, as expected, but the practical estimator does converge to 0 in each iteration, as can be seen in Figure 7.
In Figure 8, the application of the augmented Lagrangian algorithm is shown for multiple iterations with the application of adaptive mesh refinement, as described above. The algorithm needed, as for treating the iterate problems with uniform refinement, 89 iterations. As it can be seen, the algorithm outputs non-negative species distributions. In principle, equivalent results in the output can be seen in Figure 7. However, the principal behavior of the practical error estimator differs while using adaptive schemes from the same methodology but using uniform mesh refinement. The estimator η , cf. remark and Definition 1, converges, but not to 0, as expected, while the convergence of the practical error σ seem to also be given, as can be seen in Figure 8c,f,i.
The developments of the parameter α during the augmented Lagrangian algorithm are for the adaptive and uniform refinement identical for linear reaction terms and they are very similar to the development for the pure diffusive case given in Figure 4.
The third example that is discussed in this section is given by the parameters in Table 3. The discrete solutions to (3) w.r.t. the parameters above are close to identical to the discrete solution given in Figure 1, as discussed previously. In fact no differences are visible. Hence, the corresponding figure will not be displayed in this paper.
The evaluation of the error estimators, which are defined in remark and Definition 1, cf. Figure 9, are yielding that the numerical scheme converges for both the uniform and adaptive refinement scheme. Furthermore, it is shown in Figure 9 that the localized evaluation of the non-linear least-squares functional, as beforehand η , seems to be equivalent to the exact error for uniform and adaptive refinement. Furthermore, up to a value of approximately 10 4 DoF, the corresponding practical estimators σ are decreasing for uniform and adaptive refinement. At this stage, the convergence of the numerical schemes is given from a practical viewpoint.
Applying the augmented Lagrangian algorithm, cf. Algorithm 1, to (4) with the parameters that are given in the Table 3 and applying uniform refinement, one obtains non-negative species distributions after 89 iterations of the augmented Lagrangian scheme, c.f. Figure 3. Furthermore, it is observable that the practical error estimator η , cf. definition and Remark 1, converges, but not to 0 in each setting. Furthermore, it is observable that the practical σ , cf. definition and Remark 1, converges to zero for each iteration.
Applying the augmented Lagrangian algorithm to (4) with the parameters that are given in Table 3 and applying adaptive mesh refinement to the iterative defined problem (5), one obtains the results given in Figure 10. The iterates converge to a species distributions with non-negative species concentrations, as seen in the corresponding figure. After 89 iterations, non-negative species distributions are obtained. Furthermore, it is visible that the estimator η , cf. remark and Definition 1, that is based on the piecewise evaluation of the corresponding least-squares functional converges, but not to 0. In contrast to the setting shown in Figure 11, the practical error σ , cf. remark and Definition 1, one obtains convergence, but not to 0, as beforehand.
The developments of the parameter α during the augmented Lagrangian algorithm for the adaptive and uniform refinement are identical for the full reaction terms and they are very similar to the development for the pure diffusive case, as given in Figure 4, also in this case, a figure is not given in this paper.
As a remaining part of the discussions to the 1d examples, a comparison of the CPU running times of the different examples will be discussed. One observes that, for the given examples, the number of iterations of the augmented Lagrangian algorithm do not differ between uniform and adaptive mesh refinement, as seen in Table 4. However, one sees, in Table 4, that the usage of the adaptive algorithm is far more efficient than the usage of the uniform refinement. Especially for the nonlinear system of ODEs, as described by the parameter set given in Table 3, a massive reduction of computation time was obtained.
All together, one can conclude that the numerical scheme works for the given scheme and examples. Because of the fact that no rigorous proofs are done in this paper, the convergence remains as conjecture, based on the numerical results in this section.

4.2. Examples in 2d

In this section, two examples will be discussed for the parameter sets that are given in the Table 1 and Table 2. For the treatment of the augmented Lagrangian algorithms, the same parameters were used as before. Furthermore, in every numerical example in this section, the estimators η and σ from remark and Definition 1 were used. Furthermore, note that the refinement algorithms that were implemented in [55] were used to treat the examples of the adaptive scheme.
For the numerical examples in 2d, similar breaking conditions on the algorithms were set:
  • The breaking condition from S3 in Algorithm 1 is fulfilled with a tolerance ε : = 10 4 .
  • The number of nodes in the current mesh increases 1000 nodes.
  • More than 100,000 iterations of the augmented Lagrangian algorithm were performed.
In contrast to the examples in 1d, a lower number of nodes was used as breaking condition for the refinement algorithm.

4.2.1. Examples on a Convex Domain

Similar to Section 4.1, non-trivial examples will be discussed in this section. First, let Ω = ] 0 , 2 [ 2 be given, as well as Γ D = Ω . In this section, an exact solution of (3) will be fixed. As done before, the concentrations c A , c B , c C will be given as:
c A : = c B : = c C : = x ( x 2 ) y ( y 2 ) + 1 2 .
This yields the RHS for the Dirichlet condition as g S , A 1 2 , for S { A , B , C } , and the RHS f A , f B , f C L 2 ( Ω ) are given through:
f A = 2 D A y ( y 2 ) + x ( x 2 ) k 2 x ( x 2 ) y ( y 2 ) + 1 2 + k 1 x ( x 2 ) y ( y 2 ) + 1 2 2 ,
f B = 2 D B y ( y 2 ) + x ( x 2 ) k 2 x ( x 2 ) y ( y 2 ) + 1 2 + k 1 x ( x 2 ) y ( y 2 ) + 1 2 2 ,
f C = 2 D C y ( y 2 ) + x ( x 2 ) + k 2 x ( x 2 ) y ( y 2 ) + 1 2 k 1 x ( x 2 ) y ( y 2 ) + 1 2 2 .
Before the discussion of the examples is done, note that the exact error for the problems above is given by
S { A , B , C } c S c S , h L 2 ( Ω ) 2 + p S , h c S L 2 ( Ω ) 2 + div p S , h Δ c S L 2 ( Ω ) 2 .
The first example that is discussed in this section is given by the parameters that are defined in Table 1. When simulating the problem (3) with uniform refinement, one obtains the species concentration that is displayed in Figure 12. Furthermore, note that, for the adaptive scheme, one obtains close to identical figures, hence it will be omitted in this article.
When evaluating the error estimators as well as the exact error, c.f. Figure 13, one obtains that the exact error, the estimator η given by the localized evaluation of the corresponding least-squares functional as well as the practical error estimator σ can be considered to be parallel for both refinement schemes. As can be seen, the adaptive scheme gives no prior advantage besides a better estimator η , which was used in the adaptive scheme.
When evaluating the augmented Lagrangian scheme, cf. Algorithm 1, one sees that the scheme converges after 166 iterations, cf. Figure 14, to species distributions with non-negative concentrations. One already obtains a state with small negativities after 316 iterations, as seen in Figure 14. Furthermore, one can see that the estimator η in each iteration does not converge to 0. However, in contrast to the examples in Section 4.1, the practical error seems to converge to 0.
The second example that is discussed in this section is given by the parameters that were defined in Table 2. When simulating the corresponding example (3) one obtains an analogous Figure 12, which are not displayed in this article, since no major difference to Figure 12 is visible.
When evaluating the augmented Lagrangian scheme for the example that is given by the set of parameters defined in Table 2 with adaptive mesh refinement, one obtains non-negative species distributions after 188 iterations, cf. Figure 15, although the history given in the figure indicates states close to the approximated solution after 1161 iterations of the augmented Lagrangian schemes.

4.2.2. Examples on a Non-Convex Domain

In this section, two examples on non-convex domains will be discussed. In this section, let the domain be given Ω = ] 0 , 1 [ 2 \ [ 0 , 1 ] × [ 1 , 0 ] . For the numerical experiments, the boundary conditions are defined analogously as in Section 4.2.1. The Dirichlet boundary is assumed to be given as Γ D = Ω , the Neumann-boundary given as Γ N : = and
c A | Γ D = c A | Γ D = c A | Γ D = 1 2 .
Furthermore, let the RHSs f A , f B , f C Ł 2 ( Ω ) be given, as follows:
f A ( x ) : = f B ( x ) : = f C ( x ) : = 2 .
The first example that is discussed in this subsection is given for the parameters defined in Table 1.
When calculating an approximate solution to the minimization problem (3), one obtains discrete solutions in the form, as shown in Figure 16, for uniform mesh refinement. Because of the fact that the approximate solution w.r.t. adaptive mesh refinement only gives small differences to the displayed figure, it is not shown in this paper.
When evaluating the estimators η and σ , as defined in definition and Remark 1, for the approximation of (3) for adaptive and uniform mesh refinement, one obtains that the estimators η and σ are restricted parallel to the refinement type, cf. Figure 17. Furthermore, one sees, as expected, that the estimators for adaptive refinement are steeper in the log log plot given in Figure 17, which indicates the expected increase of efficiency obtained by adaptive schemes.
When comparing the triangulation generated by uniform refinement, cf. left image in Figure 18, and the triangulation, cf. right image in Figure 18, one observes that, while the uniform triangluation has a homogeneous distribution of triangles, in the adaptively generated mesh, the triangles accumulate in the non-convex vertex. This behavior is commonly known in the literature, cf. [27,30].
The evaluation of the augmented Lagrangian algorithm, cf. Figure 19, with the use of adaptive refinement with estimator η yields that 188 iterations of the augmented Lagrangian algorithm are needed to guarantee non-negative species distributions.
The second example that is given in this section is, as before, given by the parameters that are defined in Table 2. When simulating the minimization problem (3), approximately one obtains an approximation of the form, as shown in Figure 20, which was obtained by simulation under uniform refinement. Because there are no visible differences between the picture generated under uniform refinement and generated under adaptive refinement, only the approximate solution under the usage of adaptive mesh-refinement will be given in this paper.
After the evaluation of the error estimators η and σ , as defined in remark and Definition 1, one obtains that the practical error σ and the classical error estimator η are parallel in both cases, uniform and adaptive refinement. Furthermore, one obtains that all error-terms converge to zero. Furthermore, it can be seen that the given error estimators that were induced by adaptive refinement seem to converge with a higher rate, since the corresponding graphs in the log log plot shown in Figure 21 are steeper than the graphs associated to uniform refinement.
Similar to the previous example, one sees, in Figure 22, a uniform triangulation of the L-shaped domain in Figure 22 on the left side and right side one generated by the adaptive algorithm. The triangulation that is generated by the AFEM-loop is dominantly refined in the neighbourhood of the non-convex vertex. This clearly coincides with the theory about singular solutions to elliptic PDEs, cf. [33] and their treatment, cf. [27,30].
When applying the augmented Lagrangian algorithm to problem (4) and applying the adaptive scheme to treat the iterate problem (5), one needs 35,057 iterations to guarantee non-negative species distributions, but it is also clear that a close fit to non-negative species distributions are already obtained after 17,528 iterations, cf. Figure 23.
As last point of the discussion of the numerical experiments in 2d, the evaluation of the CPU running time has to be discussed. Table 5 presents the results discussed in the following.
First, note that the number of iterations as well as the computation time reduce by using adaptive schemes. The reduction of computation time is for the the convex square domain is somehow remarkable, since the gain of efficiency, when using adaptive schemes, for convex domains is, in comparison to uniform refinement, rather low. The observed reduction of CPU time can be explained by the reduction of iterations in the augmented Lagrangian scheme, cf. Algorithm 1. However, the gain of efficiency, when using adaptive schemes to non-convex domains is remarkable, since a reduction of over 50,000 iterations of the augmented Lagrangian algorithm to under 300 is an extreme gain of efficiency.
Remark 7.
Note that the high number of needed iterations of the augmented Lagrangian algorithm for the L-shaped domain results of the singularity at the non-convex vertex of the geometry, which is a common result for non-convex domains. The adaptive scheme refines dominantly at the non-convex vertex of the geometry, which enhances the approximation in a way such that the augmented Lagrangian algorithm becomes enhanced, as can be seen in Figure 18.
When summarizing the results from this Section 4.2, it can been seen that the augmented Lagrangian scheme is more cost intensive than its correspondence in 1d. Furthermore, it can be seen in Section 4.2.1 that the practical estimator σ , as defined in the remark and Definition 1, behaves differently than in 1d under adaptive refinement, where it converges to zero, which justifies the use of the practical error. Additionally, one can observe, cf. Table 5, that a massive gain of efficiency can be made by using adaptive schemes in the discretization of (5).

4.3. Comparison to Other Methods

This section is devoted to the comparison of the augmented Lagrangian method, as described in this paper, with the classical augmented Lagrangian regime as described in [20,22] and the Primal-Dual Active-Set Strategy, as described in [23].

4.3.1. Theoretical Setup for the Classical Augmented Lagrangian Scheme and the Primal-Dual Active-Set Strategy

This section is devoted to description of the theoretical setup for the application of the classical augmented Lagrangian scheme [20,22] and the classical Primal-Dual Active-Set Strategy, c.f. [23].
The classical approaches to treat (4) is to discretize the optimization problem (4) and then use an optimization algorithm for the solution, as discussed in [14,15,16,19]. For an arbitrary fixed triangulation T with diameter 0 < h and for the usage of the discretization X h of X, as defined in Section 3, one obtains the following discrete optimization problem:
Find x h = c S , h , p S , h S { A , B , C } X h such that the following equality holds true
x h = argmin ( v S , h , q S , h ) S { A , B , C } L S v S , h , q S , h s . t . 0 < v S , h , S A , B , C
The classical approaches use the fact that X h is a finite dimensional subspace of X and, thus, (33) is an finite dimensional optimization problem, for which a lot of theory is known, i.e., for the approximation of solutions (33), the augmented Lagrangian schemes can directly be applied, as described in [20,22].
In contrast to augmented Lagrangian methods, the Primal-Dual Active-Set Strategy, as in the form described in [23], cannot be indirectly applied to (33). For the application of Primal-Dual Active-Set Strategies, in this paper it is assumed that the operator in the ODE, resp. PDE, is linear, (2a)–(2e), is linear, i.e., the equality k 1 = 0 is assumed. In this case, one obtains, by using a basis of X h , and using the Euler Lagrange Equation (20), one obtains a minimization problem of the following form:
Find x h v R d , such that the following equation holds true
x h v = argmin y R d 1 2 y T A x h v y T f s . t . : 0 v S , h v
In the problem above, d h N is the dimension of X h , i.e., d h = dim X h , x h v R d h is the coefficient vector of the solution x h X h of (33) and v S , h v is the coefficient vector of v h S 1 ( T ) . Furthermore, for all y R d h , the equality
y T A y + 2 y T f + f T f = L S y h
holds true, where y R d is the coefficient vector of y h X h .

4.3.2. Description Classical Augmented Lagrangian Regime

This section is devoted to the description of the use of the classical augmented Lagrangian algorithm to the problem (33).
The classical augmented Lagrangian scheme is given through the following Algorithm 4, cf. [20,22].
Algorithm 4: Classical augmented Lagrangian method
Input: Define a starting values x h ( 0 ) , s , λ ( 0 ) , α 0 and define j : = 0 .
Output: Approximate solution x h to (33) and approximate Lagrangian function λ h .
 The classical augmented Lagrangian algorithm is given through the following steps.
S1: 
 Approximate a solution to the following optimization problem.
 Find x h ( j + 1 ) : = c S , h ( j ) , p S , h j S { A , B , C } X h such that the following equation holds true:
x h ( j + 1 ) = argmin ( v S , h , q S , h ) S { A , B , C } L S α j v S , h , q S , h S { A , B , C } , λ ( j )
 and use x h ( 0 ) , s as initial
S2: 
 If λ j , x h ( j ) L 2 ( Ω ) < ε break the algorithm.
S3: 
 Update λ ( j ) via the update rule:
λ ( j + 1 ) : = λ ( j ) α j [ c A ( j + 1 ) , c B ( j + 1 ) , c C ( j + 1 ) ] + .
 Furthermore update x h ( j + 1 ) , s : = x h ( j + 1 ) α j + 1 such that α j α j + 1 .
S2: 
 Set j : = j + 1 and go to S1.
The experimental setup needs to be described before the numerical experiments will be discussed in detail.
First, note that, for all simulations discussed with Algorithm 4, the parameter α j was for all j N given as α j = 1 . For the comparison of the algorithm on different meshes, the algorithm was coupled with a loop of uniform refinements. The global Algorithm 5 is given through the following:
Algorithm 5: Refinement strategy with the classical augmented Lagrangian algorithm
Input: Initial Triangulation T 0 . Define a starting values x h ( 0 ) , s , λ ( 0 ) , α 0 and define j : = 0 .
Output: Approximate solution x h to (33) and approximate Lagrangian function λ h and final triangulation T .
 Perform the following steps:
S1: 
 Compute an Approximation x h of a solution and a Lagrangian multiplier λ to (33) on the current triangulation T using the initial values x h ( 0 ) , s and λ ( 0 ) using the Algorithm 4.
S2: 
 If T has more than N nodes then break the loop.
S3: 
 Define the mesh T + 1 as uniform red refinement of the triangulation T . For a definition of the uniform red refinement see [27].
S4: 
 Define x h ( 0 ) , s : = x h and λ ( 0 ) : = λ .
S5: 
 Set : = + 1 and go to S1.
The statement of the algorithm above finishes the description of the used classical augmented Lagrangian scheme.

4.3.3. Description of the Primal-Dual Active-Set Strategy

This subsection is devoted to the explicit description of the Primal-Dual Active-Set Strategy that is considered in this article.
As discussed before for a basis { b 1 , , b n h } , a basis of X h the problem (33) can be equivalently reformulated to (34).
The corresponding representation of X h , see (7), indicates that a basis B h = { b 1 , , b n h } } of X h can be chosen, such that, for all coefficient vectors y h v of element y h X h for all S { A , B , C } , there exists an index set J S { 1 , , n h } , such that the restriction of the coefficient vector ( y h v ) on the subindexset J S ( y h v ) J S is the coefficient vector of c S . In this notation, define the index-set J as
J : = S { A , B , C } J S .
Applying the Primal-Dual Active-Set Strategy, cf. [23] as a method to approximate solutions to (34), together with the notation above, one obtains the following Algorithm 6.
Algorithm 6: Primal-Dual Active-Set Strategy
Input: Define a starting values x h ( 0 ) , s , λ ( 0 ) , α 0 and define k : = 0 .
Output: Approximate solution x h to (33) and approximate Lagrangian function λ h .
 With the notation above the Primal-Dual Active-Set Strategy for this problem type
S1: 
 Define the inactive set I k and active set A k as follows:
I k : = i { 1 , , n } | λ i ( k ) + 1 2 y i k > 0 J ,
 and
A k : = i { 1 , , n } | λ i ( k ) + 1 2 y i k 0 J .
S2: 
 Solve the following system of linear equations
A y ( k + 1 ) + λ ( k + 1 ) = f ,
y ( k + 1 ) = 0 , on A k
λ ( k + 1 ) = 0 , on I k .
S3: 
 Stop the algorithm, or set k : = k + 1 and return to S1.
Remark 8.
Note that, by the problem formulation (36a)–(36c) directly implies, by the split of the indices into an active set A and an inactive set I , the orthogonality c S μ S for all S { A , B , C } is fulfilled. Thus, the usage of the relative error
err = S { A , B , C } μ A · c A
for a breaking condition of the corresponding algorithm is not applicable.
Before the actual comparison between the Primal-Dual Active-Set Strategy and the augmented Lagrangian method will be made, some additional remarks on the coupling between refinement and Algorithm 6 have to be made:
For the comparison of the algorithm on different meshes, the algorithm was coupled with a loop of uniform refinements. The global Algorithm 7 is given through the following:
Algorithm 7: Primal-Dual Active-Set strategy with refinement strategy
Input: Define a starting values x h ( 0 ) , s , λ ( 0 ) , α 0 and define k : = 0 . Furthermore define an initial triangulation T 0 .
Output: Approximate solution x h to (33) and approximate Lagrangian function λ h . Additionally the algorithm outputs the final triangulation T
 Perform the following steps:
S1: 
 Compute an Approximation x h of a solution and a Lagrangian multiplier λ to (33) on the current triangulation T using the initial values x h ( 0 ) , s and λ ( 0 ) using the Algorithm 4.
S2: 
 If T has more than N nodes then break the loop.
S3: 
 Define the mesh T + 1 as uniform red refinement of the triangulation T . For a definition of the uniform red refinement see [27].
S4: 
 Define x h ( 0 ) , s : = x h and λ ( 0 ) : = λ .
S5: 
 Set : = + 1 and go to S1.
The statement of the algorithm above finishes the description of the Primal-Dual Active-Set Strategy.

4.3.4. Comparrison of the Different Mehtods

This section is devoted to the explicit comparison of the different numerical schemes. However, before the actual comparison is undertaken the general setup of the experiments have to be stated.
First, note that the parameters of the mathematical problems to approximate in this section are given in the Table 2 and Table 3. The corresponding RHS are the same as in the respective examples above. Furthermore, in the 2d experiments, the geometry considered is the L-Shaped domain.
Furthermore, for every method, the initial mesh T 0 for the refinement scheme was always the same in the respective dimension. Furthermore, note that refinement loops are broken if the mesh has 10,000 nodes in one space dimension and 1000 nodes in two space dimensions.
The loops of the respective augmented Lagrangian algorithms are broken if the relative error
err = S { A , B , C } μ S , c S , h L 2 ( Ω )
is bounded by the tolerance ε = 1 e 4 .
First, note that there is no visual remarkable difference between the outputs of the algorithms. Hence, in this algorithm only the CPU times of the algorithms will be compared. Table 6 assembles the actual data for the comparrison.
In the context of the described algorithms, one would expect that the Primal-Dual Active-Set Strategy is the most inefficient in terms of needed RAM space during the computation due to the fact that the system of Equation (36a)–(36c) contain more variables than the other optimization-problems, since the augmented Lagrangian methods treat the multiplier λ as constant and not as a variable.
In one space dimension and for the parameters given in Table 2, the Primal-Dual Active-Set Strategy is the most efficient, while the two augmented Lagrangian schemes need approximately the same CPU time, as seen in Table 6. In contrast to that the augmented Lagrangian algorithm that is introduced in this paper is more efficient for non-convex domains and nonlinear problems than the other algorithms.

5. Modelling the Stationary Species Transport in the Diffusion-Boundary Layer during the Metal Deposition from a Cu 2 + Electrolyte

This section is devoted to the derivation a model, see Section 5.1, for the metal deposition from a Cu-electrolyte, taking the complexation with β -alanine ( β -ala) in the diffusion-boundary layer into account. In Section 5.2, the numerical strategy, which is discussed in this article, will be applied to the model.

5.1. Theoretical Model

In this section, an abstract model for the static metal deposition in galvanic cells will be discussed. As a model that is falling into the discussed model types, the static metal deposition with speciation in a single diffusion boundary layer will be studied, c.f. [1,2,3].
A few remarks on the physical setting will be made before the model will be discussed in detail. In an electrolyte, a metal M, in this case Cu, and a ligand L, in this case β -ala, is assumed, with the reaction
Cu + ( β ala ) Cu ( β ala ) .
Furthermore, in the bath, there is an anode and a cathode, where, at the cathode, the metal is deposited. In the global setting, there is a transport of Cu-ions from the anode, with anodic current density j A , to the cathode, with cathodic current density j C . In this model, one assumes that j C = j A .
For the model, assume that there exists a laminar boundary layer at the cathode, which includes the diffusion boundary layer with thickness of δ x = 10 4 m. Furthermore, assume that, outside the diffusion boundary layer, the concentration c C u 2 + of C u 2 + , the concentration c Cu 2 + of c β ala and c Cu β ala are constant. Furthermore, the concentration the bath is set by c S b = 0.5 mol , for each S { Cu 2 + , β ala , Cu ( β ala ) } .
Furthermore, let the only deposited species at the cathode, at position x = 0 , be the Cu-ions and the species distribution in the diffusion boundary layer geometrically only be dependant on the distance to the cathode and the concentrations in the diffusion-boundary layer can be described by the diffusion–reaction problem (4), with diffusion coefficients and reaction rate constants, as given in Table 7, and let no further reactive force be given.
When translating the assumptions above into boundary-data one obtains for all S { Cu , β ala , Cu ( β ala ) } the identity c S ( δ x ) = c S b . At the cathode for the species S { S { β ala , Cu ( β ala ) } , the identities d d x c S = 0 will be used and d d x c Cu = j D Cu z F , where F is Faraday’s constant and z = 2 is the valency of the copper-ions Cu 2 + . The absence of reactive forces is modeled by defining the functions f A , f B , f C L 2 ( Ω ) through f A = f B = f C = 0 .
For the diffusion coefficients cf. to supplementary matrerial of [4] and for the kinetic parameters, cf. [3].

5.2. Simulation

In this section, the simulations according to the model above will be discussed. Assuming concentrations of c S b = 0.5 mol m 3 , for S { Cu , β ala , C u β ala } in the bath and a current density of j = 0.6 A m 2 on the cathode, one obtains the concentration profile shown in Figure 24 by evaluating the classical model 3, with the numerical scheme described for the treatment of (5) under the reduction described in Remark 1. As seen in the figure, one obtains a concentration of 0.4 mol , which can be considered to be unphysical.
When applying the augmented Lagrangian method with adaptive meshrefinement on (4), cf. Figure 25, one obtains that 75 iterations of the augmented Lagrangian algorithm were needed to evaluate non-negative concentrations. As seen in the corresponding figures, not only the behavior of c Cu 2 + , but, as directly seen, the behavior of c β ala , in the close area of the cathode the concentration of c β ala increases. Furthermore, it can be seen that the augmented Lagrangian algorithm needs 75 steps for the simulation of non-negative species concentrations.
Remark 9.
During the application of the numerical scheme that is described in Section 3, one observes that the adaptive scheme converges relative fast for the respective model 4 given through the parameters that are defined in Table 7 and the given boundary conditions, while the quasi-Newtonian part of the numerical scheme based on the uniform refinement does not converge, unless a high number of homotopy steps > 10 6 is used.
In summary, the numerical methodology that is derived in this article is applicable to practical relevant settings, and the adaptive scheme has a major part on the efficiency of the described.

6. Discussion and Conclusions

Although, in this article, the rigorous mathematical proofs are not done, in Section 4 various numerical examples are discussed, which show convergence. Hence, the convergence of all included algorithms can be stated as a founded conjecture. Although some mathematical considerations are made in this paper, some rigorous mathematical work still has to be done. In detail, the following formal proofs have to be made in some future work:
(i)
There exist, at least locally, a unique solution to (3) and (4).
(ii)
The iterated minimization problems (5) are, at least locally, uniquely solvable and the sequence of solutions ( u S ( n ) , p S ( n ) ) S { A , B , C } X , generated by the augmented Lagrangian method, converges to the solution ( u S , p S ) S { A , B , C } X of (4).
(iii)
For a triangulation T , with low enough diameter 0 < h and a stable starting point of the quasi-Newton scheme described by solutions of (13), every iterate problem of (13) is uniquely solvable.
(iv)
The quasi-Newton method given by the iterative solution x h ( n ) of (13) converges in X h . i.e., there exists a x h X h , such that x h = lim n x h ( n ) .
(v)
For h 0 the limits described in (iv) converge against the solution of (5).
(vi)
The adaptive scheme that is described in Algorithm 3 converges.
Furthermore, the numerical experiments show that the application of the practical error σ , as defined in Definition and Remark 1, can be used in two space dimensions. In addition, the behavior seems to indicate the needed norm equivalences in two space dimensions. Furthermore, in one space dimension, it can be seen that the practical error estimator is not sufficient for the required norm equivalence, but the numerical examples nevertheless show good results, which allow the use as above.
Although the numerical schemes are still cost intensive, they converge and, hence, give physical behavior for three compound systems. In addition, as to be seen in Section 5, in this article, a numerical scheme was introduced that is able to treat the high rate constants given in real-world problems, cf. supplement to [4]. Hence, the numerical scheme can be used in most relevant settings when considering three-component systems.
Furthermore, note that the algorithm that is described in this section seems, due to the discussions for the numerical examples, to be especially efficient for nonlinear and non-convex geometries. Especially, the efficiency for those two cases makes the algorithm interesting for further applications.
The model that is presented in the Section 5 gives a first glance at the process of metal deposition, but one has to expect that the model is improvable. Firstly, the assumption of the existence of a uniform laminar boundary layer on any complex geometry is questionable since fluid dynamics tend to be strongly geometry dependant, cf. [56]. Furthermore in galvanic processes H 2 development at the cathode can be expected, which questions the existence of a laminar boundary layer in many cases. Although the concentration gradients in a galvanic bath can be assumed to be low in some cases, the species-transport in the bath, as described in [1,2,3], cannot necessarily be neglected. Furthermore, the processes in the bath can be described by a multi physics coupling of fluid dynamics, diffusion, reactions, and electro-magnetics. Furthermore, as seen in [3], the reaction kinetics that were discussed in this article are not complete. Hence, a further discussion of this type of model needs to be done.
As is well known, most of the real world processes do not reduce to static problems, but, nevertheless, important limiting factors can be obtained from static laws. Furthermore, from a technical numerical perspective, time-dependent laws can be approximately treated as systems of static laws, c.f. [57] or [58]. Hence, this article gives a good first foundation for further discussions and investigations.

Author Contributions

Conceptualization, S.D.S., T.M. and T.L.; methodology, S.D.S.; software, S.D.S.; formal analysis, S.D.S.; investigation, S.D.S.; resources, T.L.; data curation, T.M. and T.L.; writing—original draft preparation, S.D.S.; writing—review and editing, S.D.S., T.M. and T.L.; visualization, S.D.S.; supervision, T.M. and T.L.; project administration, S.D.S.; funding acquisition, S.D.S., T.M. and T.L. All authors have read and agreed to the published version of the manuscript.

Funding

The publication of this article was funded by Chemnitz University of Technology.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
PDEPartial Differential Equation
ODEOrdenary Differential Equation
FEMFinite Element Method
s.t.subject to
DoFDegree of Freedom
RHSright hand side
w.r.t.with respect to

References

  1. Newman, J.S. Electrochemical Systems, 2nd ed.; Prentice-Hall International Series in the Physical and Chemical Engineering Sciences; Prentice Hall: Upper Saddle River, NJ, USA, 1991. [Google Scholar]
  2. Bard, A.; Faulkner, L. (Eds.) Electrochemical Methods: Fundamentals and Applications; John Wiley & Sons, Ltd.: New York, NY, USA; Chichester, UK; Weinheim, Germany; Brisbane, Australia; Singapore; Toronto, ON, Canada, 1980; Volume 18. [Google Scholar]
  3. Survila, A. Electrochemistry of Metal Complexes; John Wiley & Sons, Ltd.: Hoboken, NJ, USA, 2015; Chapter 3; pp. 33–59. [Google Scholar] [CrossRef]
  4. Buffle, J.; Zhang, Z.; Startchev, K. Metal Flux and Dynamic Speciation at (Bio)interfaces. Part I: Critical Evaluation and Compilation of Physicochemical Parameters for Complexes with Simple Ligands and Fulvic/Humic Substances. Environ. Sci. Technol. 2007, 41, 7609–7620. [Google Scholar] [CrossRef] [PubMed]
  5. Averós, J.; Llorens, J.; Uribe-Kaffure, R. Numerical simulation of non-linear models of reaction-diffusion for a DGT sensor. Algorithms 2020, 13, 98. [Google Scholar] [CrossRef] [Green Version]
  6. Mongin, S.; Uribe, R.; Puy, J.; Cecília, J.; Galceran, J.; Zhang, H.; Davison, W. Key Role of the Resin Layer Thickness in the Lability of Complexes Measured by DGT. Environ. Sci. Technol. 2011, 45, 4869–4875. [Google Scholar] [CrossRef] [PubMed]
  7. Zeidler, E. Nichtlineare partielle Differentialgleichungen. In Springer-Handbuch der Mathematik IV: Begründet von I.N. Bronstein und K.A. Semendjaew Weitergeführt von G. Grosche, V. Ziegler und D. Ziegler Herausgegeben von E. Zeidler; Zeidler, E., Ed.; Springer Fachmedien Wiesbaden: Wiesbaden, Germany, 2013; pp. 311–356. [Google Scholar] [CrossRef]
  8. Schinagl, K. Numerische Simulation von chemischen Reaktionen in Flüssigkeiten. Ph.D. Thesis, Rheinische Friedrich-Wilhelms-Universität Bonn, Bonn, Germany, 2013. [Google Scholar]
  9. Roland, M. Numerische Simulation von Fällungsprozessen mittels Populationsbilanzen. Ph.D. Thesis, Universität des Saarlandes, Saarbrücken, Germany, 2010. [Google Scholar]
  10. Chen, J.; Wang, H.; Liew, K.; Shen, S. A Fully Coupled Chemomechanical Formulation with Chemical Reaction Implemented by Finite Element Method. J. Appl. Mech. Trans. ASME 2019, 86. [Google Scholar] [CrossRef]
  11. Rodrigues, J. Obstacle Problems in Mathematical Physics; Elsevier: Amsterdam, The Netherlands, 1987. [Google Scholar]
  12. Shillor, M.; Sofonea, M.; Telega, J.J. 11 Contact with Wear or Adhesion. In Models and Analysis of Quasistatic Contact: Variational Methods; Springer: Berlin/Heidelberg, Germany, 2004; pp. 183–206. [Google Scholar] [CrossRef]
  13. Laursen, T.A. Finite Element Implementation of Contact Interaction. In Computational Contact and Impact Mechanics: Fundamentals of Modeling Interfacial Phenomena in Nonlinear Finite Element Analysis; Springer: Berlin/Heidelberg, Germany, 2003; pp. 145–209. [Google Scholar] [CrossRef]
  14. Brezzi, F.; Hager, W.; Hager, P. Error Estimates for the Finite Element Solution of Variational Inequalities. Numer. Math. 1977, 28, 431–443. [Google Scholar] [CrossRef]
  15. Wang, L.H. On the quadratic finite element approximation to the obstacle problem. Numer. Math. 2002, 92, 771–778. [Google Scholar] [CrossRef]
  16. Hinze, P.; Pimau, R.; Ulbrich, M.; Ulbrich, S. Optimization with PDE Constraints, 1st ed.; Mathematical Modelling: Theory and Applications; Springer Netherlands: Dordrecht, The Netherlands, 2009; Volume 23. [Google Scholar]
  17. Mäkelä, M.M.; Neittaanmäki, P. NONSMOOTH OPTIMIZATION-Analysis and Algorithms with Applications to Optimal Control, 1st ed.; World Scientific Publishing Co. Pte. Ltd.: Singapore, 1992. [Google Scholar]
  18. Byrd, R.H.; Gilbert, J.C.; Nocedal, J. A trust region method based on interior point techniques for nonlinear programming. Math. Program. 2000, 89, 149–185. [Google Scholar] [CrossRef] [Green Version]
  19. Glowinski, R. Numerical Methods for Nonlinear Variational Problems; Springer: Berlin/Heidelberg, Germany, 2008. [Google Scholar]
  20. Antipin, A.; Vasilieva, O. Augmented Lagrangian Method for Optimal Control Problems. In Analysis, Modelling, Optimization, and Numerical Techniques; Tost, G.O., Vasilieva, O., Eds.; Springer International Publishing: Cham, Switzerland, 2015; pp. 1–36. [Google Scholar]
  21. Ito, K.; Kunisch, K. The augmented lagrangian method for equality and inequality constraints in hilbert spaces. Math. Program. 1990, 46, 341–360. [Google Scholar] [CrossRef]
  22. Andrei, N. Penalty and Augmented Lagrangian Methods. In Continuous Nonlinear Optimization for Engineering Applications in GAMS Technology; Springer International Publishing: Cham, Switzerland, 2017; pp. 185–201. [Google Scholar] [CrossRef]
  23. Hintermüller, M.; Ito, K.; Kunisch, K. The primal-dual active set strategy as a semismooth Newton Method. SIAM J. Optim. 2003, 13, 865–888. [Google Scholar] [CrossRef] [Green Version]
  24. Carstensen, C.; Feischl, M.; Page, M.; Praetorius, D. Axioms of adaptivity. ELSVIER, Comput. Math. Appl. 2014, 67, 1195–1253. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  25. Kanzow, C.; Steck, D.; Wachsmuth, D. An Augmented Lagrangian Method for Optimization Problems in Banach Spaces. SIAM J. Control Optim. 2018, 56, 272–291. [Google Scholar] [CrossRef]
  26. Steck, D. Lagrange Multiplier Methods for Constrained Optimization and Variational Problems in Banach Spaces. Ph.D. Thesis, Universität Würzburg, Würzburg, Germany, 2018. [Google Scholar]
  27. Grossmann, C.; Roos, H.G.; Stynes, M. Numerical Treatment of Partial Differential Equations; Springer: Berlin/Heidelberg, Germany, 2007. [Google Scholar]
  28. Bochev, P.B.; Gunzburger, D. Least-Squares Finite Element Methods; Applied Mathematical Sciences; Springer: New York, NY, USA, 2009; Volume 166. [Google Scholar]
  29. Boffi, D.; Brezzi, F.; Fortin, M. Mixed Finite Element Methods and Applications; Springer: Berlin/Heidelberg, Germany, 2013. [Google Scholar]
  30. Braess, D. Finite Elemente, 5th ed.; Theorie, Schnelle Löser und Anwendungen in der Elastizitätstheorie; Springer: Heidelberg, Germany, 2012. [Google Scholar]
  31. Li, T.Y. Homotopy Methods. In Encyclopedia of Applied and Computational Mathematics; Engquist, B., Ed.; Springer: Berlin/Heidelberg, Germany, 2015; pp. 653–656. [Google Scholar] [CrossRef]
  32. Watson, L.T. Globally convergent homotopy methodsGlobally Convergent Homotopy Methods. In Encyclopedia of Optimization; Floudas, C.A., Pardalos, P.M., Eds.; Springer: Boston, MA, USA, 2009; pp. 1272–1277. [Google Scholar] [CrossRef]
  33. Evans, L. Partial Differential Equations; Graduate Studies in Mathematics; AMS: Providence, RI, USA, 1997; Volume 166. [Google Scholar]
  34. Tadmor, E. A review of numerical methods for nonlinear partial differential equations. Bull. Am. Math. Soc. 2012, 49, 507–554. [Google Scholar] [CrossRef] [Green Version]
  35. Grüne, L.; Junge, O. Gewöhnliche Differentialgleichungen, Eine Einführung aus der Perspektive der Dynamischen Systeme; Springer Spectrum: Wiesbaden, Germany, 2016; Volume 2. [Google Scholar]
  36. Attouch, H.; Buttazzo, G.; Michaille, G. Variational Analysis in Sobolev and BV Spaces; Society for Industrial and Applied Mathematics: Philadelphia, PA, USA, 2014. [Google Scholar] [CrossRef]
  37. Braides, A. A Handbook of Γ-Convergence. Stationary Partial Differential Equations; Chipot, P., Quittner, P., Eds.; Elsevier: Amsterdam, The Netherlands, 2006; Volume 3. [Google Scholar]
  38. DalMaso, G. An Introduction to Γ-Convergence; Birkhäuser Boston Inc.: Boston, MA, USA, 1993. [Google Scholar]
  39. Braides, A.; Defranceschi, A. Homogenization of Multiple Integrals; Oxford University Press, Inc.: New York, NY, USA, 1998. [Google Scholar]
  40. Alt, H.W. Lineare Funktionalanalysis, 6th ed.; Springer: Heidelberg, Germany, 2012. [Google Scholar]
  41. Zeidler, E. Variationsrechnung und Physik. In Springer-Handbuch der Mathematik III: Begründet von I.N. Bronstein und K.A. Semendjaew Weitergeführt von G. Grosche, V. Ziegler und D. Ziegler Herausgegeben von E. Zeidler; Zeidler, E., Ed.; Springer Fachmedien Wiesbaden: Wiesbaden, Germany, 2013; pp. 1–48. [Google Scholar] [CrossRef]
  42. Crank, J.; Nicolson, P. A practical method for numerical evaluation of solutions of partial differential equations of the heat-conduction type. Math. Proc. Camb. Philos. Soc. 1947, 43, 50–67. [Google Scholar] [CrossRef]
  43. Evans, G.A.; Blackledge, J.M.; Yardley, P.D. Finite Element Method for Ordinary Differential Equations. In Numerical Methods for Partial Differential Equations; Springer: London, UK, 2000; pp. 123–164. [Google Scholar] [CrossRef]
  44. Rockafellar, R.T. Convex Analysis; Princeton University Press: Princeton, NJ, USA, 2015. [Google Scholar]
  45. Polak, E. Unconstrained Optimization. In Optimization: Algorithms and Consistent Approximations; Springer: New York, NY, USA, 1997; pp. 1–166. [Google Scholar] [CrossRef]
  46. Lange, K. Optimization, 2nd ed.; Springer Texts in Statistics; Springer: New York, NY, USA, 2013. [Google Scholar]
  47. Carstensen, C.; Rabus, H. Axioms of adaptivity with separate marking for data resolution. SIAM J. Numer. Anal. 2017, 55, 2644–2665. [Google Scholar] [CrossRef]
  48. Traxler, C. An algorithm for adaptive mesh refinement in n dimensions. Computing 1997, 59, 115–137. [Google Scholar] [CrossRef]
  49. Dörfler, W. A Convergent Adaptive Algorithm for Poisson’s Equation. SIAM J. Numer. Anal. 1996, 33, 1106–1124. [Google Scholar] [CrossRef]
  50. Carstensen, C.; Park, E.J. Convergence and Optimality of Adaptive Least Squares Finite Element Methods. SIAM J. Numer. Anal. 2015, 53, 43–62. [Google Scholar] [CrossRef]
  51. Hellwig, F. Adaptive Discontinuous Petrov-Galerkin Finite-Element-Methods. Ph.D. Thesis, Humboldt-Universität zu Berlin, Mathematisch-Naturwissenschaftliche Fakultät, Berlin, Germany, 2019. [Google Scholar] [CrossRef]
  52. Carstensen, C.; Dond, A.K.; Nataraj, N.; Pani, A.K. Error analysis of nonconforming and mixed FEMs for second-order linear non-selfadjoint and indefinite elliptic problems. Numer. Math. 2016, 133, 557–597. [Google Scholar] [CrossRef] [Green Version]
  53. Ramm, A.G. A Simple Proof of the Fredholm Alternative and a Characterization of the Fredholm Operators. Am. Math. Mon. 2001, 108, 855–860. [Google Scholar] [CrossRef]
  54. Schatz, A. An Observation Concerning Ritz-Galerkin Methods with Indefinite Bilinear Forms. Math. Comput. 1974, 28, 959–962. [Google Scholar] [CrossRef]
  55. Hellwig, F. Software for PhD Thesis “Adaptive Discontinuous Petrov-Galerkin Finite-Element-Methods”. Ph.D. Thesis, Humboldt-Universität zu Berlin, Mathematisch-Naturwissenschaftliche Fakultät,, Berlin, Germany, 2019. [Google Scholar] [CrossRef]
  56. Oertel, H.J.; Böhle, M. Strömungsmechnanik-Grundlagen, Grundgleichungen, Lösungsmethoden, Softwarebeispiele, 3rd ed.; Studium Technik, Vieweg+Teubner Verlag: Wiesbaden, Germany, 2004. [Google Scholar] [CrossRef]
  57. Pluschke, V. Anwendung der Rothe-Methode auf eine quasilineare parabolische Differentialgleichung. Math. Nachr. 1983, 114, 105–121. [Google Scholar] [CrossRef]
  58. Gerdes, W. The initial boundary value problem for the threedimensional heat equation treated with Rothe’s line method using integral equations [Die Lösung des Anfangs-Randwertproblems für die Wärmeleitungsgleichung im R3 mit einer Integralgleichungs-methode nach dem Rotheverfahrenmit einer Integralgleichungs-methode nach dem Rotheverfahren]. Computing 1978, 19, 251–268. [Google Scholar] [CrossRef]
Figure 1. Concentration profiles with negative concentrations c A (a), c B (b) and c C (c), obtained by approximation of (3), for the parameters that are given in Table 1.
Figure 1. Concentration profiles with negative concentrations c A (a), c B (b) and c C (c), obtained by approximation of (3), for the parameters that are given in Table 1.
Algorithms 14 00113 g001
Figure 2. Developement of the error estimators for the uniform and adaptive mesh refinement, for the approximation of (3) with the parameters given in Table 1.
Figure 2. Developement of the error estimators for the uniform and adaptive mesh refinement, for the approximation of (3) with the parameters given in Table 1.
Algorithms 14 00113 g002
Figure 3. Concentrationprofiles (a,d,g), evaluation of the Lagrangian multipliers (b,e,h) and estimators (c,f,i) during the augmented Lagrangian scheme in the 1-st, 43-rd, and 85-th itartion w.r.t. parameters that are given in Table 1 and uniform mesh refinement.
Figure 3. Concentrationprofiles (a,d,g), evaluation of the Lagrangian multipliers (b,e,h) and estimators (c,f,i) during the augmented Lagrangian scheme in the 1-st, 43-rd, and 85-th itartion w.r.t. parameters that are given in Table 1 and uniform mesh refinement.
Algorithms 14 00113 g003
Figure 4. Development of α during the augmented Lagrangian algorithm.
Figure 4. Development of α during the augmented Lagrangian algorithm.
Algorithms 14 00113 g004
Figure 5. Concentration profiles (a,d,g), evaluation of the Lagrangian multipliers (b,e,h) and estimators (c,f,i) during the augmented Lagrangian scheme in the 1-st, 43-rd and 85-th itartion w.r.t. parameters that are given in Table 1 and adaptive mesh refinement.
Figure 5. Concentration profiles (a,d,g), evaluation of the Lagrangian multipliers (b,e,h) and estimators (c,f,i) during the augmented Lagrangian scheme in the 1-st, 43-rd and 85-th itartion w.r.t. parameters that are given in Table 1 and adaptive mesh refinement.
Algorithms 14 00113 g005aAlgorithms 14 00113 g005b
Figure 6. Developement of the error estimators for the uniform and adaptive mesh refinement, for the approximation of (3) with the parameters given in Table 2.
Figure 6. Developement of the error estimators for the uniform and adaptive mesh refinement, for the approximation of (3) with the parameters given in Table 2.
Algorithms 14 00113 g006
Figure 7. Concentration profiles (a,d,g), evaluation of the Lagrangian multipliers (b,e,h) and estimators (c,f,i) during the augmented Lagrangian scheme in the 1-st, 44-th, and 89-th itartion w.r.t. parameters that are given in Table 2 and uniform mesh refinement.
Figure 7. Concentration profiles (a,d,g), evaluation of the Lagrangian multipliers (b,e,h) and estimators (c,f,i) during the augmented Lagrangian scheme in the 1-st, 44-th, and 89-th itartion w.r.t. parameters that are given in Table 2 and uniform mesh refinement.
Algorithms 14 00113 g007
Figure 8. Concentration profiles (a,d,g), evaluation of the Lagrangian multipliers (b,e,h) and estimators (c,f,i) during the augmented Lagrangian scheme in the 1-st, 44-th and 89-th itartion w.r.t. parameters that are given in Table 2 and adaptive mesh refinement.
Figure 8. Concentration profiles (a,d,g), evaluation of the Lagrangian multipliers (b,e,h) and estimators (c,f,i) during the augmented Lagrangian scheme in the 1-st, 44-th and 89-th itartion w.r.t. parameters that are given in Table 2 and adaptive mesh refinement.
Algorithms 14 00113 g008
Figure 9. Development of the error estimators for the uniform and adaptive mesh refinement, for the approximation of (3) with parameters given in Table 3.
Figure 9. Development of the error estimators for the uniform and adaptive mesh refinement, for the approximation of (3) with parameters given in Table 3.
Algorithms 14 00113 g009
Figure 10. Concentration profiles (a,d,g), evaluation of the Lagrangian multipliers (b,e,h) and estimators (c,f,i) during the augmented Lagrangian scheme in the 1-st, 44-th and 89-th iteration w.r.t. the parameters given in Table 3 and uniform mesh refinement.
Figure 10. Concentration profiles (a,d,g), evaluation of the Lagrangian multipliers (b,e,h) and estimators (c,f,i) during the augmented Lagrangian scheme in the 1-st, 44-th and 89-th iteration w.r.t. the parameters given in Table 3 and uniform mesh refinement.
Algorithms 14 00113 g010
Figure 11. Concentration profiles (a,d,g), evaluation of the Lagrangian multipliers (b,e,h) and estimators (c,f,i) during the augmented Lagrangian scheme in the 1-st, 44-th and 89-th iteration w.r.t. parameters given in Table 3 and adaptive mesh refinement.
Figure 11. Concentration profiles (a,d,g), evaluation of the Lagrangian multipliers (b,e,h) and estimators (c,f,i) during the augmented Lagrangian scheme in the 1-st, 44-th and 89-th iteration w.r.t. parameters given in Table 3 and adaptive mesh refinement.
Algorithms 14 00113 g011
Figure 12. Concentration profiles c A , c B and c C with negative concentrations for (3) with parameters given in Table 1 and adaptive mesh refinement in 2d.
Figure 12. Concentration profiles c A , c B and c C with negative concentrations for (3) with parameters given in Table 1 and adaptive mesh refinement in 2d.
Algorithms 14 00113 g012
Figure 13. Developement of the error estimators for the uniform and adaptive mesh refinement, for the approximation of (3) with the parameters given in Table 1, in 2d.
Figure 13. Developement of the error estimators for the uniform and adaptive mesh refinement, for the approximation of (3) with the parameters given in Table 1, in 2d.
Algorithms 14 00113 g013
Figure 14. Species distributions c A (a,d,g), c B (b,e,h) and c C (c,f,i) as well as error estimators (j,k,l) in the 1st, 83rd and 166th iteation of the augmented Lagrangian algorithm with adaptive mesh refinement, w.r.t. the parameters that are given in Table 1.
Figure 14. Species distributions c A (a,d,g), c B (b,e,h) and c C (c,f,i) as well as error estimators (j,k,l) in the 1st, 83rd and 166th iteation of the augmented Lagrangian algorithm with adaptive mesh refinement, w.r.t. the parameters that are given in Table 1.
Algorithms 14 00113 g014aAlgorithms 14 00113 g014b
Figure 15. Species distributions c A (a,d,g), c B (b,e,h) and c C (c,f,i) in the 1st, 80th and 181st iteation of the augmented Lagrangian algorithm with adaptive mesh refinement, w.r.t. the parameters that are given in Table 2.
Figure 15. Species distributions c A (a,d,g), c B (b,e,h) and c C (c,f,i) in the 1st, 80th and 181st iteation of the augmented Lagrangian algorithm with adaptive mesh refinement, w.r.t. the parameters that are given in Table 2.
Algorithms 14 00113 g015aAlgorithms 14 00113 g015b
Figure 16. Concentration profiles c A , (a), c B , (b), c C (c) as approximate result to (3), with parameters, as given in Table 1.
Figure 16. Concentration profiles c A , (a), c B , (b), c C (c) as approximate result to (3), with parameters, as given in Table 1.
Algorithms 14 00113 g016
Figure 17. Developement of the error estimators for the uniform and adaptive mesh refinement, for the approximation of (3) with parameters that are given in Table 1 on the L-shaped domain.
Figure 17. Developement of the error estimators for the uniform and adaptive mesh refinement, for the approximation of (3) with parameters that are given in Table 1 on the L-shaped domain.
Algorithms 14 00113 g017
Figure 18. Triangulations generated by uniform (left) and adaptive (right) refinement for the approximate solution of (3) with the parameters that are given in the Table 1.
Figure 18. Triangulations generated by uniform (left) and adaptive (right) refinement for the approximate solution of (3) with the parameters that are given in the Table 1.
Algorithms 14 00113 g018
Figure 19. Species distributions c A (a,d,g), c B (b,e,h) and c C (c,f,i) in the 1st, 94th and 188th iteation of the augmented Lagrangian algorithm with adaptive mesh refinement, w.r.t. the parameters that are given in Table 1.
Figure 19. Species distributions c A (a,d,g), c B (b,e,h) and c C (c,f,i) in the 1st, 94th and 188th iteation of the augmented Lagrangian algorithm with adaptive mesh refinement, w.r.t. the parameters that are given in Table 1.
Algorithms 14 00113 g019aAlgorithms 14 00113 g019b
Figure 20. Concentration profiles c A , (a), c B , (b), c C (c) as approximative result to (3) with parameters in Table 2.
Figure 20. Concentration profiles c A , (a), c B , (b), c C (c) as approximative result to (3) with parameters in Table 2.
Algorithms 14 00113 g020
Figure 21. Developement of the error estimators for the uniform and adaptive mesh refinement, for the approximation of (3) with parameters that are given in Table 2 on the L-shaped domain.
Figure 21. Developement of the error estimators for the uniform and adaptive mesh refinement, for the approximation of (3) with parameters that are given in Table 2 on the L-shaped domain.
Algorithms 14 00113 g021
Figure 22. Triangulations generated by uniform (left) and adaptive (right) refinement for the approximate solution of (3) with the parameters that are given in the Table 2.
Figure 22. Triangulations generated by uniform (left) and adaptive (right) refinement for the approximate solution of (3) with the parameters that are given in the Table 2.
Algorithms 14 00113 g022
Figure 23. Species distributions c A (a,d,g), c B (b,e,h) and c C (c,f,i) in the 1st, 141st, and 283th iteration of the augmented Lagrangian algorithm with adaptive mesh refinement, w.r.t. the parameters given in Table 2.
Figure 23. Species distributions c A (a,d,g), c B (b,e,h) and c C (c,f,i) in the 1st, 141st, and 283th iteration of the augmented Lagrangian algorithm with adaptive mesh refinement, w.r.t. the parameters given in Table 2.
Algorithms 14 00113 g023
Figure 24. Concentration profiles c Cu 2 + , c β ala c Cu ( β ala ) with negative concentrations w.r.t. the model parameters discussed in Table 7.
Figure 24. Concentration profiles c Cu 2 + , c β ala c Cu ( β ala ) with negative concentrations w.r.t. the model parameters discussed in Table 7.
Algorithms 14 00113 g024
Figure 25. Concentration profiles c Cu 2 + , c β ala c Cu ( β ala ) (a,c,e) with corresponding Lagrangian multipliers (b,d,f) in the 1st, 38th, and 75th iteration of the augmented Lagrangian algorithm.
Figure 25. Concentration profiles c Cu 2 + , c β ala c Cu ( β ala ) (a,c,e) with corresponding Lagrangian multipliers (b,d,f) in the 1st, 38th, and 75th iteration of the augmented Lagrangian algorithm.
Algorithms 14 00113 g025
Table 1. The first example of physical parameters of the diffusion–reaction model for the complexation of K.
Table 1. The first example of physical parameters of the diffusion–reaction model for the complexation of K.
SpeciesD in m 2 s k 1 in 1 s k 2 in m 3 mol s γ S
A 1 / 2 --0
B 1 / 3 --0
C 1 / 4 000
Table 2. Second example of physical parameters of the diffusion–reaction model for the complexation of K.
Table 2. Second example of physical parameters of the diffusion–reaction model for the complexation of K.
SpeciesD in m 2 s k 1 in 1 s k 2 in m 3 mol s γ S
A 1 / 2 --0
B 1 / 3 --0
C 1 / 4 010
Table 3. Third example of physical parameters of the diffusion–reaction model for the complexation of K.
Table 3. Third example of physical parameters of the diffusion–reaction model for the complexation of K.
SpeciesD in m 2 s k 1 in 1 s k 2 in m 3 mol s γ A
A 1 / 2 --0
B 1 / 3 --0
C 1 / 4 110
Table 4. Overview of number of iterations of the augmented Lagrangian Algorithm 1 and CPU times for the different parameter sets and uniform resp. adaptive mesh refinement.
Table 4. Overview of number of iterations of the augmented Lagrangian Algorithm 1 and CPU times for the different parameter sets and uniform resp. adaptive mesh refinement.
Parameter SetType of RefinementNumber of IterationsCPU-Time
Table 1Uniform85 4.3157 e + 04 s
Table 1Adaptive85 1.0347 e + 04 s
Table 2Uniform89 5.0281 e + 04 s
Table 2Adaptive89 9.9426 e + 03 s
Table 3Uniform89 2.0356 e + 05 s
Table 3Adaptive89 4.7214 e + 04 s
Table 5. An overview of number of iterations of the augmented Lagrangian Algorithm 1 and CPU running times for the different parameter sets and uniform resp. adaptive mesh refinement.
Table 5. An overview of number of iterations of the augmented Lagrangian Algorithm 1 and CPU running times for the different parameter sets and uniform resp. adaptive mesh refinement.
Parameter SetType of RefinementGeometyNumber of IterationsCPU-Time
Table 1SquareUniform280 730.5068 s
Table 1SquareAdaptive166 615.8496 s
Table 1L-ShapedUniform 53,639 3.1204 e + 05 s
Table 1L-ShapedAdaptive188 662.2452 s
Table 2SquareUniform287 881.2332 s
Table 2SquareAdaptive181 645.7126 s
Table 2L-ShapedUniform 53,553 3.1554 e + 05 s
Table 2L-ShapedAdaptive283 742.0187 s
Table 6. Comparison of the augmented Lagrangian scheme discussed in this paper with adaptive mesh refinement (AALA), the classical augmented Lagrangian algorithm (CALA), and the Primal-Dual Active-Set Strategy (PDAS), for different space dimensions and parameter sets.
Table 6. Comparison of the augmented Lagrangian scheme discussed in this paper with adaptive mesh refinement (AALA), the classical augmented Lagrangian algorithm (CALA), and the Primal-Dual Active-Set Strategy (PDAS), for different space dimensions and parameter sets.
Parameter SetDimensionCPU Time AALACPU Time CALACPU Time PDAS
cf. Table 21d 9.9426 e + 03 s8.8871 e + 03 s 4.1808 e + 03 s
cf. Table 22d 742.0187 s4.4895 e + 04 s 1.1331 e + 04 s
cf. Table 31d 4.7214 e + 04 s2.0356 e + 05 s-
Table 7. Physical parameters of the diffusion–reaction model for the complexation of Cu L , with β -alanine as ligand L, in a diffusion boundary-layer.
Table 7. Physical parameters of the diffusion–reaction model for the complexation of Cu L , with β -alanine as ligand L, in a diffusion boundary-layer.
SpeciesD in m 2 s k 1 in 1 s k 2 in m 3 mol s γ S
Cu 7.14 × 10 10 --0
L 9.29 × 10 10 --0
Cu L 9.29 × 10 10 2 × 10 5 110
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Schwoebel, S.D.; Mehner, T.; Lampke, T. On a Robust and Efficient Numerical Scheme for the Simulation of Stationary 3-Component Systems with Non-Negative Species-Concentration with an Application to the Cu Deposition from a Cu-(β-alanine)-Electrolyte. Algorithms 2021, 14, 113. https://0-doi-org.brum.beds.ac.uk/10.3390/a14040113

AMA Style

Schwoebel SD, Mehner T, Lampke T. On a Robust and Efficient Numerical Scheme for the Simulation of Stationary 3-Component Systems with Non-Negative Species-Concentration with an Application to the Cu Deposition from a Cu-(β-alanine)-Electrolyte. Algorithms. 2021; 14(4):113. https://0-doi-org.brum.beds.ac.uk/10.3390/a14040113

Chicago/Turabian Style

Schwoebel, Stephan Daniel, Thomas Mehner, and Thomas Lampke. 2021. "On a Robust and Efficient Numerical Scheme for the Simulation of Stationary 3-Component Systems with Non-Negative Species-Concentration with an Application to the Cu Deposition from a Cu-(β-alanine)-Electrolyte" Algorithms 14, no. 4: 113. https://0-doi-org.brum.beds.ac.uk/10.3390/a14040113

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop