Models - Echem.diffuse Double Layer
Models - Echem.diffuse Double Layer
3b
Model Definition
The model geometry is in 1D (a single interval between 0 and L) and consists of one
single domain, representing the electrolyte phase, including the diffuse double layer.
DOMAIN EQUATIONS
The concentrations, ci (mol/m3, i=+,-), of two ions of opposite charge (+1/-1) are
solved for in the electrolyte phase. The flux (Ni, mol/(m2s)) of these are described by
the Nernst-Planck equation
N i = D i c i u m, i z i Fc i
(1)
with Di (m2/s) the diffusion coefficient, um,i (smol/kg) the mobility, F (C/mol)
Faradays constant, and (V) the potential.
2013 COMSOL
1 |
(2)
(3)
where is the permittivity (F/m) and the charge density (C/m3), depending on the
ion concentrations according to:
= F ( c+ c- )
(4)
BOUNDARY CONDITIONS
The boundaries reside in the reaction plane of the electrodes on each side. The same
electrode reaction, in which the positive ion, S+,participates, takes place on both
electrodes.
+
S + e S(s)
(5)
a F
c F
r = K a c M exp ----------------- K c + exp --------------------
RT
RT
c
(6)
where Ka and Kc (m/s) are the anodic and cathodic rate constants, cM the metal
species activity (mol/m3, constant) and a and c the anodic and cathodic transfer
coefficients. (V) is the difference in potential between the metal phase, M (V),
and the reaction plane:
= M
(7)
The electrode reaction renders an inward flux for the positive ion according to
n N+ = r
(8)
on both boundaries. For the negative ion, a zero flux condition is used.
n N- = 0
(9)
Assuming the reaction plane to be placed at the boundary between the inner
(compact) and diffuse double layer, and with the assumption of a Stern compact layer
2 |
2013 COMSOL
of a constant thickness, S (m), one can derive the following Robin type of boundary
condition for the potential:
+ S ( n ) = M
(10)
This condition reduces to a Dirichlet voltage condition for S = 0, that is, in the
absence of a Stern layer. For the case of a non-zero stern layer thickness, the condition
can be reformulated as a surface charge condition
n ( ) = --------S
(11)
The problem formulated above can now be solved for given voltages of M in the
metal electrode phase for each side. Typically one grounds one electrode and specifies
the cell voltage as V so that
M
M
x=0
x=L
= 0
(12)
= V
However, to solve for a given cell current density, icell (A/m2), with V not known a
priori, an additional global equation, solving for V, is used, fulfilling the condition:
i cell = Fr
(13)
x=L
When solving this system for a stationary solution, the negative ion concentration
needs an additional boot-strap to render a stable, unique, solution. This is done by
adding the following global constraint to the equation system:
L
c0 L =
0 c- dx
(14)
where c0 is the initial ion concentration (mol/m3), equal for both ions.
The constraint assures that the total number of negative ions is preserved during the
iterative solver process. (For time-dependent simulations the constraint can be
omitted.)
2013 COMSOL
3 |
A number of dimensionless numbers can be derived that govern the behavior of the
cell. The problem is solved using a parametric study for a dimensionless parameter
D = (0.001, 0.01, 0.1), defined as
D = D L
D =
RT --------------2
2F c 0
(15)
(16)
(17)
The rate of the anodic reaction term is governed by the dimensionless number kr = 10,
K r Lc M
k r = -----------------4D + c 0
(18)
and the Stern layer thickness is set using the dimensionless number =0.1,
S
= ------D
(19)
4 |
2013 COMSOL
x
x = ---L
( c+ + c- )
c = --------------------2c 0
(20)
( c+ c- )
= -------------------2c 0
F
= -------RT
2013 COMSOL
5 |
6 |
2013 COMSOL
References
1. M. Bazant, K. Chu, and B. Bayly. Current-Voltage Relations for Electrochemical
Thin Films, SIAM Journal of Applied Math, vol. 65 (2005), no. 5, pp. 14631484.
2. K. Chu, and M. Bazant, Electrochemical Thin Films at and Above the Classical
Limiting Current, SIAM Journal of Applied Math, vol. 65 (2005), no. 5, pp. 1485
1505.
2013 COMSOL
7 |
Modeling Instructions
MODEL WIZARD
11 In the Add physics tree, select Mathematics>ODE and DAE Interfaces>Global ODEs and
DAEs (ge).
12 Click Add Selected.
13 Click Next.
14 Find the Studies subsection. In the tree, select Preset Studies for Selected
Physics>Stationary.
15 Click Finish.
GLOBAL DEFINITIONS
Parameters
1 In the Model Builder window, right-click Global Definitions and choose Parameters.
2 In the Parameters settings window, locate the Parameters section.
3 Click Load from File.
4 Browse to the models Model Library folder and double-click the file
diffuse_double_layer_parameters.txt.
8 |
2013 COMSOL
GEOMETRY 1
Interval 1
1 In the Model Builder window, under Model 1 right-click Geometry 1 and choose
Interval.
2 In the Interval settings window, locate the Interval section.
3 In the Right endpoint edit field, type L.
4 Click the Build All button.
5 Click the Zoom Extents button on the Graphics toolbar.
DEFINITIONS
Proceed by adding some variable expressions. (Some of the expressions use variables
that have not yet been defined and are hence marked in orange color, this is expected.)
Variables 1
1 In the Model Builder window, under Model 1 right-click Definitions and choose
Variables.
2 In the Variables settings window, locate the Geometric Entity Selection section.
3 From the Geometric entity level list, choose Boundary.
4 Select Boundaries 1 and 2 only.
5 In the Variables settings window, locate the Variables section.
6 Click Load from File.
7 Browse to the models Model Library folder and double-click the file
diffuse_double_layer_variables.txt.
Variables 2
1 In the Model Builder window, right-click Definitions and choose Variables.
2 In the Variables settings window, locate the Geometric Entity Selection section.
3 From the Geometric entity level list, choose Boundary.
4 Select Boundary 1 only.
5 Locate the Variables section. In the table, enter the following settings:
Name
Expression
Description
phiM
0[V]
2013 COMSOL
9 |
Variables 3
1 Right-click Definitions and choose Variables.
2 In the Variables settings window, locate the Geometric Entity Selection section.
3 From the Geometric entity level list, choose Boundary.
4 Select Boundary 2 only.
5 Locate the Variables section. In the table, enter the following settings:
Name
Expression
Description
phiM
Integration 1
Add integration coupling operators to be used when setting up the global voltage
equation and the global constraint.
1 Right-click Definitions and choose Model Couplings>Integration.
2 In the Integration settings window, locate the Source Selection section.
3 From the Geometric entity level list, choose Boundary.
4 Select Boundary 2 only.
Integration 2
1 Right-click Definitions and choose Model Couplings>Integration.
2 Select Domain 1 only.
ELECTROSTATICS
Charge Conservation 1
Now start setting up the physics, begin with the Electrostatics physics (Poisson's
equation).
1 In the Model Builder window, under Model 1>Electrostatics click Charge Conservation
1.
2 In the Charge Conservation settings window, locate the Electric Field section.
3 From the r list, choose User defined.
10 |
2013 COMSOL
3 In the Space Charge Density settings window, locate the Space Charge Density section.
4 In the v edit field, type F_const*Z*(cp-cm).
section.
4 In the s edit field, type rho_s.
TR A N S P O R T O F D I L U T E D S P E C I E S
Now set up the model for the transport of the ions. Enable migration and change the
element order to 2 to match the default element order of the Electrostatics physics.
1 In the Model Builder window, under Model 1 click Transport of Diluted Species.
2 In the Transport of Diluted Species settings window, locate the Transport Mechanisms
section.
3 Clear the Convection check box.
4 Select the Migration in electric field check box.
5 In the Model Builder windows toolbar, click the Show button and select Discretization
in the menu.
6 Click to expand the Discretization section. From the Concentration list, choose
Quadratic.
2013 COMSOL
11 |
Flux 1
1 In the Model Builder window, right-click Transport of Diluted Species and choose Flux.
2 Select Boundaries 1 and 2 only.
3 In the Flux settings window, locate the Inward Flux section.
4 Select the Species cp check box.
5 In the N0,cp edit field, type r.
Initial Values 1
1 In the Model Builder window, under Model 1>Transport of Diluted Species click Initial
Values 1.
2 In the Initial Values settings window, locate the Initial Values section.
3 In the cp edit field, type cref.
4 In the cm edit field, type cref.
5 In the Model Builder windows toolbar, click the Show button and select Advanced
Physics Options in the menu.
Global Constraint 1
Add a global constraint to boot-strap the average concentration of negative ions to the
initial value.
1 In the Model Builder window, right-click Transport of Diluted Species and choose
Global>Global Constraint.
2 In the Global Constraint settings window, locate the Global Constraint section.
3 In the Constraint expression edit field, type intop2(cm)-(cref*L).
GLOBAL ODES AND DAES
Global Equations 1
Finally, add the equation for the cell potential.
1 In the Model Builder window, under Model 1>Global ODEs and DAEs click Global
Equations 1.
2 In the Global Equations settings window, locate the Global Equations section.
3 In the table, enter the following settings:
12 |
Name
f(u,ut,utt,t)
Description
intop1(iloc)-icell
Cell voltage
2013 COMSOL
MESH 1
Edit the default meshing sequence, make the mesh parameter dependent to make sure
the mesh is always a well resolved at the boundaries. (The parametric sweep will change
the size of the geometry during the solver process.)
Edge 1
In the Model Builder window, under Model 1 right-click Mesh 1 and choose Edit
Physics-Induced Sequence.
Size 1
1 In the Model Builder window, under Model 1>Mesh 1 right-click Edge 1 and choose
Size.
2 In the Size settings window, locate the Element Size section.
3 Click the Custom button.
4 Locate the Element Size Parameters section. Select the Maximum element size check
box.
5 In the associated edit field, type L/20.
Size 2
1 Right-click Edge 1 and choose Size.
2 In the Size settings window, locate the Geometric Entity Selection section.
3 From the Geometric entity level list, choose Boundary.
4 Select Boundaries 1 and 2 only.
5 Locate the Element Size section. Click the Custom button.
6 Locate the Element Size Parameters section. Select the Maximum element size check
box.
7 In the associated edit field, type lambdaD/10.
Edge 1
Right-click Edge 1 and choose Build Selected.
STUDY 1
Parametric Sweep
1 In the Model Builder window, right-click Study 1 and choose Parametric Sweep.
2 In the Parametric Sweep settings window, locate the Study Settings section.
3 Click Add.
2013 COMSOL
13 |
epsilon
Reproduce the figures from the Results and Discussion section in the following way:
1D Plot Group 1
1 In the Model Builder window, right-click Results and choose 1D Plot Group.
2 Right-click 1D Plot Group 1 and choose Line Graph.
3 Select Domain 1 only.
4 In the Line Graph settings window, locate the y-Axis Data section.
5 In the Expression edit field, type (cp+cm)/(2*cref).
6 Locate the x-Axis Data section. From the Parameter list, choose Expression.
7 In the Expression edit field, type x/L.
8 Click to expand the Legends section. Select the Show legends check box.
9 In the Model Builder window, click 1D Plot Group 1.
10 In the 1D Plot Group settings window, locate the Data section.
11 From the Data set list, choose Solution 2.
12 Click to expand the Title section. From the Title type list, choose Manual.
13 In the Title text area, type Dimensionless concentration.
14 Locate the Legend section. From the Position list, choose Lower right.
15 Click the Plot button.
16 Right-click 1D Plot Group 1 and choose Rename.
17 Go to the Rename 1D Plot Group dialog box and type Dimensionless
concentration in the New name edit field.
18 Click OK.
14 |
2013 COMSOL
Dimensionless concentration 1
1 Right-click 1D Plot Group 1 and choose Duplicate.
2 In the 1D Plot Group settings window, locate the Title section.
3 In the Title text area, type Dimensionless charge density.
4 Locate the Legend section. From the Position list, choose Upper right.
5 In the Model Builder window, expand the Dimensionless concentration 1 node, then
11 Click OK.
2013 COMSOL
15 |
16 |
2013 COMSOL