Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
◅▊⋨⌤ᶈ◅▊
Ệ῭ᵙ⋘
ࢄࠤ෮ঃଡਏ࢘ߑଲ׆ୢր୨ଡCOMSOL Multiphysics
ֻවॷୀഉൾଲਆ (6*
ࠜଲਓசߦෘۗۍ
1
*/%&9
*OUSPEVDUJPOUPUIF$IFNJDBMGJFME
5IFSNBM%FDPNQPTJUJPO
0QUJNJ[BUJPOPGB$BUBMZUJD.JDSPSFBDUPS
8JSF&MFDUSPEF
&MFDUSPEFQPTJUJPOPGBO*OEVDUPS$PJM
2
*OUSPEVDUJPOUP$IFNJDBM
1
5.ϭ Products
Chemical Field
2
CHEMICAL 1
- Chemical Reaction Engineering
Chemical Reaction
g g
Engineering
3
0D, very few unknowns. Fast (seconds). 3D Multiphysics. Detailed.
Idealized reacting systems. Lots of unknowns.
Heavy computations.
Modeling Strategy
Space-independent
d ci
Ri
Parameter estimation
dt
Batch Reactor Semi-Batch Reactor
d u x ci
Ri
dx
CSTR Reactor Plug Flow Reactor
Space-dependent
wci
Dci uci Ri
wt
4
Define Chemical Reaction Formulas in perfectly mixed environme
nt (no change in space*)
5
with CAPE-OPEN(Thermodynaimcs)
6
Transport Interfaces
7
Interactions
Transport Phenomena
Temperature(T) Concentration(c)
Velocity(u)
Cp rho
Pressure(p) Q rho
k D R
rho
mu
Convection Convection
Reaction Kinetics
CHEMICAL 2 - Electrochemistry
Batteries &
Electrochemistry
Fuel Cells
ࢷ̛ଝଥ۱ ࢷएٗߞ
ଥ۱
Electrodeposition Corrosion
osion
ऎ९ଥ۱ ٕݥଥ۱
8
The Electrochemistry Interfaces
• Current Distribution Interfaces
– Generic Electrochemical Cell Modeling
– Nernst-Planck Equations
– Flat or porous electrodes Θ&ŽŶůLJї
• Electroanalysis ůĞĐƚƌŽĚĞƉŽƐŝƚŝŽŶŽŶůLJї
Electrochemical Reactions
Settings windows for
electrode reactions
for secondary current
• User-Defined distribution
• Bulter-Volmer
• Linearized Bulter-Volmer
• Anodic Tafel equation
• Cathodic Tafel equation
• Concentration
dependent kinetics
9
Electrodeposition & Corrosion – Deformed
Geometry
With Moving Geometry
10
5IFSNBM%FDPNQPTJUJPO
11
Thermal Decomposition in a
Parallel Plate Reactor
Introductions
outlet
R OH
Heated cylinder R OH
R
O O
R
Inlet
12
Coupled Three phenomena
Navier-Stokes Equations
velocity
Convection and Diffusion, Reaction
momentum Heat
Mass
13
Momentum : Navier-stokes equations
wu
U
wt
T
K u u U u u p F
u
0
wT
U CP kT Q U C P u T T
wt
momentum Heat
Mass
14
Momentum : Navier-stokes equations
wu
U
wt
T
K u u U u u p F
u
0
wT
U CP kT Q U C P u T T
wt
Ạ㦤㷨⬀☘ὤ CAD
(2D)
᷸ Solver
䟸㷌⫠ Postprocessing
15
Coupled Three phenomena
Navier-Stokes Equations
velocity
Convection and Diffusion, Reaction
Results - velocity
16
Results - Temperature
Results - Concentration
17
Solved with COMSOL Multiphysics 5.1
Thermal Decomposition
Introduction
In this tutorial, the heat and mass transport equations are coupled to laminar flow in
order to model exothermic reactions in a parallel plate reactor. It exemplifies how you
can use COMSOL Multiphysics to systematically set up and solve increasingly
sophisticated models using predefined physics interfaces.
Model Definition
In this model you investigate the unimolecular decomposition of a chemical passing
through a parallel plate reactor. A heat–sensitive compound is present in a water
solution. After entering the reactor, the liquid first experiences expansion – due to a
step in the bottom plate. Before exiting, the fluid also passes a heated cylinder.
Top plate
Outlet
Heated
cylinder
Inlet
Bottom plate
Figure 1: 3D geometry of a parallel plate reactor. The reacting fluid is heated as it passes
the cylinder.
The short inlet section of the reactor is considerably wider than it is high. With such a
geometry, it is reasonable to assume that the laminar flow develops a parabolic velocity
profile between the top and bottom plate. At the same time, the velocity between the
side walls is expected to be close to constant (Ref. 1). As a consequence, you can
reduce the modeling domain to 2D without dramatically reducing the validity of the
1 | THERMAL DECOMPOSITION
18
Solved with COMSOL Multiphysics 5.1
Bottom plate
Figure 2: Neglecting edge effects, the modeling geometry can be reduced to 2D.
CHEMISTRY
A heat–sensitive chemical (A) undergoes thermal decomposition into fragments (F)
according to the following unimolecular reaction:
k
A F
rate = kc A
§ E ·
-----------¸
k = A exp ¨ – R (1)
© g T¹
In addition, the decomposition reaction is exothermic, and the rate of energy expelled
is given by:
Q = – rate ⋅ H
The conversion of species A in the reactor is a function of the residence time; that is,
it depends on the detailed fluid flow. Furthermore, the decomposition is influenced by
the temperature distribution. A coupled system of transport equations thus describes
the reactor.
2 | THERMAL DECOMPOSITION
19
Solved with COMSOL Multiphysics 5.1
M O M E N T U M TR A N S P O R T
The Navier-Stokes equations, which govern momentum transport and are solved by
default in the single-phase flow interfaces, give the compressible formulation of the
continuity:
∂ρ
------ + ∇ ⋅ ( ρu ) = 0 (2)
∂t
∂u 2
ρ ------- + ρ u ⋅ ∇u = – ∇p + ∇ ⋅ §© μ ( ∇u + ( ∇u ) T ) – --- μ ( ∇ ⋅ u )I·¹ + F (3)
∂t 3
Here, μ denotes the dynamic viscosity (SI unit: Ns/m2), u the velocity (SI unit: m/
s), ρ the density of the fluid (SI unit: kg/m3), p the pressure (SI unit: Pa), and F a
body force term (SI unit: N/m3). This particular model contains the solution to a
steady-state problem, so the first term in each of the equations above disappears.
Equation 2 governs the flow of a Newtonian fluid in the laminar flow regime. The flow
type in this specific model is determined in The Flow Regime.
Apart from the domain equations you also need to select proper boundary conditions.
At the inlet you specify a velocity vector normal to the boundary:
u ⋅ n = u0 (4)
At the outlet boundary you specify a pressure p = p 0 . Finally, at the surfaces of the
reactor plates and the heating cylinder you set the velocity to zero, that is, a no slip
boundary condition:
u = 0 (5)
By selecting the Laminar Flow interface you can easily associate the momentum
balance (Equation 2) and boundary conditions (Equation 4, Equation 5, and
Equation 5) with your modeling geometry.
E N E R G Y TR A N S P O R T
The energy balance equation applied to the reactor domain considers heat transfer
through convection and conduction:
∇ ⋅ ( – k ∇T ) + ρC p ( u ⋅ ∇ )T = Q (6)
3 | THERMAL DECOMPOSITION
20
Solved with COMSOL Multiphysics 5.1
In Equation 6, Cp denotes the specific heat capacity (SI unit: J/(kg·K)), k is the
thermal conductivity (SI unit: W/(m·K)), and Q is a sink or source term (SI unit: W/
m3).
At the inlet and at the surface of the heating cylinder you set a Temperature boundary
condition:
T = T0 (7)
T = T cyl (8)
At the outlet you set an Outflow boundary condition. This prescribes that all energy
passing through this boundary does so by means of convective transport. Equivalently,
this means that the heat flux due to conduction across the boundary is zero:
q cond ⋅ n = – k ∇T ⋅ n = 0 (9)
so that the resulting equation for the total heat flux becomes:
q ⋅ n = ρC p T u ⋅ n (10)
Finally, assume that no energy is transported across the reactor plates, that is, apply a
Thermal Insulation boundary condition:
q⋅n = 0 (11)
Using the Heat Transfer in Fluids interface, you can associate the energy balance
(Equation 6) and boundary conditions (Equation 7 to Equation 11) with the
modeling geometry.
M A S S TR A N S P O R T
The mass transfer in the reactor domain is given by the stationary convection and
diffusion equation:
∇ ⋅ ( – D i ∇c i ) + u ⋅ ∇c i = R i (12)
where Di denotes its diffusion coefficient (SI unit: m2/s), and Ri denotes the reaction
term (SI unit: mol/(m3·s)).
4 | THERMAL DECOMPOSITION
21
Solved with COMSOL Multiphysics 5.1
For the boundary conditions, specify the concentration of compound A at the inlet:
c i = c i, 0 (13)
At the outlet, specify that the mass flow through the boundary is dominated by
convection. This assumes that any mass flux due to diffusion across this boundary is
zero:
n ⋅ ( – D i ∇c i ) = 0 (14)
and that:
Ni ⋅ n = ci u ⋅ n (15)
Finally, at the surfaces of the reactor plates and the heating cylinder, assume that no
mass is transported across the boundaries—that is, an insulation boundary condition:
Ni ⋅ n = 0 (16)
By selecting the Transport in Diluted Species interface you can easily associate the mass
balance (Equation 12) and boundary conditions (Equation 13 to Equation 16) with
the modeling geometry.
Another part of the preparations involves selecting the appropriate physics interfaces
and investigating the couplings between different transport equations.
Transport Properties
The term transport properties refers to the physical properties occurring in the
transport equations (see the previous section). The momentum and heat transfer
equations (Equation 2 and Equation 6) require fluid-specific transport properties:
• Viscosity (η)
• Density (ρ)
• Thermal conductivity (k)
• Heat capacity (Cp)
5 | THERMAL DECOMPOSITION
22
Solved with COMSOL Multiphysics 5.1
The mass transport equation (Equation 12) requires the following species-specific
property:
• Diffusivities (Di)
You need to supply appropriate values of the transport properties to the physics
interfaces in order to ensure accurate simulation results. In the present example, water
with the dissolved compound A enters the reactor at 300 K. Because water is the
solvent, you can assume that its physical properties are representative for the entire
fluid. The warmest part of the reactor is held at 325 K. Table 1 lists the transport
properties of water as well as the diffusivity of A in water at 300 K and 325 K.
TABLE 1: PHYSICAL PROPERTIES OF LIQUID WATER
When you build this model you make use of the built-in material databases of
COMSOL Multiphysics, which automatically provides temperature-dependent
properties.
ρud
Re = -----------
η
As a rule of thumb, a Reynolds number between of 2000 and 2500 marks the
transition from stable streamlines to stable turbulent flow. It is always good practice to
evaluate the Reynolds number related to the specific flow conditions of the model,
because its magnitude guides you to choose the appropriate flow model and
corresponding physics interface.
In the present example, you can evaluate the Reynolds number using values from
Table 1 and setting the velocity to 5 × 10-4 m/s and the characteristic length to
0.007 m:
–4
997 ⋅ 5 ⋅ 10 ⋅ 0.007
Re = -----------------------------------------------------
–4
= 4
8.5 ⋅ 10
6 | THERMAL DECOMPOSITION
23
Solved with COMSOL Multiphysics 5.1
The Reynolds numbers are well within the limits of the laminar flow regime.
∂c i
+ ∇ ⋅ ( – D i ∇c i + c i u ) = R i (17)
∂t
depends on the velocity vector, u, which is solved for in the momentum transfer
equation (Equation 3).
∂T
ρC p + ∇ ⋅ ( – k ∇T ) + ρC p u ⋅ ∇T = Q
∂t
7 | THERMAL DECOMPOSITION
24
Solved with COMSOL Multiphysics 5.1
When attempting to solve a coupled system of equations such as the one illustrated
above, it is often a good idea to analyze the couplings involved and then approach the
solution in a stepwise fashion.
In the current model, you first neglect the heat of reaction, Q. This leads to a loose
two-way coupling between the transport equations:
• The momentum transport is weakly dependent on the energy and mass transport
through the material properties.
• The energy transport depends only on the momentum transport.
• The mass transport depends on both the momentum transport and the energy
transport.
This structure suggests that it is possible to solve the problem sequentially in the
following order: First solve the momentum transport and energy transport problem.
Then add the mass transport and investigate the difference.
In this case you must solve the equations describing all transport phenomena
simultaneously.
8 | THERMAL DECOMPOSITION
25
Solved with COMSOL Multiphysics 5.1
The cross-sectional area of the fluid increases at the step and decreases at the cylinder,
leading to a corresponding local reduction and then increase in the fluid velocity.
Recirculation zones appear after the step and the cylinder.
9 | THERMAL DECOMPOSITION
26
Solved with COMSOL Multiphysics 5.1
The water solution enters the reactor at a temperature of 300 K and is heated as it
passes the cylinder (325 K). Figure 4 shows the temperature distribution in the reactor
domain at steady state.
Figure 4: A water solution enters the reactor at 300 K and is heated by a cylinder kept at
325 K.
10 | THERMAL DECOMPOSITION
27
Solved with COMSOL Multiphysics 5.1
At the reactor inlet, the concentration of A is 1000 mol/m3. Figure 5 shows the
concentration of A as the compound undergoes decomposition.
These plots make it possible to identify some general trends. It is clear that
decomposition occurs mainly after the liquid has been heated by the cylinder. In the
first half of the reactor, where the temperature is relatively low, decomposition is still
fairly advanced near the wall and after the step. This is due to the longer residence times
in these areas. In the second part of the reactor, where heating takes place, regions with
relatively high concentrations of compound A are visible. This also makes physical
sense because the water velocity is relatively high.
The temperature distribution in the entire reactor is affected by the heat of reaction.
As shown in Figure 6, the maximum fluid temperature now exceeds the temperature
11 | THERMAL DECOMPOSITION
28
Solved with COMSOL Multiphysics 5.1
of the heating cylinder. Furthermore, the water temperature is higher than 300 K in
the region between the inlet and the cylinder.
Figure 6: Reactor temperature (K) when the heat of reaction is taken into account.
12 | THERMAL DECOMPOSITION
29
Solved with COMSOL Multiphysics 5.1
Figure 7 plots the rate of reaction as a function of the position in the reactor. Clearly,
significant reaction now occurs in the first part of the reactor, before the heating
cylinder.
Figure 7: Significant decomposition of compound A occurs in the first half of the reactor.
Reference
1. H. Schlichting, Boundary Layer Theory, 4th ed., McGraw Hill, p. 168, 1960.
Modeling Instructions
From the File menu, choose New.
NEW
1 In the New window, click Model Wizard.
13 | THERMAL DECOMPOSITION
30
Solved with COMSOL Multiphysics 5.1
MODEL WIZARD
1 In the Model Wizard window, click 2D.
2 In the Select physics tree, select Fluid Flow>Single-Phase Flow>Laminar Flow (spf).
3 Click Add.
4 Click Study.
5 In the Select study tree, select Preset Studies>Stationary.
6 Click Done.
GLOBAL DEFINITIONS
First define some parameters.
Parameters
1 On the Home toolbar, click Parameters.
2 In the Settings window for Parameters, locate the Parameters section.
3 Click Load from File.
4 Browse to the application’s Application Library folder and double-click the file
thermal_decomposition_parameters.txt.
GEOMETRY 1
Rectangle 1 (r1)
1 On the Geometry toolbar, click Primitives and choose Rectangle.
2 In the Settings window for Rectangle, locate the Size section.
3 In the Width text field, type W1.
4 In the Height text field, type H1.
Rectangle 2 (r2)
1 On the Geometry toolbar, click Primitives and choose Rectangle.
2 In the Settings window for Rectangle, locate the Size section.
3 In the Width text field, type W2.
4 In the Height text field, type H2.
Circle 1 (c1)
1 On the Geometry toolbar, click Primitives and choose Circle.
2 In the Settings window for Circle, locate the Size and Shape section.
3 In the Radius text field, type R1.
14 | THERMAL DECOMPOSITION
31
Solved with COMSOL Multiphysics 5.1
Difference 1 (dif1)
1 On the Geometry toolbar, click Booleans and Partitions and choose Difference.
2 Select the object r1 only to add it to the Objects to add list.
3 In the Settings window for Difference, locate the Difference section.
4 Find the Objects to subtract subsection. Select the Active toggle button.
5 Select the objects r2 and c1 only.
6 Right-click Component 1 (comp1)>Geometry 1>Difference 1 (dif1) and choose Build
Selected.
ADD MATERIAL
1 On the Home toolbar, click Add Material to open the Add Material window.
2 Go to the Add Material window.
3 In the tree, select Liquids and Gases>Liquids>Water.
4 Click Add to Component in the window toolbar.
5 On the Home toolbar, click Add Material to close the Add Material window.
MATERIALS
Water (mat1)
By default, the first material you add applies on all domains so you can keep the
Geometric Scope settings.
DEFINITIONS
In preparation for defining boundary conditions, it is practical to define some named
selections.
Explicit 1
1 On the Definitions toolbar, click Explicit.
2 In the Model Builder window, under Component 1 (comp1)>Definitions right-click
Explicit 1 and choose Rename.
3 In the Rename Explicit dialog box, type Inlet in the New label text field.
4 Click OK.
5 In the Settings window for Explicit, locate the Input Entities section.
6 From the Geometric entity level list, choose Boundary.
15 | THERMAL DECOMPOSITION
32
Solved with COMSOL Multiphysics 5.1
Explicit 2
1 On the Definitions toolbar, click Explicit.
2 In the Model Builder window, under Component 1 (comp1)>Definitions right-click
Explicit 2 and choose Rename.
3 In the Rename Explicit dialog box, type Outlet in the New label text field.
4 Click OK.
5 In the Settings window for Explicit, locate the Input Entities section.
6 From the Geometric entity level list, choose Boundary.
7 Select Boundary 6 only.
Explicit 3
1 On the Definitions toolbar, click Explicit.
2 In the Model Builder window, under Component 1 (comp1)>Definitions right-click
Explicit 3 and choose Rename.
3 In the Rename Explicit dialog box, type Heater in the New label text field.
4 Click OK.
5 In the Settings window for Explicit, locate the Input Entities section.
6 From the Geometric entity level list, choose Boundary.
7 Select Boundaries 7–10 only.
Follow the instructions below to set up the Fluid Flow interface. The fluid
properties are automatically taken from the material assigned to the reactor domain,
so all you need to do is to define inlet and outlet boundary conditions.
Inlet 1
1 On the Physics toolbar, click Boundaries and choose Inlet.
2 In the Settings window for Inlet, locate the Boundary Selection section.
3 From the Selection list, choose Inlet.
4 Locate the Velocity section. In the U0 text field, type 5e-4.
Outlet 1
1 On the Physics toolbar, click Boundaries and choose Outlet.
2 In the Settings window for Outlet, locate the Boundary Selection section.
16 | THERMAL DECOMPOSITION
33
Solved with COMSOL Multiphysics 5.1
STUDY 1
1 In the Model Builder window, right-click Study 1 and choose Rename.
2 In the Rename Study dialog box, type Isothermal Flow in the New label text field.
3 Click OK.
4 On the Home toolbar, click Compute.
RESULTS
Velocity (spf)
1 In the Model Builder window, under Results right-click Velocity (spf) and choose
Arrow Surface.
2 On the Velocity (spf) toolbar, click Plot.
3 Click the Zoom Extents button on the Graphics toolbar.
4 In the Model Builder window, right-click Velocity (spf) and choose Rename.
5 In the Rename 2D Plot Group dialog box, type Flow Field in the New label text field.
6 Click OK.
At this point, move on to include a Heat Transfer in Fluids interface and extend the
model to account for a nonisothermal flow situation.
ADD PHYSICS
1 On the Home toolbar, click Add Physics to open the Add Physics window.
2 Go to the Add Physics window.
3 In the Add physics tree, select Heat Transfer>Heat Transfer in Fluids (ht).
4 Find the Physics interfaces in study subsection. In the table, enter the following
settings:
Studies Solve
Isothermal Flow
17 | THERMAL DECOMPOSITION
34
Solved with COMSOL Multiphysics 5.1
6 On the Home toolbar, click Add Physics to close the Add Physics window.
H E A T TR A N S F E R I N F L U I D S ( H T )
Temperature 1
1 On the Physics toolbar, click Boundaries and choose Temperature.
2 In the Settings window for Temperature, locate the Boundary Selection section.
3 From the Selection list, choose Inlet.
4 Locate the Temperature section. In the T0 text field, type 300[K].
Temperature 2
1 On the Physics toolbar, click Boundaries and choose Temperature.
2 In the Settings window for Temperature, locate the Boundary Selection section.
3 From the Selection list, choose Heater.
4 Locate the Temperature section. In the T0 text field, type 325[K].
Outflow 1
1 On the Physics toolbar, click Boundaries and choose Outflow.
2 In the Settings window for Outflow, locate the Boundary Selection section.
3 From the Selection list, choose Outlet.
MULTIPHYSICS
Couple the Laminar Flow interface to the Heat Transfer in Fluids interface, i.e., the
pressure and velocity are inputs taken from the Laminar Flow interface
ADD STUDY
1 On the Home toolbar, click Add Study to open the Add Study window.
2 Go to the Add Study window.
3 Find the Studies subsection. In the Select study tree, select Preset Studies>Stationary.
4 Click Add Study in the window toolbar.
5 On the Home toolbar, click Add Study to close the Add Study window.
18 | THERMAL DECOMPOSITION
35
Solved with COMSOL Multiphysics 5.1
STUDY 2
Step 1: Stationary
1 In the Settings window for Stationary, click to expand the Values of dependent
variables section.
2 Locate the Values of Dependent Variables section. Select the Initial values of variables
solved for check box.
3 From the Method list, choose Solution.
4 From the Study list, choose Isothermal Flow, Stationary.
With this selection the solver will take the solution to the isothermal flow case as
starting guess for the flow field and pressure variables.
5 In the Model Builder window, right-click Study 2 and choose Rename.
6 In the Rename Study dialog box, type Non-isothermal Flow in the New label text
field.
7 Click OK.
8 In the Settings window for Study, locate the Study Settings section.
9 Clear the Generate default plots check box.
10 On the Home toolbar, click Compute.
RESULTS
2D Plot Group 3
1 On the Home toolbar, click Add Plot Group and choose 2D Plot Group.
2 In the Settings window for 2D Plot Group, locate the Data section.
3 From the Data set list, choose Non-isothermal Flow/Solution 2.
4 Right-click Results>2D Plot Group 3 and choose Surface.
5 In the Settings window for Surface, click Replace Expression in the upper-right corner
of the Expression section. From the menu, choose Component 1>Heat Transfer in
Fluids>Temperature>T - Temperature.
6 On the 2D Plot Group 3 toolbar, click Plot.
7 In the Model Builder window, right-click 2D Plot Group 3 and choose Rename.
8 In the Rename 2D Plot Group dialog box, type Temperature in the New label text
field.
9 Click OK.
19 | THERMAL DECOMPOSITION
36
Solved with COMSOL Multiphysics 5.1
ADD PHYSICS
1 On the Home toolbar, click Add Physics to open the Add Physics window.
2 Go to the Add Physics window.
3 In the Add physics tree, select Chemical Species Transport>Chemistry (chem).
4 Find the Physics interfaces in study subsection. In the table, enter the following
settings:
Studies Solve
Isothermal Flow
Non-isothermal Flow
Studies Solve
Isothermal Flow
Non-isothermal Flow
cA
CHEMISTRY (CHEM)
1 In the Model Builder window, under Component 1 (comp1) click Chemistry (chem).
2 In the Settings window for Chemistry, locate the Model Inputs section.
3 From the T list, choose Temperature (ht).
Reaction 1
1 On the Physics toolbar, click Domains and choose Reaction.
20 | THERMAL DECOMPOSITION
37
Solved with COMSOL Multiphysics 5.1
2 In the Settings window for Reaction, locate the Reaction Formula section.
3 In the Formula text field, type A=>F.
4 Click Apply.
5 Locate the Rate Constants section. Select the Use Arrhenius expressions check box.
6 In the Af text field, type A.
7 In the Ef text field, type E.
8 Locate the Reaction Thermodynamic Properties section. From the Enthalpy of reaction
list, choose User defined.
9 In the H text field, type H.
Species: F
1 In the Model Builder window, under Component 1 (comp1)>Chemistry (chem) click
Species: F.
2 In the Settings window for Species, click to expand the Species concentration/activity
section.
3 Locate the Species Concentration/Activity section. Select the Locked concentration/
activity check box.
TR A N S P O R T O F D I L U T E D S P E C I E S ( T D S )
On the Physics toolbar, click Chemistry (chem) and choose Transport of Diluted Species
(tds).
Transport Properties 1
1 In the Model Builder window, expand the Transport of Diluted Species (tds) node, then
click Transport Properties 1.
2 In the Settings window for Transport Properties, locate the Diffusion section.
3 In the DcA text field, type 2e-9.
Inflow 1
1 On the Physics toolbar, click Boundaries and choose Inflow.
2 In the Settings window for Inflow, locate the Boundary Selection section.
3 From the Selection list, choose Inlet.
4 Locate the Concentration section. In the c0,cA text field, type 1000.
Outflow 1
1 On the Physics toolbar, click Boundaries and choose Outflow.
2 In the Settings window for Outflow, locate the Boundary Selection section.
21 | THERMAL DECOMPOSITION
38
Solved with COMSOL Multiphysics 5.1
Reactions 1
1 On the Physics toolbar, click Domains and choose Reactions.
2 Select Domain 1 only.
3 In the Settings window for Reactions, locate the Reaction Rates section.
4 From the RcA list, choose Rate expression for species A (chem).
The chemical reaction generates heat. Take this into account by adding a Heat
Source node to the Heat Transfer in Fluids interface.
H E A T TR A N S F E R I N F L U I D S ( H T )
Heat Source 1
1 On the Physics toolbar, click Domains and choose Heat Source.
2 Select Domain 1 only.
3 In the Settings window for Heat Source, locate the Heat Source section.
4 From the Q0 list, choose Heat source of reactions (chem).
MULTIPHYSICS
Couple the Laminar Flow interface to the Transport of Diluted Species interface, i.e.,
the velocity is an input from the Laminar Flow interface.
ADD STUDY
1 On the Home toolbar, click Add Study to open the Add Study window.
2 Go to the Add Study window.
3 Find the Studies subsection. In the Select study tree, select Preset Studies>Stationary.
22 | THERMAL DECOMPOSITION
39
Solved with COMSOL Multiphysics 5.1
STUDY 3
Step 1: Stationary
1 In the Model Builder window, under Study 3 click Step 1: Stationary.
2 In the Settings window for Stationary, click to expand the Values of dependent
variables section.
3 Locate the Values of Dependent Variables section. Select the Initial values of variables
solved for check box.
4 From the Method list, choose Solution.
5 From the Study list, choose Non-isothermal Flow, Stationary.
6 In the Model Builder window, right-click Study 3 and choose Rename.
7 In the Rename Study dialog box, type Fully Coupled in the New label text field.
8 Click OK.
9 In the Settings window for Study, locate the Study Settings section.
10 Clear the Generate default plots check box.
11 On the Home toolbar, click Compute.
RESULTS
Temperature
1 In the Settings window for 2D Plot Group, locate the Data section.
2 From the Data set list, choose Fully Coupled/Solution 3.
3 Click the Zoom Extents button on the Graphics toolbar.
4 On the Temperature toolbar, click Plot.
Create new plot groups and generate surface plots for the concentration and the
reaction rate.
2D Plot Group 4
1 On the Home toolbar, click Add Plot Group and choose 2D Plot Group.
2 In the Settings window for 2D Plot Group, locate the Data section.
3 From the Data set list, choose Fully Coupled/Solution 3.
4 Right-click Results>2D Plot Group 4 and choose Surface.
23 | THERMAL DECOMPOSITION
40
Solved with COMSOL Multiphysics 5.1
5 In the Settings window for Surface, click Replace Expression in the upper-right corner
of the Expression section. From the menu, choose Component 1>Transport of Diluted
Species>cA - Concentration.
6 On the 2D Plot Group 4 toolbar, click Plot.
7 Click the Zoom Extents button on the Graphics toolbar.
8 In the Model Builder window, right-click 2D Plot Group 4 and choose Rename.
9 In the Rename 2D Plot Group dialog box, type Concentration in the New label text
field.
10 Click OK.
2D Plot Group 5
1 On the Home toolbar, click Add Plot Group and choose 2D Plot Group.
2 In the Settings window for 2D Plot Group, locate the Data section.
3 From the Data set list, choose Fully Coupled/Solution 3.
4 Right-click Results>2D Plot Group 5 and choose Surface.
5 In the Settings window for Surface, click Replace Expression in the upper-right corner
of the Expression section. From the menu, choose Component 1>Transport of Diluted
Species>tds.R_cA - Total rate expression.
6 On the 2D Plot Group 5 toolbar, click Plot.
7 Click the Zoom Extents button on the Graphics toolbar.
8 In the Model Builder window, right-click 2D Plot Group 5 and choose Rename.
9 In the Rename 2D Plot Group dialog box, type Reaction Rate in the New label text
field.
10 Click OK.
24 | THERMAL DECOMPOSITION
41
0QUJNJ[BUJPOPG
B$BUBMZUJD.JDSPSFBDUPS
42
Optimization of a Catalytic
Microreactor
43
44
Solved with COMSOL Multiphysics 5.1
Optimization of a Catalytic
Micr o r e a c to r
Introduction
In this example model, a solution is pumped through a catalytic bed, where a reactant
undergoes chemical reaction as it gets in contact with the catalyst. The purpose of the
model is to maximize the total reaction rate for a given total pressure difference across
the bed by finding an optimal catalyst distribution. The distribution of the porous
catalyst determines the total reaction rate in the bed. A large amount of catalyst results
in a low flow rate through the bed while less catalyst gives a high flow rate but low
conversion of the reactant.
Model Definition
The model geometry is shown in Figure 1. The reactor consists of an inlet channel, a
fixed catalytic bed, and an outlet channel.
Reacting domain
Inlet Outlet
Symmetry boundary
The optimal catalyst distribution should maximize the average reaction rate, which is
expressed as the integral of the local reaction rate, r (SI unit: mol/(m3·s)), over the
domain, Ω. This is equivalent to minimizing the negative of this average reaction rate:
1 ½
min ® – ------------------- r dΩ ¾
³
¯ vol(Ω ) ¿
Ω
Assuming a first-order catalytic reaction with respect to the reactant species, the local
reaction rate is determined by
r = k a ( 1 – ε )c (1)
where ε denotes the volume fraction of solid catalyst, c refers to the concentration (SI
unit: mol/m3), and ka is the rate constant (SI unit: 1/s).
∇ ⋅ ( – D∇c ) = r – u ⋅ ∇c
where u denotes the velocity vector (SI unit: m/s) and D is the diffusion coefficient
(SI unit: m2/s). The Navier-Stokes equations describe the fluid flow:
T
ρ ( u ⋅ ∇ )u = – ∇ p + ∇ ⋅ μ ( ∇u + ( ∇u ) ) – α ( ε )u
(2)
∇⋅u = 0
μ q(1 – ε)
α ( ε ) = ------------------2- ⋅ -------------------- (3)
Da ⋅ L q+ε
where Da is the Darcy number; L is the length scale (SI unit: m); and q is a
dimensionless parameter, the interpretation of which is discussed in the next section.
From Equation 3, the direct conclusion is that when ε equals 1, α equals zero and
Equation 2 reduces to the ordinary Navier-Stokes equations. In this case the reaction
rate is zero; see Equation 1.
1 ½
min ® – ------------------ ( k a ( 1 – ε )c ) dΩ ¾
³ (4)
vol(Ω )
ε ¯ Ω
¿
where
T
ρ ( u ⋅ ∇ )u = – ∇ p + ∇ ⋅ μ ( ∇u + ( ∇u ) ) – α ( ε )u
∇⋅u = 0
∇ ⋅ ( – D∇c ) = r – u ⋅ ∇c
0≤ε≤1
A set C is said to be convex if for any two members x, y of C, the following relation
holds:
tx + ( 1 – t )y ∈ C for every t ∈ [ 0, 1 ]
that is, the straight line between x and y is fully contained in C. A convex function is a
mapping f from a convex set C such that for every two members x, y of C
The importance of convexity follows simply from the result that if x* is a local
minimum to a convex optimization problem, then x* is also a global minimum. This
is easily proven by simply assuming that there is a y such that f(y) < f(x*), and then
using Equation 5.
The parameter q can be used to smoothen the interfaces between the catalyst and the
open channel. To see the effect of this parameter, rewrite Equation 3 as
μ 1–ε
α ( ε ) = ------------------2- ⋅ -------------
Da ⋅ L 1 + --ε-
q
It follows that when q approaches infinity, α is the (inverse) porosity. On the other
hand, lowering the value of q decreases the magnitude of α.
Figure 2 shows q(1 − ε)/(q − ε) plotted as a function of ε for different values of q. This
plot shows that lowering the value of q, increases the convexity of the force coefficient.
For a low q value, an increase in ε around 0.5, imposes a small increase of the force
coefficient, while for a higher value of q, a change in ε imposes an almost equal change
for the whole range. Therefore, for a lower q value, the solution is not sharp at the
interfaces. On the other hand, for small values of ε, the force term decreases rapidly
when q is small, and thus affects the flow field to a much wider extent. In the limit
when q approaches infinity, α as a function of ε is a straight line.
Figure 4: Distribution of the porous catalyst seen in black and open channel in white.
Figure 4 shows the distribution of the porous catalyst in black and the open channels
in white. This result shows that, optimally, the supply of the reactant should be
distributed over a large area of the reactor. Note also that the amount of open channel
volume is significant.
Figure 5 shows the concentration distribution in the reactor. This plot shows how the
porous catalyst is fed with the reactant through the open channels. The plot naturally
resembles that of Figure 4.
Let
Fi = ³ nflow ⋅ ( – D∇c + cu ) ds
∂Ω i
where nflow refers to the normal to the boundary ∂Ωi in the flow direction (that is,
pointing in to the domain at the inlet and out from the domain at the outlet). Then
Fi is a measurement of the flow of the species with concentration c through the
boundary ∂Ωi per unit length in the transverse dimension. The conversion, X, of the
reactant is defined as
F in – F out
X = --------------------------
F in
Figure 6 shows the velocity field in the reactor. The porous catalyst slows down the
flow significantly compared to Figure 3.
References
1. F. Okkels and H. Bruus, “Scaling Behavior of Optimally Structured Catalytic
Microfluidic Reactors,” Phys. Rev. E, vol. 75, pp. 016301 1–4, 2007.
Modeling Instructions
From the File menu, choose New.
NEW
1 In the New window, click Model Wizard.
MODEL WIZARD
1 In the Model Wizard window, click 2D.
2 In the Select physics tree, select Fluid Flow>Single-Phase Flow>Laminar Flow (spf).
3 Click Add.
4 In the Select physics tree, select Chemical Species Transport>Transport of Diluted
Species (tds).
5 Click Add.
6 In the Select physics tree, select Mathematics>Optimization and
Sensitivity>Optimization (opt).
7 Click Add.
8 Click Study.
9 In the Select study tree, select Preset Studies for Selected Physics Interfaces>Stationary.
10 Click Done.
GLOBAL DEFINITIONS
Parameters
1 On the Home toolbar, click Parameters.
2 In the Settings window for Parameters, locate the Parameters section.
3 In the table, enter the following settings:
GEOMETRY 1
Next, create the geometry. The reactor consists of three domains: the inlet channel,
the reacting domain, and the outlet channel (see Figure 1).
Rectangle 1 (r1)
1 On the Geometry toolbar, click Primitives and choose Rectangle.
2 In the Settings window for Rectangle, locate the Size section.
3 In the Width text field, type 2*L.
4 In the Height text field, type L.
Rectangle 2 (r2)
1 On the Geometry toolbar, click Primitives and choose Rectangle.
2 In the Settings window for Rectangle, locate the Size section.
3 In the Width text field, type 6*L.
4 In the Height text field, type 3*L.
5 Locate the Position section. In the x text field, type 2*L.
Rectangle 3 (r3)
1 On the Geometry toolbar, click Primitives and choose Rectangle.
2 In the Settings window for Rectangle, locate the Size section.
3 In the Width text field, type 2*L.
4 In the Height text field, type L.
5 Locate the Position section. In the x text field, type 8*L.
6 Right-click Component 1 (comp1)>Geometry 1>Rectangle 3 (r3) and choose Build
Selected.
DEFINITIONS
Define integration couplings to use for calculating the conversion of the reactant.
Integration 1 (intop1)
1 On the Definitions toolbar, click Component Couplings and choose Integration.
2 In the Settings window for Integration, locate the Source Selection section.
3 From the Geometric entity level list, choose Boundary.
4 Select Boundary 1 only.
Integration 2 (intop2)
1 On the Definitions toolbar, click Component Couplings and choose Integration.
2 In the Settings window for Integration, locate the Source Selection section.
3 From the Geometric entity level list, choose Boundary.
4 Select Boundary 12 only.
Variables 1
1 On the Definitions toolbar, click Local Variables.
2 In the Settings window for Variables, locate the Variables section.
3 In the table, enter the following settings:
Variables 2
1 On the Definitions toolbar, click Local Variables.
2 In the Settings window for Variables, locate the Geometric Entity Selection section.
3 From the Geometric entity level list, choose Domain.
4 Select Domain 2 only.
5 Locate the Variables section. In the table, enter the following settings:
ADD MATERIAL
1 On the Home toolbar, click Add Material to open the Add Material window.
2 Go to the Add Material window.
3 In the tree, select Built-In>Water, liquid.
4 Click Add to Component in the window toolbar.
5 On the Home toolbar, click Add Material to close the Add Material window.
Volume Force 1
1 On the Physics toolbar, click Domains and choose Volume Force.
2 Select Domain 2 only.
3 In the Settings window for Volume Force, locate the Volume Force section.
4 Specify the F vector as
-alpha*u x
-alpha*v y
Inlet 1
1 On the Physics toolbar, click Boundaries and choose Inlet.
2 Select Boundary 1 only.
3 In the Settings window for Inlet, locate the Boundary Condition section.
4 From the list, choose Pressure.
5 Locate the Pressure Conditions section. In the p0 text field, type delta_p.
Symmetry 1
1 On the Physics toolbar, click Boundaries and choose Symmetry.
2 Select Boundaries 2, 5, and 9 only.
Outlet 1
1 On the Physics toolbar, click Boundaries and choose Outlet.
2 Select Boundary 12 only.
TR A N S P O R T O F D I L U T E D S P E C I E S ( T D S )
Transport Properties 1
1 In the Model Builder window, expand the Component 1 (comp1)>Transport of Diluted
Species (tds) node, then click Transport Properties 1.
2 In the Settings window for Transport Properties, locate the Model Inputs section.
3 From the u list, choose Velocity field (spf).
4 Locate the Diffusion section. In the Dc text field, type D.
Reactions 1
1 On the Physics toolbar, click Domains and choose Reactions.
2 Select Domain 2 only.
3 In the Settings window for Reactions, locate the Reaction Rates section.
4 In the Rc text field, type -phi.
Concentration 1
1 On the Physics toolbar, click Boundaries and choose Concentration.
2 In the Settings window for Concentration, locate the Concentration section.
3 Select the Species c check box.
4 In the c0,c text field, type c_in.
5 Select Boundary 1 only.
Outflow 1
1 On the Physics toolbar, click Boundaries and choose Outflow.
2 Select Boundary 12 only.
This completes the setup of the physics. Now set up the optimization problem.
OPTIMIZATION (OPT)
Define the control variable epsilon, select its shape, and constrain its values to the
interval [0, 1].
Integral Objective 1
1 On the Physics toolbar, click Domains and choose Integral Objective.
2 Select Domain 2 only.
3 In the Settings window for Integral Objective, locate the Objective section.
4 In the Objective expression text field, type -phi/vol.
This example requires a fine mesh, both to solve the physics problem and to resolve
the topology optimization problem.
MESH 1
1 In the Model Builder window, under Component 1 (comp1) click Mesh 1.
2 In the Settings window for Mesh, locate the Mesh Settings section.
3 From the Element size list, choose Finer.
4 Click the Build All button.
STUDY 1
Although you can choose to solve the optimization problem directly, it can be useful
to check that the solution for the PDE problem looks sound before starting the
optimization.
RESULTS
Velocity (spf)
The first default plot (see Figure 3) shows the velocity field in the reactor.
STUDY 1
Step 1: Stationary
1 In the Model Builder window, expand the Study 1 node, then click Step 1: Stationary.
2 In the Settings window for Stationary, click to expand the Results while solving
section.
3 Locate the Results While Solving section. Select the Plot check box.
This setting gives a plot of the evolving velocity distribution in the Graphics window.
Optimization
1 On the Study toolbar, click Optimization.
Choose the SNOPT solver rather than MMA since the objective function contains
an implicit trade-off between a high flow rate and a high active catalyst area. This
makes the objective severely nonlinear.
2 In the Settings window for Optimization, locate the Optimization Solver section.
3 From the Method list, choose SNOPT.
Solution 1
1 On the Study toolbar, click Show Default Solver.
2 In the Model Builder window, expand the Solution 1 node.
3 In the Model Builder window, expand the Study 1>Solver Configurations>Solution
1>Optimization Solver 1 node, then click Stationary 1.
4 In the Settings window for Stationary, locate the General section.
5 In the Relative tolerance text field, type 1e-6.
6 On the Study toolbar, click Compute.
RESULTS
Velocity (spf)
The velocity field in the reactor after optimization should resemble that in Figure 6.
Concentration (tds)
The third default plot shows the concentration distribution in the reactor after
optimization (Figure 5).
To reproduce the plot in Figure 4, modify the default plot with the following steps.
2D Plot Group 4
1 In the Model Builder window, under Results click 2D Plot Group 4.
2 In the Settings window for 2D Plot Group, click to expand the Title section.
3 From the Title type list, choose Manual.
4 In the Title text area, type Distribution of porous catalyst.
5 In the Model Builder window, expand the 2D Plot Group 4 node, then click Surface 1.
6 In the Settings window for Surface, click Replace Expression in the upper-right corner
of the Expression section. From the menu, choose Component
1>Optimization>epsilon - Control variable epsilon.
7 Locate the Coloring and Style section. From the Color table list, choose GrayScale.
8 Clear the Color legend check box.
9 On the 2D Plot Group 4 toolbar, click Plot.
10 Click the Zoom Extents button on the Graphics toolbar.
11 Right-click Results>2D Plot Group 4>Surface 1 and choose Rename.
12 In the Rename Surface dialog box, type Porous Catalyst in the New label text field.
13 Click OK.
14 Click the Zoom Extents button on the Graphics toolbar.
Derived Values
To display the result for the conversion rate, continue as follows:
TABLE
1 Go to the Table window.
The value appears in the Table window below the Graphics window.
61
Wire Electrode
62
Modeling of Electrochemical Cells
• Non-porous electrodes
– Heterogeneous reactions
– Typically used for electrolysis, metal winning, and electrodeposition
• Porous electrodes
– Reactions treated as homogeneous reaction in models although they are heterogeneous in reality
– Typically used for batteries, fuel cells, and in some cases also for electrolysis
• Electrolytes
– Diluted and supporting electrolytes
– Concentrated electrolytes
– ”Free” electrolytes with forced and free convection
– ”Immobilized” electrolytes through the use of porous matrixes, negligible free convection, rarely force
d convection
– Solid electrolytes, no convection
Cathodes: Flat-plate
electrodes
Electrolyte
Cathodes: Flat-plate
electrodes
63
Domain and Boundary Settings
• Domain:
– Charge continuity Anode:
Cell voltage = 1.3 V
E0 = 1.2 V
• Boundary Total cell (in this case ohmic)
– Electrode potentials polarization = 100 mV
at electrode surfaces
– Insulation elsewhere
Cathodes: 0 V
Electrolyte:
Cathodes:
Electrode potential = 0 V N I l 0
E0 = 0 V
(negligible overpotential) I l
Ionic potential
Some Definitions
• Activation and concentration over
er
potential = 0 Il ,c 0 E0,c
K 0 Il ,a Ecell E0,a
K Is Il E0
I Ionic potential
Il Is E0 l
I Electronic potential
• Select the cathode as reference p s
Is , c 0 Ia At anode, index
Ecell Is , a Is , c Ic At cathode, index
64
Results
• Current density distribution at tha ͻ Potential distribution in the
anode surface electrolyte
Hi hl active
Highly acctive
i catalyst
l
Inactive catalyst
K Is Il E0 N I n
l
ict
• Charge transfer current at the elec
trode surfaces
§ § 1 E FK · § E FK · ·
ict i0 ¨ exp ¨
¨ Rg T ¸¸ exp ¨¨ ¸¸ ¸
¨ R T ¸
© © ¹ © g ¹¹
Exchange current densityy Gas constant
stant
Faraday’s constant Charge transfer coefficient
65
Comparison: Primary and Secondary C
urrent Distributions
• Current density distribution at the ͻ Polarization curves
anode surface
Effect of
Activation
overpotential
Independent of Dependent
total current of total current
ict
cdd
ict ,average
66
Tertiary Current Density Distribution
• Use the secondary current distribution case as starting point
• Add the flow equations, in this case from single phase laminar flow Navier-Stokes
• Add equations for mass transport, in this chase the Nernst-Planck equations
• Solve the fully coupled material and charge balances using the already solved flow fi
eld
68
Solved with COMSOL Multiphysics 5.1
Wire Electrode
One of the most important aspects in the design of electrochemical cells is the current
density distributions in the electrolyte and electrodes. Non-uniform current density
distributions can be detrimental for the operation of electrochemical processes. In
many cases the parts of an electrode that are subjected to high current density degrade
at a faster rate. Knowledge of the current density distribution is also desired to
optimize the utilization of the electrocatalysts, because these are often made of
expensive noble metals. Non-uniform deposition and consumption, as well as
unnecessarily high overvoltages, with resulting energy losses and possibly unwanted
side-reactions, may be other effects that one would like to minimize.
This example models the primary, secondary, and tertiary current density
distributions (Ref. 1) of an arbitrary electrochemical cell. It successively goes through
the different classes of current density distributions so as to also show how complexity
should be gradually introduced when modeling electrochemical cells.
Introduction
The same geometry is considered in all three cases: a wire electrode structure is placed
between two flat electrode surfaces, and in the open volume between the wire and the
flat surfaces electrolyte is allowed to flow; see Figure 1. The electrochemical cell can
be seen as a unit cell of a larger wire-mesh electrode—an electrochemical cell setup
common for many large-scale industrial processes.
1 | WIRE ELECTRODE
69
Solved with COMSOL Multiphysics 5.1
.
Wire electrode Outlet
(anode)
Flat electrode
(cathode)
Flat electrode
(cathode)
Inlet
Figure 1: Modeled electrochemical cell. Wire electrode (anode) between two flat electrodes
(cathodes). Flow inlet to the left, outlet to the right. The top and bottom flat surfaces are
inert.
Model Definition
∇ ⋅ Ni = 0
where Ni is the flux of species i (SI unit: mol·m2/s), which in turn is governed by:
– D i ∇c i – z i m i Fc i ∇φ l + c i u = N i (1)
where ci represents the concentration of the ion i (SI unit: mol/m3), zi its valence, Di
its diffusivity (SI unit: m2/s), mi its mobility (SI unit: mol·m2(s·V·A)), F denotes the
2 | WIRE ELECTRODE
70
Solved with COMSOL Multiphysics 5.1
Faraday constant (SI unit: As/mol), φ i the ionic potential, and u the velocity vector
(SI unit: m/s). The components operated upon by the above transport equation are
often described as the diffusion, migration, and convection transport mechanisms. The
net current density can be described through:
i = –F ¦ zi Ni
where i is the current density vector (SI unit: A/m2). Combining the three above
equations, while assuming electroneutrality (which removes the convection term) and
negligible concentration gradients (which removes diffusion) leaves:
2
i = –F ¦ –zi mi Fci ∇φl
Current density is conserved throughout:
∇⋅i = 0 (2)
so that by combining the valence, ionic mobility, constant concentration and the
Faraday constant to a representative conductivity, κ (SI unit: 1/(W·m2)), Equation 2
becomes:
∇ ⋅ ( – κ∇φ l ) = 0 (3)
The boundary conditions for the case of primary current density distribution assume
that the kinetics on the electrode surfaces are fast, which allow the assumption of
constant potential on these surfaces (all other boundaries are insulated). The solid
phase (electronic conductor) potential on the cathode, φ s, c (SI unit: V), is a
convenient choice of reference potential in the system:
φ s, c = 0
The electrode potential equals the difference between the potential of solid phase in
the electrode, φ e , and the potential in the adjacent electrolyte, φ i :
E electrode = φ s – φ l
In the absence of kinetic losses, the cathode potential, Ec, equals the equilibrium
potential, Eeq,c:
E eq, c = φ s, c – φ l, c = – φ l, c
3 | WIRE ELECTRODE
71
Solved with COMSOL Multiphysics 5.1
The potential difference over the whole cell, Ecell, is defined as the potential difference
between the solid phases of the two electrodes
E cell = φ s, a – φ s, c = φ s, a
In this way the boundary condition for the ionic potential at the anode can be set via:
E eq, a = φ s, a – φ l, a = E cell – φ l, a
In this model, the expressions for the local current density, i (SI unit: A/m2), is based
on the Butler-Volmer equation (Ref. 2) for a single electron reaction. For the
secondary current distribution case (that is, without concentration dependence) it
reads:
here T is the temperature and R is the gas constant (SI unit: J/(K·mol). i0, the
exchange current density, (SI unit: A/m2), and β, the symmetry factor, are reaction
and electrode dependent and are therefore different for each electrode. The
overpotential, η, is the difference between the electrode potential and the equilibrium
potential for the electrode reaction, defined in the following way:
η = E electrode – E eq
This results in the following expressions for the overpotentials for the cathode and
anode, respectively:
η c = – φ l, c – E eq, c
η a = E cell – φ l, a – E eq, a
4 | WIRE ELECTRODE
72
Solved with COMSOL Multiphysics 5.1
For the net ionic charge transport the assumption for this model still is
electroneutrality and a supporting electrolyte with negligible concentration gradients,
which means that the potential distribution in the electrolyte can be described through
Ohm’s Law (Equation 3)
To introduce a mass transport dependence in this model the species being oxidized at
the anode now has mass transport limitations and its localized concentration, c
(SI unit: mol/m3), affects the electrode kinetics. The anodic branch of the
Butler-Volmer expression at the anode therefore gets a concentration dependence, and
the expression now reads:
c
i a = i 0 §© ----- exp ( η ( 1 – β )F ⁄ ( RT ) ) – exp ( ηβF ⁄ ( RT ) )·¹ (4)
c0
Here c0 (SI unit: mol/m3) denotes a reference concentration (equal to the inlet
concentration). Equation 4 is applied to the wire (anode) electrode, while the cathodes
keep the expression for the local current density from the secondary current
distribution model.
Also a momentum balance is introduced to describe the convection. In this case, the
assumption is a stationary laminar incompressible flow, using the Navier-Stokes
equation:
T
– ∇ ⋅ μ ( ∇u + ( ∇u ) ) + ρ ( u ⋅ ∇ )u + ∇p = 0 (5)
∇⋅u = 0
where μ is the dynamic viscosity (SI unit: Ns/m2), ρ density (SI unit: kg/m3) and p
pressure (SI unit: Pa).
No Slip boundary conditions are applied to the electrode surfaces, and slip boundary
conditions to the top and bottom to account for the periodically repeating unit cell in
this spatial direction. At the inlet, a laminar inflow with a fixed mean velocity is
specified, whereas a pressure condition specifying a zero reference pressure is used at
the outlet.
Finally, Equation 1 accounts for the mass transport of the reacting species:
5 | WIRE ELECTRODE
73
Solved with COMSOL Multiphysics 5.1
No-flux boundary conditions are applied for all boundaries except for the inlet, outlet
and the anode. At the inlet, a fixed concentration is specified. Outflow conditions are
applied for the outlet. Faraday’s law is used to specify the net molar flux at the anode
where the species is consumed:
ia
N a = – ----
F
6 | WIRE ELECTRODE
74
Solved with COMSOL Multiphysics 5.1
highest at the corners of the wires and close to zero at the central parts of the wire
structure.
7 | WIRE ELECTRODE
75
Solved with COMSOL Multiphysics 5.1
8 | WIRE ELECTRODE
76
Solved with COMSOL Multiphysics 5.1
effect that a high local current density induces local over potential losses on the
electrode surface.
9 | WIRE ELECTRODE
77
Solved with COMSOL Multiphysics 5.1
Figure 5: Flow field (top: slice plot, right: arrows) and concentration profile (bottom: slices
and anode surface) at 1.8 V.
10 | WIRE ELECTRODE
78
Solved with COMSOL Multiphysics 5.1
Figure 6 shows the resulting potential and current density distribution. The low
concentration between the wires now impacts severely on the smoothness of the
current distribution.
11 | WIRE ELECTRODE
79
Solved with COMSOL Multiphysics 5.1
References
1. J.S. Newman, Electrochemical Systems, 2nd ed., Prentice Hall, NJ, 1990.
2. J. O’M. Bockris and A.K.N. Reddy, Modern Electrochemistry, Plenum Press, NY,
1970.
Modeling Instructions
From the File menu, choose New.
NEW
1 In the New window, click Model Wizard.
MODEL WIZARD
1 In the Model Wizard window, click 3D.
2 In the Select physics tree, select Electrochemistry>Primary Current Distribution (siec).
3 Click Add.
4 Click Study.
5 In the Select study tree, select Preset Studies>Stationary.
6 Click Done.
12 | WIRE ELECTRODE
80
Solved with COMSOL Multiphysics 5.1
GEOMETRY 1
Import the model geometry from a file.
Import 1 (imp1)
1 On the Home toolbar, click Import.
2 In the Settings window for Import, locate the Import section.
3 Click Browse.
4 Browse to the application’s Application Library folder and double-click the file
wire_electrode.mphbin.
DEFINITIONS
Create selections for the anode and the cathode in the geometry. They will be used
later when setting up the physics.
Explicit 1
1 On the Definitions toolbar, click Explicit.
2 In the Settings window for Explicit, locate the Input Entities section.
3 From the Geometric entity level list, choose Boundary.
4 Select Boundaries 2 and 5 only.
5 Right-click Component 1 (comp1)>Definitions>Explicit 1 and choose Rename.
6 In the Rename Explicit dialog box, type Cathodes in the New label text field.
7 Click OK.
Explicit 2
1 On the Definitions toolbar, click Explicit.
2 In the Settings window for Explicit, locate the Input Entities section.
3 From the Geometric entity level list, choose Boundary.
4 Select the All boundaries check box.
5 Select Boundaries 6–37 only. This selection is easiest to achieve by selecting all
boundaries (the 'All boundaries' check box), followed by deselecting all exterior
surfaces.
6 Right-click Component 1 (comp1)>Definitions>Explicit 2 and choose Rename.
7 In the Rename Explicit dialog box, type Anode in the New label text field.
8 Click OK.
13 | WIRE ELECTRODE
81
Solved with COMSOL Multiphysics 5.1
Integration 1 (intop1)
Create some component couplings to be used when analyzing the results.
Average 1 (aveop1)
1 On the Definitions toolbar, click Component Couplings and choose Average.
2 In the Settings window for Average, type anode_avg in the Operator name text field.
3 Locate the Source Selection section. From the Geometric entity level list, choose
Boundary.
4 From the Selection list, choose Anode.
GLOBAL DEFINITIONS
Now start defining the physics for the primary current distribution simulation. Begin
with the model parameters.
Parameters
1 On the Home toolbar, click Parameters.
2 In the Settings window for Parameters, locate the Parameters section.
3 In the table, enter the following settings:
MATERIALS
Add water from the material library. Modify the material by adding the conductivity
value.
ADD MATERIAL
1 On the Home toolbar, click Add Material to open the Add Material window.
14 | WIRE ELECTRODE
82
Solved with COMSOL Multiphysics 5.1
MATERIALS
Electrolyte 1
Now start setting up the physics. Only the equilibrium potentials and the electrode
potential boundary values need to be set for the primary current distribution.
Electrode Reaction 1
1 In the Model Builder window, expand the Electrolyte-Electrode Boundary Interface 1
node, then click Electrode Reaction 1.
2 In the Settings window for Electrode Reaction, locate the Model Inputs section.
15 | WIRE ELECTRODE
83
Solved with COMSOL Multiphysics 5.1
Electrode Reaction 1
1 In the Model Builder window, expand the Electrolyte-Electrode Boundary Interface 2
node, then click Electrode Reaction 1.
2 In the Settings window for Electrode Reaction, locate the Model Inputs section.
3 In the T text field, type T.
4 Locate the Equilibrium Potential section. In the Eeq text field, type Eeq_a.
Initial Values 1
Also, provide initial values for the electrolyte potential.
MESH 1
The following steps creates a mesh with boundary layers adjacent to the anode and
cathode surfaces. This is a convenient way of increasing the number of mesh elements
close to a surface of special interest.
16 | WIRE ELECTRODE
84
Solved with COMSOL Multiphysics 5.1
4 Locate the Boundary Layer Properties section. In the Number of boundary layers text
field, type 6.
5 In the Boundary layer stretching factor text field, type 1.3.
6 From the Thickness of first layer list, choose Manual.
7 In the Thickness text field, type 2e-5.
Size
1 In the Model Builder window, under Component 1 (comp1)>Mesh 1 click Size.
2 In the Settings window for Size, locate the Element Size section.
3 From the Calibrate for list, choose Fluid dynamics.
STUDY 1
The model is now ready for solving. Add an auxiliary continuation sweep to solve for
a range of cell potentials.
Step 1: Stationary
1 In the Model Builder window, under Study 1 click Step 1: Stationary.
2 In the Settings window for Stationary, click to expand the Study extensions section.
3 Locate the Study Extensions section. Select the Auxiliary sweep check box.
4 Click Add.
5 In the table, enter the following settings:
17 | WIRE ELECTRODE
85
Solved with COMSOL Multiphysics 5.1
7 In the Settings window for Study, locate the Study Settings section.
8 Clear the Generate default plots check box.
9 On the Home toolbar, click Compute.
You have now solved the primary current distribution model.
RESULTS
Data Sets
To be able to study the anode surface in detail, create a selection of the solution.
1 On the Results toolbar, click More Data Sets and choose Solution.
2 On the Results toolbar, click Selection.
3 In the Settings window for Selection, locate the Geometric Entity Selection section.
4 From the Geometric entity level list, choose Boundary.
5 From the Selection list, choose Anode.
STUDY 1
Solution 1 and 2 in the data sets will now be updated every time you update and solve
the model. To store this particular solution, copy and store the primary current
distribution solution in order to compare with these results later when you modify the
model.
Solution 1
In the Model Builder window, expand the Study 1>Solver Configurations node.
Solution 1 - Copy 1
1 Right-click Solution 1 and choose Solution>Copy.
2 In the Model Builder window, under Study 1>Solver Configurations right-click Solution
1 - Copy 1 and choose Rename.
3 In the Rename Solution dialog box, type Primary current distribution in the
New label text field.
4 Click OK.
RESULTS
Data Sets
1 On the Results toolbar, click More Data Sets and choose Solution.
2 In the Settings window for Solution, locate the Solution section.
18 | WIRE ELECTRODE
86
Solved with COMSOL Multiphysics 5.1
1D Plot Group 1
Now create a polarization plot for the primary current distribution model.
15 Click to expand the Legends section. From the Legends list, choose Manual.
16 In the table, enter the following settings:
Legends
Primary current distribution
3D Plot Group 2
The following creates an isosurface of the potential in the electrolyte.
19 | WIRE ELECTRODE
87
Solved with COMSOL Multiphysics 5.1
1 On the Home toolbar, click Add Plot Group and choose 3D Plot Group.
2 In the Settings window for 3D Plot Group, locate the Data section.
3 From the Data set list, choose None.
4 Right-click Results>3D Plot Group 2 and choose Isosurface.
5 In the Settings window for Isosurface, locate the Data section.
6 From the Data set list, choose Study 1/Solution 1 (1).
7 From the Parameter value (Ecell) list, choose 1.45.
8 On the 3D Plot Group 2 toolbar, click Plot.
3D Plot Group 3
The following creates a normalized plot of the normal electrolyte current density on
the anode surface.
1 On the Home toolbar, click Add Plot Group and choose 3D Plot Group.
2 In the Settings window for 3D Plot Group, locate the Data section.
3 From the Data set list, choose None.
4 Click to expand the Title section. From the Title type list, choose Manual.
5 In the Title text area, type Dimensionless current density distribution.
6 Locate the Plot Settings section. Clear the Plot data set edges check box.
7 Right-click Results>3D Plot Group 3 and choose Surface.
8 In the Settings window for Surface, locate the Data section.
9 From the Data set list, choose Study 1/Solution 1 (2).
10 From the Parameter value (Ecell) list, choose 1.45.
Plot the normal current density divided by the average normal current density.
11 Locate the Expression section. In the Expression text field, type (comp1.siec.nIl)/
anode_avg(comp1.siec.nIl).
1 In the Model Builder window, under Component 1 (comp1) click Primary Current
Distribution (siec).
2 In the Settings window for Primary Current Distribution, locate the Current
Distribution Type section.
20 | WIRE ELECTRODE
88
Solved with COMSOL Multiphysics 5.1
GLOBAL DEFINITIONS
Add the needed parameters for the secondary model.
Parameters
1 In the Model Builder window, under Global Definitions click Parameters.
2 In the Settings window for Parameters, locate the Parameters section.
3 In the table, enter the following settings:
Electrode Reaction 1
Now set up the new boundary conditions for the secondary current distribution by
adding the needed kinetics parameters.
21 | WIRE ELECTRODE
89
Solved with COMSOL Multiphysics 5.1
STUDY 1
On the Home toolbar, click Compute.
RESULTS
3D Plot Group 2
You have now solved the secondary current distribution problem.
STUDY 1
Solution 1
1 In the Model Builder window, under Study 1>Solver Configurations right-click Solution
1 and choose Rename.
2 In the Rename Solution dialog box, type Secondary current distribution in the
New label text field.
3 Click OK.
RESULTS
Proceed to look at the results by adding the secondary current distribution
polarization plot.
1D Plot Group 1
1 In the Model Builder window, under Results>1D Plot Group 1 right-click Global 1 and
choose Duplicate.
2 In the Settings window for Global, locate the Data section.
3 From the Data set list, choose Study 1/Secondary current distribution (1).
4 Locate the Legends section. In the table, enter the following settings:
Legends
Secondary current distribution
22 | WIRE ELECTRODE
90
Solved with COMSOL Multiphysics 5.1
3D Plot Group 2
1 In the Model Builder window, under Results>3D Plot Group 2 click Isosurface 1.
2 In the Settings window for Isosurface, locate the Data section.
3 From the Parameter value (Ecell) list, choose 1.65.
4 On the 3D Plot Group 2 toolbar, click Plot.
3D Plot Group 3
1 In the Model Builder window, under Results>3D Plot Group 3 click Surface 1.
2 In the Settings window for Surface, locate the Data section.
3 From the Parameter value (Ecell) list, choose 1.65.
4 On the 3D Plot Group 3 toolbar, click Plot.
GLOBAL DEFINITIONS
Now modify the problem to model a tertiary current distribution problem by adding
mass transport. Start by adding the parameters.
Parameters
1 In the Model Builder window, under Global Definitions click Parameters.
2 In the Settings window for Parameters, locate the Parameters section.
3 In the table, enter the following settings:
DEFINITIONS
Explicit 3
1 On the Definitions toolbar, click Explicit.
2 In the Model Builder window, under Component 1 (comp1)>Definitions right-click
Explicit 3 and choose Rename.
3 In the Rename Explicit dialog box, type Inlet in the New label text field.
4 Click OK.
5 In the Settings window for Explicit, locate the Input Entities section.
6 From the Geometric entity level list, choose Boundary.
23 | WIRE ELECTRODE
91
Solved with COMSOL Multiphysics 5.1
Explicit 4
1 On the Definitions toolbar, click Explicit.
2 In the Model Builder window, under Component 1 (comp1)>Definitions right-click
Explicit 4 and choose Rename.
3 In the Rename Explicit dialog box, type Outlet in the New label text field.
4 Click OK.
5 In the Settings window for Explicit, locate the Input Entities section.
6 From the Geometric entity level list, choose Boundary.
7 Select Boundary 38 only.
ADD PHYSICS
1 On the Home toolbar, click Add Physics to open the Add Physics window.
2 Go to the Add Physics window.
3 In the Add physics tree, select Chemical Species Transport>Transport of Diluted Species
(tds).
4 Click Add to Component in the window toolbar.
ADD PHYSICS
1 Go to the Add Physics window.
2 In the Add physics tree, select Fluid Flow>Single-Phase Flow>Laminar Flow (spf).
3 Click Add to Component in the window toolbar.
4 On the Home toolbar, click Add Physics to close the Add Physics window.
TR A N S P O R T O F D I L U T E D S P E C I E S ( T D S )
1 In the Model Builder window, under Component 1 (comp1) click Transport of Diluted
Species (tds).
2 In the Settings window for Transport of Diluted Species, locate the Transport
Mechanisms section.
3 Select the Migration in electric field check box.
Transport Properties 1
1 In the Model Builder window, expand the Transport of Diluted Species (tds) node, then
click Transport Properties 1.
2 In the Settings window for Transport Properties, locate the Model Inputs section.
24 | WIRE ELECTRODE
92
Solved with COMSOL Multiphysics 5.1
Inflow 1
1 On the Physics toolbar, click Boundaries and choose Inflow.
2 In the Settings window for Inflow, locate the Boundary Selection section.
3 From the Selection list, choose Inlet.
4 Locate the Concentration section. In the c0,c text field, type c_in.
Outflow 1
1 On the Physics toolbar, click Boundaries and choose Outflow.
2 In the Settings window for Outflow, locate the Boundary Selection section.
3 From the Selection list, choose Outlet.
Initial Values 1
1 In the Model Builder window, under Component 1 (comp1)>Transport of Diluted
Species (tds) click Initial Values 1.
2 In the Settings window for Initial Values, locate the Initial Values section.
3 In the c text field, type c_in.
Reaction Coefficients 1
1 In the Model Builder window, expand the Electrode-Electrolyte Interface Coupling 1
node, then click Reaction Coefficients 1.
2 In the Settings window for Reaction Coefficients, locate the Model Inputs section.
3 From the iloc list, choose Local current density (siec/eebii2/er1).
25 | WIRE ELECTRODE
93
Solved with COMSOL Multiphysics 5.1
On the Physics toolbar, click Transport of Diluted Species (tds) and choose Secondary
Current Distribution (siec).
Electrode Reaction 1
1 In the Model Builder window, under Component 1 (comp1)>Secondary Current
Distribution (siec)>Electrolyte-Electrode Boundary Interface 2 click Electrode Reaction
1.
2 In the Settings window for Electrode Reaction, locate the Electrode Kinetics section.
3 From the Kinetics expression type list, choose Concentration dependent kinetics.
4 In the CR text field, type c/c_in.
Fluid Properties 1
1 In the Model Builder window, under Component 1 (comp1)>Laminar Flow (spf) click
Fluid Properties 1.
2 In the Settings window for Fluid Properties, locate the Model Inputs section.
3 In the T text field, type T.
Inlet 1
1 On the Physics toolbar, click Boundaries and choose Inlet.
2 In the Settings window for Inlet, locate the Boundary Selection section.
3 From the Selection list, choose Inlet.
4 Locate the Boundary Condition section. From the list, choose Laminar inflow.
5 Locate the Laminar Inflow section. In the Uav text field, type u_in.
6 In the Lentr text field, type 10e-3.
Outlet 1
1 On the Physics toolbar, click Boundaries and choose Outlet.
2 In the Settings window for Outlet, locate the Boundary Selection section.
3 From the Selection list, choose Outlet.
26 | WIRE ELECTRODE
94
Solved with COMSOL Multiphysics 5.1
4 Locate the Pressure Conditions section. Select the Normal flow check box.
Wall 2
1 On the Physics toolbar, click Boundaries and choose Wall.
2 Select Boundaries 3 and 4 only.
3 In the Settings window for Wall, locate the Boundary Condition section.
4 From the Boundary condition list, choose Slip.
ADD STUDY
Next, set up the solver for the tertiary current distribution problem. Do this by adding
a new study wherein you first solve for the flow problem, which does not depend on
the other variables, and then the species transport and electric currents.
1 On the Home toolbar, click Add Study to open the Add Study window.
2 Go to the Add Study window.
3 Find the Studies subsection. In the Select study tree, select Preset Studies>Stationary.
4 Click Add Study in the window toolbar.
5 On the Home toolbar, click Add Study to close the Add Study window.
STUDY 2
Step 1: Stationary
1 In the Model Builder window, under Study 2 click Step 1: Stationary.
2 In the Settings window for Stationary, locate the Physics and Variables Selection
section.
3 In the table, enter the following settings:
Step 2: Stationary 2
1 On the Study toolbar, click Study Steps and choose Stationary>Stationary.
2 In the Settings window for Stationary, locate the Physics and Variables Selection
section.
27 | WIRE ELECTRODE
95
Solved with COMSOL Multiphysics 5.1
Solution 3
Change to a fully coupled direct solver to decrease solver time.
28 | WIRE ELECTRODE
96
Solved with COMSOL Multiphysics 5.1
RESULTS
Data Sets
Add the tertiary current distribution to the polarization plot.
1D Plot Group 1
1 In the Model Builder window, under Results>1D Plot Group 1 right-click Global 2 and
choose Duplicate.
2 In the Settings window for Global, locate the Data section.
3 From the Data set list, choose Tertiary current distribution/Solution 3.
4 Locate the Legends section. In the table, enter the following settings:
Legends
Tertiary current distribution
Data Sets
1 On the Results toolbar, click More Data Sets and choose Solution.
2 In the Settings window for Solution, locate the Solution section.
3 From the Solution list, choose Solution 3.
4 On the Results toolbar, click Selection.
5 In the Settings window for Selection, locate the Geometric Entity Selection section.
6 From the Geometric entity level list, choose Boundary.
7 From the Selection list, choose Anode.
3D Plot Group 4
1 On the Results toolbar, click 3D Plot Group.
2 In the Settings window for 3D Plot Group, locate the Data section.
3 From the Data set list, choose Tertiary current distribution/Solution 3 (5).
4 Right-click Results>3D Plot Group 4 and choose Slice.
5 In the Settings window for Slice, click Replace Expression in the upper-right corner
of the Expression section. From the menu, choose Component 1>Laminar Flow>spf.U
- Velocity magnitude.
6 Locate the Plane Data section. In the Planes text field, type 7.
7 On the 3D Plot Group 4 toolbar, click Plot.
29 | WIRE ELECTRODE
97
Solved with COMSOL Multiphysics 5.1
3D Plot Group 5
Finish the post-processing by creating a arrow, slice and surface plot that visualizes the
concentration and flow in the cell.
1 On the Home toolbar, click Add Plot Group and choose 3D Plot Group.
2 In the Settings window for 3D Plot Group, locate the Data section.
3 From the Data set list, choose Tertiary current distribution/Solution 3 (5).
4 Locate the Plot Settings section. Clear the Plot data set edges check box.
5 Right-click Results>3D Plot Group 5 and choose Arrow Volume.
6 In the Settings window for Arrow Volume, click Replace Expression in the upper-right
corner of the Expression section. From the menu, choose Component 1>Laminar
Flow>u,v,w - Velocity field.
7 Locate the Arrow Positioning section. Find the x grid points subsection. In the Points
text field, type 15.
8 Find the y grid points subsection. In the Points text field, type 15.
9 Find the z grid points subsection. In the Points text field, type 1.
10 Locate the Coloring and Style section. From the Color list, choose Black.
11 Select the Scale factor check box.
12 In the associated text field, type 0.1.
13 Right-click Results>3D Plot Group 5>Arrow Volume 1 and choose Duplicate.
14 In the Settings window for Arrow Volume, locate the Arrow Positioning section.
15 Find the y grid points subsection. In the Points text field, type 1.
16 Find the z grid points subsection. In the Points text field, type 15.
17 On the 3D Plot Group 5 toolbar, click Plot.
18 On the 3D Plot Group 5 toolbar, click More Plots and choose Multislice.
19 In the Settings window for Multislice, click Replace Expression in the upper-right
corner of the Expression section. From the menu, choose Component 1>Transport of
Diluted Species>c - Concentration.
20 Locate the Multiplane Data section. Find the x-planes subsection. In the Planes text
field, type 0.
21 In the Model Builder window, right-click 3D Plot Group 5 and choose Surface.
22 In the Settings window for Surface, locate the Data section.
23 From the Data set list, choose Tertiary current distribution/Solution 3 (7).
30 | WIRE ELECTRODE
98
Solved with COMSOL Multiphysics 5.1
24 Click Replace Expression in the upper-right corner of the Expression section. From
the menu, choose Component 1>Transport of Diluted Species>c - Concentration.
25 Click to expand the Inherit style section. Locate the Inherit Style section. From the
Plot list, choose Multislice 1.
26 On the 3D Plot Group 5 toolbar, click Plot.
3D Plot Group 2
1 In the Model Builder window, under Results>3D Plot Group 2 click Isosurface 1.
2 In the Settings window for Isosurface, locate the Data section.
3 From the Data set list, choose Tertiary current distribution/Solution 3 (5).
4 On the 3D Plot Group 2 toolbar, click Plot.
3D Plot Group 3
1 In the Model Builder window, under Results>3D Plot Group 3 click Surface 1.
2 In the Settings window for Surface, locate the Data section.
3 From the Data set list, choose Tertiary current distribution/Solution 3 (7).
4 On the 3D Plot Group 3 toolbar, click Plot.
31 | WIRE ELECTRODE
99
&MFDUSPEFQPTJUJPOPG
*OEVDUPS$PJM
100
Electrodeposition of
an Inductor Coil
Model
101
Physics
Electrode reaction:
Results
102
Solved with COMSOL Multiphysics 5.1
Model Definition
The model geometry is shown in Figure 1. The geometry consists of two domains: the
10 μm extrusion of the deposition pattern down into the photoresist film, and a
diffusion layer in form of a rectangular block, 50 μm thick, on top of the photoresist.
Cathode
Diffusion layer
Photoresist
Figure 1: Model geometry. The extruded spiral pattern forms the vertical photoresist walls,
10 μm high. The diffusion layer, in form of a rectangular block, is 50 μm thick.
On the top boundary, set the electrolyte potential to 0 V. On the bottom boundary,
the cathode, the electrode reaction
2+ -
Cu (l) + 2e = Cu(s)
follows the following kinetics expression for the charge transfer current ict:
where i0 is the exchange current density (10 A/m2), η the overpotential, F Faraday’s
constant (96485 C/mol), R the molar gas constant (8.13 J/(mol·K)), T the
temperature, c Cu 2+ the electrolyte copper ion concentration (mol/m3), and c Cu 2+ ,ref ,
the reference copper concentration in the bulk electrolyte (500 mol/m3).
Set the current density of the cathode to have an average value of 10 A/dm2. All
boundaries except the cathode and the top bulk electrolyte boundary are isolated.
The electrode reaction causes the electrode boundary to move in the normal direction
with a velocity vdep (m/s) according to
M Cu i ct
v dep = – ----------- -------
ρ Cu 2F
where MCu is the molar mass (0.06355 kg/mol) and ρCu the density (8960 kg/m3)
of copper, respectively.
The extruded pattern domain is allowed deform according to the electrode boundary
deposition rate, whereas the diffusion layer domain is set to be fixed. The vertical walls
of the photoresist are fixed in the x and y directions, whereas the internal boundary
between the fixed and free moving domain is set to have zero deformation in the
z direction.
TR A N S P O R T O F C O P P E R I O N S I N T H E E L E C T RO L Y T E
The transport of copper ions in the electrolyte is described by Fickian diffusion. Model
this transport using a Transport of Diluted Species interface, solving for the electrolyte
copper ion concentration, c Cu 2+ . Set the diffusion coefficient to 10−9 m2/s.
At the top electrolyte bulk boundary, set the concentration the bulk
concentration c Cu 2+ ,ref . On the cathode, couple the flux of ions, N Cu 2+ (mol/(m2·s)),
to the electrochemical reactions via Faraday’s law:
i ct
N Cu 2+ = -------
2F
Solve the problem using a time-dependent study, investigating the deposition during
180 s with an initial copper concentration in the electrolyte set to c Cu 2+ ,ref .
Figure 2: Concentration profile and current stream lines in the electrolyte at t = 180 s.
Figure 3 shows the local electrode current, ict, at the cathode at t=180 s. The
deposition currents are higher at the outer parts of the pattern due to the higher
copper ion concentration.
Figure 4 shows the deformation and deposited copper thickness after 180 s. The
thickness is significantly thicker on the outermost part of the pattern.
Finally, the electrolyte potential for a cut plane at x = −1 μm is shown in Figure 5. The
electrolyte potential variation is relatively small for the modeled geometry
Modeling Instructions
From the File menu, choose New.
NEW
1 In the New window, click Model Wizard.
MODEL WIZARD
1 In the Model Wizard window, click 3D.
2 In the Select physics tree, select Electrochemistry>Electrodeposition, Deformed
Geometry>Electrodeposition, Secondary (edsec).
3 Click Add.
4 In the Select physics tree, select Chemical Species Transport>Transport of Diluted
Species (tds).
5 Click Add.
6 Click Study.
7 In the Select study tree, select Preset Studies for Selected Physics Interfaces>Time
Dependent with Initialization.
8 Click Done.
GLOBAL DEFINITIONS
Load the model parameters from a text file.
Parameters
1 On the Home toolbar, click Parameters.
2 In the Settings window for Parameters, locate the Parameters section.
3 Click Load from File.
4 Browse to the application’s Application Library folder and double-click the file
inductor_coil_parameters.txt.
Define two analytical functions that will be used when drawing the spirals in the
geometry.
Analytic 1 (an1)
1 On the Home toolbar, click Functions and choose Global>Analytic.
2 In the Settings window for Analytic, type spiralX in the Function name text field.
3 Locate the Definition section. In the Expression text field, type -(s/
(2*pi)*a_tot+R)*sin(s).
Analytic 2 (an2)
1 On the Home toolbar, click Functions and choose Global>Analytic.
2 In the Settings window for Analytic, type spiralY in the Function name text field.
3 Locate the Definition section. In the Expression text field, type -(s/
(2*pi)*a_tot+R)*cos(s).
GEOMETRY 1
Now draw the geometry. Start with the deposition pattern, using a work plane.
Plane Geometry
Right-click Component 1 (comp1)>Geometry 1>Work Plane 1 (wp1)>Plane
Geometry>Parametric Curve 1 (pc1) and choose Build Selected.
Plane Geometry
Right-click Component 1 (comp1)>Geometry 1>Work Plane 1 (wp1)>Plane
Geometry>Parametric Curve 2 (pc2) and choose Build Selected.
Rectangle 1 (r1)
1 On the Work Plane toolbar, click Primitives and choose Rectangle.
2 In the Settings window for Rectangle, locate the Size section.
3 In the Width text field, type a1.
Plane Geometry
Right-click Component 1 (comp1)>Geometry 1>Work Plane 1 (wp1)>Plane
Geometry>Rectangle 1 (r1) and choose Build Selected.
Square 1 (sq1)
1 On the Work Plane toolbar, click Primitives and choose Square.
2 In the Settings window for Square, locate the Size section.
3 In the Side length text field, type 2*a1.
4 Locate the Position section. In the xw text field, type -a1/2.
5 In the yw text field, type -a1.
Plane Geometry
Right-click Component 1 (comp1)>Geometry 1>Work Plane 1 (wp1)>Plane
Geometry>Square 1 (sq1) and choose Build Selected.
Fillet 1 (fil1)
1 On the Work Plane toolbar, click Fillet.
2 On the object r1, select Point 2 only.
3 In the Settings window for Fillet, locate the Radius section.
4 In the Radius text field, type a1.
Plane Geometry
Right-click Component 1 (comp1)>Geometry 1>Work Plane 1 (wp1)>Plane
Geometry>Fillet 1 (fil1) and choose Build Selected.
Rectangle 2 (r2)
1 On the Work Plane toolbar, click Primitives and choose Rectangle.
2 In the Settings window for Rectangle, locate the Size section.
3 In the Width text field, type a1.
4 In the Height text field, type 2*a1.
5 Locate the Position section. In the xw text field, type -a1.
6 In the yw text field, type -r0-2*a1-laps*a_tot.
Plane Geometry
Right-click Component 1 (comp1)>Geometry 1>Work Plane 1 (wp1)>Plane
Geometry>Rectangle 2 (r2) and choose Build Selected.
Square 2 (sq2)
1 On the Work Plane toolbar, click Primitives and choose Square.
2 In the Settings window for Square, locate the Size section.
3 In the Side length text field, type 2*a1.
4 Locate the Position section. In the xw text field, type -1.5*a1.
5 In the yw text field, type -r0-4*a1-laps*a_tot.
Plane Geometry
Right-click Component 1 (comp1)>Geometry 1>Work Plane 1 (wp1)>Plane
Geometry>Square 2 (sq2) and choose Build Selected.
Extrude 1 (ext1)
1 On the Geometry toolbar, click Extrude.
2 In the Settings window for Extrude, locate the Distances from Plane section.
3 In the table, enter the following settings:
Distances (m)
d_pr
Block 1 (blk1)
1 On the Geometry toolbar, click Block.
2 In the Settings window for Block, locate the Size section.
3 In the Width text field, type 2*(r0+a_tot*laps+d_dl).
4 In the Depth text field, type 2*(r0+a_tot*laps+d_dl)+3*a1.
5 In the Height text field, type d_dl.
6 Locate the Position section. In the y text field, type -2*a1.
7 In the z text field, type d_pr+d_dl/2.
DEFINITIONS
Add a number of selections to facilitate domain and boundary selection when setting
up the physics.
Explicit 1
1 On the Definitions toolbar, click Explicit.
2 Select Domain 1 only.
3 Right-click Component 1 (comp1)>Definitions>Explicit 1 and choose Rename.
4 In the Rename Explicit dialog box, type Fixed domain in the New label text field.
5 Click OK.
Complement 1
1 On the Definitions toolbar, click Complement.
2 In the Settings window for Complement, locate the Input Entities section.
3 Under Selections to invert, click Add.
4 In the Add dialog box, select Fixed domain in the Selections to invert list.
5 In the Selections to invert list, select Fixed domain.
6 Click OK.
7 Right-click Component 1 (comp1)>Definitions>Complement 1 and choose Rename.
8 In the Rename Complement dialog box, type Deforming domain in the New label
text field.
9 Click OK.
Explicit 2
1 On the Definitions toolbar, click Explicit.
2 In the Settings window for Explicit, locate the Input Entities section.
3 Select the All domains check box.
4 Locate the Output Entities section. From the Output entities list, choose Adjacent
boundaries.
5 Right-click Component 1 (comp1)>Definitions>Explicit 2 and choose Rename.
6 In the Rename Explicit dialog box, type Exterior boundaries in the New label text
field.
7 Click OK.
Explicit 3
1 On the Definitions toolbar, click Explicit.
2 In the Settings window for Explicit, locate the Input Entities section.
3 From the Geometric entity level list, choose Boundary.
4 Select Boundary 4 only.
5 Right-click Component 1 (comp1)>Definitions>Explicit 3 and choose Rename.
6 In the Rename Explicit dialog box, type Bulk electrolyte boundary in the New
label text field.
7 Click OK.
Explicit 4
1 On the Definitions toolbar, click Explicit.
2 In the Settings window for Explicit, locate the Input Entities section.
3 From the Geometric entity level list, choose Boundary.
4 Click Paste Selection.
5 In the Paste Selection dialog box, type 8, 13, 18, 25, 30 in the Selection text field.
6 Click OK.
7 Right-click Component 1 (comp1)>Definitions>Explicit 4 and choose Rename.
8 In the Rename Explicit dialog box, type Cathode in the New label text field.
9 Click OK.
Adjacent 1
1 On the Definitions toolbar, click Adjacent.
2 In the Settings window for Adjacent, locate the Input Entities section.
3 Under Input selections, click Add.
4 In the Add dialog box, select Fixed domain in the Input selections list.
5 In the Input selections list, select Fixed domain.
6 Click OK.
7 Right-click Component 1 (comp1)>Definitions>Adjacent 1 and choose Rename.
8 In the Rename Adjacent dialog box, type Fixed boundaries in the New label text
field.
9 Click OK.
Difference 1
1 On the Definitions toolbar, click Difference.
2 In the Settings window for Difference, locate the Geometric Entity Level section.
3 From the Level list, choose Boundary.
4 Locate the Input Entities section. Under Selections to add, click Add.
5 In the Add dialog box, select Exterior boundaries in the Selections to add list.
6 In the Selections to add list, select Exterior boundaries.
7 Click OK.
8 In the Settings window for Difference, locate the Input Entities section.
9 Under Selections to subtract, click Add.
10 In the Add dialog box, In the Selections to subtract list, choose Cathode and Fixed
boundaries.
11 Click OK.
12 Right-click Component 1 (comp1)>Definitions>Difference 1 and choose Rename.
13 In the Rename Difference dialog box, type Photoresist vertical walls in the
New label text field.
14 Click OK.
Electrolyte 1
Now start setting up the physics, begin with the current distribution model.
Fixed Mesh 1
1 On the Physics toolbar, click Domains and choose Fixed Mesh.
2 In the Settings window for Fixed Mesh, locate the Domain Selection section.
3 From the Selection list, choose Fixed domain.
Electrolyte Potential 1
1 On the Physics toolbar, click Boundaries and choose Electrolyte Potential.
2 Select Boundary 4 only.
Electrode Reaction 1
1 In the Model Builder window, expand the External Depositing Electrode 1 node, then
click Electrode Reaction 1.
2 In the Settings window for Electrode Reaction, locate the Equilibrium Potential
section.
3 In the Eeq text field, type Eeq_Cu.
4 Locate the Electrode Kinetics section. From the Kinetics expression type list, choose
Concentration dependent kinetics.
5 In the i0 text field, type i0.
6 In the αa text field, type alpha_a.
7 In the αc text field, type alpha_c.
8 In the CO text field, type c/c_ref.
9 Locate the Stoichiometric Coefficients section. In the nm text field, type 2.
10 In the νcdep text field, type 1.
Nondepositing Boundary 1
Constrain the movement on the vertical walls of the photo resist and on the boundary
between the fixed and deforming domain by using the Zero normal displacement
setting. (This imposes a more stable constraint than the default Zero Normal Velocity
condition.)
Nondepositing Boundary 2
1 On the Physics toolbar, click Boundaries and choose Nondepositing Boundary.
2 In the Settings window for Nondepositing Boundary, locate the Boundary Selection
section.
3 From the Selection list, choose Photoresist vertical walls.
4 Locate the Nondepositing Boundary section. From the Boundary condition list, choose
Zero normal displacement.
5 Select the Allow deformation along specified line only check box.
6 Specify the ldef vector as
0 x
0 y
1 z
Initial Values 1
1 In the Model Builder window, under Component 1 (comp1)>Electrodeposition,
Secondary (edsec) click Initial Values 1.
2 In the Settings window for Initial Values, locate the Initial Values section.
3 In the phil text field, type -Eeq_Cu.
TR A N S P O R T O F D I L U T E D S P E C I E S ( T D S )
On the Physics toolbar, click Electrodeposition, Secondary (edsec) and choose Transport
of Diluted Species (tds).
Now set up the model for the transport of copper ions in the electrolyte. The
electrolyte is assumed to be quiescent within the modeled diffusion layer.
1 In the Model Builder window, under Component 1 (comp1) click Transport of Diluted
Species (tds).
2 In the Settings window for Transport of Diluted Species, locate the Transport
Mechanisms section.
3 Clear the Convection check box.
Transport Properties 1
1 In the Model Builder window, under Component 1 (comp1)>Transport of Diluted
Species (tds) click Transport Properties 1.
2 In the Settings window for Transport Properties, locate the Diffusion section.
3 In the Dc text field, type D_Cu.
Concentration 1
1 On the Physics toolbar, click Boundaries and choose Concentration.
2 In the Settings window for Concentration, locate the Boundary Selection section.
3 From the Selection list, choose Bulk electrolyte boundary.
4 Locate the Concentration section. Select the Species c check box.
5 In the c0,c text field, type c_ref.
Reaction Coefficients 1
1 In the Model Builder window, expand the Electrode-Electrolyte Interface Coupling 1
node, then click Reaction Coefficients 1.
2 In the Settings window for Reaction Coefficients, locate the Model Inputs section.
3 From the iloc list, choose Local current density (edsec/ede1/er1).
4 Locate the Stoichiometric Coefficients section. In the nm text field, type 2.
5 In the νc text field, type -1.
Initial Values 1
1 In the Model Builder window, under Component 1 (comp1)>Transport of Diluted
Species (tds) click Initial Values 1.
2 In the Settings window for Initial Values, locate the Initial Values section.
3 In the c text field, type c_ref.
MESH 1
Build the mesh by sweeping from the cathode.
Size 1
1 In the Model Builder window, under Component 1 (comp1) right-click Mesh 1 and
choose Size.
2 In the Settings window for Size, locate the Geometric Entity Selection section.
3 From the Geometric entity level list, choose Boundary.
4 From the Selection list, choose Cathode.
Size 2
1 In the Model Builder window, right-click Mesh 1 and choose Size.
2 In the Settings window for Size, locate the Geometric Entity Selection section.
3 From the Geometric entity level list, choose Boundary.
4 Select Boundary 3 only.
5 Locate the Element Size section. Click the Custom button.
6 Locate the Element Size Parameters section. Select the Maximum element growth rate
check box.
7 In the associated text field, type 1.2.
Mapped 1
1 Right-click Mesh 1 and choose More Operations>Mapped.
2 In the Settings window for Mapped, locate the Boundary Selection section.
3 Click Paste Selection.
4 In the Paste Selection dialog box, type 25 in the Selection text field.
5 Click OK.
6 In the Settings window for Mapped, click to expand the Advanced settings section.
7 Locate the Advanced Settings section. Select the Adjust evenly distributed edge mesh
check box.
8 Click the Build Selected button.
Free Triangular 1
1 Right-click Mesh 1 and choose More Operations>Free Triangular.
2 In the Settings window for Free Triangular, locate the Boundary Selection section.
3 Click Paste Selection.
4 In the Paste Selection dialog box, type 8, 13, 18, 30 in the Selection text field.
5 Click OK.
6 Click the Build Selected button.
Swept 1
1 Right-click Mesh 1 and choose Swept.
2 In the Settings window for Swept, locate the Domain Selection section.
3 From the Geometric entity level list, choose Domain.
4 From the Selection list, choose Deforming domain.
5 Right-click Component 1 (comp1)>Mesh 1>Swept 1 and choose Distribution.
6 Right-click Swept 1 and choose Build Selected.
Free Triangular 2
1 Right-click Mesh 1 and choose More Operations>Free Triangular.
2 Select Boundary 3 only.
3 Click the Build Selected button.
Swept 2
Right-click Mesh 1 and choose Swept.
Distribution 1
1 In the Model Builder window, under Component 1 (comp1)>Mesh 1 right-click Swept
2 and choose Distribution.
2 In the Settings window for Distribution, locate the Distribution section.
3 From the Distribution properties list, choose Predefined distribution type.
4 In the Element ratio text field, type 2.
5 Click the Build Selected button.
STUDY 1
1 In the Model Builder window, click Study 1.
2 In the Settings window for Study, locate the Study Settings section.
3 Clear the Generate default plots check box.
Solution 1
1 On the Study toolbar, click Show Default Solver.
2 In the Model Builder window, expand the Solution 1 node.
RESULTS
Data Sets
The following steps reproduce the figures from the Results and Discussion section of
the model documentation.
1 On the Results toolbar, click More Data Sets and choose Solution.
2 On the Results toolbar, click Selection.
3 In the Settings window for Selection, locate the Geometric Entity Selection section.
4 From the Geometric entity level list, choose Boundary.
5 From the Selection list, choose Cathode.
6 Click the Transparency button on the Graphics toolbar.
3D Plot Group 1
1 On the Results toolbar, click 3D Plot Group.
2 In the Settings window for 3D Plot Group, locate the Plot Settings section.
3 Clear the Plot data set edges check box.
4 Right-click Results>3D Plot Group 1 and choose Slice.
5 In the Settings window for Slice, click Replace Expression in the upper-right corner
of the Expression section. From the menu, choose Model>Component 1>Transport of
Diluted Species>c - Concentration.
6 Locate the Plane Data section. In the Planes text field, type 1.
7 On the 3D Plot Group 1 toolbar, click Plot.
8 In the Model Builder window, right-click 3D Plot Group 1 and choose Surface.
9 In the Settings window for Surface, locate the Data section.
10 From the Data set list, choose Study 1/Solution 1 (3).
11 Click Replace Expression in the upper-right corner of the Expression section. From
the menu, choose Model>Component 1>Transport of Diluted Species>c -
Concentration.
12 Click to expand the Inherit style section. Locate the Inherit Style section. From the
Plot list, choose Slice 1.
13 On the 3D Plot Group 1 toolbar, click Plot.
14 Right-click 3D Plot Group 1 and choose Streamline.
15 In the Settings window for Streamline, click Replace Expression in the upper-right
corner of the Expression section. From the menu, choose Model>Component
1>Electrodeposition, Secondary>edsec.Ilx,...,edsec.Ilz - Electrolyte current density
vector (Material).
16 Locate the Streamline Positioning section. From the Positioning list, choose Start
point controlled.
17 From the Entry method list, choose Coordinates.
18 In the x text field, type 0.
19 In the y text field, type range(-150e-6,20e-6,150e-6).
20 In the z text field, type d_dl+d_pr.
21 Locate the Coloring and Style section. From the Line type list, choose Tube.
22 From the Color list, choose Black.
23 On the 3D Plot Group 1 toolbar, click Plot.
24 Click the Zoom Extents button on the Graphics toolbar.
3D Plot Group 2
1 On the Home toolbar, click Add Plot Group and choose 3D Plot Group.
Change the frame of the data set edges to Geometry in order to show the outline
of the original (non-deformed) geometry in the figure.
2 In the Settings window for 3D Plot Group, locate the Plot Settings section.
3 From the Frame list, choose Geometry (Xg, Yg, Zg).
4 Right-click Results>3D Plot Group 2 and choose Surface.
5 In the Settings window for Surface, locate the Data section.
6 From the Data set list, choose Study 1/Solution 1 (3).
7 Click Replace Expression in the upper-right corner of the Expression section. From
the menu, choose Model>Component 1>Electrodeposition, Secondary>Electrode
kinetics>edsec.iloc_er1 - Local current density.
3D Plot Group 3
1 In the Model Builder window, right-click 3D Plot Group 2 and choose Duplicate.
2 In the Model Builder window, expand the 3D Plot Group 3 node, then click Surface 1.
3 In the Settings window for Surface, click Replace Expression in the upper-right corner
of the Expression section. From the menu, choose Model>Component
1>Electrodeposition, Secondary>edsec.sbtot - Total electrode thickness change.
4 Locate the Expression section. From the Unit list, choose μm.
5 In the Model Builder window, right-click 3D Plot Group 3 and choose Surface.
6 In the Settings window for Surface, locate the Data section.
7 From the Data set list, choose Study 1/Solution 1 (3).
8 From the Time (s) list, choose 0.
9 Locate the Expression section. In the Expression text field, type 1.
10 Locate the Coloring and Style section. From the Coloring list, choose Uniform.
11 From the Color list, choose Black.
12 On the 3D Plot Group 3 toolbar, click Plot.
13 Click the Zoom Extents button on the Graphics toolbar.
Data Sets
1 On the Results toolbar, click Cut Plane.
2 In the Settings window for Cut Plane, locate the Plane Data section.
3 In the x-coordinate text field, type -1e-6.
2D Plot Group 4
1 On the Results toolbar, click 2D Plot Group.
2 In the Settings window for 2D Plot Group, locate the Plot Settings section.
3 From the Frame list, choose Geometry (Xg, Yg, Zg).
4 Right-click Results>2D Plot Group 4 and choose Surface.
5 On the 2D Plot Group 4 toolbar, click Plot.
6 Click the Zoom Extents button on the Graphics toolbar.