Electrodeposition Module User Guide
Electrodeposition Module User Guide
User’s Guide
Electrodeposition Module User’s Guide
© 1998–2024 COMSOL
Protected by patents listed on [Link]/patents, or see Help > About COMSOL Multiphysics on
the File menu in the COMSOL Desktop for less detailed lists of U.S. Patents that may apply. Patents
pending.
This Documentation and the Programs described herein are furnished under the COMSOL Software License
Agreement ([Link]/sla) and may be used or copied only under the terms of the license
agreement.
COMSOL, the COMSOL logo, COMSOL Multiphysics, COMSOL Desktop, COMSOL Compiler,
COMSOL Server, and LiveLink are either registered trademarks or trademarks of COMSOL AB. All other
trademarks are the property of their respective owners, and COMSOL AB and its subsidiaries and products
are not affiliated with, endorsed by, sponsored by, or supported by those trademark owners. For a list of such
trademark owners, see [Link]/trademarks.
Version: COMSOL 6.3
Contact Information
Visit the Contact COMSOL page at [Link]/contact to submit general inquiries
or search for an address and phone number. You can also visit the Worldwide Sales Offices
page at [Link]/contact/offices for address and contact information.
If you need to contact Support, an online request form is located on the COMSOL Access
page at [Link]/support/case. Useful links:
Chapter 1: Introduction
CONTENTS |3
Chapter 3: Electrochemistry Interfaces
4 | CONTENTS
89
Domain, Boundary, Pair, Edge, and Point Nodes for the
Electrochemistry Interfaces . . . . . . . . . . . . . . . . . 89
Current Conductor . . . . . . . . . . . . . . . . . . . . . . 91
Highly Conductive Porous Electrode . . . . . . . . . . . . . . . 91
Electrode Current Source . . . . . . . . . . . . . . . . . . . 91
Electrolyte Current Source . . . . . . . . . . . . . . . . . . . 92
Porous Electrode Reaction . . . . . . . . . . . . . . . . . . . 92
Porous Matrix Double-Layer Capacitance . . . . . . . . . . . . . 93
Insulation . . . . . . . . . . . . . . . . . . . . . . . . . . 93
Symmetry . . . . . . . . . . . . . . . . . . . . . . . . . 94
Electrode Surface. . . . . . . . . . . . . . . . . . . . . . . 94
Electrode Reaction . . . . . . . . . . . . . . . . . . . . . . 99
Double-Layer Capacitance . . . . . . . . . . . . . . . . . . 104
Perforated Electrode Surface . . . . . . . . . . . . . . . . . 105
Internal Electrode Surface . . . . . . . . . . . . . . . . . . 105
Thin Electrode Surface. . . . . . . . . . . . . . . . . . . . 106
Electrolyte Potential . . . . . . . . . . . . . . . . . . . . 106
Electrolyte Current . . . . . . . . . . . . . . . . . . . . . 107
Electrolyte Current Density. . . . . . . . . . . . . . . . . . 107
Thin Electrode Layer . . . . . . . . . . . . . . . . . . . . 108
Electrode-Electrolyte Boundary Interface. . . . . . . . . . . . . 108
Electric Ground . . . . . . . . . . . . . . . . . . . . . . 109
Electric Potential . . . . . . . . . . . . . . . . . . . . . . 109
Electrode Current Density . . . . . . . . . . . . . . . . . . 110
Electrode Current . . . . . . . . . . . . . . . . . . . . . 110
Electrode Power . . . . . . . . . . . . . . . . . . . . . . 111
Harmonic Perturbation . . . . . . . . . . . . . . . . . . . 112
Electrode Potential . . . . . . . . . . . . . . . . . . . . . 112
External Short . . . . . . . . . . . . . . . . . . . . . . . 112
Initial Values for Adsorbing–Desorbing Species . . . . . . . . . . 113
Initial Values for Dissolving–Depositing Species . . . . . . . . . . 113
Nonfaradaic Reactions . . . . . . . . . . . . . . . . . . . . 113
Reference Electrode . . . . . . . . . . . . . . . . . . . . 114
Electric Reference Potential . . . . . . . . . . . . . . . . . . 114
Circuit Terminal . . . . . . . . . . . . . . . . . . . . . . 114
CONTENTS |5
The Concentrated Electrolyte Transport Interface 115
Electrolyte . . . . . . . . . . . . . . . . . . . . . . . . 117
Diffusion Coefficients . . . . . . . . . . . . . . . . . . . . 118
Separator. . . . . . . . . . . . . . . . . . . . . . . . . 118
Initial Values . . . . . . . . . . . . . . . . . . . . . . . 119
Species Sources . . . . . . . . . . . . . . . . . . . . . . 119
Reference Electrode . . . . . . . . . . . . . . . . . . . . 119
No Flux . . . . . . . . . . . . . . . . . . . . . . . . . 120
Flux . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Inflow . . . . . . . . . . . . . . . . . . . . . . . . . . 120
Outflow . . . . . . . . . . . . . . . . . . . . . . . . . 120
Electrolyte Potential . . . . . . . . . . . . . . . . . . . . 120
6 | CONTENTS
an Electrode Surface . . . . . . . . . . . . . . . . . . . 137
Stoichiometric Coefficients for Double Layer Capacitive Charging . . . 138
Film Resistance . . . . . . . . . . . . . . . . . . . . . . 139
Equilibrium Potentials and the Nernst Equation . . . . . . . . . . 139
Electrode Kinetics Expressions . . . . . . . . . . . . . . . . 140
Theory for Specific Current Distribution Feature Nodes . . . . . . . 145
Reference . . . . . . . . . . . . . . . . . . . . . . . . 153
CONTENTS |7
Electrode Potentials and Reference Electrodes 176
Reference Electrodes . . . . . . . . . . . . . . . . . . . . 176
Boundary Conditions Using Reference Electrode Potentials. . . . . . 177
Nodes for Handling Electrode Potentials and Reference Electrodes. . . 177
8 | CONTENTS
Periodic Condition . . . . . . . . . . . . . . . . . . . . . 205
Line Mass Source . . . . . . . . . . . . . . . . . . . . . . 207
Point Mass Source . . . . . . . . . . . . . . . . . . . . . 207
Open Boundary . . . . . . . . . . . . . . . . . . . . . . 208
Thin Diffusion Barrier . . . . . . . . . . . . . . . . . . . . 208
Thin Impermeable Barrier . . . . . . . . . . . . . . . . . . 209
Equilibrium Reaction . . . . . . . . . . . . . . . . . . . . 209
Surface Reactions . . . . . . . . . . . . . . . . . . . . . 210
Surface Equilibrium Reaction . . . . . . . . . . . . . . . . . 211
Fast Irreversible Surface Reaction . . . . . . . . . . . . . . . 211
Porous Electrode Coupling . . . . . . . . . . . . . . . . . . 211
Reaction Coefficients . . . . . . . . . . . . . . . . . . . . 212
Electrode Surface Coupling . . . . . . . . . . . . . . . . . . 213
Porous Medium . . . . . . . . . . . . . . . . . . . . . . 213
Fluid (Porous Medium) . . . . . . . . . . . . . . . . . . . 214
Porous Matrix . . . . . . . . . . . . . . . . . . . . . . . 215
Dispersion . . . . . . . . . . . . . . . . . . . . . . . . 216
Unsaturated Porous Medium . . . . . . . . . . . . . . . . . 217
Liquid . . . . . . . . . . . . . . . . . . . . . . . . . . 217
Gas . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
Adsorption . . . . . . . . . . . . . . . . . . . . . . . . 220
Volatilization . . . . . . . . . . . . . . . . . . . . . . . 222
Species Source. . . . . . . . . . . . . . . . . . . . . . . 223
Hygroscopic Swelling . . . . . . . . . . . . . . . . . . . . 223
Out-of-Plane Flux . . . . . . . . . . . . . . . . . . . . . 224
Fracture . . . . . . . . . . . . . . . . . . . . . . . . . 226
Fluid (Fracture) . . . . . . . . . . . . . . . . . . . . . . 226
Fracture Material . . . . . . . . . . . . . . . . . . . . . . 227
CONTENTS |9
Reaction Thermodynamics . . . . . . . . . . . . . . . . . . 249
Species Activity . . . . . . . . . . . . . . . . . . . . . . 249
Species Thermodynamics. . . . . . . . . . . . . . . . . . . 250
10 | C O N T E N T S
Initial Values . . . . . . . . . . . . . . . . . . . . . . . 269
Reactions. . . . . . . . . . . . . . . . . . . . . . . . . 269
Surface Concentration . . . . . . . . . . . . . . . . . . . . 270
CONTENTS | 11
Chapter 6: Fluid Flow Interfaces
12 | C O N T E N T S
Initial Values . . . . . . . . . . . . . . . . . . . . . . . 363
Gravity . . . . . . . . . . . . . . . . . . . . . . . . . 364
Cross Section . . . . . . . . . . . . . . . . . . . . . . . 365
Thickness. . . . . . . . . . . . . . . . . . . . . . . . . 366
Porous Electrode Coupling . . . . . . . . . . . . . . . . . . 366
Electrode Surface Coupling . . . . . . . . . . . . . . . . . . 367
Pressure . . . . . . . . . . . . . . . . . . . . . . . . . 368
Mass Flux. . . . . . . . . . . . . . . . . . . . . . . . . 369
Line Mass Source . . . . . . . . . . . . . . . . . . . . . . 370
Point Mass Source . . . . . . . . . . . . . . . . . . . . . 371
Inlet . . . . . . . . . . . . . . . . . . . . . . . . . . . 371
Symmetry . . . . . . . . . . . . . . . . . . . . . . . . 373
No Flow . . . . . . . . . . . . . . . . . . . . . . . . . 373
Flux Discontinuity . . . . . . . . . . . . . . . . . . . . . 374
Outlet . . . . . . . . . . . . . . . . . . . . . . . . . . 375
Precipitation . . . . . . . . . . . . . . . . . . . . . . . 376
Interior Wall . . . . . . . . . . . . . . . . . . . . . . . 376
Thin Barrier. . . . . . . . . . . . . . . . . . . . . . . . 377
Pressure Head . . . . . . . . . . . . . . . . . . . . . . . 377
Hydraulic Head . . . . . . . . . . . . . . . . . . . . . . 378
Atmosphere/Gauge . . . . . . . . . . . . . . . . . . . . . 378
Pervious Layer . . . . . . . . . . . . . . . . . . . . . . . 379
Well . . . . . . . . . . . . . . . . . . . . . . . . . . 381
Fracture . . . . . . . . . . . . . . . . . . . . . . . . . 381
Fluid (Fracture) . . . . . . . . . . . . . . . . . . . . . . 384
Fracture Material . . . . . . . . . . . . . . . . . . . . . . 385
CONTENTS | 13
Gravity . . . . . . . . . . . . . . . . . . . . . . . . . 396
Electrode-Electrolyte Interface Coupling . . . . . . . . . . . . . 397
Wall . . . . . . . . . . . . . . . . . . . . . . . . . . 397
Theory for the Laminar Flow and Creeping Flow Interfaces 416
General Single-Phase Flow Theory . . . . . . . . . . . . . . . 417
Compressible Flow . . . . . . . . . . . . . . . . . . . . . 419
Weakly Compressible Flow . . . . . . . . . . . . . . . . . . 419
The Mach Number Limit . . . . . . . . . . . . . . . . . . . 419
Incompressible Flow . . . . . . . . . . . . . . . . . . . . 420
The Reynolds Number. . . . . . . . . . . . . . . . . . . . 421
Gravity . . . . . . . . . . . . . . . . . . . . . . . . . 422
Theory for the Wall Boundary Condition . . . . . . . . . . . . 423
Prescribing Inlet and Outlet Conditions . . . . . . . . . . . . . 427
Fully Developed Flow (Inlet) . . . . . . . . . . . . . . . . . 429
Fully Developed Flow (Outlet). . . . . . . . . . . . . . . . . 431
No Viscous Stress . . . . . . . . . . . . . . . . . . . . . 432
Normal Stress Boundary Condition . . . . . . . . . . . . . . . 432
Pressure Boundary Condition . . . . . . . . . . . . . . . . . 433
Porous Interface . . . . . . . . . . . . . . . . . . . . . . 435
Mass Sources for Fluid Flow . . . . . . . . . . . . . . . . . 438
Numerical Stability — Stabilization Techniques for Fluid Flow . . . . . 440
Solvers for Laminar Flow . . . . . . . . . . . . . . . . . . . 442
14 | C O N T E N T S
Pseudo Time Stepping for Laminar Flow Models . . . . . . . . . . 445
Nitsche Constraints. . . . . . . . . . . . . . . . . . . . . 446
Particle Tracing in Fluid Flow . . . . . . . . . . . . . . . . . 446
References for the Single-Phase Flow, Laminar Flow Interfaces . . . . 447
Theory for the Free and Porous Media Flow, Darcy Interface
458
References . . . . . . . . . . . . . . . . . . . . . . . . 460
CONTENTS | 15
Chapter 7: Heat Transfer
16 | C O N T E N T S
Theory for the Phase Field in Fluids Interface 488
About the Phase Field Method. . . . . . . . . . . . . . . . . 488
The Equations for the Phase Field Method . . . . . . . . . . . . 488
Conservative and Nonconservative Forms . . . . . . . . . . . . 490
Additional Sources of Free Energy . . . . . . . . . . . . . . . 491
Initializing the Phase Field Function . . . . . . . . . . . . . . . 491
Variables and Expressions . . . . . . . . . . . . . . . . . . 492
Reference for the Phase Field in Fluids Interface . . . . . . . . . . 493
Index 507
CONTENTS | 17
18 | C O N T E N T S
1
Introduction
This chapter introduces you to the capabilities of this module. A summary of the
physics interfaces and where you can find documentation and model examples is
also included. The last section is a brief overview with links to each chapter in this
guide.
In this chapter:
19
About the Electrodeposition Module
These topics are included in this section:
• Cell geometry
• Electrolyte composition and mixing
• Electrode kinetics
• Operating potential and average current density
• Temperature
20 | CHAPTER 1: INTRODUCTION
• Metal deposition for protection of parts, such as corrosion protection and
protection against wear
• Decoration of metals and plastic parts
• Electroforming of parts with thin and complex structure
• Metal electrowinning.
22 | CHAPTER 1: INTRODUCTION
PHYSICS INTERFACE ICON TAG SPACE AVAILABLE STUDY TYPE
DIMENSION
Moving Interface
24 | CHAPTER 1: INTRODUCTION
In each module’s documentation, only unique or extra information is included;
standard information and procedures are centralized in the COMSOL Multiphysics
Reference Manual.
• In the Model Builder or Physics Builder, click a node or window and then
press F1.
• In the main toolbar, click the Help ( ) button.
• From the main menu, select Help>Help.
• Press Ctrl+F1.
• In the main toolbar, click the Documentation ( ) button.
• From the main menu, select Help>Documentation.
26 | CHAPTER 1: INTRODUCTION
Once the Application Libraries window is opened, you can search by name or browse
under a module folder name. Click to view a summary of the model or application and
its properties, including options to open it or its associated PDF document.
ELECTROCHEMISTRY INTERFACES
Electrochemistry Interfaces chapter describes the Primary Current Distribution,
Secondary Current Distribution, Tertiary Current Distribution, Nernst-Planck,
Current Distribution BEM, Electrode, Shell, and Electroanalysis interfaces.
28 | CHAPTER 1: INTRODUCTION
FLUID FLOW INTERFACES
Fluid Flow Interfaces chapter describes the Darcy’s Law, the Brinkman Equations, the
Free and Porous Media Flow, Brinkman, and the Free and Porous Media Flow, Darcy
interfaces.
HEAT TRANSFER
Heat Transfer chapter describes how to couple electrochemical heat sources to heat
transfer.
31
Introduction to Electrochemistry
Modeling
In this section:
• What Is Electrochemistry?
• Electrochemical Applications
• Fundamentals of Electrochemistry Modeling
• Current Distribution Cases and Choosing the Right Interface to Model an
Electrochemical Cell
• Understanding the Different Approximations for Conservation of Charge in
Electrolytes
• Modeling Electrochemical Reactions
• Double Layer Capacitance
• Porous Electrodes
• Boundary Conditions for Running and Controlling Electrochemical Cells
• Modeling Cyclic Voltammetry
• Common Simplifications When Modeling Electrochemical Cells
• Before You Start Building Your Model
• Meshing Advice
• Solving Electrochemical Models
• Postprocessing Your Solution
What Is Electrochemistry?
An electrochemical process is one that either converts electric energy to chemical
energy or converts chemical energy to electric energy.
Electrochemical systems can also be classified into systems that output energy or
systems that consume energy. Batteries and fuel cells are energy extraction devices —
an electrochemical reaction is used to convert the energy in chemical system into a
voltage. Such cells are also called galvanic cells. By contrast, in electrolysis, the system
consumes energy to promote an electrochemical reaction for synthesis. Similar
electrochemical systems needing energy input include manufacturing processes such as
electroplating. Electrochemical reactions may also be driven for electroanalysis, to
quantify or otherwise explore the chemical constituents or reactivity of a system.
Electrolysis occurs when a chemical species in the electrolyte exchanges one or more
electrons with the electrode. Capacitive charging occurs when the potential of an
electrode is changing, so that ions in the electrolyte are either attracted or repelled
from the surface, drawing a current.
Batteries and fuel cells can also involve porous electrodes, in which an electrode
material has a micro- or nanostructure that is permeable to an electrolyte solution. The
advantage of such a material is the great increase in the area of the electrode-electrolyte
interface.
Note that all current must move in circuits. An isolated electrode-electrolyte interface
cannot draw a net current, but a system with two such interfaces can. An
electrochemical system with two or more electrodes in contact with electrolyte is called
an electrochemical cell.
Conventional electric current is the flow of positive charge, which is then from anode
to cathode through the electrolyte. A closed circuit, conserving overall system charge,
is formed by the flow of electric current in the electrode domains (and any electrical
circuitry) from cathode to anode, and by the transport of ions through the electrolyte
domains from anode to cathode.
• Potential Variables
• Current Variables and Calculating the Total Cell Current
Under the assumption of a linear relation of current density to electric field, Ohm’s law
is obeyed for the electrolyte current. This is the assumption of primary current
distribution, where one also assumes infinitely fast electrodes kinetics, resulting in
negligible potential drops over the electrode-electrolyte interfaces. If the electrode
reaction kinetics proceed at a finite rate, then the system has a secondary current
distribution. In cases where more advanced nonlinear charge conservation equations
and concentration-dependent electrode polarization are required, the system is
described as obeying tertiary current distribution.
The electric displacement field in a medium is related to the local charge density
according to Gauss’s law, one of Maxwell’s equations:
D = v
In electrolytes, we can normally assume that the electric permittivity is constant and
equal to a bulk value:
D = 0 s E = – 0 s V
Hence
2 v
V + ---------
- = 0
0 s
In an electrolyte with ionic charge carriers, the charge density can be written as:
v = F zi ci
i
Hence
F
0 s
2
V + ---------- zi ci = 0
i
This is the Poisson equation relating the electrolyte potential to the distribution of
charge carriers within the electrolyte. In its derivation we assumed that the only charge
carriers are ions, and that the solvated ions and electric field do not alter the
permittivity of the medium.
The mass transport of the charge carriers in aqueous systems is normally given by the
Nernst–Planck equations. These equations neglect ion-ion interactions, and so they
are only exact for infinitely dilute solutions:
N i = – D i c i – z i u m i Fc i l + c i u
Note that concentrated electrolyte systems, such as those in many batteries, use an
extended concentrated species flux definition, based on the Maxwell–Stefan set of
Substituting the Nernst–Einstein relation for the electrical mobility of an ion we get:
ziF
N i = – D i c i + -------- c i l + c i u
RT
The above expressions for the n species i, together with the Poisson equation, give a
set of n 1 equations in n 1 unknowns. These are the Nernst–Planck–Poisson
equations. They can be defined in COMSOL Multiphysics by coupling Transport of
Diluted Species with Electrostatics, or by using the Tertiary Current Distribution,
Nernst-Planck interface with Charge conservation model: Poisson, but they are highly
nonlinear and difficult to converge. Most often, further approximations can simplify
the problem without compromising accuracy.
RT 0 s
xD = ------------------
-
2
F I
This is the length across which electric fields are screened. It is called the Debye length.
This is a very short length in electrolyte solutions: for a typical ionic strength, it is of
the order of 1 nm. Electroneutrality holds at distances much larger than 1 nm from a
charged surface:
zi ci = 0
il = F zi Ni
From substitution of the Nernst–Planck expressions for Ni, the laws of conservation
of mass and charge combine to automatically satisfy conservation of current.
We can simplify the system further by considering the arising expression for il in more
detail:
2
F
zi zi ci
2
il = – F D i z i c i – -------- l Di ci + u
RT
Clearly, the rightmost term is zero: that is, convection of an electroneutral solution
does not cause current flow. The leftmost term (diffusion current) also vanishes due to
electroneutrality if the gradients of the charge carrying species are zero.
Even if this is not the case, however, this term is often much smaller than the central
term (migration current), so long as the concentrations of the current-carrying ions do
not vary markedly through the solution. Under conditions where the composition of
the electrolyte can be considered nearly constant and current-carrying ions are not
significantly depleted, the diffusion current can be assumed to contribute negligibly.
i l = – l l
This expression for current density is used in the Secondary Current Distribution
interface, and also the Primary Current Distribution interface. The difference between
these interfaces lies in the treatment of the electrode-electrolyte interfaces (see Kinetics
of Electrochemical Reactions below). From the above, the conductivity of the
electrolyte l is given as:
2
F
zi
2
l = -------- Di ci
RT
2
2F ID mean
l -----------------------------
RT
The advantage of the ohmic expression for current density is that it is a linear relation
of current density to electrolyte potential. It is only weakly nonlinear if l is allowed to
depend on a concentration solved for in a species transport interface. By comparison,
the Nernst–Planck equations with electroneutrality can be highly nonlinear.
The approximations used to derive the secondary current distribution expression place
tighter constraints on the allowed system configurations, however. The ionic strength
of the solution must remain near-constant for the constant conductivity approximation
to be valid. Usually this is only the case for relatively high conductivity solutions.
When the conductivity is large with respect to the current drawn, the electric field
becomes negligible in solution. For negligible electric fields, a diffusion-only
approximation may be used, where E 0. This converts the Nernst–Planck equations
into Fick’s laws, with a term for convective transport where necessary. Fick’s laws with
convection and electrochemical boundary conditions are solved for in the
Electroanalysis interface.
Even if you think a problem will involve the full Nernst–Planck equations,
it is best to set the model up in Secondary Current Distribution first, in order
to identify any other possible complications in the system while using a
simpler electrochemical model.
+ -
Ag (aq)+e Ag(s)
The Gibbs energy change is related to the equilibrium potential difference from the
electrode to the electrolyte according to:
G m
E eq m = – ------------
-
nm F
where Eeq,m is the potential difference on some external reference scale for which the
reaction is at equilibrium (G 0). This is called the equilibrium potential or
reduction potential (or in corrosion, corrosion potential) of the electrochemical
reaction, and its absolute value depends on the choice of reference electrode.
G = – RT ln K
it follows that
RT
E – E eq = -------- ln K
nF
The quantity
m = s – l – E eq m
The first is the Tafel law which describes an irreversible anodic or cathodic process:
log ---- = A
i
i 0
The constant A is the Tafel slope and has units 1/V. It is usually close to a half-integer
multiple of F/RT and is less than or equal to nF/RT. Note that a reference exchange
current density i0 must be specified for the reaction. This is by definition the current
density drawn at zero overpotential.
The Tafel law assumes that a reaction is irreversible. If the reverse reaction
might occur in practice, Tafel kinetics will not be correct.
a F – c F
i = i 0 exp --------------- – exp -----------------
RT RT
• i0 is an empirical quantity.
• It agrees with the Nernst equation when i = 0, so for a very fast reaction (i0 )
then the Butler–Volmer equation gives the same potential difference as the Nernst
equation. This is equally true under high resistance conditions.
• It agrees with the Tafel equation when either the anodic or cathodic term
dominates. For highly irreversible reactions (very low i0), appreciable current is only
drawn for large overpotential, so this is typically the case.
a + c F
i loc = i 0 ----------------------------
RT
The coupling of chemical flux to electric current density is automated in some of the
Electrochemistry interfaces by defining the reaction stoichiometry in the Electrode
Reaction and Porous Electrode Reaction nodes. In the Chemical species transport
interfaces the coupling however needs to be set up manually by the Electrode Surface
Couplingnodes. When modeling porous electrodes, the corresponding coupling node
to create a source/sink in a domain is the Porous Electrode Coupling node.
jm i m
N j = – ---------------
-
nm F
-
Ox + ne Red (2-1)
i loc a FE c FE
- = k fwd c R exp --------------- – k rwd c O exp – --------------
r = ------- - (2-2)
nF RT RT
where kfwd and krwd are reaction rate constants and cO and cR are the activities of the
oxidized and reduced species of the redox couple, respectively. The potential E is here
defined as
E = s – l (2-3)
and the transfer coefficients are equal the sum of electrons in the charge transfer
reaction according to
a F c F
i loc = i 0 exp --------------- – exp – -------------
- (2-5)
RT RT
cR c n cO a n
i 0 = i 0 ref ------------- -------------- (2-6)
c R ref c O ref
where i0, ref is the exchange current density at some chosen reference conditions, and
the overpotential is defined as
= E – E eq (2-7)
RT c R c R ref
E eq = E eq ref – -------- ln -----------------------
- (2-8)
nF c O c O ref
and Eeq, ref is the equilibrium potential at the same reference conditions.
Note that in Equation 2-5 both i0 and Eeq are concentration dependent. This has some
numerical drawbacks when modeling electrochemical cells including mass transport,
since for low concentrations of the participating species (that is, when cO 0 or
cR 0), the factor lncRcO may become undefined during the solution process. An
expression of the form of Equation 2-2 is more desirable since this expressions contains
a simple linear dependence on the species activities.
where
Note that Equation 2-9 now contains a linear dependence on the activities cO and cR.
The layer of charge on the electrode and layer of opposite charge in the adjacent
electrolyte is called the double layer and can be thought of as behaving like a parallel
plate capacitor, since the absolute amount of charge it separates varies with the charge
density on the electrode, and hence with its voltage. The physics of double layer
structure and formation are highly complex and are not yet well understood. One of
the simplest empirical methods to account for the observed influence of capacitance
on polarization curves is to introduce a constant ideal capacitance across the
electrode-electrolyte interface.
This effect can be added to via the Double Layer Capacitance condition. The capacitor
stores a surface charge density Q Cds l, and contributes a dynamic charging
current density (nonfaradaic current) equal to iNF dQ/dt. The total current
recorded in a real experiment equals:
i tot = i Far + i NF
Double-Layer Capacitance
Porous Electrodes
A porous electrode is one in which the three-dimensional structure of the electrode is
permeable to electrolyte. The electrode-electrolyte interface then extends over a much
larger surface area. This specific surface area (“SSA”, area per unit volume, units 1/m)
is a key property of a porous electrode. Additionally, such an electrode can conduct
electric current independently through its electrode and electrolyte domains.
Mathematically, a Total Current or Average Current Density condition implies setting the
potential of a boundary to be equal to an additional extra global potential degree of
freedom (floating potential) to comply with the specified current condition. For this
reason, solving for galvanic control is numerically slightly more complex.
Note that many galvanic corrosion situations are practically equivalent to a short circuit
of two electrodes consisting of different metals. In such models, the two metals are set
to the same potential. Usually this potential is chosen to be zero (ground).
• Electrode Potential
• Reference Electrode
The built-in Cyclic Voltammetry study step in the Electroanalysis interface can be used
to automatically set up the voltage sweep in a time-dependent study.
Electrode Surface
However, when modeling porous and gas diffusion electrodes the metal phase
potential is need typically to be included since the conductivity of the metal phase
potential can be much lower in this type of electrodes. This is done in the Porous
Electrode nodes.
HALF-CELL MODELS
Often, an investigator is only interested in the chemistry taking place at one electrode
in a cell. A model of one electrode is called a “half-cell model”.
One usually ignores the kinetics of the counter electrode in a model; commonly it is
represented by a constant potential boundary condition. Such a model is only valid if
the counter electrode can draw arbitrarily large amounts of current compared to the
working electrode, so that it never limits the current flow in the electrochemical cell.
One important example is the catalyst layer in a fuel cell. Since this layer is only
nanometers in size, transport across it is very fast compared to other parts of the
Another example is the passivation layer on an oxidized electrode surface, for which
the “Thin Film Resistance” setting can be used. Because the layer is much thinner than
its surroundings, the electric field through it is almost constant. Therefore, an ohmic
expression can be substituted to create a boundary condition with a potential drop.
This is much more efficient than meshing a geometrically narrow layer.
Film Resistance
It is better to use a layer of Infinite Elements around the finite simulation space to
project the simulation space to infinity, eliminating any error from artificially limiting
the simulation space. This is a typical approximation when the electrolyte domain is a
few orders of magnitude larger than the electrode: for example, a microelectrode in a
cm-scale reaction vessel.
• Start thinking about your cell in the lowest possible dimension. Starting with a 1D
model helps to understand the influence of different reactions in an electrochemical
system, and gives a good first estimate of current-voltage behavior. Go from 1D to
2D, then from 2D to 3D.
• Every electrode reaction adds numerical nonlinearities to your model. If you have
multiple electrode reactions, add them one at a time.
• Start with a simple description of the electrolyte current, such as Secondary Current
Distribution. Analyze the results to ensure that the electrochemical model is
consistent. Switch only to more complex electrolyte models, or add extra physics
such as mass transfer, heat transfer or flow, only if deemed necessary and when
satisfied with the results from a simpler case.
• If you are including flow in your model, solve for the flow field first before coupling
flow and electrochemistry together.
MODELING CHECKLIST
• Identify which domains are electrode and electrolyte. How will their conductivity
be assessed?
• What is happening on the electrode-electrolyte interfaces? Do both the anode and
the cathode need to be modeled? Do either need to be modeled as domains, or can
they be treated as boundaries?
• What electrochemical reactions take place at the electrode surfaces to cause charge
transfer? Can you parameterize their thermodynamics? Do you know the
equilibrium potentials? Can you parameterize their kinetics — and are the kinetics
ever going to be important? If not, ignore them.
• What is the system reference potential used to quote equilibrium potentials? Where
is the system ground?
• Are charge carriers in the electrolyte plentiful with respect to the drawn current
density, or is charge depletion important? Be aware of nonlinear effects that may
make convergence more difficult.
• If you are performing a time-dependent study, do your initial conditions have a
consistent current-voltage relationship?
• What other physics interfaces need to be coupled? How does charge transfer
influence these physics interfaces?
Electrochemical models involving mass transport generally benefit from a finer mesh
at the electrode surfaces, and at singularities such as the boundary between an
electrode surface and an insulating surface. This may be accomplished by adding
additional Size mesh nodes for these boundaries only. Also, consider refining the
“element growth rate”, and/or using boundary layer meshing in 3D.
For fluid domains, the default physics-controlled mesh should be used, with boundary
layers as required.
For some problems with a stationary flow velocity field and time-dependent
convection of electrochemically reacting species, it may improve convergence to set up
a refined mesh without boundary layers for the species transport study step.
• Make sure that the potential levels are “boot-strapped” somewhere in the model,
preferably by grounding one electrode. If there is no potential level defined
anywhere in the model, your model may have infinitely many solutions, and the
model will not converge.
• Electrochemistry Interfaces
• Specifying Initial Values and Inspecting and Troubleshooting Meshes
in the COMSOL Multiphysics Reference Manual
• Review the Initial Values for the concentration values. Zero initial concentration
values can be unsuitable for tertiary current distribution problems and battery
simulations, since they could imply that no charge carriers or no reacting material is
present.
• If steep concentration gradients are expected close to electrode surfaces, use
boundary layer meshing or finer mesh Size settings at these boundaries.
• When setting up user-defined kinetics expressions, avoid evaluating negative
concentrations by using expressions such as max(c, eps^2), where eps is the
machine epsilon (a very small but finite number).
• Electrochemistry Interfaces
In the COMSOL Multiphysics Reference Manual:
• Solve certain physics interfaces in a sequence. This can in many cases reduce
computational time and improve convergence. Analyzing the results when solving a
physics interface separately can also help when troubleshooting a nonconverging
model.
• A good strategy is often to solve for the potentials only (that is, disable mass
transport and flow interfaces), using a stationary study step, before solving the full
model in the study sequence. In this way the stationary solution is used as initial
values for the following steps. This can be manually by modifying the settings of the
study node, or in an automated way by using the Stationary with Initialization or Time
Dependent with Initialization study sequences, as described above.
• In many models the flow profile is only slightly (or not at all) affected by changes in
current density. Therefore it can be a good strategy to solve separately for the flow
early in the study sequence, and then solve for the other physics interfaces in the
• Electrochemistry Interfaces
In the COMSOL Multiphysics Reference Manual:
• Double-Layer Capacitance
In the COMSOL Multiphysics Reference Manual:
SOLVER SETTINGS
Try adjusting the solver settings.
POTENTIAL VARIABLES
Several different potential variables are available for postprocessing and during
computation. The most common ones are described in Table 2-1.
TABLE 2-1: COMMON POTENTIAL VARIABLES.
You can also define your own total current variable by using an Integration nonlocal
coupling across the electroactive boundaries. This variable can also be used during the
computation. In 1D axisymmetric and 2D axisymmetric components, make sure to
select the Compute integral in revolved geometry checkbox.
Electrochemistry Interfaces
This chapter describes the physics interfaces and features to model electrochemical
cells. The physics interfaces described are found under the Electrochemistry
branch ( ).
In this chapter:
61
• Theory for Electroanalysis
• Electrode Potentials and Reference Electrodes
Only the physics interface-specific nodes are described here. All other
nodes in the Primary Current Distribution and Secondary Current
Distribution interfaces are described in Shared Physics Features in the
Current Distribution Interfaces
Use this physics interface for generic modeling of electrochemical cells. It can be
combined with interfaces modeling mass transport to describe concentration
dependent (tertiary) current distributions.
Use the Current Distribution Type setting on the physics interface node, described
below, to switch between a Primary Current Distribution and a Secondary Current
Distribution interface.
SETTINGS
The Label is the default physics interface name.
The Name is used primarily as a scope prefix for variables defined by the physics
interface. Refer to such physics interface variables in expressions using the pattern
<name>.<variable_name>. In order to distinguish between variables belonging to
different physics interfaces, the name string must be unique. Only letters, numbers, and
underscores (_) are permitted in the Name field. The first character must be a letter.
The default Name (for the first physics interface in the model) is cd.
DOMAIN SELECTION
CROSS-SECTIONAL AREA
The selection between Primary or Secondary governs how electrode reactions are
modeled on interfaces between electrodes and electrolytes.
• Models using a Primary current distribution type use potential constraints (Dirichlet
boundary conditions), according to the equilibrium potential setting.
• Secondary current distribution models use current flux conditions (Neumann
boundary conditions) according to the sum of all electrode reaction current
densities.
DEPENDENT VARIABLES
This physics interface defines dependent variables (fields) for the Electrolyte potential
and Electric potential. The names can be changed but the names of fields and
dependent variables must be unique within a model.
DISCRETIZATION
The interface uses Linear elements by default and this setting is recommended for most
problems. Certain types of problems, such as models using porous electrodes, or
current distribution problems in two dimensions or higher, may benefit in terms of
solution accuracy from using Quadratic elements.
To see all settings in this section, click the Show More Options button ( ) and select
Advanced Physics Options in the Show More Options dialog.
Electrolyte
Use the Electrolyte node to define an electrolyte domain that only conducts current in
the ion conducting phase.
Note that electrolyte in this case does not refer to the pore electrolyte in porous
electrodes (which should be defined by a Porous Electrode node instead).
Initial Values
Use this node to specify the Initial Values of the electrolyte potential and the electric
potential for the solver.
For many electrochemical problems that use nonlinear electrode kinetics, such as
Butler–Volmer kinetics, providing reasonable initial values can significantly improve
solver convergence.
A good value for the Electric potential (SI unit: V) in electrode and porous electrode
domains can usually be derived from the boundary conditions. For instance, if a
boundary has been grounded or set to a cell potential, use that value as the initial value
also in the adjacent domain. For the Electrolyte potential (SI unit: V) a good initial
value is often the negative of the equilibrium potential of the grounded electrode.
Note: For Primary current distributions, or for models solved using a Current
Distribution Initialization study step set to Primary, the settings of this section usually
have limited impact on the solver convergence.
Porous Electrode
The Porous Electrode node sets up charge balances for the electrode and the pore
electrolyte in a porous electrode. Note that the node should be used for porous
domains that conduct current in both an electrolyte and an electrode phase. For the
case of domains that do not contain a pore electrolyte — for instance, a current
collector/feeder or a gas diffusion layer (GDL) in a fuel cell — use an Current
Conductor node instead.
Use Porous Electrode Reaction subnodes to define the charge transfer reactions that
occur on the interface between the electrolyte and electrode phases within the porous
electrode. For the Secondary Current Distribution interface, the Porous Matrix
Double-Layer Capacitance subnode is also available.
You may use the Effective conductivity correction factors to account for the lowered
effective conductivities of the electrode and electrolyte phases due to the lower volume
fractions of each phase, and the tortuosity of the porous matrix.
The Electrode volume fraction is used to calculate the effective electric conductivity of
the porous matrix when the correction factor is set to Bruggeman or Tortuosity.
Additionally, it is used in calculating the active specific surface area of the porous matrix
when Particle-based area option is selected in the child nodes.
DISSOLVING-DEPOSITING SPECIES
Use the settings of this section to define species that participate in
dissolution-deposition electrode reactions within the porous electrode, for instance
metal deposition/dissolution or oxide formation.
Use the Add ( ) and Delete ( ) buttons as needed in the tables to control the
number of species.
Dependent variables for the volumetric molar concentration are added for each
dissolving-depositing species. These variables can be used to keep track of the amount
of reacted material in the porous electrode. The total molar dissolution/deposition
rate depends on the reaction rates and stoichiometry, defined in the Porous Electrode
Reaction subnodes.
The Density and Molar mass determine the electrode growth velocity and the resulting
dissolved/deposited layer thickness. By multiplying by the electrode surface area (in
the case of multiple electrode reaction the average surface area is used), the change in
electrode and electrolyte volume fractions can be also be calculated. By use of the Add
volume change to electrode volume fraction (not available for Separator node of Tertiary
Current Distribution interface) and Subtract volume change from electrolyte volume
fraction checkboxes you may define how these volume changes should be included in
the model.
Thickness variables, based on the surface area, are also defined that you for instance
can use to couple to the Film Resistance (see below).
ADSORBING-DESORBING SPECIES
See the Electrode Surface node.
Periodic Condition
Use the Periodic Condition to define a periodic relation between two boundaries — for
instance, in a model describing a repetitive unit cell.
Use the Apply for electrolyte phase and Apply for electrode phase checkboxes to enable
the periodic condition for the electrolyte and electrode phase potentials, respectively.
By specifying a Potential difference, an offset in potential (typically per unit cell) can be
prescribed.
Thin insulating sheets are commonly inserted in the electrolyte in various types of
electrochemical cells. For example they may be used for optimizing the current
distribution in a corrosion protection application, of for optimizing the local
deposition rate in a deposition bath.
For the case of Resistive, the Surface Resistance can either be set directly, or calculated
from Thickness and Conductivity values.
ADVANCED SETTINGS
Enable Slit electric potential in porous electrodes to make the layer fully insulating for
the electrode phase potential along the selected boundaries.
The electric current conduction in the tangential direction of an edge can be described
by Ohm’s law or a Fixed electric potential or a Floating potential assuming infinite
conductivity of the edge or an External short electric potential which allows to connect
two electrodes over an external connector with a given bulk resistance or a Connection
point electric potential which allows to define a location for connections to other
locations in the model.
An Edge Electrode can only be applied to edges within, or adjacent to, Electrolyte
domains.
A default Electrode Reaction subnode is added by default to the feature. Double Layer
Capacitance, External Current Source, Electric Ground, Electric Potential, and Electrode
Current subnodes can also be added to the feature.
DISSOLVING-DEPOSITING SPECIES
Use the settings of this section to define species that participate in
dissolution-deposition electrode reactions o n the edge electrode, for instance metal
deposition/dissolution or oxide formation.
Use the Add ( ) and Delete ( ) buttons as needed in the tables to control the
number of species.
Dependent variables for the molar concentration (SI unit: mol/m) are added for each
dissolving-depositing species. These variables can be used to keep track of the amount
of reacted material on the electrode. The total molar dissolution/deposition rate
depends on the reaction rates and stoichiometry, defined in the Electrode Reaction
subnodes.
The Density and Molar mass determine the electrode growth velocity and the resulting
dissolved/deposited layer thickness, so that the change in the edge electrode radius
also can be calculated. By use of the Add volume change to edge radius checkbox you
may define if this volume change should be included in the model.
FILM RESISTANCE
See the Electrode Surface node. The section is only available when a Secondary current
distribution has been selected on the parent node.
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog.
Electrode Current
Use this node to define a current source in a point of an Edge Electrode node.
This node is available as a subnode to the Edge Electrode node, when Ohm’s Law has
been selected as the electric potential model.
Various nodes are also available and described for the Transport of Diluted Species
interface. See Domain, Boundary, and Pair Nodes for the Transport of Diluted Species
Interface
Ohm’s law is used in combination with a charge balance to describe the flow of
currents in the electrodes. The charge transfer reactions can be defined as boundary
SETTINGS
The Label is the physics interface node name that will be shown in the model builder
tree.
The Name is used primarily as a scope prefix for variables defined by the physics
interface. Refer to such physics interface variables in expressions using the pattern
<name>.<variable_name>. In order to distinguish between variables belonging to
different physics interfaces, the name string must be unique. Only letters, numbers, and
underscores (_) are permitted in the Name field. The first character must be a letter.
The default Name (for the first physics interface in the model) is tcd.
DOMAIN SELECTION
The domains that do not conduct current should be omitted from the selection list,
for example, the gas channels in a fuel cell.
OUT-OF-PLANE THICKNESS
For 2D components, the Thickness field (default value: 1 m) defines a parameter for the
thickness of the geometry perpendicular to the two-dimensional cross-section. The
value of this parameter is used, among other things, to automatically calculate the total
current from the current density vector. The analogy is valid for other fluxes.
CROSS-SECTIONAL AREA
For 1D components, enter a Cross-sectional area Ac (SI unit: m2) to define a parameter
for the area of the geometry perpendicular to the 1D component. The value of this
parameter is used, among other things, to automatically calculate the total current
from the current density vector. The analogy is valid for other fluxes. The default is
1 m2.
A Supporting electrolyte describes a situation where the major part of the charge is
transferred by ions whose concentration can be described as constant.
The Poisson option couples the Nernst–Planck equations for mass transport to the
Poisson equation for describing the potential distribution in the electrolyte, without
any assumption of electroneutrality. This option is typically used when modeling
problems where charge separation effects are of interest, typically within nanometers
from an electrode surface.
For the Electroneutrality option, the From electroneutrality list sets the species that is
calculated from the corresponding condition. Note that the choice of species to be
taken from electroneutrality affects the specific boundary conditions that can be set on
the eliminated species. For example, flux and concentration settings cannot be set for
the eliminated species, and initial values cannot be provided. The choice can also have
an impact on the numerics of the problem.
Note that the setting will only impact how potentials are interpreted in communication
between the physics and the Materials node. If the From material option is not in use
for equilibrium potentials or electrode kinetics, the setting has no impact.
ADVANCED SETTINGS
To display this section, click the Show button ( ) and select Advanced Physics Options.
Normally these settings do not need to be changed. Select a Material Balance Form —
Nonconservative (the default) or Conservative. The selection affects the formulation of
the convective term and, for porous domain nodes, also the accumulation term in the
material balance. For compressible electrolytes the conservative form should be used.
In the absence of convection and electrolyte volume fraction changes (porosity), the
choice between the conservative and nonconservative form is arbitrary. The
nonconservative form is usually preferred due to a slighter lower computational load.
DEPENDENT VARIABLES
This physics interface defines these dependent variables (fields), the Concentrations of
the species, the Electrolyte potential, and the Electric potential.
The names can be changed but the names of fields and dependent variables must be
unique within a model.
DISCRETIZATION
Concentrations basis function orders higher than Quadratic are not recommended if
transport by convection is dominating in the model.
To see all settings in this section, click the Show More Options button ( ) and select
Advanced Physics Options from the Show More Options dialog.
• When the Crosswind diffusion checkbox is selected, a weak term that reduces spurious
oscillations is added to the transport equation. The resulting system is nonlinear.
There are two options for Crosswind diffusion type:
- Do Carmo and Galeão — the default option. This type of crosswind diffusion
reduces undershoot and overshoot to a minimum but can in rare cases give
equations systems that are difficult to fully converge.
- Codina. This option is less diffusive compared to the Do Carmo and Galeão
option but can result in more undershoot and overshoot. It is also less effective
for anisotropic meshes. The Codina option activates a text field for the Lower
gradient limit glim (SI unit: mol/m4). It defaults to 0.1[mol/m^3)/[Link],
where [Link] is the local element size.
• For both consistent stabilization methods, select an Equation residual. Approximate
residual is the default setting and it means that derivatives of the diffusion tensor
components are neglected. This setting is usually accurate enough and is faster to
compute. If required, select Full residual instead.
In the COMSOL Multiphysics Reference Manual see Table 2-4 for links
to common sections and Table 2-5 to common feature nodes. You can
also search for information: press F1 to open the Help window or Ctrl+F1
to open the Documentation window.
What settings are available in this node depends on the Electrolyte Charge
Conservation setting, available on the top node. The Electrolyte conductivity (SI unit:
S/m) setting is only available for the Supporting Electrolyte option. Diffusivity and
mobility settings for H+ and OH- are only available for the Electroneutrality,
water-based option.
The Convection section is available when the Convection checkbox is selected on the
interface top node. The Velocity field u (SI unit: m/s) of the solvent is specified as a
feature input. Select the source of velocity field from the velocity field list.
By default the Mobility (SI unit: s·mol/kg) for each species is set to be calculated based
on the diffusion coefficients (SI unit: m2/s) specified in the Diffusion section and the
temperature using the Nernst–Einstein relation.
The mobility setting will only have an impact on the transport by migration of charged
species, as defined by the Charge number zc (dimensionless, specify negative charges
using a minus sign). For the Electroneutrality charge conservation model you need at
least one positively and one negatively charged species (ion) in the electrolyte.
Specify the temperature (if you are using mobilities based on the Nernst-Einstein
relation) in the Model Inputs section.
Note that the electrolyte in this case does not refer to the pore electrolyte in porous
electrodes (which should be defined by a Porous Electrode node instead). For porous
separators, use the Separator instead.
• Electrolyte Theory
• Domain Equations for Tertiary Current Distributions Using the
Nernst–Planck Equations and Electroneutrality
Note that the node should be used for porous domains that conduct current in both
an electrolyte and an electrode phase. For the case of domains that do not contain a
pore electrolyte — for instance, the gas diffusion layer (GDL) in a PEMFC electrode
— use an Electrode node instead.
Use Porous Electrode Reaction child nodes to define the charge transfer reactions that
occur on the interface between the electrolyte and electrode phases within the porous
electrode. The Porous Matrix Double Layer Capacitance subnode is also available.
See the Electrolyte node for more information about the Diffusion and Migration in
Electric Field settings of this node.
The Electrode volume fraction is used to calculate the effective electric conductivity of
the porous matrix when the correction factor is set to Bruggeman or Tortuosity.
Additionally, it is used in calculating the active specific surface area of the porous matrix
when Particle-based area option is selected in the child nodes.
DISSOLVING-DEPOSITING SPECIES
See the Porous Electrode node of The Primary and Secondary Current Distribution
Interfaces.
ADSORBING-DESORBING SPECIES
See the Electrode Surface node.
Separator
Use a Separator node to model electrolyte charge and mass transport in an
electronically isolating porous matrix. Use correction factors to account for the
lowered diffusion coefficients in the electrolyte and the lowered conductivities of the
electrode, due to the lower volume fractions of each phase and the tortuosity of the
porous matrix.
See also the Electrolyte node for more information about the Diffusion and Migration in
Electric Field settings of this node.
DISSOLVING-DEPOSITING SPECIES
See the Porous Electrode node of The Primary and Secondary Current Distribution
Interfaces.
Reactions
Use the Reactions node to define nonelectrochemical reactions in an electrolyte
domain.
REACTING VOLUME
When specifying reaction rates in the Rc2 (SI unit: mol/m3·s) fields for a species in a
Porous Electrode domain, the specified reaction rate expression may either refer to the
total volume or the pore (electrolyte) volume. For nonporous domains the settings of
the Reacting Volume section has no impact.
For Total volume the reaction expressions are used as specified (multiplied by unity).
For Pore volume this results in the specified reaction expressions being multiplied by
the domain electrolyte volume fraction l. (l equals unity for nonporous domains).
For many electrochemical problems that use nonlinear electrode kinetics, such as
Butler–Volmer kinetics, providing reasonable initial values can significantly improve
solver convergence.
A good value for the Electric potential (SI unit: V) in electrode and porous electrode
domains can usually be derived from the boundary conditions. For instance, if a
boundary has been grounded or set to a cell potential, use that value as the initial value
also in the adjacent domain. For the Electrolyte potential (SI unit: V) a good initial
value is often the negative of the equilibrium potential of the grounded electrode.
For the Concentration initial values, at least one positive and one negative charged
species should have a nonzero and positive initial value (after considering the
electroneutrality condition). The initial value for the ion calculated from the
electroneutrality condition cannot be set explicitly.
The node models the transport of all species added at the interface top node, and adds
a fixed space charge to the electroneutrality condition.
The Fixed space charge specifies the charge ions fixed in the membrane polymer matrix.
Use negative space charges for cation selective membranes and positive charges for
anion selective membranes, respectively.
Select the Apply Donnan Boundary Conditions checkbox to enable Donnan equilibrium
conditions on all interior boundaries between the domain selected by the node and all
adjacent domains selected by the interface (except Electrode nodes). The boundary
conditions are applied for all species and the electrolyte potential dependent variable.
This option is not available for the Poisson charge conservation model option.
For the remaining settings of this node, see the Electrolyte and Separator nodes.
Note that using the Ion Exchange Membrane domain node often is a more convenient
modeling approach if the transported species in the free electrolyte and ion exchange
membrane are the same.
The choice of Charge-carrying species concentration species specifies that the current
flowing over the boundary will be carried by this species (which must have a nonzero
charge number). Use the Membrane potential setting to set the electrolyte potential on
the membrane side of the boundary. Note that if this potential is set to the electrolyte
potential of a Primary or Secondary Current Distribution interface, no additional
settings are needed in that interface to set up the correct boundary condition.
The potential condition may be either Donnan, which will calculate the potential shift
over the boundary based on the membrane charge carrying species concentration, or
can be User defined.
The layer may either be Insulating, Resistive (supporting electrolytes only), or an Ion
exchange membrane.
For Resistive or Ion exchange membrane, the potential drop over the membrane is
determined either from the Surface resistivity or the Thickness and conductivity.
Due to the use of BEM, current source terms in the electrolyte, and porous electrodes,
cannot be used in this interface.
The individual node settings of the Current Distribution, Boundary Elements are in most
cases identical to the corresponding nodes in The Primary and Secondary Current
Distribution Interfaces. This chapter will only cover features and settings specific for
the Current Distribution, Boundary Elements interface.
SETTINGS
The default Name (for the first physics interface in the model) is cdbem.
DOMAIN SELECTION
The interface supports selection of voids.
When the Infinite void is selected the boundary element formulation includes infinity.
Use the settings of the Infinity Condition section to set the boundary condition for
the potential at infinity.
Note: The default domain selection of the interface is All domains and voids which
includes the Infinite void. The domain number of the infinite void is 0. Another way
to add the Infinite void to the selection is to click Paste Selection and type in 0.
SYMMETRY
Symmetry can be a convenient way to add insulating boundaries of infinite extension,
for instance to model the surface of the ocean in a subsea corrosion protection
problem.
INFINITY CONDITION
Use the settings of this section to apply a boundary condition for the electrolyte
potential at infinity.
The settings are only active if the Infinite Void is included in the selection.
QUADRATURE
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog.
Select the Thin gap handling checkbox to increase the accuracy of the quadrature
between almost-touching mesh element pairs (that is, pairs that are extremely close
with respect to element size). The value in the Threshold distance (relative to mesh size)
controls the distance at which elements are considered as almost touching (default
value: 0.1). A larger value should provide more accurate results but at an increased
computational cost. Under Integration order, the Integration order, very close elements
(thin gap) option becomes active, making it possible to set a higher-order rule for such
elements. In 3D, an additional variable transformation is applied to improve the
accuracy even further.
The settings under Integration order are by default set to Automatic. This means that
the quadrature integration order values will follow the element order selection in the
Discretization section. Higher element orders automatically generate higher values for
the quadrature integration orders.
The quadrature integration order settings determine the level of accuracy of the
computation of double integrals over the singular integral kernels that need to be
evaluated for solving the BEM integral equations. For contributions from overlapping
mesh element pairs (identical elements, elements sharing common edge, or elements
with common vertex), specialized regularization transformations are applied before
proceeding with numerical integration. For evaluation of contributions from
nonoverlapping mesh element pairs, standard numerical integration is used. Due to the
• Integration order, distant elements: Integration order for evaluating standard double
integral BEM contributions from mesh pairs separated by a large distance relative to
their size.
• Integration order, close elements: Integration order for evaluating standard double
integral BEM contributions from mesh pairs separated by a short distance relative
to their size.
• Integration order, very close elements (thin gap) option becomes active, making it
possible to set a higher-order rule for such elements when the Thin gap handling
checkbox has been selected (see above).
• Integration order, elements with common vertex: Integration order for evaluating
regularized double integral BEM contributions from mesh pairs with a common
vertex.
• Integration order, elements with common edge: Integration order for evaluating
regularized double integral BEM contributions from mesh pairs with a common
edge.
• Integration order, same element: Integration order for evaluating regularized double
integral BEM contributions from identical mesh pairs.
• Integration order, weak contribution: Integration order for evaluating standard single
integral BEM contributions. This integration does not contain any singularities.
• Models using a Primary current distribution type use potential constraints (Dirichlet
boundary conditions), according to the equilibrium potential setting.
• Secondary current distribution models use current flux conditions (Neumann
boundary conditions) according to the sum of all electrode reaction current
densities.
Note that the setting will only impact how potentials are interpreted in communication
between the physics and the Materials node. If the From Materials option is not in use
for equilibrium potentials or electrode kinetics, the setting has no impact.
DISCRETIZATION
In this section you can specify the discretization orders of the dependent variable and
of auxiliary boundary element method boundary flux variables.
Note: The discretization order of auxiliary boundary element method edge flux
variables is the same as that of the dependent variable.
When using edge nodes (in 3D) the interface creates virtual tubes around the edge
selections, defined by the Edge radius (m).
It is generally assumed that the edge radius is small in comparison to other geometrical
measures of the model such as the edge length and the distance between different
edges in the geometry. This usually also implies that the decrease of available
electrolyte volume for charge transport, due to the space occupied by the tubes, can
be neglected. Enable Compensate for tube volume to include the effect of the volume
of the tubes on the electrolyte charge transfer.
Note that additional degrees of freedoms are introduced in the model when
compensating for the tube volume, and that this may result in higher memory usage
and longer solver times.
The nodes are available from the Physics ribbon toolbar (Windows users), Physics
context menu (macOS or Linux users), or right-click to access the context menu (all
users).The nodes and features described in this section are available for all the
Electrochemistry branch interfaces unless otherwise indicated.
In the COMSOL Multiphysics Reference Manual see Table 2-4 for links
to common sections and Table 2-5 to common feature nodes. You can
also search for information: press F1 to open the Help window or Ctrl+F1
to open the Documentation window.
The node is typically used for modeling solid metal electrodes, current collectors,
current feeders, gas diffusion layers and gas backings.
The Electric conductivity s (SI unit: S/m) parameter will define how the current in the
domain depends on the gradient of the potential.
Electrode Theory
See the Electrode Surface node for a description of the Electrode Phase Potential
Condition and Harmonic Perturbation sections.
See the Porous Electrode node for a description of the remaining settings.
is = Qs
where
i s = – s s
The Current source, Ql (SI unit: A/m3), is added according to the following equation:
il = Ql
To use this feature, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog. Then add the node from the Additional
Sources submenu.
See the Electrode Reaction node for a description of the Equilibrium Potential,
Electrode Kinetics, Stoichiometric Coefficients and Heat of Reaction sections.
Use this node to simulate transient analysis techniques such as AC-impedance analysis
and current interrupt studies. Note that for stationary problems the double-layer
current is zero.
This node is not available for the Primary Current Distribution interface.
STOICHIOMETRIC COEFFICIENTS
Use the settings of the Stoichiometric Coefficients section (not available in the Primary
or Secondary Current Distribution interfaces) to control what species are participating
in the double-layer charging — that is, the mass exchange between the double layer
and the electrolyte outside the double layer.
The number of participating electrons should be chosen so that the mass exchange is
scaled correctly to the double layer charging current.
The stoichiometric coefficients, i, should be chosen considering the situation when
the porous electrode is being cathodically polarized. In other words, use a negative
stoichiometric coefficient for ions (species Si) that are transported into the double layer
of the electrode that is being cathodically polarized (typically the cations), and positive
stoichiometric coefficients for ions (species Si) that are transported out of the double
layer (typically the anions).
Insulation
The Insulation boundary condition describes the walls of a cell or the boundaries of the
cell that do not face a conductor. The boundary condition imposes the following
equation:
ik n = 0
where ik denotes the current density vector and k = l, s is an index for the electrolyte
and electrode, respectively.
Symmetry Theory
Electrode Surface
Use the Electrode Surface node to model an electrochemical electrode-electrolyte
interface between an electrolyte domain and an electrode boundary where the
electrode is not included explicitly as a domain in the model geometry. Set the electric
potential of the electrode or specify a current condition that the potential of the
electrode shall fulfill, and use subnodes to specify the Electrode Reaction and the
Double-Layer Capacitance at the interface.
This node can only be applied on outer boundaries to electrolyte domains. For interior
boundaries between electrolyte and electrode domains, use the Internal Electrode
Surface node. For interior boundaries to electrolyte domains, use the Perforated
Electrode Surface node.
DISSOLVING–DEPOSITING SPECIES
Use the settings of this section to define species that participate in
dissolution-deposition electrode reactions, for instance metal deposition/dissolution
or oxide formation.
Use the Add ( ) and Delete ( ) buttons as needed in the table to control the
number of species.
The Density and Molar mass, in conjunction with the reaction rates and stoichiometry,
defined in the Electrode Reaction subnodes, determine the normal electrode growth
rate. The growth rate can be used in conjunction with the Deforming Electrode
Surface and Nondeforming Boundary multiphysics couplings to model geometry
deformations.
When solving for the species concentration variables, corresponding thickness variables
are defined that you for instance can use to couple to the Film Resistance (see below).
ADSORBING–DESORBING SPECIES
Use the settings of this section to define species that may adsorb or desorb on the
electrode surface during charge transfer, or nonfaradaic, reactions.
The Density of sites parameter will be used to set up the local surface mass balance
equations for the fractional surface coverages.
Use the Add ( ) and Delete ( ) buttons as needed in the table to control the
number of species. The name of each adsorbing–desorbing Species may be edited in
the first column of the table. Use a Site occupancy number larger than unity for species
that occupy more than one site at the electrode surface.
According to the settings of the table, the fractional surface coverage variable names
will be defined according to xxx.theta_yyy_zzz where xxx is the interface name,
yyy the tag of the electrode surface node, and zzz the species name. The variable
xxx.thetafree_yyy represents the fraction of free surface sites. These variable names
may be used when defining kinetics parameters in Electrode Reaction subnodes.
Specify either a Surface resistance Rfilm (SI unit: ·m2) directly or choose the Thickness
and conductivity option to calculate the surface resistivity based on a depositing film
thickness.
HARMONIC PERTURBATION
Use this section in conjunction with AC Impedance study types to control the
perturbation amplitude in the frequency domain.
Use the Electric potential option to set the value of the potential explicitly with respect
to ground whereas the Electrode potential will set the potential value with respect to a
reference potential. Total current, Average current density, and External short all add an
extra global degree of freedom for the potential in the electrode phase, set to comply
with the chosen condition. When using the Total current option in 1D or 2D, the
boundary area is based either on the Cross-sectional area (1D), or the Out-of-Plane
thickness (2D) properties, set on the physics interface top node.
In the Lithium-Ion Battery and the Battery with Binary Electrolyte interfaces, if the
Define cell state of charge (SOC) and initial charge inventory checkbox has been ticked in
the Cell Settings section on the physics interface top node, the Total current can be
specified either explicitly or as a multiple of the C-rate current variable
(xxx.I_1C_cell, where xxx is the physics interface tag) that is defined by the global
SOC and Initial Charge Distribution node.
See also the documentation for the Electrode Potential and External Short nodes for
further information about these boundary condition.
End potential
Cycle 1 Cycle 2
Vertex 1
Vertex 2
Start potential
Figure 3-1: Electric potential vs time generated by the cyclic voltammogram boundary
condition. The linear sweep rate is 100 mV/s, the number of cycles is 2. Potentials levels are
also shown.
More advanced waveforms can be obtained using the Electric potential option with a
parameter setting based on Functions found in the Definitions menu.
The Counter electrode option will set a potential to ensure an overall charge balance of
the cell so that the integral of all electrode reaction currents of all electrode surface
node sums up to zero.
When Add events at vertex potentials in cyclic voltammetry is enabled, solver events are
added at the vertex potentials for the cyclic voltammogram. When the vertex potentials
are reached, these events cause the solver to stop, reinitialize some variables, and then
continue. This typically improves solver convergence. In addition, by forcing the
time-dependent solver to resolve the time steps when the vertex potentials are reached,
the solution accuracy is improved, especially if the solver is set to output solutions
before and after events.
The setting determines which equilibrium potential value will be used for defining the
primary current distribution constraint. When the First reaction has been selected, the
first electrode reaction subnode must be active in the model.
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog.
CONSTRAINT SETTINGS
For primary current distributions, the use of weak constraints will in some cases give a
more accurate value of the local current density during the solver process. This may in
turn render more accurate results when coupling to the local current density variable
to describe other phenomena in the model, for instance when modeling geometry
deformation due to electrode dissolution/deposition.
The section is available in the Primary Current Distribution and Secondary Current
Distribution interfaces when the Current Distribution Model property has been set to
Primary.
This section is only available in the Primary Current Distribution and Secondary
Current Distribution interfaces when the Current Distribution Model property has been
Electrode Reaction
The Electrode Reaction subnode defines the electrode kinetics for a charge transfer
reaction that occurs on an electrolyte-electrode interface boundary. Use multiple
nodes to model multiple reactions, for instance in mixed potential problems.
The parent node may be either an Internal Electrode Surface or an Electrode Surface.
Note that all settings described below are not available for all Electrochemistry
interfaces.
EQUILIBRIUM POTENTIAL
The Equilibrium potential, Eeq (SI unit: V), is used in the electrode kinetics expressions
in the Electrode Kinetics section (via the definition of the overpotential), or for setting
up primary current distribution potential constraints.
The equilibrium potential may be defined either in the Materials node (From material),
by using the Nernst Equation, or by using a User defined expression.
For all interfaces except the Tertiary Current Distribution interface, the concentration
dependence is based on the user-defined Reduced species expression CR (unitless) and
Oxidized species expression CO (unitless) parameters. CR and CO should be defined so
that the quotient between them is 1 for the reference state (for which Eeq Eeq,ref).
REFERENCE CONCENTRATIONS
This section is only available in the Tertiary Current Distribution interface, if the
equilibrium potential has been selected to be defined by the Nernst Equation.
The reference concentrations define the reference state for which Eeq Eeq,ref.
ELECTRODE KINETICS
The settings of this section will define the local current density, iloc (SI unit: A/m2),
at the interface between the electrolyte and the electrode. Note that iloc for all built-in
kinetics expression types will depend on the overpotential, which in turn depend on
the Equilibrium potential defined in the previous section.
The Local current density expression, iloc,expr (SI unit: A/m2), can be defined either in
the Materials node (From material), by using the From kinetics expression, or by using
a User defined expression.
For all kinetic expressions the Exchange current density i0 (SI unit: A/m2) is a measure
of the kinetic activity. The exchange current density is typically concentration
dependent.
Most kinetic expression types feature the Limiting Current Density option in order to
impose an upper limit on the local current density magnitude. The feature can be used
to model additional mass transport limitations that are not already included in the local
current density expression. For Limiting Current Density enter a value for ilim
(SI unit: A/m2).
When using the Nernst Equation for defining the equilibrium potential (see above), the
concentration dependence of the Exchange current density i0 can be defined in a
thermodynamically consistent way in accordance with the Nernst equation, in
combination with a Reference exchange current density i0,ref (A/m2), which is the
exchange current density when Eeq Eeq,ref.
For all interfaces except the Tertiary Current Distribution interface, the concentration
dependence when using From Nernst Equation will use CR and CO as preexponential
factors for the anodic and cathodic terms, respectively. In the Tertiary Current
Distribution interface, the Lumped multistep option can be used to define i0 by the use
of either Generic exponentials, or Anodic or Cathodic reaction orders. The Mass action
law will define the reaction orders according to the reaction stoichiometry and the law
of mass action.
The Anodic Tafel slope, a (SI unit: V), defines the required increase in overpotential
to result in a tenfold increase in the current density.
Note that the combination of Nernst equation and the Butler-Volmer kinetics type will
in most cases render identical kinetics as for the Concentration Dependent Kinetics. It
is recommended to always use Nernst Equation + Butler–Volmer whenever possible,
since this combination is guaranteed to be thermodynamically consistent.
The kinetics expression type defines an irreversible electrode reaction where the
kinetics is so fast that the only factor limiting the reaction rate is the transport of a
species to the reacting surface.
The node will set the Rate limiting species concentration to zero at the boundary, and
balance the fluxes of the species participating in the reaction and the current densities
according to the Stoichiometric Coefficients settings.
In the Secondary Current Distribution interface the condition set by this expression
type is mathematically identical to what is applied when a Primary Current
STOICHIOMETRIC COEFFICIENTS
Specify the Number of participating electrons nm in the electrode reaction and the
Stoichiometric coefficient (vc1, vc2, and so forth) for each of the involved species
according to the following generic electrochemical reaction:
Set i as positive (red) for the reduced species and negative (ox) for the oxidized
species in an electrochemical reaction. The number of participating electrons, n,
should be positive.
If the concentration of a species in the charge conservation model for the electrolyte is
based on an algebraic expression (such as the electroneutrality condition, or the water
auto ionization), the stoichiometric coefficient for this species cannot be set explicitly.
The stoichiometric coefficient will instead be set implicitly, based on the number of
electrons and the stoichiometric coefficients of the other species participating in the
reaction.
HEAT OF REACTION
The Heat of Reaction section provides two options: Temperature derivative and
Thermoneutral voltage to calculate the reversible heat source of the electrode reaction,
which in turn can be used for coupling to heat transfer physics.
The Thermoneutral voltage parameter, Etherm (SI unit: V), can be specified in case of
Thermoneutral voltage selection.
Double-Layer Capacitance
The Double-Layer Capacitance node describes the nonfaradaic currents due to charge
and discharge of the double layer situated at the interface between the electrode and
the electrolyte. The resulting double-layer current density on the boundary depends
on the time derivative of the potentials and is proportional to the Electrical double-layer
capacitance Cdl (SI unit: F/m2). The parent node may be either an Internal Electrode
Surface or an Electrode Surface.
Use this node to simulate transient analysis techniques such as AC-impedance analysis
and current interrupt studies. Note that for stationary problems the double-layer
current is zero.
This node is not available for the Primary Current Distribution interface.
STOICHIOMETRIC COEFFICIENTS
Use the settings of the Stoichiometric Coefficients section (not available in the Primary
or Secondary Current Distribution interfaces) to control what species are participating
in the double-layer charging — that is, the mass exchange between the double layer
and the electrolyte outside the double layer.
The number of participating electrons should be chosen so that the mass exchange is
scaled correctly to the double layer charging current.
The stoichiometric coefficients, i, should be chosen considering the situation when
the porous electrode is being cathodically polarized. In other words, use a negative
stoichiometric coefficient for ions (species Si) that are transported into the double layer
of the electrode that is being cathodically polarized (typically the cations), and positive
stoichiometric coefficients for ions (species Si) that are transported out of the double
layer (typically the anions).
Apart from the applicable selection, the node is identical to the Electrode Surface
node.
Electrode domain
s
Electrolyte domain
l
The node can be applied at interior boundaries between electrode and electrolyte
domains, and to external boundaries of porous electrode domains. Note that, due to
the high conductivity of many electrode materials, a Current Conductor domain can
many times be replaced an external condition at the electrolyte boundary. For such
cases, consider using the Electrode Surface instead.
The node can be used as an alternative to drawing the actual electrode domain in the
model geometry, and may significantly reduce meshing and solver time, especially in
3D models. The node can typically be used to model electrodeposition or corrosion
processes occurring on thin sheets of metal.
The functionality of the node is similar to the Electrode Surface node. Use the Side
selection setting to define if the electrode reactions, defined by the Electrode Reaction
subnodes, are to be defined Both sides of the electrode, or on the Up or Down side only.
Electrolyte Potential
Add the Electrolyte Potential node from Electrolyte submenus for boundaries, edges,
and points to set a fixed potential at a position in the electrolyte. This node can be used
to model half-cells, or to set the electrolyte potential at the position of, for example, a
reference electrode.
The node sets the potential in the electrolyte, l, to be equal to the Boundary electrolyte
potential, l, bnd (SI unit: V).
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog.
Electrolyte Current
The Electrolyte Current boundary condition sets the total current or average current
density of a boundary. The condition sets the total inward current without imposing
the current density distribution. It will set a constant electrolyte potential along the
given boundary, that satisfies the current value setting.
When using the Total current option in 1D or 2D, the boundary area is based either
on the Cross-sectional area (1D) or the Out-of-Plane thickness (2D) properties, set on
the physics interface top node.
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog.
Note that using this node in 2D or 3D may result in an uneven potential distribution
along the boundary. To mitigate such effects you may use the Electrode Current node
instead.
By right-clicking this node you may enable Harmonic Perturbation. This means that the
node will only be active when solving for Frequency Domain study steps (typically used
in AC Impedance studies). The frequency spectrum is specified in the study node.
A thin electrode layer can be used to model, for instance, a contact impedance between
two electronic conductors.
For the case of Resistive, the Surface Resistance can either be set directly, or calculated
from Thickness and Conductivity values.
ADVANCED SETTINGS
Enable Slit electrolyte potential in porous electrodes to make the layer fully insulating
for the electrolyte phase potential along the selected boundaries.
Electrode Reaction and Double-Layer Capacitance subnodes are available from the
context menu (right-click the parent node) or from the Physics toolbar, Attributes
menu.
BOUNDARY CONDITION
This section specifies the potential of the electrolyte phase for the electrolyte-electrode
interface. The electrolyte potential is used (via the overpotential) by the Electrode
Reaction subnodes.
The Electrolyte potential will set the potential value directly, whereas Total current or
Average current density both add an extra global degree of freedom for the potential in
the electrolyte phase, set to comply with the chosen condition.
When using the Total current option in 1D or 2D, the boundary area is based either
on the Cross-sectional area (1D) or the Out-of-Plane thickness (2D) properties, set on
the physics interface top node.
Electric Ground
This node to sets the electric potential to zero.
The node is typically used to ground the voltage at an external boundary in a model
that contains either electrode or porous electrode domains.
CONTACT RESISTANCE
Enabling Include contact resistance allows for a Contact resistance Rc (SI unit: ·m2)
to be specified and the following current density condition is used:
–
– n i s = -------s-
Rc
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog.
Electric Potential
This node sets the electric potential in the electrode (or a porous electrode), s, to a
value, sbnd according to the following:
s = s bnd
CONTACT RESISTANCE
Enabling Include contact resistance allows for a Contact resistance Rc (SI unit: ·m2)
to be specified and the following current density condition is used:
s bnd – s
– n i s = ---------------------------
-
Rc
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog.
Note that using this node in 2D or 3D may result in an uneven potential distribution
along the boundary. To mitigate such effects you may use the Electrode Current node
instead.
By right-clicking this node you may enable Harmonic Perturbation. This means that the
node will only be active when solving for Frequency Domain study steps (typically used
in AC Impedance studies). The frequency spectrum is specified in the study node.
Electrode Current
Use the Electrode Current node to set the total current or average current density over
an external electrode or porous electrode boundary — typically at the interface
between the electrode and the current collector or current feeder. The condition sets
the total inward current without imposing the current density distribution. The
potential along the boundary is calculated in order to satisfy the total value of the
current.
In the Lithium-Ion Battery and the Battery with Binary Electrolyte interfaces, if the
Define cell state of charge (SOC) and initial charge inventory checkbox has been ticked in
the Cell Settings section on the physics interface top node, the Total current can be
When using the Total current option in 1D or 2D, the boundary area is based either
on the Cross-sectional area (1D), or the Out-of-Plane thickness (2D) properties, set on
the physics interface top node.
CONTACT RESISTANCE
Enabling Include contact resistance allows for a Contact resistance Rc (SI unit: ·m2)
to be specified.
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog.
Electrode Power
The Electrode Power boundary condition sets the power drawn from, or inserted to, an
electrical cell at external electrode boundary.
When using the Total power option in 1D or 2D, the boundary area is based either on
the Cross-sectional area (1D), or the Out-of-Plane thickness (2D) properties, set on the
physics interface top node.
CONTACT RESISTANCE
Enabling Include contact resistance allows for a Contact resistance Rc (SI unit: ·m2)
to be specified.
The Harmonic Perturbation subnode can be added to the Electric Potential, Electrolyte
Potential. The subnode is available from the context menu (right-click the parent
node) or from the Physics toolbar in the Contextual group.
You may also specify harmonic perturbations to the Electrode Current Density,
Electrolyte Current Density and Electrode Surface nodes.
Electrode Potential
Use the Electrode Potential node to set a boundary condition for the electric potential
with respect to a defined reference potential.
Electric potentials defined by the Electric Reference Potential and Reference Electrode
point nodes can be used as input when specifying the Electric reference potential vs,ref
(SI unit: V).
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog.
External Short
Use the External Short node to connect two electrodes over an external connector with
a given Resistance R (SI unit: ohm).
s = s here
s here – s there
s here : n Is dd = – ---------------------------------------
R
-
d
where s,there (V) is the potential of the connected electrode. Use the Connected
Potential list to choose among available connection potentials for the value of s,there.
This node is available as a subnode for the Electrode Surface, Perforated Electrode
Surface and Internal Electrode Surface. The node is not available if no adsorbing–
desorbing species are present in the parent node.
This node is available as a subnode for the Internal Electrode Surface and
Electrode-Electrolyte Boundary Interface. The node is not available if no dissolving–
depositing species are present or if the Solve for dissolving–depositing species
concentrations checkbox is cleared in the parent node.
Nonfaradaic Reactions
Use the Nonfaradaic Reactions node to define the reaction rate for dissolving–
depositing species due to nonfaradaic (not electrochemical) reactions that occur on the
boundary.
EQUILIBRIUM POTENTIAL
See Electrode Reaction for information about the settings of this section.
Circuit Terminal
This feature is only available with an AC/DC Module or a Battery Design Module
license.
Use the Circuit Terminal node to specify a coupling to the External I vs U node in the
Electrical Circuit interface.
OVERVIEW
The interface defines the individual transport of electrolyte species using the
Onsager-Stefan-Maxwell equations, which account for the binary interactions between
all modeled species in the mixture. In the Species section (see below), the active species
(cations, anions and neutral species) of the electrolyte mixture are defined. A minimum
of one cation and one anion needs to be defined. Internally, various matrix operations
are then performed in order to render an equation system defining an electrolyte phase
potential (default variable name: [Link]) and n 2 (where n is the total number of
electrolyte species) neutral electrolyte component fraction (cet.y_XXX) dependent
variables.
The names (XXX) of the electrolyte component fractions are generated automatically,
and are based on the species names and charges. For instance, the species set consisting
of the cation Fe (set to charge +2), the anion OH (charge -1) and the neutral species
H2O, will render the two electrolyte components Fe_OH_2 and H2O. Note that the main
purpose of defining the neutral electrolyte components is to generate an electroneutral
base for the dependent variables of the equation system, and the resulting chemical
formulas for the neutral salts may have no correspondence to for instance solid salt
compounds in nature.
The interface adds one Electrolyte node and one Reference Electrode as default
domain nodes. Both nodes are singletons and cannot be removed.
SETTINGS
The Label is the default physics interface name.
The Name is used primarily as a scope prefix for variables defined by the physics
interface. Refer to such physics interface variables in expressions using the pattern
<name>.<variable_name>. In order to distinguish between variables belonging to
different physics interfaces, the name string must be unique. Only letters, numbers, and
underscores (_) are permitted in the Name field. The first character must be a letter.
The default Name (for the first physics interface in the model) is cet.
DOMAIN SELECTION
If any part of the model geometry should not partake in the electrolyte transport part
of the model, remove that part from the selection list.
SPECIES
Specify the names and molar masses of the species in the Cations, Anions and Neutral
species tables. Only letters and numbers are permitted in the Name field. For the Cations
and Anions tables, also define the species charges. As described above in the Overview
section, this will result in a set of n-1 electrolyte components.
CONSISTENT STABILIZATION
To display this sections, click the Show More Options button ( ) and select
Stabilization in the Show More Options dialog.
Streamline diffusion (enabled by default) adds weak terms to the equation system that
may improve the quality of results for convection-dominated problems on coarse
meshes. When the Crosswind diffusion checkbox is selected, additional weak terms that
reduce spurious oscillations are added to the transport equations.
The same discretization is used for all dependent variables in the interface. Quadratic
elements are used by default. See Overview above regarding what dependent variables
are solved for, and naming conventions.
The Compute boundary fluxes checkbox is activated by default. When this option is
checked, the solver computes variables storing accurate boundary fluxes from each
boundary into the adjacent domain. If the checkbox is cleared, the boundary flux
variables are computed from the dependent variables using extrapolation, which is less
accurate in postprocessing results. This setting does however not create extra
dependent variables on the boundaries for the fluxes.
• <name>.nIl, where <name> is the name of the interface. This is the normal
electrolyte current density.
• <name>.ntflux_XXX. This is the normal total flux for each electrolyte component.
Also the Apply smoothing to boundary fluxes checkbox is available if the previous
checkbox is checked. The smoothing can provide a more well-behaved flux value close
to singularities.
For details about the boundary fluxes settings, see Computing Accurate Fluxes in the
COMSOL Multiphysics Reference Manual.
Regarding the Value type when using splitting of complex variables, see Splitting
Complex-Valued Variables in the COMSOL Multiphysics Reference Manual.
Electrolyte
The Electrolyte node defines various mixture properties.
The Volumetric Equation of State section defines the interrelations between the total
concentration of all species, the density, and the individual electrolyte component
fractions. The equation of state may be based either on a Density expression, or Molar
volumes. The density expression is typically composition dependent. Note that the
species Molar mass settings, defined on the interface top node, are also used when
defining the state equations.
The Chemical Potentials section defines how composition changes impacts the chemical
potentials of the electrolyte components. By default ideal conditions are assumed,
implying that unit chemical activity coefficients are used. Enabling Specify nonideal
thermodynamic factors allows for defining all independent partial derivatives of the
thermodynamic factors with respect to the electrolyte components.
˜ lñ i
i j = ̃ i ------------- (3-2)
ỹ j T p ỹl j k
Diffusion Coefficients
Use this node to define the transport properties of the electrolyte mixture. The
Maxwell-Stefan diffusivity coefficients define how gradients in the chemical potentials
of the species relate to the difference in species fluxes between all binary species pairs
in the mixture.
Separator
This node is contributing to the Electrolyte node and can be used to specify a nonunit
electrolyte volume fraction, and to alter the bulk diffusivity coefficients defined in the
Diffusion Coefficients node as a result of a lowered electrolyte volume fraction and the
topology (tortuosity) of the porous media. The node is typically used to define an inert
The Effective diffusivity correction setting defines a correction factor which is used as a
prefactor to the chemical potential gradients when computing the diffusion fluxes on
the Electrolyte node. The correction may be set to either Bruggeman, Tortuosity,
Effective diffusivity factor, or No correction.
The Electrolyte volume fraction setting defines the relative pore volume of electrolyte
in the porous matrix. The setting impacts the mass conservation equation used in
time-dependent simulations, but also the diffusion correction factor used in the
Bruggeman and Tortuosity options.
Initial Values
Use this node to define the initial values of the dependent variables solved for by the
physics interface.
For the electrolyte components, the initial values may be specified as either
Concentrations, Mass proportions, Molar proportions, or Electrolyte component fractions.
Species Sources
Use this node to define species sources, typically stemming from charge transfer,
heterogeneous or homogeneous electrolyte reactions, in an Electrolyte domain.
Reference Electrode
Use this node to define the stoichiometry of a reference electrode reaction, which in
turn defines the electrolyte phase potential dependent variable added by the
Electrolyte node. By defining a reference electrode stoichiometry, the electrolyte phase
potential can be directly related to an experimentally measurable voltage.
By convention the stoichiometry is defined for a reduction reaction (with the electron
on the left-hand side). Nonzero values should be specified for at least one anion or one
cation.
The reference electrode stoichiometry defined on this node is also used when using a
Reference-electrode-stoichiometry based mass-averaged velocity in the Electrolyte node,
as well as when defining the resulting electrolyte component fluxes when imposing an
Electrolyte Potential boundary condition.
Flux
Use this node to define species fluxes, typically stemming from charge transfer and/or
nonfaradaic reactions at an electrode surface adjacent to an Electrolyte domain.
Inflow
Use this node at an exterior boundary to define the electrolyte mixture of a convective
inlet stream. The electrolyte mixture may be defined either by using the same values as
defined on an adjacent Initial Values domain node, or by specifying the Concentrations
or Electrolyte component fractions on this node.
The boundary condition may be defined using either a Pointwise constraint or a Flux
(Danckwerts) condition. The Pointwise constraint condition can sometimes be a more
stable option, whereas the Flux (Danckwerts) may render more consistent results when
specifying an upstream mixture composition when there are concentration gradients
present in the electrolyte close to the boundary.
The electrolyte current density in the normal direction to boundary is set to zero.
Outflow
This node defines a convective outlet featuring no concentration gradients in the
normal direction to the boundary.
The electrolyte current density in the normal direction to boundary is set to zero.
Electrolyte Potential
Use this boundary node to define an electrode surface operating at a fixed potential in
the absence of kinetic activation losses.
The reaction stoichiometry of the electrode reaction is taken from the Reference
Electrode node, and the species fluxes in the normal direction of the boundary will
balance the electrolyte current density accordingly.
The physics interface is suitable for modeling thin electrodes where the potential
variation in the normal direction to the electrode is negligible. This assumption allows
for the thin electrode domain to be replaced by a partial differential equation
formulation on the boundary. In this way the problem size can be reduced, and
potential problems with mesh anisotropy in the thin layer can be avoided.
Ohm’s law is used in combination with a charge balance to describe the conduction of
currents in the shell electrode.
When this physics interface is added, these default nodes are also added to the Model
Builder — Electrode, Electric Insulation (the default edge or point condition), and Initial
Values. Then, from the Physics toolbar, add other nodes that implement, for example,
edge or point conditions and current sources. You can also right-click Electrode, Shell
to select physics features from the context menu.
SETTINGS
The Label is the default physics interface name.
The Name is used primarily as a scope prefix for variables defined by the physics
interface. Refer to such physics interface variables in expressions using the pattern
<name>.<variable_name>. In order to distinguish between variables belonging to
different physics interfaces, the name string must be unique. Only letters, numbers, and
underscores (_) are permitted in the Name field. The first character must be a letter.
The default Name (for the first physics interface in the model) is els.
THICKNESS
DISCRETIZATION
To see all settings in this section, click the Show More Options button ( ) and select
Advanced Physics Options in the Show More Options dialog.
In the COMSOL Multiphysics Reference Manual see Table 2-4 for links
to common sections and Table 2-5 to common feature nodes. You can
also search for information: press F1 to open the Help window or Ctrl+F1
to open the Documentation window.
Boundary, Edge, Point, and Pair Nodes for the Electrode, Shell
Interface
The Electrode, Shell Interface has these boundary, edge, point, and pair nodes, listed
in alphabetical order, available from the Physics ribbon toolbar (Windows users),
Physics context menu (Mac or Linux users), or right-click to access the context menu
(all users).
These nodes are available and described for the Current Distribution interfaces, where
edges (3D components) or points (2D and 2D axisymmetric components) are selected
instead of boundaries.
• Electrode Potential
• Electric Reference Potential
In the COMSOL Multiphysics Reference Manual see Table 2-4 for links
to common sections and Table 2-5 to common feature nodes. You can
also search for information: press F1 to open the Help window or Ctrl+F1
to open the Documentation window.
Electrode
The Electrode node defines the current conduction in the tangential plane. Use the
node to define the electrode thickness and electric conductivity.
ELECTRODE
The Electrode thickness s (SI unit: m) defaults to 1014 m.
The default Electric conductivity (SI unit: S/m) uses values From material. Or select
User defined. For User defined enter values or expressions for an isotropic or anisotropic
conductivity. Select Isotropic, Diagonal, Symmetric, or Full depending on the properties
Initial Values
The Initial Values node adds the electric potential that can serve as an initial guess for
a nonlinear solver. If more than one initial value is needed, add Initial Values nodes from
the Physics toolbar.
INITIAL VALUES
Enter values or expressions for the Electric potential (SI unit: V). The default value
is 0 V.
Depositing Electrode
The Depositing Electrode node implements Equation 3-46 (with no source term),
Equation 3-47, and Equation 3-48. Use this node to define the seed layer thickness,
the electrode thickness change, the electric conductivity, and the electrode current
density.
The electrode thickness change and electrode current density are typically coupled to
an Electrochemistry interface that describes the current distribution in the adjacent
domain and the electrode reactions.
DEPOSITING ELECTRODE
The Seed layer thickness s0 (SI unit: m) defaults to 1·10-4 m.
Enter a value or expression for the Electrode thickness change s (SI unit: m). The
default is 0 m.
The default Electric conductivity (SI unit: S/m) uses the value From material. For User
defined select Isotropic, Diagonal, Symmetric, or Full depending on the properties of the
pore electrolyte. Then enter any expression for the conductivity as a function of
temperature. Then enter a value or expression in the field or matrix.
Current Source
The Current Source node adds a source term to Equation 3-46. Use this node to define
the current source.
T is = in
The node can be used to couple the Electrode, Shell interface to the electrode
reactions in an Electrochemistry interface that describes the electrolyte currents in the
adjacent domain.
i s n = i s 0
Ground
The Ground node is available on edges (3D components) and points (all components)
and sets the potential according to s 0.
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog.
Electric Potential
The Electric Potential node is available on edges (3D components) and points (all
components) and sets the potential according to s s,0.
ELECTRIC POTENTIAL
Enter the value or expression for the Electric potential s,0 (SI unit: V).
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog.
The Electroanalysis option is suitable for modeling mass transport of diluted species in
electrolytes using the diffusion-convection equation, solving for electroactive species
concentrations.
The Tertiary Current Distribution, Nernst–Planck Interface also features options for
modeling cyclic voltammetry and electrochemical impedance spectroscopy.
Use this Model Wizard entry to model electroanalytical problems with electrolyte
solutions containing a large quantity of inert “supporting” electrolyte. Ohmic loss is
assumed to be negligible.
The Model Wizard entry is available in 1D, 2D, and 3D as well as for axisymmetric
components in 1D and 2D.
The default dependent variables are the molar concentrations, c1 and c2, of the two
electroactive species in a redox couple and the electric potential, phis, which is solved
for either in the Electrode or Porous Electrode domain feature.
c i
+ N i = R i tot
t
N i = – D i c i – z i u m i Fc i l + c i u = J i + c i u
where
J i = – D i c i – z i u m i Fc i l
The net current density can be described using the sum of all species fluxes:
il = F zi Ni
where il denotes the current density vector (SI unit: A/m2) in the electrolyte.
u = 0
The velocity vector in the convective term can therefore be moved out of the
divergence operator which gives the nonconservative form of the Nernst-Planck
equations:
c i
+ J i + u c i = R i
t
c i
+ Ji + ci u = Ri
t
For mass transport in porous systems, the accumulation term is deviating between the
conservative or nonconservative formulations. The electrolyte volume fraction
(porosity), i, is only differentiated in the conservative form giving the following
formulation:
i ci
- + Ji + ci u = Ri
----------------
t
c i
i ------- + J i + u c i = R i
t
zi um i ci l .
2 2
il = –F
zi um i ci
2 2
l = F
This equation takes the same form as Ohm’s law; in an electrolyte, charge transport is
ohmic, subject to the above assumptions.
Conservation of charge yields the domain equation usually used for the electrolyte in
the Primary and Secondary Current Distribution interfaces:
il= 0
The Primary and Secondary Current Distribution interfaces define two dependent
variables: one for the potential in the electrolyte and one for the electric potential in
the electrode. The conduction of current in the electrolyte is assumed to take place
through transport of ions as described above, while electrons conduct the current in
the electrode.
Since Ohm’s law is also used for current conduction in the solid electrode phase, the
general equation in these interfaces is according to the following:
ik = Qk
with
i k = – k k
where Qk denotes a general source term, k denotes an index that is l for the electrolyte
or s for the electrode, k denotes the conductivity (SI unit: S/m) and k the potential
(SI unit: V).
The rate of the electrochemical reactions can be described by relating the reaction rate
to the activation overpotential. For an electrode reaction, with index m, the activation
overpotential, denoted m, is the following:
m = s – l – E eq m
where Eeq,m denotes the equilibrium potential (also known as a reduction potential)
for reaction m.
l = s – E eq m
a m F m – c m F m
i loc,m = i 0 m exp ------------------------- – exp ----------------------------
RT RT
Both the exchange current density and the overpotential are typically
concentration dependent. It is possible include the dependence of
kinetics on concentration in the expression above. It also possible to use
other kinetics expressions.
il n = iloc m
m
is n = – iloc m
m
Both the Primary Current Distribution and Secondary Current Density Distribution
interfaces allow for a domain definition for porous electrodes. For the Primary Current
Distribution interface, the same constraint as above is applied.
In porous electrodes for the Secondary Current Distribution interface, the sum of all
reaction currents appears as a source in the domain equations:
il = Av m iloc m
m
is = – Av m iloc m
m
c i
+ J i + c i u = R i tot
t
where
The material balances give one equation per unknown species concentration.
There is one more unknown dependent in the variable, the electrolyte potential, which
requires an additional equation to close the system. This equation is the
electroneutrality condition, which follows from dimensional analysis of Gauss’s law. In
a typical electrolyte solution, it is accurate over lengths greater than a few nanometers:
zi ci = 0
Further, by combining the electroneutrality condition with the sum of all species flux
vectors and the species mass balance equation, multiplied by the individual species
charges, results in expressions for the current vector and a current balance equation,
respectively.
The expression for the current density in the electrolyte, il, reads:
whereas current balance in the electrolyte, used for solving for the electrolyte potential,
then becomes:
il = Ql
where Ql can here be any source or sink. (Ql is typically nonzero for porous
electrodes). These formulations are also valid for the pore electrolyte in porous
electrodes, except for the transport properties that have to be corrected for porosity
and tortuosity. In such cases, the source or sink, Ql, denotes the charge transfer
reactions in the porous electrode and/or the nonfaradaic source or sink due to double
layer charge and discharge.
In the current balance in a porous electrode, the local current density multiplied by the
specific surface area of an electrode gives a contribution to the source or sink, Ql, due
to electrochemical reactions.
is used to define the stoichiometric coefficients, i, with i being positive (red) for
products and negative (ox) for the reactants in a reduction reaction. The number of
participating electrons, n, is always positive.
where iloc,m is the local current density (SI unit: A/m2) of the electrochemical
reaction, nm the number of participating electrons and F (SI unit: C/mol) is the
Faraday constant. Note that iloc,m denotes the current density perpendicular to the
electrode surface.
The molar species flux, Ni, is obtained from the normal component of the molar
species flux vector over the electrode-electrolyte interface:
Ni = Ni n
where n is the normal vector of the boundary pointing into the domain.
For a porous electrode, the electrochemical reactions result in species source terms
calculated from:
i m i loc m
R i molar = – av m --------------------------
nm F
-
m
If the reaction rate is known, the total growth vdep, tot (m/s) is defined as the sum of
the velocity contributions for all species and electrode reactions according to:
Mi i m i loc m
v dep tot = – ------
i nm F
- -------------------------- (3-3)
i m
Where Mi (SI unit: kg/mol) is the molar mass and i (SI unit: kg/m3) the density of
the species. (i is the species index, and m the index of the electrode reaction).
This velocity may be used in deforming geometry models as a boundary condition for
the geometry deformation by assuming that dissolution or deposition always occurs in
x
n = v dep tot
t
dc s i i m i loc m
dt
= – -------------------------
nm F
-
m
Mi
s tot = ------
-c .
i s i
i
- + -
2e (electrical circuit) + A (solution) + X (double layer)
- + -
2e (electrode surface) + A (double layer) + X (solution)
Where Rfilm (SI unit: ohm·m2) is a generalized film resistance and itot the sum of all
currents over the interface. The activation overpotentials, m, for all occurring
electrode reactions on the electrode with the film receive an extra potential
contribution due to the film resistance according to:
m = s – s film – l – E 0 m
If the thickness and conductivity of the film are known, the resistance can be written as:
s 0 + s
R film = -----------------
-
film
where s0 is the reference/initial film thickness, s the electrode thickness change, and
film the conductivity (SI unit: S/m) of the film.
-
i S i + ne i Si
i: i 0 i: i 0
where i is the stoichiometric coefficient of the reacting species of index i and n is the
number of participating electrons.
The equilibrium potential of the electrode reaction, Eeq (V), is the electrode potential
(the difference between the electrode phase and electrolyte phase potentials, s l)
for which the net reaction rate (and the local current density, iloc) is zero.
The equilibrium potential is directly related to the change of Gibbs free energy of the
reacting species, G, as
Since the free energy of the reacting species is concentration dependent, also the
equilibrium potential is concentration (activity) dependent. Eeq is usually defined
according to the Nernst equation as
ai i
------------
RT
E eq = E eq ref – -------- ln
nF a i ref
i
where Eeq,ref (V) is the equilibrium potential for a reference state for which all species
activities ai (unitless) are equal to a chosen set of reference activities ai,ref (unitless).
For ideal solutions, the activities are replaced by concentrations. Standard conditions
correspond to reference concentrations of 1M for soluble species in the electrolyte,
partial pressures of 1 atm for gaseous species. Constant activities of 1 is used for solid
(metal) species and solvents.
= s – l – E eq
a F – c F
i loc = i 0 exp --------------- – exp -----------------
RT RT
It should be noted that, although used extensively for all sorts of reactions in the
electrochemical community, the Butler–Volmer equation was originally derived for
single-electron transfer reactions (for instance implying that the reaction does not
involve the breaking or creation of a chemical bond).
c i –a i
---------
- --------------
ai
------------
n ai
------------
n
i 0 = i 0 ref a i ref a i ref
i: i 0 i: i 0
where i0,ref is the exchange current density (SI unit: A/m2) at the reference state. The
above expression can be derived from the mass action law, which gives the following
expression for the local current density:
ai i
------------ a F ref ai –i – c F ref
- exp -------------------- ------------ exp -----------------------
i loc = i 0 ref
a i ref RT
- –
a i ref
-
RT
i: i 0 i: i 0
where the overpotential ref (SI unit: V) is measured using relative to a reference state,
which yields:
This latter form of the Butler–Volmer equation, where the reference overpotential and
the exchange current density do not vary with concentration, is usually preferable
numerically.
The law of mass action is usually not suitable for defining complex reactions involving
multiple electron steps. For certain multi-electron reactions, where one electron
transfer step is rate limiting, it is possible to derive a lumped Butler–Volmer expressions
using the following relation for the exchange current density (see Ref. 1):
where i are generic exponential coefficients. For this case, a and c may be
independently defined. By rearranging the Butler–Volmer expression using ref
similarly to what was done for the mass action law case above, the i coefficients relate
to the anodic, ai, or cathodic, ci, reaction orders according to
a i
a i = i + -----------
n
and
c i
c i = i – ----------
-.
n
For instance, for a one electron redox couple of concentrations co and cr, with the same
reference concentration cref for both species, and i0,ref k0Fcref, the mass action law
expression above can be rewritten as
a F – c F
i loc = k 0 F c r exp --------------- – c o exp -----------------
RT RT
a F – c F
i loc = i 0 C R exp --------------- – C O exp -----------------
RT RT
Linearized Butler–Volmer
The charge transfer reaction can be expressed by a linearized Butler–Volmer
expression, which can be used for small overpotentials ( << RT/F) and is usually
referred to as the low-field approximation. This approximation gives the following
linearized equation:
a + c F
i loc = i 0 ----------------------------
RT
Aa
i loc = i 0 10
where Aa (SI unit: V) is the so-called Tafel slope. Aa relates to the corresponding
transfer coefficient as follows
A a = RT ln 10-
---------------------
a F
Ac
i loc = – i 0 10
where the sign accounts for the negative cathodic charge transfer current. Here, Ac is
required to be negative and relates to the transfer coefficient according to
RT ln 10-
A c = – ---------------------
c F
When not explicitly including mass transfer in the domain equations one can still
include the effect of transport limitations by the assumption of a Nernst diffusion layer
at the electrode surface, and a first-order dependence between the charge transfer
current and the local concentration of a reacting species, resulting in the following
kinetics expression:
i expr
i loc = -------------------------
-
i expr
1 + -----------
i lim
where iexpr (A/m2) is the current density expression in the absence of mass transport
limitations for the species, and ilim (A/m2) is the limiting current density that
corresponds to the maximum transport rate of the species. The derivation of this
expression assumes high overpotentials so that either the anodic or a cathodic term in
the Butler–Volmer equation may be neglected.
dc
= r = – kc
dt
where and k are positive numbers and the desired behavior is that the rate r and the
concentration c should equal zero in the converged solution at infinite time. However,
if c, due to numerical fluctuations in the solver process, becomes negative during
iterating, issues may arise.
First consider the case when equals 1 (or any odd positive integer). Negative values
of c will then cause the rate to become positive, resulting in a “self-stabilizing”
situation where c will be approaching 0 with time.
A second case to consider is when is an even integer larger than 1. The rate then will
become increasingly negative for negative values of c, resulting in an “exploding”
solution, iterating c toward minus infinity. The standard solution for these cases, which
The third case is when is a noninteger between 0 and 1. Note now that Jacobian with
respect to c of the rate expression now contains c, which will approach minus
infinity when c approaches zero from the positive side. This may result in poor
convergence, and the max() wrapping will not improve convergence in this case.
The solution for the third case is to linearize the concentration dependence for low
concentrations; that is, to use
r = – kc c c lim
–1
r = – kcc lim c = c lim
which results in the desired convergence behavior for low and negative concentrations.
Note, however, that the linearization may result in thermodynamic inconsistencies so
that, for instance, relations like the Nernst equation for the equilibrium potential are
no longer fulfilled. The linearization may also improve convergence of the second case
above.
ELECTROLYTE THEORY
The Electrolyte node defines a current balance in the electrolyte. The domain equation
is:
il = 0
where il denotes the current density vector. In free electrolyte, there is no source or
sink of charge.
The definition of the current density vector depends on the equation formulation of
the electrolyte charge transport, as discussed above in Domain Equations for Primary
i l = Q l and i s = Q s
In these equations, il denotes the current density vector in the electrolyte, as discussed
above in Domain Equations for Primary and Secondary Current Distributions and
Domain Equations for Tertiary Current Distributions Using the Nernst–Planck
Equations and Electroneutrality.
The current balances in the pore electrolyte and in the electrode matrix contain sources
and sinks according to the charge transfer reactions that take place in the electrode
catalyst. For example, if only one charge transfer reaction takes place in the porous
electrode, the domain equations are the following:
i l = A v i loc
i s = – A v i loc
where Av denotes the specific surface area (dimension L2/L3), and iloc the local
current density defines the rate of the charge transfer reactions, for instance according
If the porous electrode is a cathode, then the charge transfer reaction is a source for
the current balance in the electrode, because it receives current from the pore
electrolyte. The charge transfer reaction is then a sink for the current balance in the
pore electrolyte, because the current is transferred from the pore electrolyte to the
electrode in a cathodic reaction.
The corresponding sources and sinks in the current balances that are due to the charge
transfer reactions are also coupled to the material balances for the charged species. This
means that the local current density expression above is also included in the material
balances as a reaction term, Ri, by using Faraday’s laws for each of the species that take
part in charge transfer reactions.
il n = iloc m
m
is n = – iloc m
m
where iloc,m (A/m2) is the Electrode Reaction current density of the charge transfer
electrode reaction of index m, il the current density vector in the electrolyte and is the
current density vector in the electrode.
is = – Av iloc m
m
ELECTRODE THEORY
Electron conduction in an Current Conductor is modeled using Ohm’s law. The
domain equation is the following:
is = 0
i s = – s s
and where s denotes the electric conductivity and s the potential of the electron
conducting (metal) phase.
i l n = i n l
The current density can also be defined including all its components:
i l = i l bnd
The feature adds one unknown variable, the electrolyte potential, lbnd, along the
boundary. It then adds one additional equation for the total current, which is an
integral over the boundary:
il n ds = I n l
The average current density condition imposes the same equation but multiplies the
current density by the area of the boundary to obtain the value of the total current Inl.
is n ds = I n s
where
i s = – s s
and s denotes the electrode conductivity and s the electric potential. The average
current density condition imposes the same equation but multiplies the current density
by the area of the boundary to obtain the value of the total current, In,s.
s bnd – s
– n i s = ---------------------------
-
Rc
ik n = 0
where ik denotes the current density vector and k = l, s is an index for the electrolyte
and electrode, respectively.
The Symmetry boundary condition for the Tertiary Current Distribution, Nernst–
Planck interface imposes a no-flux condition for the molar flux of species at a
boundary. The condition is expressed as follows:
Ji n = 0
i s n = i n s
where
i s = – s s
The current density can also be defined including all its components:
i s = i s bnd
For a total power condition, the boundary electric potential of an electrode is set to a
potential s,bnd, defined by the condition for the total power on the boundary
according to:
where s,ground is the ground potential of the cell, and Ptotal (W) is the power to be
drawn.
s bnd – s
– n i s = ---------------------------
-
Rc
P total = P avg A
where Pavg is the average power density on the boundary, and A is the boundary area.
For a galvanic cell, such as a battery during discharge or a fuel cell, there
is a maximum power level, beyond which a further current increase causes
a lowered output power due to increasing voltage losses. A result of this
is that there can be two existing solutions for the same power setting. In
these cases the choice of initial values determines the final solution.
Electrode Power
Since these charges are fixed, there is no need to explicitly model the transport of these
charges, but when calculating the sum of charges, used in the Nernst–Planck (with
electroneutrality) or the Nernst–Planck–Poisson set of equations, one need to add this
fixed space charge.
fix + F zi ci = 0
v = fix + F zi ci
ION EXCHANGE MEMBRANE BOUNDARY THEORY
The electrochemical potential i of a charged species of index i is
i = RT ln a i + l z i F
where T(K) is the temperature, R (mol/(J·K)) the molar gas constant, ai is the species
activity, l is the electrolyte potential, zi the species charge, and F(C/mol) is Faraday’s
constant.
Setting the species activity to equal the concentration and denoting the liquid
electrolyte phase and an ion-exchange membrane phases as 1 and 2, respectively, the
Donnan potential, (V), describes the relation between the concentration of a
species, ci (mol/m3), at each side of the boundary and the electrolyte potentials:
c i 1
l = l 1 – l 2 = – -------- ln ---------
RT
z i F c i 2
z i F l 1 – l 2
c i 2 = c i 2 exp – ---------------------------------------
RT
The molar flux of each species in the liquid electrolyte is continuous over the
membrane-liquid interface
n J i 1 = n J i 2
Since the total current density is the sum of all species fluxes, times the individual
species charges, the current densities Il in the normal direction n of the
membrane-liquid interface boundary is also continuous:
n I l 1 = n I l 2
n Il = 0
If the model also includes mass transport, no flux conditions are also used for each
species on the insulation boundaries.
n Ji = 0
Introducing very thin domains in the model geometry may however cause issues with
meshing and significantly increase the memory requirements during solving because
the thin thicknesses of the layers need to be resolved in the mesh.
As an alternative to describing the thin layers as domains in the geometry, the Thin
Insulating Layer feature instead models the thin layer as a boundary — that is, a layer
of infinitely small thickness — and then mathematically “slits” the dependent variables.
The slitting implies that separate degrees of freedoms are used on each side on the
boundary. The same boundary conditions as above are then used on each side of the
boundary.
Reference
1. J. O’M. Bockris, A.K.N. Reddy, and M. Gamboa-Aldeco, Modern Electrochemistry,
vol. 2A, 2nd ed., ch. 7, sec. 7.6, Kluwer Academic/Plenum Press, New York, 2000.
Transformations between the species and electrolyte component basis are made by the
use of a (n n) transformation matrix Z, which consists n 1 rows that define the
For the Mg2+, OH-, H+, and H2O example, the Z matrix would look like
1 0 2 0
0 1 1 0
Z = 0 0 0 1 (3-4)
2- 1- – 1-
------ ------ ------ 0
6 6 6
˜ = ZM
M (3-5)
where M M1 M2 … MnT is a column vector of the defined by the individual species
molar masses Mi (kg/mol).
Also the inverse transpose matrix ZT is used for various variable basis transformations.
The electroneutrality condition, applied locally at all times, defines the sum of all
charges to equal zero
zi ci = 0 (3-6)
where zi (dimensionless) are the individual species charges, and ci the molar
concentrations (mol/m3).
1
c T = ------------------------
- (3-7)
˜ ˜
yi V m i
i
= Mi ci (3-8)
Alternatively, one may define the density as a function of some of the composition
variables, and define the total concentration as
-
c T = ------------------- (3-9)
y˜i M ˜
i
Ni = ji + ci u (3-10)
where the first term ji represents the diffusive (and migrative) flux and the second term
the convective flux, where u (m/s) is the mass-averaged velocity of the electrolyte.
il = zi FNi (3-11)
l c i
- + Ni = Ri
----------- (3-12)
t
where l(dimensionless) is the electrolyte volume fraction and Ri the molar source
term.
Summing all individual material balances and multiplying by the corresponding species
charges results in the charge balance equation for the electrolyte
When formulating the material balances in the interface, it is assumed that the
continuity equation for the fluid (which is not solved for by the interface) is fulfilled
l
t
- + u =
---------- Mi Ri = Qm (3-14)
c i Q m – u – l ------
t-
l ------- + j i + u c i = R i – ------------------------------------------------ (3-15)
t
which is the actual (nonconservative) form of the material balance equation used
internally by the interface. This equation form avoids accuracy issues related to
evaluating derivatives of the velocity variable.
0
i = i + RTlnx i + RTln i + Fz i (3-16)
0
where R is the molar gas constant (8.31 J/mol/K), i is the electrochemical potential
with respect to some reference state, T is the temperature (K), xi is the molar fraction,
the i the species activity coefficient (dimensionless) and (V) is the solution
potential.
c
x i = -----i- (3-17)
cT
For ideal conditions, the species activity coefficients equal unity. For nonideal
solutions, two issues experimental arise in relation to the definition of individual
species activity coefficients. The first is that, since charge separation is virtually
impossible to achieve in a solution, it is hard to assess the chemical activity of individual
ions experimentally. The second is that, since all major species in the solution are
˜ lñ i
i j = ̃ i ------------- (3-18)
ỹ j T p ỹ l j k
where the derivative should be made keeping the temperature, pressure and all
electrolyte components but the ones with index j and k constant. In the Concentrated
Electrolyte Transport interface, the index k equals the index of the electrolyte
component taken from the molar fraction constraint.
n
RT
– c-------------
T D ij
- jj if i j
– i = j=1 (3-19)
n n
RT ck
--------
c T j D ik c j
j -------------- if i j
j=1 ki
where Dij (m2/s) are the binary Maxwell–Stefan diffusivity coefficients. The above
equation system is transformed and inverted in order express the electrolyte
component fluxes in terms of the gradients of the electrolyte component chemical
potentials.
In porous media the binary diffusivities above may be multiplied by an efficiency factor
to accommodate for the lowered effective diffusivity due to the lower available volume
for transport and tortuosity (topology) effects of the porous matrix.
si Xi + s'j Yj
zi -
= n e ref e (3-20)
The gradient of the electrolyte phase potential, used for defining the chemical potential
is defined as
s̃ i
= --------------------
– n e ref F
- + (3-21)
The stoichiometry of the reference electrode can also be used to define a steady-state
convective velocity of the electrolyte for the case when all electrode reactions in a cell
have the same stoichiometry as the reference electrode. For this case, the convective
velocity may be calculated as
–Il
u = ---------------------
n e ref F si Mi (3-22)
Reference
1. A. Van-Bunt, P.E. Farrel, and C.W. Monroe, “Structural electroneutrality in
Onsager–Stefan–Maxwell transport with charged species,” Electrochimica Acta,
vol. 441, p. 141769, 2023, [Link]
In addition, reversible heat sources and sinks can appear due to the entropy changes in
the electrode reactions.
Most Electrochemistry interfaces define and announce heat source variables that can
be used by the General Source and the Boundary Heat source nodes in the Heat
Transfer interfaces.
The Electrochemical Heating multiphysics node defines a domain heat source in the
heat transfer interface, based on the sum of irreversible (Joule heating and activation
losses) and reversible heat in the electrochemistry interface.
You can also use the heat source variables defined by the electrochemistry interfaces
when setting up manual heat couplings between different components in a model. For
instance if you are using a 1D electrochemical cell model to calculate an average heat
source in a 3D heat transfer model. The names of the heat source variables are [Link]
(domain, Joule heating and porous electrode reactions) and [Link] (boundary,
electrode surface reactions), where xxx is the electrochemistry interface identifier.
• Electrochemistry Interfaces
• Multiphysics Coupling Nodes
U = Q – W (3-23)
where U (J) is differential change of the internal energy, Q (J) is the differential
amount of heat added to the system, and W (J) is the differential work performed by
the system element on the surroundings.
Q = U – W (3-24)
It should be noted that in the absence of pressure or volume changes, which are often
neglected in electrochemical models, the differential internal energy equals the
differential enthalpy H (J). In addition, thermodynamic work is usually not involved
in electrochemical reactions. We may hence simplify the above to
Q = H (3-25)
In order to conserve heat, the above differential heat added to the system equals the
added heat drawn from the surroundings.
T
C p ------- + q = Q (3-26)
t
The electrochemistry interfaces typically solve for the transport and electrochemical
reactions of a multicomponent system comprising a number of different species with
index i. Adding the additional contributions from the multicomponent system to the
heat transfer equation, and assuming no other additional heat sources (Q = 0), results
in
T c i
C p ------- + q + H i N i = – H i ------- (3-27)
t t
c i
Q = –
Hi Ni + Hi ------
t
- (3-28)
i
Equation 3-26 can be made to represent the heat transfer equation of a the
multi-component electrochemical system.
c
-------i + N i = R i (3-29)
t
where Ri (mol/m3/s) is the local rate production source, the heat source expression
may be simplified to
Q = –
Hi Ni + Hi Ri (3-30)
i
where the second term may be used to define the reaction enthalpies of non-Faradaic
reactions (for Faradaic reactions, see below).
The derivations below follow a simplified approach along the principles lined out in
Ref. 1. For deepened discussion on thermal effects in electrochemical cells, the reader
is referred to Ref. 1 to Ref. 4.
H i = H i + z i F (3-31)
H i = z i F (3-32)
For a current conductor, the only species carrying charge is the electron, with a
negative unit charge. The electron flux is related to the current density is as
i
N e = – ---s- (3-33)
F
resulting in
Q s = – i s s (3-34)
For a homogenized porous electrode domain, the Joule heating term for both phases
are added together:
Q JH = – i s s + i l l (3-36)
H i H i
q = – – ------e- +
F -----------
nF loc
- i (3-37)
i
where q is the boundary heat source (W/m2), n and i are the number of electrons
participating in the reaction and the stoichiometric coefficients of the reaction,
respectively, and iloc local current density at the electrode surface. Subscript e above
denotes the electron, and i the electrolyte phase species.
n = – i zi (3-38)
i
H
q = – --------- – s – l i loc (3-39)
nF
H = i Hi – nHe (3-40)
i
H-
E therm = – --------
nF
G = H – TS
where G is the Gibbs free energy of the reaction, and where S is the net entropy
change, and defining the equilibrium potential as
E eq = – G
-------- (3-42)
nF
E eq
q = + T ------------ i loc (3-43)
T
= s – l – E eq (3-44)
The total heat source due to the electrochemical reactions, qEC, for an electrode
surface is the sum of all individual heat sources of the electrode reactions according to
q EC = qm
m
For a homogenized formulation of a porous electrode, the domain heat sources due
to electrochemical reactions can be obtained by multiplying by the internal surface area
av,m (m2/m3). For a porous electrode, the electrochemical sources are hence summed
up according to
Q EC = av m Qm
m
a m F m – c m F m
i loc m = i 0 m C R m exp ------------------------- – C O m exp ----------------------------
RT RT
where
m = s – l – E eq m
When using the Concentration dependent kinetics option, the overpotential, used in
the irreversible heat term above, is calculated as follows:
where
RT C O m
m conc = ------------ ln -------------
-
n m F C R m
n m = aꞏ m + c m
is assumed.
References
1. John Newman, “Thermoelectric Effects in Electrochemical Systems,” Ind. Eng.
Chem. Res., vol. 34, no. 10 pp. 3208–3216, 1995
In this section:
• Governing Equations
• Coupling to Other Physics Interfaces
Governing Equations
The Electrode, Shell interface solves for the electric potential s (SI unit: V) on a
boundary, using the following governing equation:
T si s = – i n (3-46)
where T is the tangential gradient operator, s (SI unit: m) is the electrode layer
thickness, and in (SI unit: A/m2) are the sum of all currents flowing out from the
electrode (in the normal direction to the boundary). Furthermore, is (SI unit: A/m2)
is the tangential current density vector along the electrode boundary, defined as
i s = – T s s (3-47)
where s is the electric conductivity (SI unit: S/m). The next section discusses
Coupling to Other Physics Interfaces.
where itot (SI unit: A/m2) is the sum of all electrode currents in the coupled
Electrochemistry interface.
s = s 0 + s tot (3-48)
where s0 is the initial electrode layer thickness, and stot is the electrode thickness
change, calculated by the coupled Electrochemistry interface.
HEAT SOURCE
The electron conduction gives rise to a Joule heating source QH (SI unit: W/m2)
according to
Q H = – si s t s
• Electroanalytical Methods
• Supporting Electrolyte
• Domain Equations for the Electroanalysis Case
• Electrode Boundary Conditions in the Electroanalysis Model
• The Electroanalytical Butler–Volmer Equation
• Counter Electrodes and Overall Charge Balance
Electroanalytical Methods
Electroanalysis is the science of quantitative electrochemical measurement of the
composition or properties of a chemical system. Common electroanalytical methods
include: (cyclic) voltammetry, (chrono)amperometry, potentiometry, coulometry, and
electrochemical impedance spectroscopy (EIS). These methods are experiments
performed either in a static electrolyte solution or in an electrolyte solution subject to
a forced fluid flow. The results sought in electroanalysis include:
Supporting Electrolyte
When performing electroanalytical experiments, it is conventional to add a large
quantity of inert salt to the solution — this artificially added salt is called supporting
• The voltage due to the resistance of the electrolyte when the cell draws current
(“ohmic drop”) is minimal. Therefore, the potential difference applied across the
electrochemical cell is localized at the electrode–electrolyte interfaces, and so the
activation overpotential perceived by the redox couple at this interface is almost
exactly proportional to the applied cell voltage. The kinetic behavior of the
electrochemical cell then has no explicit dependence on the magnitude of the drawn
current.
• The contribution of migration to the transport of charged chemical species is
negligible compared to the contribution of diffusion (and of convection, in a forced
flow). Therefore the transport properties of the system are linearized, and they do
not depend on the magnitude of the drawn current.
Even for the conductivities of electrolyte solutions in the presence of excess supporting
electrolyte, the electric field is not negligible if significant current density is drawn.
Electroanalysis typically draws small currents because the purpose is measurement. In
processes where an electrochemical reaction is driven — such as electrolysis,
electrodeposition, batteries, and fuel cells — current densities are typically much larger,
so that the desired extent of reaction is achieved in a reasonable time. Under these
conditions, significant electric fields are likely and other charge conservation models
should be used instead of the Electroanalysis option.
N i = – D i c i – z i u m i Fc i l + c i u = J i + c i u
N i = – D i c i + c i u (3-49)
where the only contributions to the flux of a chemical species are from diffusion and
convection respectively. In the absence of convection (no fluid flow, u 0), this is also
known as Fick’s first law of diffusion:
N i = J i = – D i c i
c i
+ N i = R i tot (3-50)
t
This combination is often written as a single equation for the unknown ci. For zero
convection, zero reaction, and a constant diffusion coefficient, the domain equation is:
c i 2
= Di ci (3-51)
t
You can also include additional chemical species and reactions that are not
involved in the electrochemical reaction.
m = s – l – E eq m
This is the potential difference perceived by a redox couple, measured against the
equilibrium potential of the couple; it provides the thermodynamic driving force for
an electrochemical reaction by faradaic charge transfer between the electrode and the
electrolyte domains.
Subject to the approximation of constant electrolyte potential (l 0), this equation
reduces to:
m = s – E eq m
The flux Ni of the chemical species i (SI unit: mol/m2) across an electrode surface
depends on the current densities im associated with the electrode reactions m
according to Faraday’s laws of electrolysis. These can be written as:
i m i m
Ni = -----------------
nm F
- (3-52)
m
where i,m is the stoichiometric coefficient of species i with respect to reaction m (in
the reductive direction), and nm is the number of transferred electrons. F is the
Faraday constant, which is the charge on a mole of electrons (96485.3365 C/mol).
Ni = Ni n (3-53)
Equation 3-52 and Equation 3-53 constitute the coupling between charge balance
and mass balance. This coupling only applies at the electrode–electrolyte interface,
which is a boundary to the domain where the electroanalysis charge conservation
model solves for chemical species transport.
The total current density is the sum of faradaic (electrode reaction) components and
nonfaradaic components (inf) such as current due to Double-Layer Capacitance:
The experimentally measurable total current I (SI unit: A) drawn at an electrode can
be computed by integration of the local current density (SI unit: A/m2) across the
electrode area:
Ox and Red represent the oxidized and reduced forms of the chemical species,
respectively.
The most general equation to describe the rate of this reaction as it proceeds at an
electrode surface is the electroanalytical Butler–Volmer equation:
a F – c F
i loc = k 0 F c Red exp --------------- – c Ox exp ----------------- (3-54)
RT RT
where k0 is the heterogeneous rate constant (SI unit: m/s) and c is the (cathodic)
transfer coefficient (dimensionless). For a one-electron reduction, the anodic and
cathodic transfer coefficients are related as a c 1.
– FE eq
c Red = c Ox exp ----------------
RT
Where the flux of the reacting species is negligible compared to the concentration of
these species, the concentrations are roughly constant (cRed ~ cOx ~ c). This converts
Equation 3-54 into the Butler–Volmer equation written in terms of an exchange
current density i0 (SI unit: A/m2):
a F – c F
i loc = i 0 exp --------------- – exp -----------------
RT RT
The exchange current density i0 (SI unit: A/m2) is then related to the heterogeneous
rate constant as i0 k0Fc.
s CE : i tot dS = 0 (3-55)
electrodes
m = s CE – E eq m (3-56)
Note that only one counter electrode potential degree of freedom is added in the
model, regardless of the number of counter electrodes that are active.
Typically the kinetics of the electrochemical reactions are defined using the
overpotential, (SI unit: V), defined as
= s – l – E eq (3-57)
where Eeq (SI unit: V) is the equilibrium potential. If it is to apply for all
overpotentials, a general kinetic expression for an electrode reaction must be set up so
that the charge-transfer current over the electrolyte-electrode interface is zero for zero
overpotential (equilibrium conditions).
In this section:
• Reference Electrodes
• Boundary Conditions Using Reference Electrode Potentials
• Nodes for Handling Electrode Potentials and Reference Electrodes
Reference Electrodes
In experimental electrochemistry, it is common to use reference electrodes when
controlling current or voltage with a potentiostat. Potential differences in the system
are recorded with respect to the equilibrium potential of the redox couple at the
reference electrode. A good reference electrode is designed so that no net charge
transfer takes place at its electrode-electrolyte interface. Then the overpotential of the
reference is zero, so:
where s,ref (SI unit: V) is the electric potential of the reference electrode and Eeq,ref
(SI unit: V) is the equilibrium potential of the reference electrode reaction.
The electric potentials of the electrodes in the electrochemical cell can then be defined
with respect to the reference electrode according to:
where Evs,ref (SI unit: V) is the electrode potential versus the reference potential.
It is important to realize that the presence of an ideal reference electrode in the system
has no impact on the physics; the only purpose of the reference electrode is to define
a stable reference point for the potential levels.
where s,bnd (SI unit: V) is the applied electric boundary potential on the electrode.
Whenever a s,ref is defined, the variable Evs,ref (SI unit: V), according to
Equation 3-59, is also defined in all electrode domains.
The variable Evs,ref (SI unit: V), according to Equation 3-59, is also defined on these
features.
This chapter describes the physics interfaces found under the Electrochemistry >
Electrodeposition, Deformed Geometry branch ( ).
In this chapter:
179
About the Electrodeposition,
Deformed Geometry Interfaces
The Electrodeposition, Primary ( ), the Electrodeposition, Secondary ( ) and the
Electrodeposition, Tertiary Nernst-Planck ( ), found under the Electrochemistry >
Electrodeposition, Deformed Geometry branch ( ) in the Add Physics menu, are
predefined multiphysics interfaces for time-dependent modeling of deformations that
occur as a result of deposition and dissolution processes in electrochemical cells.
Note that is also possible to extend an already existing current distribution model to
include electrode deformations by manually adding a Deformed Geometry interface
and the required Multiphysics coupling nodes.
Use the Dissolving-Depositing species section in the Electrode Surface node to specify
what species are participating in the electrode reactions, and use the Electrode
Reaction subnodes to specify the reaction kinetics and stoichiometry.
x
n = v dep tot (4-1)
t
where vdep, tot is the total growth velocity, defined as the sum of the velocity
contributions for all species and electrode reactions according to:
Mi i m i loc m
v dep tot = ------
i nm F
- -------------------------- (4-2)
i m
Where Mi (SI unit: kg/mol) is the molar mass and i (SI unit: kg/m3) the density of
the species.
Nondepositing material
Electrolyte
Electrode
Nondepositing material
Figure 4-1: Gray/Black arrows in whole stroke indicate the tangential electrode
growth/dissolution velocities, vt, point, at the three-phase intersections between an
electrolyte, a deposition or dissolution electrode and a nondepositing material. Dashed
arrows are the growth or dissolution velocities, vdep, based on the electrodeposition rate
expressions. Note that the tangential velocities depend on both the angle between the
depositing surface and the nondepositing surface, as well as the direction of the normal
velocity.
In the following, the boundary tangents are denoted by t (pointing from electrolyte
to electrode) and the normal by n (pointing in the direction out from the electrolyte
domain).
If the angle between the depositing boundary and the nondepositing boundary is
larger than the tangential velocity is set to zero:
Otherwise (that is, if the angle between the depositing boundary and the
nondepositing boundary is less than ), the following expressions are used:
In the Electrodeposition Interfaces, on shared points (2D) and edges (3D) between a
Nondeforming Boundary and a Deforming Electrode Surface, the velocity of the
depositing boundary is set according to the expressions above.
REFERENCE
1. J. Deconinck, “Mathematical Modeling of Electrode Growth,” J. Appl.
Electrochem., vol. 24, pp. 212–218, 1994.
This chapter describes the physics interfaces found under the Chemical Species
Transport branch ( ). The chapter summarizes each physics interface including
the different fields, material properties, and boundary conditions associated with
them, and suggests how and when to apply it.
In this chapter:
185
T he T r a ns po r t of D i l u t ed S p ec i es
Interface
The Transport of Diluted Species (tds) interface ( ), found under the Chemical Species
Transport branch ( ), is used to calculate the concentration field of a dilute solute in
a solvent. Transport and reactions of the species dissolved in a gas, liquid, or solid can
be handled with this interface. The driving forces for transport can be diffusion by
Fick’s law, convection when coupled to a flow field, and migration, when coupled to
an electric field.
The interface supports simulation of transport by convection and diffusion in 1D, 2D,
and 3D as well as for axisymmetric components in 1D and 2D. The dependent variable
is the molar concentration, c. Modeling multiple species transport is possible, whereby
the physics interface solves for the molar concentration, ci, of each species i.
SETTINGS
The Label is the default physics interface name.
The Name is used primarily as a scope prefix for variables defined by the physics
interface. Refer to such physics interface variables in expressions using the pattern
<name>.<variable_name>. In order to distinguish between variables belonging to
different physics interfaces, the name string must be unique. Only letters, numbers, and
underscores (_) are permitted in the Name field. The first character must be a letter.
The default Name (for the first physics interface in the model) is tds.
DOMAIN SELECTION
If any part of the model geometry should not partake in the mass transfer model,
remove that part from the selection list.
OUT-OF-PLANE THICKNESS
For 2D components, the Thickness field (default value: 1 m) defines a parameter for the
thickness of the geometry perpendicular to the two-dimensional cross-section. Both
constant and varying thicknesses are supported. The value of this parameter is used,
among other things, to automatically calculate molar flow rates from the total molar
flux.
TRANSPORT MECHANISMS
Mass transport due to diffusion is always included. Use the checkboxes available under
Additional transport mechanisms to control other transport mechanisms.
Note: Some of the additional transport mechanisms listed below are only available in
certain products. For details see [Link]
• Porous Medium
• Unsaturated Porous Medium
• Porous Electrode Coupling
• Volatilization
• Species Source
• When the Crosswind diffusion checkbox is selected, a weak term that reduces spurious
oscillations is added to the transport equation. The resulting equation system is
always nonlinear. There are two options for the Crosswind diffusion type:
- Do Carmo and Galeão — the default option. This type of crosswind diffusion
reduces undershoots and overshoots to a minimum but can in rare cases give
equation systems that are difficult to fully converge.
- Codina — this option is less diffusive compared to the Do Carmo and Galeão
option but can result in more undershoots and overshoots. It is also less effective
for anisotropic meshes. The Codina option activates a text field for the Lower
gradient limit glim. Its defaults to 0.1[mol/m^3]/[Link], where [Link]
is the local element size.
• For both consistent stabilization methods, select an Equation residual. Approximate
residual is the default and means that derivatives of the diffusion tensor components
are neglected. This setting is usually accurate enough and is computationally faster.
If required, select Full residual instead.
INCONSISTENT STABILIZATION
To display this section, click the Show button ( ) and select Stabilization. By default,
the Isotropic diffusion checkbox is not selected, because this type of stabilization adds
artificial diffusion and affects the accuracy of the original problem. However, this
option can be used to get a good initial guess for under resolved problems.
ADVANCED SETTINGS
To display this section, click the Show button ( ) and select Advanced Physics Options.
Normally these settings do not need to be changed. Select a Material Balance Form —
Nonconservative (the default) or Conservative. The conservative formulation should be
used for compressible flow. See Material Balance Formulation for more information.
DISCRETIZATION
To display all settings available in this section, click the Show button ( ) and select
Advanced Physics Options.
• ndflux_c (where c is the dependent variable for the concentration). This is the
normal diffusive flux and corresponds to the boundary flux when diffusion is the
only contribution to the flux term.
• ntflux_c (where c is the dependent variable for the concentration). This is the
normal total flux and corresponds to the boundary flux plus additional transport
terms, for example, the convective flux when you use the nonconservative form.
Also the Apply smoothing to boundary fluxes checkbox is available if the previous
checkbox is selected. The smoothing can provide a more well-behaved flux value close
to singularities.
For details about the boundary fluxes settings, see Computing Accurate Fluxes in the
COMSOL Multiphysics Reference Manual.
The Value type when using splitting of complex variables setting should in most pure
mass transfer problems be set to Real, which is the default. It makes sure that the
dependent variable does not get affected by small imaginary contributions, which can
occur, for example, when combining a Time Dependent or Stationary study with a
frequency-domain study. For more information, see Splitting Complex-Valued
Variables in the COMSOL Multiphysics Reference Manual.
DEPENDENT VARIABLES
The dependent variable name is the Concentration c by default. The names must be
unique with respect to all other dependent variables in the component.
Add or remove species variables in the model and also change the names of the
dependent variables that represent the species concentrations.
Enter the Number of species. Use the Add concentration ( ) and Remove
concentration ( ) buttons as needed.
It applies to one or more diluted species or solutes that move primarily within a fluid
that fills (saturated) or partially fills (unsaturated) the voids in a solid porous medium.
The pore space not filled with fluid contains an immobile gas phase. Models including
a combination of porous media types can be studied.
The main feature nodes are the Porous Medium and Unsaturated Porous Medium nodes,
which add the equations for the species concentrations and provide an interface for
defining the properties of the porous media, as well as additional properties governing
The physics interface can be used for stationary and time-dependent analysis.
When this physics interface is added, these default nodes are also added to the Model
Builder — Porous Medium, No Flux (the default boundary condition), and Initial Values.
Then, from the Physics toolbar, add other nodes that implement, for example,
boundary conditions, reaction rate expressions, and species sources. You can also
right-click Transport of Diluted Species in Porous Media to select physics features from
the context menu.
SETTINGS
The rest of the settings are the same as The Transport of Diluted Species Interface.
FURTHER READING
Some features require certain add-on modules. For details see https://
[Link]/products/specifications/
Species Properties
Use this node to define parameters specific to each of the species. It is available when
the Migration in electric field checkbox is selected in the Transport Mechanisms section
of the interface.
The node will change its label depending on what inputs are available in the node. If
only Charge is available, it will be labeled “Species charges”.
CHARGE
Enter the charge number zc (dimensionless, but requires a plus or minus sign) for each
species.
ACTIVITY
This section is available when the Species Activity combo box is set to Debye–Hückel or
User defined.
If Debye–Hückel is selected, enter the ion size number, a0, for each species. If User
defined is selected, enter the activity coefficient, f, for each species.
MODEL INPUTS
The temperature model input is always available. Select the source of the Temperature.
For User defined, enter a value or expression for the temperature in the input field. This
input option is always available.
You can also select the temperature solved for by a Heat Transfer interface added to
the model component. These physics interfaces are available for selection in the
Temperature list.
CONVECTION
If transport by convection is active, the velocity field of the solvent needs to be
specified. Select the source of the Velocity field. For User defined, enter values or
expressions for the velocity components in the input fields. This input option is always
available.
You can also select the velocity field solved for by a Fluid Flow interface added to the
model component. These physics interfaces are available for selection in the Velocity
field list.
DIFFUSION
Use this section to specify diffusion coefficients describing the diffusion of each species
in the solvent fluid.
Use the Source list to select diffusion coefficients defined in a material or a Chemistry
interface.
For User defined, enter a value or expression for the Fluid diffusion coefficient Dc of each
species in the corresponding input field. This can be a scalar value for isotropic
diffusion or a tensor describing anisotropic diffusion. Select the appropriate tensor
type — Isotropic, Diagonal, Symmetric, or Full that describes the diffusion transport, and
then enter the values in the corresponding element (one value for each species).
Note that multiple species, as well as Migration in Electric fields (described below) is
only available for certain COMSOL Multiphysics add-on products. See details: https:/
/[Link]/products/specifications/.
• Enter a value or expression for the Electric potential V, which is User defined; this
input option is always available.
• Select the electric potential solved by an AC/DC-based interface that has also been
added to the model.
• Select the electric potential defined or solved by Electrochemistry interface that has
been added to the component.
By default the Mobility is set to be calculated based on the species diffusivity and the
temperature using the Nernst-Einstein relation. For User defined, and under Mobility,
select the appropriate scalar or tensor type — Isotropic, Diagonal, Symmetric, or Full —
and type in the value of expression of the mobility um,c.
Enter the Charge number zc (dimensionless, but requires a plus or minus sign) for each
species.
The temperature (if you are using mobilities based on the Nernst–Einstein relation) is
taken from Model Inputs section.
Note that the migration in electric fields feature is only available in some COMSOL
products. See details: [Link]
Solid
Use this node to describe diffusion in a solid phase domain. In this feature, the
activities of the species are assumed to be ideal.
DIFFUSION
Specify the diffusion coefficients describing the diffusion of each species in the solid.
Enter a value or expression for the Diffusion coefficient Dc of each species in the
corresponding input field. This can be a scalar value for isotropic diffusion or a tensor
describing anisotropic diffusion. Select the appropriate tensor type — Isotropic,
Diagonal, or Symmetric that describes the diffusion transport, and then enter the values
in the corresponding element (one value for each species).
ADVANCED
This section is only available with the Advanced Physics Options selected and when the
model contains a split between the material frame and the spatial frame. A split of these
frames occurs when using a Moving Mesh node or a Structural Mechanics interface like
Solid Mechanics. In such a model, the reference geometry (the material frame) differs
from the deformed geometry (the spatial frame). The diffusive transport of species is
solved for on the material frame, but the equation is adjusted for geometry
deformations so that species conservation is achieved on the spatial frame. Use the
Diffusion model to define the frame of reference for the diffusion tensor.
Select Reference geometry based (Lagrangian) to specify the diffusion tensor in the
undeformed geometry, implying that the diffusion is defined in the material frame
Select Deformed geometry based (Eulerian) to specify the diffusion tensor in the
deformed geometry. This means that the diffusion is defined in the spatial frame
(indicated by coordinates x, y, z). Use this setting when the diffusion tensor
components have been measured in a deformed geometry.
The Advanced Physics Options is found in the Show More Options dialog, accessed by
clicking the Show More Options button ( ).
Note that multiple species are only available for certain COMSOL Multiphysics
add-on products. See details: [Link]
Initial Values
The Initial Values node specifies the initial values for the concentration of each species.
These serve as an initial guess for a stationary solver or as initial conditions for a
transient simulation.
DOMAIN SELECTION
If there are several types of domains with different initial values defined, it might be
necessary to remove some domains from the selection. These are then defined in an
additional Initial Values node.
INITIAL VALUES
Enter a value or expression for the initial value of the Concentration or concentrations,
ci. This also serves as a starting guess for stationary problems.
Mass-Based Concentrations
Use the Mass-Based Concentrations node to add postprocessing variables for mass-based
concentrations (SI unit: kg/m3) and mass fractions (dimensionless) for all species.
MIXTURE PROPERTIES
The default Solvent density solvent is taken From material. For User defined, enter a
value or expression manually. Define the Molar mass of each species, which is needed
to calculate the mass-based concentration.
DOMAIN SELECTION
From the Selection list, choose the domains on which to define rate expression or
expressions that govern the source term in the transport equations.
Several reaction nodes can be used to account for different reactions in different parts
for the modeling geometry.
REACTION RATES
Add a rate expression Ri (SI unit: mol/(m3·s)) for species i. Enter a value or expression
in the field. Note that if you have the Chemistry interface available, provided with the
Chemical Reaction Engineering Module, the reaction rate expressions can be
automatically generated and picked up using the drop-down lists. For an example, see
the application Fine Chemical Production in a Plate Reactor as linked below.
REACTING VOLUME
This section is only available when the Mass Transport in Porous Media property is
available and selected. See [Link] for
more details on availability.
When specifying reaction rates for a species in porous media, the specified reaction rate
may have the basis of the total volume, the pore volume, or in the case of using the
volume of a particular phase (applicable when modeling an unsaturated porous
medium).
• For Total volume, the reaction expressions, in mol/(m3·s), are specified per unit
volume of the model domain (multiplied by unity).
• For Pore volume, the reaction expressions, in mol/(m3·s), are specified per unit
volume of total pore space. The reaction expressions will be multiplied by the
domain porosity, p. (p equals unity for nonporous domains).
• For Liquid phase, the reaction expressions, in mol/(m3·s), are specified per unit
volume of liquid in the pore space. The expressions will be multiplied by the liquid
volume fraction l. (l equals the porosity (p) on Porous Medium domains).
• For Gas phase, the reaction expressions, in mol/(m3·s), are multiplied by the gas
volume fraction g p lg equals 0 for Porous Medium domains.
No Flux
This node is the default boundary condition on exterior boundaries. It should be used
on boundaries across which there is no mass flux, typically solid walls where no surface
reactions occur. The condition applied for each species corresponds to
– n – Dc = 0
where n denotes the outward pointing normal of the boundary. When the mass
transport includes migration of ionic species, the no flux condition is:
– n – Dc – zu m Fc = 0
CONVECTION
By default, the feature prescribes a vanishing flux due to diffusion and migration in an
electric field. This is the appropriate no flux condition when the relative convective
velocity at the boundary is zero. When the fluid velocity at the boundary is not equal
to that of the boundary, it is often convenient to prescribe the total flux including the
convection. To do this select Include in the Convection section.
– n – Dc + uc = 0
or
– n – Dc – zu m Fc + uc = 0
If you want to specify the concentration of a subset of the partaking species, this can
be done by using the Concentration node instead.
For the Electroanalysis interface, this node is available when you select the Convection
checkbox on the physics interface Settings window.
CONCENTRATION
For the concentration of each species c0,c (SI unit: mol/m3), enter a value or
expression.
The other option, Flux (Danckwerts) can be used when the concentration at the
boundary is not known, or when it varies in a nontrivial manner. This may, for example,
be useful when reactions with high reaction rates occur in the vicinity of the inlet. In
this case the concentration far upstream of the boundary is instead prescribed. The Flux
(Danckwerts) condition prescribes the total flux defined by the upstream concentration
and the fluid velocity at the boundary.
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options. You can find details about the different constraint settings in the
section Constraint Reaction Terms in the COMSOL Multiphysics Reference Manual.
FURTHER READING
See the theory chapter in the section Danckwerts Inflow Boundary Condition.
Outflow
Apply this condition at outlets boundaries where species should be transported out of
the model domain by fluid motion or by an electric field (in the case of ions). It is
assumed that convection and migration (in an electric field) are the dominating
transport mechanisms across the boundary, and therefore that the diffusive transport
can be ignored, that is:
Note that the Convection or the Migration in electric field transport mechanisms needs
to be included for this node to be available.
Concentration
This condition node adds a boundary condition for the species concentration. For
example, a c = c0 condition specifies the concentration of species c.
CONCENTRATION
Individually specify the concentration for each species. Select the checkbox for the
Species to specify the concentration, and then enter a value or expression in the
corresponding field. To use another boundary condition for a specific species, click to
clear the checkbox for the concentration of that species.
When defining conditions on boundaries between different phases, see the section
Prescribing Conditions on Fluid-Solid Interfaces.
CONSTRAINT SETTINGS
To display this section, click the Show button ( ) and select Advanced Physics Options.
You can find details about the different constraint settings in the section Constraint
Reaction Terms in the COMSOL Multiphysics Reference Manual.
Flux
This node can be used to specify the species molar flux across a boundary. The flux can
for example occur due to chemical reactions or a phase change at the boundary. The
flux can also represent the transport to or from a surrounding environment currently
not included model.
– n – Dc = J 0
where n denotes the outward pointing normal of the boundary. When the mass
transport includes migration of ionic species, the flux is defined as:
– n – Dc – zu m Fc = J 0
When defining conditions on boundaries between different phases, see the section
Prescribing Conditions on Fluid-Solid Interfaces.
CONVECTION
By default, the flux due to diffusion and migration in an electric field is prescribed. This
is the appropriate flux condition when the relative velocity at the boundary is zero.
When the fluid velocity is not equal to that of the boundary, it is often convenient to
prescribe the total flux, including the convection. To do this select Include in the
Convection section.
– n – Dc + uc = J 0
or
– n – Dc – zu m Fc + uc = J 0
INWARD FLUX
Select the Species checkbox for the species for which to specify the flux, and enter a
value or expression for the inward flux in the corresponding field. Use a minus sign
when specifying a flux directed out of the system. To use another boundary condition
for a specific species, click to clear the checkbox for that species.
External convection
Set Flux type to External convection to prescribe a flux to or from an exterior domain
(not modeled) assumed to include convection. The exterior can for example include a
forced convection to control the temperature or to increase the mass transport. In this
case the prescribed mass flux corresponds to
J0 = kc cb – c
where kc is a mass transfer coefficient and cb is the bulk concentration, the typical
concentration far into the surrounding exterior domain.
Flux Discontinuity
This node represents a discontinuity in the mass flux across an interior boundary:
– n J + uc u – J + uc d = N 0 J = – Dc – zu m Fc
where the value N0 (SI unit: mol/(m2·s)) specifies the jump in total flux at the
boundary. This can be used to model a boundary source, for example a surface
reaction, adsorption, or desorption.
FLUX DISCONTINUITY
In this section the jump in species flux (or surface source) is specified.
Select the Species checkbox for the species to specify and enter a value or expression
for the material flux jump in the corresponding field. To use a different boundary
condition for a specific species, click to clear the checkbox for the flux discontinuity of
that species.
Partition Condition
The Partition Condition node can be used to prescribe the relation between the
concentration of a solute species in two adjoining immiscible phases. It can for example
be used on interior boundaries separating two liquid phases, a gas-liquid interface, or
on a boundary separating a liquid phase and a solid or porous media.
Select Partition coefficient from the Relation list to prescribe a linear relationship
between the concentration on either side of a boundary. For a species concentration
ci, the ratio between the concentration on the upside and on the downside of the
boundary (ci,u and ci,d respectively) is then defined in terms of a partition coefficient
Ki in the manner of
c i u
K i = --------
-
c i d
Use the associated input field to prescribe the partition coefficient for each species.
The up and downside of the selected boundary is indicated with a red arrow in the
Graphics window. The arrow points from the downside into the upside. Select the
Reverse direction checkbox to reverse the direction of the arrow on the selected
boundary, and update the definition of the up and downside concentrations
accordingly.
FURTHER READING
For an example of using a partition condition, see this application example:
Periodic Condition
The Periodic Condition node can be used to define periodicity for the mass transport
between two sets of boundaries. The node prescribes continuity in the concentration
and the mass flux between the “source” and the “destination” side, respectively. Note
that these names are arbitrary and does not influence the direction in which mass is
transported. It is dictated by mass transfer equations in the adjacent domains.
BOUNDARY SELECTION
The node can be activated on more than two boundaries, in which case the feature tries
to identify two separate surfaces that each consist of one or several connected
boundaries.
DESTINATION SELECTION
For more complex geometries, it might be necessary to specify the destination
selection manually. To do so, right-click the Periodic Condition node and choose Manual
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog. This section contains settings for
specifying the type of constraint and whether to use a pointwise or weak constraint. See
Constraint Settings in the COMSOL Multiphysics Reference Manual for more
information.
ORIENTATION OF SOURCE
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog. For information about the Orientation
of Source section, see Orientation of Source and Destination in the COMSOL
Multiphysics Reference Manual.
ORIENTATION OF DESTINATION
This section appears if the setting for Transform to intermediate map in the Orientation
of Source section is changed from the default value, Automatic, and Advanced Physics
Options is selected in the Show More Options dialog. For information about the
Orientation of Destination section, see Orientation of Source and Destination in the
COMSOL Multiphysics Reference Manual.
FURTHER READING
For an example of using a periodic condition, see this application example:
SELECTION
The Line Mass Source feature is available for all dimensions, but the applicable selection
differs between the dimensions.
2D Points
2D Axisymmetry Points not on the symmetry axis and the symmetry axis
3D Edges
SPECIES SOURCE
Enter the source strength, qꞏ l,c , for each species (SI unit: molm·s)). A positive value
results in species injection from the line into the computational domain, and a negative
value means that the species is removed from the computational domain.
Line sources located on a boundary affect the adjacent computational domains. This
effect makes the physical strength of a line source located in a symmetry plane twice
the given strength.
FURTHER READING
See the section Mass Sources for Species Transport.
FURTHER READING
See the section Mass Sources for Species Transport.
Open Boundary
Use this node to set up mass transport across boundaries where both convective inflow
and outflow can occur. On the parts of the boundary where fluid flows into the
domain, an exterior species concentration is prescribed. On the remaining parts, where
fluid flows out of the domain, a condition equivalent to the Outflow node is instead
prescribed.
The direction of the flow across the boundary is typically calculated by a fluid flow
interface and is provided as a model input to the Transport of Diluted Species
interface.
EXTERIOR CONCENTRATION
Enter a value or expression for the Exterior concentration.
Solving a model involving coupled fluid flow and mass transfer, the Thin Impermeable
Barrier feature can be combined with an Interior Wall feature in order to model a thin
solid wall.
Equilibrium Reaction
Use this node to model a reaction where the kinetics is so fast that the equilibrium
condition is fulfilled at all times. The node solves for an additional degree of freedom
(the reaction rate Req) to fulfill the equilibrium condition at all times in all space
coordinates.
EQUILIBRIUM CONDITION
The list defaults to Equilibrium constant or select User defined. For either option, the
Apply equilibrium condition on inflow boundaries checkbox is selected by default.
For Equilibrium constant, enter an Equilibrium constant Keq (dimensionless). Also enter
a value or expression for the Unit activity concentration Ca0 (SI unit: mol/m3).
STOICHIOMETRIC COEFFICIENTS
Enter a value for the stoichiometric coefficientc (dimensionless). The default is 0. Use
negative values for reactants and positive values for products in the modeled reaction.
Species with a stoichiometric coefficient value of 0 are not affected by the Equilibrium
Reaction node.
FURTHER READING
See
Surface Reactions
The Surface Reactions node can be used to account for the species boundary flux due
to chemical reactions occurring on a surface (heterogeneous reactions). For a domain
species participating in a surface reaction, the boundary flux corresponds to the
reaction rate at the surface.
When defining conditions on boundaries between different phases, see the section
Prescribing Conditions on Fluid-Solid Interfaces.
FURTHER READING
For an example of using the Surface Reactions node, see this application example:
When defining conditions on boundaries between different phases, see the section
Prescribing Conditions on Fluid-Solid Interfaces.
The node will set the Rate limiting species concentration to zero at the boundary, and
balance the fluxes of the species participating in the reaction and the current densities
according to the Stoichiometric Coefficients settings.
When defining conditions on boundaries between different phases, see the section
Prescribing Conditions on Fluid-Solid Interfaces.
Additional Reaction Coefficients subnodes are available from the context menu
(right-click the parent node) as well as from the Physics toolbar, Attributes menu.
Note that if you are also modeling the momentum transport and expect a
nonnegligible total mass source or sink, which is often the case in gas diffusion
electrodes, you need to also add a corresponding mass source/sink in the Fluid Flow
interface. (A Reacting Flow multiphysics node adds the associated source/sink term in
a Fluid Flow interface automatically.)
Reaction Coefficients
Add this node to the Electrode Surface Coupling and Porous Electrode Coupling
features to define molar fluxes and sources based on electrode current densities in an
Electrochemistry interface.
The molar flux or source is proportional to the stoichiometric coefficients and the
current density according to Faraday’s law.
Current densities from Electrode Reaction (iloc, SI unit: A/m2) or Porous Electrode
Reaction nodes (iv, SI unit: A/m3) of any Electrochemistry interface in the model are
available for selection as the Coupled reaction, and user-defined expressions are also
supported.
The flux is proportional to the current densities and the stoichiometric coefficients
according to Faraday’s law as defined by summation over the Reaction Coefficients
subnodes.
Note that if you are also modeling the momentum transport and expect a
nonnegligible total mass flux over the boundary, which is often the case for gas
diffusion electrodes, you need to also add a corresponding Electrode Surface Coupling
node in the Fluid Flow interface.
Porous Medium
Use this node to model the concentration of diluted species transported by a solvent
(mobile fluid phase) through interstices in a solid porous medium. In addition to
transport due to convection and diffusion, the node contains functionality to include
species evolution through adsorption and dispersion.
Species transport through a porous medium is affected both by properties of the fluid
phase, and as well as properties of the solid matrix. These properties are defined in the
Fluid (Porous Medium) and Porous Matrix subnodes respectively. The Porous
Medium node supports material properties using a Porous Material node (described in
the COMSOL Multiphysics Reference Manual), where properties are defined per
phase in a similar manner.
Add an Adsorption or a Dispersion subfeature to the Porous Medium to account for the
corresponding transport mechanism.
MODEL INPUTS
The temperature model input is always available. By default, the Temperature model
input is set to Common model input, and the temperature is controlled from Default
Model Inputs under Global Definitions or by a locally defined Model Input. If a Heat
Transfer interface is included in the component, it controls the temperature Common
model input. Alternatively, the temperature field can be selected from another physics
interface. All physics interfaces have their own tags (Name). For example, if a Heat
Transfer in Fluids interface is included in the component, the Temperature (ht) option
is available for T.
You can also select User defined from the Temperature model input in order to manually
prescribe T.
CONVECTION
If transport by convection is active, the velocity field of the solvent needs to be
specified. For User defined, enter values or expressions for the velocity components in
the input fields. This input option is always available. You can also select the velocity
field solved for by a Fluid Flow interface added to the model component. These
physics interfaces are available for selection in the Velocity field list.
DIFFUSION
Use this section to specify diffusion coefficients describing the diffusion of each species
in the solvent fluid.
Use the Source list to select to pick up diffusion coefficients defined in a material or a
Chemistry interface.
Select Material, and a Fluid material to use a diffusion coefficient in a material available
in the model. User-defined property groups including a diffusion coefficient output
property are available for selection in the Fluid diffusion coefficient list.
In a porous medium the diffusivity is reduced due to the fact that the solid grains
impede Brownian motion. Select an Effective diffusivity model to account for the
reduced diffusivity. The available models are Millington and Quirk model (the default),
Bruggeman model, Tortuosity model, or No correction. For Tortuosity model, enter a
value for the tortuosity F,i (dimensionless).
Note that multiple species, as well as Migration in Electric fields (described below) is
only available for certain COMSOL Multiphysics add-on [Link] details, see
[Link]
• For User defined, enter a value or expression for the Electric potential V. This input
option is always available.
• Select the electric potential solved by an AC/DC-based interface that has added to
the component.
• Select the electric potential defined or solved for by an Electrochemistry interface
added to the component.
By default the Mobility is set to be calculated based on the species effective diffusivity
and the temperature using the Nernst-Einstein relation. For User defined, select the
appropriate scalar or tensor type — Isotropic, Diagonal, Symmetric, or Full — and type
in the value or expression of the effective mobility ume,i.
Porous Matrix
This node sets the porosity when modeling transport of diluted species in a Porous
Medium or an Unsaturated Porous Medium. The porosity corresponds to the volume
fraction occupied by the species containing fluid.
• By default the porosity of the solid matrix, p, is taken From material. The Porous
Matrix node supports the use of a Porous Material added to the Materials branch. In
this case the porosity is defined in the manner of
where s,i and imf,i are the volume fractions given in Solid and Immobile Fluids
subnodes under the Porous Material node.
• Select From pellet bed densities to compute the porosity using the (dry bulk) Bed
density b and the (single phase) Pellet density pe. The porosity is then defined from
b
p = 1 – -------
-
pe
Dispersion
Local variations in the velocity as the fluid flows around solid particles lead to
mechanical mixing, referred to as dispersion. Use this feature to account for dispersion
in a Porous Medium or a Unsaturated Porous Medium
This subfeature is available when both the Mass transfer in porous media mass transfer
checkbox and the Convection checkbox are selected in the Settings window for the
physics interface.
Select the Specify dispersion for each species individually checkbox to specify the
dispersion tensor DD (SI unit: m2/s) for each species separately. When not selected the
same dispersion tensor DD is used for all species.
Select an option from the Dispersion tensor list — Dispersivity or User defined.
Select Dispersivity to specify the dispersion in terms of dispersivities (SI unit: m). Select
an option from the Dispersivity model list: Isotropic (the default) or Transverse isotropic
based on the properties of the porous media. For isotropic porous media, specify the
longitudinal and transverse dispersivities. For transverse isotropic porous media,
specify the longitudinal, horizontal transverse, and vertical transverse dispersivities.
Use this node to model the concentration of diluted species transported by a liquid
(mobile fluid phase) in a partially filled solid porous medium. The interstices of the
porous medium contains the liquid carrier phase and gas pockets. Apart from
convection and diffusion, the node contains functionality to include species evolution
through adsorption, dispersion, and volatilization.
The properties of each phase present are defined using the Liquid, the Gas, and the
Porous Matrix subnodes respectively. The Unsaturated Porous Medium node supports
material properties using a Porous Material node (described in the COMSOL
Multiphysics Reference Manual), where properties are defined per phase in a similar
manner.
Liquid
Use this node to specify the mass transfer in the mobile liquid solvent present in the
pores of the Unsaturated Porous Medium.
MODEL INPUTS
The temperature model input is always available. By default, the Temperature model
input is set to Common model input, and the temperature is controlled from Default
Model Inputs under Global Definitions or by a locally defined Model Input. If a Heat
Transfer interface is included in the component, it controls the temperature Common
model input. Alternatively, the temperature field can be selected from another physics
interface. All physics interfaces have their own tags (Name). For example, if a Heat
Transfer in Fluids interface is included in the component, the Temperature (ht) option
is available for T.
SATURATION
Select Saturation or Liquid volume fraction from the list.
For Saturation, enter a value for s (dimensionless) between 0 and 1. The liquid volume
fraction is then computed from the saturation and porosity as l = ps.
For Liquid volume fraction, enter a value for l (dimensionless) between 0 and the value
of the porosity.
Select a Liquid fraction time change: Liquid fraction constant in time (the default), Time
change in liquid fraction, or Time change in pressure head.
• For Time change in fluid fraction, enter d/dt (SI unit: 1/s).
• For Time change in pressure head, enter dHp/dt (SI unit: m/s) and a Specific
moisture capacity Cm (SI unit: 1/m). If a Darcy’s Law interface is included in the
component, the time change in pressure head solved for can be selected.
CONVECTION
If transport by convection is active, the velocity field of the solvent needs to be
specified. For User defined, enter values or expressions for the velocity components in
the input fields. This input option is always available. You can also select the velocity
field solved for by a Fluid Flow interface added to the model component. These
physics interfaces are available for selection in the Velocity field list.
DIFFUSION
Use this section to specify diffusion coefficients describing the diffusion of each species
in the solvent liquid.
Use the Source list to select to pick up diffusion coefficients defined in a material or a
Chemistry interface.
Select Material, and a Liquid material to use a diffusion coefficient in a material available
in the model. User-defined property groups including a diffusion coefficient output
property are available for selection in the Liquid diffusion coefficient list.
For User defined, enter a value or expression for the Liquid diffusion coefficient DL,i of
each species in the corresponding input field.
In a porous medium the diffusivity is reduced due to the fact that the solid grains
impede Brownian motion. Select an Effective diffusivity model, liquid to account for the
reduced diffusivity in the liquid. The available models are Millington and Quirk model
(the default), Bruggeman model, Tortuosity model, or No correction. For Tortuosity
model, enter a value for the tortuosity L,i (dimensionless).
Note that multiple species, as well as Migration in Electric fields (described below) is
only available for certain COMSOL Multiphysics add-on products. For details see:
[Link]
• For User defined, enter a value or expression for the Electric potential V. This input
option is always available.
• Select the electric potential solved by an AC/DC-based interface that has added to
the component.
• Select the electric potential defined or solved for by an Electrochemistry interface
added to the component.
By default the Mobility is set to be calculated based on the species effective diffusivity
and the temperature using the Nernst-Einstein relation. For User defined, select the
appropriate scalar or tensor type — Isotropic, Diagonal, Symmetric, or Full — and type
in the value or expression of the effective mobility ume,i.
Gas
Use this node to specify the mass transfer in the gas phase present in the pores of the
Unsaturated Porous Medium.
VOLATILIZATION
Enter a value for the volatilization isotherm kG,c (dimensionless) for each species.
Adsorption
Use this node to model adsorption of the (fluid phase) solute species onto the surface
of the porous matrix. It is available as a subnode to the Porous Medium and the
Unsaturated Porous Medium nodes.
MATRIX PROPERTIES
The density of the porous media is needed when modeling adsorption to the surface
of the porous matrix. Choose to input either the Dry bulk density , or the Solid phase
density s. The former is the density of the porous matrix including empty pores, while
the latter corresponds to the density of the pure solid phase. The density can be defined
from the domain material by selecting From material, or from a user defined expression.
When a Porous Material is used on the selection, the density will be requested from a
Solid subfeature. Several Solid features can be used to model a homogeneous mixture
of several solid components.
ADSORPTION
Select an Adsorption isotherm — Langmuir, Freundlich, Toth, BET, or User defined to
specify how to compute cP, the amount of species sorbed to the solid phase (moles per
unit dry weight of the solid):
• For Langmuir:
Enter a Langmuir constant kL,c (SI unit: m3/mol) and an Adsorption maximum
cp,max,c (SI unit: mol/kg).
• For Freundlich:
c N c cP
c P = K F -------- K P = -------P- = N -----
c ref c c
Enter a Freundlich constant kF,c (SI unit: mol/kg), a Freundlich exponent NF,c
(dimensionless), and a Reference concentration cref,c (SI unit: mol/m3).
• For Toth:
bT c
c P = c Pmax ----------------------------------------------
N 1 NT
1 + bT c T
and
– 1 + ------
1-
c N N T
KP = -------P- = c Pmax b T 1 + b T c T
c
Enter a Toth constant bT,c (SI unit: m3/mol), a Toth exponent NT,c (dimensionless),
and an Adsorption maximum cp,max,c (SI unit: mol/kg).
• For BET (Brunauer-Emmett-Teller):
KB c0 c
c P = -------------------------------------------------------------
-
c S – c 1 + K B – 1 -----
c
cS
and
2 2
c K B c 0 c S K B – 1 c + c S
K P = -------P- = -----------------------------------------------------------------
-
c 2
c – c S c S + K B – 1 c
2
FURTHER READING
See the theory chapter in the section Mass Balance Equation for Transport of Diluted
Species in Porous Media.
Volatilization
This feature is available when the Mass transfer in porous media checkbox is selected in
the Settings window for the physics interface.
Use this feature to model mass transfer at the boundary due to volatilization. The
species dissolved in the liquid are assumed to be vaporized at the boundary, and
transported into the surrounding bulk region due to convection and diffusion. The
mass transfer at the boundary is defined as
– n J c = – h c k G,c c – c Gatm,c
where hc is the mass transfer coefficient, kG,c the volatilization coefficient, and cGatm,c
the concentration in the surrounding atmosphere.
VOLATILIZATION
Enter a Mass transfer coefficient hc defining the transfer into the surrounding media.
This can be given by boundary layer theory. When assuming that no convective flow
is present in the surrounding, the mass transfer coefficient can be defined from the gas
diffusion coefficient DGc and the thickness of the diffusion layer ds in the manner of
D Gc
h c = ----------
ds
Also give the atmospheric concentration for each species, cGatm,c. The Volatilization
coefficient kG,c for each species are taken from the adjacent Unsaturated Porous
Medium domain.
DOMAIN SELECTION
From the Selection list, choose the domains on which to define rate expression or
expressions that govern the source term in the transport equations.
If there are several types of domains, with subsequent and different reactions occurring
within them, it might be necessary to remove some domains from the selection. These
are then defined in an additional Species Source node.
SPECIES SOURCE
Add a source term Si (SI unit: mol/(m3·s)) for each of the species solved for. Enter a
value or expression in the field of the corresponding species.
Hygroscopic Swelling
The Hygroscopic Swelling multiphysics coupling node ( ) is used for moisture
concentration coupling between the Solid Mechanics interface and either the
Transport of Diluted Species or Transport of Diluted Species in Porous Media
interfaces.
hs = h M m c mo – c mo,ref
where h is the coefficient of hygroscopic swelling, Mm is the molar mass, cmo is the
moisture concentration, and cmo,ref is the strain-free reference concentration.
This feature requires a license of either the MEMS Module or the Structural Mechanics
Module. The multiphysics feature will appear automatically if both the Transport of
Diluted Species and the Solid Mechanics interfaces are added to the same component.
For the most current information about licensing, please see https://
[Link]/products/specifications/.
More information about multiphysics coupling nodes can be found in the section The
Multiphysics Branch in the COMSOL Multiphysics Reference Manual.
Out-of-Plane Flux
The out-of-plane flux node is used to prescribe a flux in an out-of-plane domain, and
it can be used to reduce a model geometry to 2D, or even 1D, when the concentration
variation is small in one or more directions. This could be the case for example when
the object to model is thin or slender. Figure 5-1 shows examples of possible situations
in which this type of geometry reduction can be applied.
Jz
Jup
Jdown
For a 1D component this node adds a single out-of-plane molar flux J0,z,i for species
i. For a 2D component two fluxes can be prescribed for each species; J0,u,i for the
upside of the domain, and J0,d,i for the downside of the domain.
The fluxes are added as a source contribution to the right-hand side of the transport
equation. For example, in 2D components with diffusion, convection, and
out-of-plane flux present, the mass transfer of species i is defined by the mass
conservation equation
c i
------- + J i + u c i = R i + S opf i , (5-1)
t
For external convection on the upside and the downside of the domain, the
out-of-plane flux is
J 0 i = k c u i c b u i – c i + k c d i c b d i – c i
where kc is a mass transfer coefficient and cb is the bulk concentration, the typical
concentration far into the surrounding exterior domain. The prescribed flux, J0, can
include any arbitrary user-specified expressions. It can be a constant or a function of a
dependent variable or independent variables.
J 0 i = P c J 0 z i .
The default value of Pc is the circumference. Either keep the default value, for a circular
cross-section shape, or edit the value to get a user-defined shape of the out-of-plane
cross-section.
The available flux type options are General inward flux and External convection. Select
the Species checkbox for the species for which to specify the flux, and enter a value or
expression for the inward flux in the corresponding field. Use a minus sign when
specifying a flux directed out of the system. To use another boundary condition for a
specific species, click to clear the checkbox for that species.
Set Flux type to External convection to prescribe a flux to or from an exterior domain
(not modeled) assumed to include convection. The exterior can for example include a
forced convection to control the temperature or to increase the mass transport. In this
case the prescribed mass flux corresponds to
J0 = kc cb – c
where kc is a mass transfer coefficient and cb is the bulk concentration, the typical
concentration far into the surrounding exterior domain.
Fracture
Use this node to model mass transport along thin fractures in porous media. The node
assumes that the transport in the tangential direction along the fracture is dominant as
a result of lower flow resistance.
The Fracture feature has two default subfeatures — the Fluid (Fracture) subfeature
where convection and diffusion are specified and the Fracture Material subfeature
where the porosity p is defined.
FRACTURE PROPERTIES
Specify a value for the Fracture thickness dfr.
For the Fracture boundary condition, there are a number of Attributes available which
can be accessed either via the Physics Ribbon toolbar (for Windows) or by
right-clicking on the Fracture node. These attributes are identical to the Boundary,
Edge, Point, and Pair Nodes for the Transport of Diluted Species in Fractures
Interface described, for example, in the Chemical Reaction Engineering Module
User’s Guide.
Fluid (Fracture)
Use this node to specify the mass transfer in the mobile fluid solvent filling the pores
of a fracture.
It uses the same input options as the Fluid (Porous Medium) subfeature under the
Porous Medium feature. There are further details about the settings.
CONVECTION
If transport by convection is active, the velocity field of the solvent needs to be
specified. Select an option from the Velocity field list to specify the convective velocity
along the fracture. For a consistent model, use a Fracture feature in a Darcy’s Law
interface to compute the fluid flow velocity in the fracture.
For User defined, enter values or expressions for the velocity components in the table
shown
DIFFUSION
Use this section to specify diffusion coefficients describing the diffusion of each species
in the solvent fluid.
The Diffusion settings are similar to those for the diffusion coefficients in
the Fluid (Porous Medium) node under Porous Medium.
Fracture Material
Specify the Porosity p (dimensionless) of the porous matrix. This is by default taken
From material. Select From pellet bed densities to compute the porosity from the (dry
bulk) Bed density b and the (single phase) Pellet density pe through the relation
b
p = 1 – -------
-
pe
This physics interface is a tool for generating a set of variables to be used for modeling
chemical species and reactions systems. The variables are generated from species and
reaction properties and can be divided in two categories:
• Rate expressions and heat sources for use in mass and heat balances.
• Material property variables (mixture density, diffusivities, viscosity, and so on) for
use in space-dependent transport equations.
Many of the fields and nodes described in this section are only made available when
either a Reaction or a Species (or both) subnode is added to the Model Builder. All
predefined constants and expressions can be overwritten by user-defined expressions.
This makes it possible to go beyond the modeling assumptions set as defaults in this
physics interface.
The following is a description of the features and fields available in the Settings window
for the Chemistry interface.
SETTINGS
The Label is the default physics interface name.
The Name is used primarily as a scope prefix for variables defined by the physics
interface. Refer to such physics interface variables in expressions using the pattern
<name>.<variable_name>. In order to distinguish between variables belonging to
different physics interfaces, the name string must be unique. Only letters, numbers, and
underscores (_) are permitted in the Name field. The first character must be a letter.
The default Name (for the first physics interface in the model) is chem.
MODEL INPUT
This section sets the Temperature, Pressure, and Electrode potential (only available with
a Battery Design Module, Corrosion Module, Electrochemistry Module,
Electrodeposition Module, or Fuel Cell & Electrolyzer Module license) to be used by
the current interface. Toggle the Enable electrode reactions checkbox to enable the
Electrode Potential input in the Model Input section, as well as the Electrode Reaction
and Electrode Reaction Group features. Use the lists to select a temperature, pressure,
For Temperature or Pressure, you can also select Common model input to use a globally
available common model input. In all three cases, select User defined to manually define
the variable in question.
MIXTURE PROPERTIES
Type
Use this setting to define specify what kind of mixture assumption is used. For Diluted
Species the mixture is composed of low concentration solutes present in a solvent. For
Concentrated Species a mixture where no single species is considered to be in excess is
assumed.
Select Diluted species from the Type list to use the concentration variables from a
Transport of Diluted Species interface in the Species Matching section. The same
setting should be used for any other interface solving for molar concentrations using a
diluted species assumption. Select Concentrated species from the Type list to use the
mass fractions from a Transport of Concentrated Species interface.
Thermodynamics
All property parameters and property functions required by the interface can be
automatically created by coupling to a system added to the Thermodynamics node. To
do so, click the Thermodynamics checkbox and select an existing Thermodynamic
System.
Phase
Use the Phase list to specify the state of aggregation of the mixture.
SPECIES MATCHING
This section is used to match species solved for in space dependent physics interfaces
to the species defined in Chemistry. By doing so the variables for the reaction kinetics
and the mixture properties defined by Chemistry can be applied to study chemically
reacting or composition dependent systems.
Bulk Species
Use the Bulk species table to specify the concentrations to be used as arguments in
reaction kinetics variables, for example the reaction rate. Reaction kinetics variables are
generated by the species features (Species and Species Group) and by the reaction
features (Reaction, Electrode Reaction, Reversible Reaction Group, Electrode
Reaction Group, and Equilibrium Reaction Group).
The bulk species concentrations are also used in the mixture properties, both for
transport properties like the density and viscosity, and thermodynamic properties like
the enthalpy or heat capacity.
When a mass transfer interface has been selected in the Species solved for list, use the
Molar concentration column to select one of the dependent variables in the selected
interface to the corresponding Species in Chemistry. When using a concentrated
species interface (defined by the Type list in the Mixture Properties section), instead
use the Mass fraction column to select a dependent variable for each species in
Chemistry. For a consistent set up, the species molar mass in the Transport of
Concentrated Species interface is updated to the one defined in the Chemistry
interface.
The Molar concentration and Mass fraction columns also includes a User defined option,
in which case a constant, parameter, or variable expression can be entered in the Value
column.
Thermodynamics Coupling
When the Thermodynamics is enabled, the species in the Chemistry interface can be
coupled to the species in the Thermodynamic System. This is needed to ensure that
arguments for the thermodynamic functions are correctly defined. Use the lists in the
From Thermodynamics column to match each species in the Chemistry to a species in
the coupled thermodynamic system. For each thermodynamics-coupled species, the
required property parameters and functions are added under the corresponding
thermodynamic system. When all species are matched, the Chemistry is considered
fully coupled and functions representing mixture properties, such as the density, are
also added automatically under the same thermodynamic system.
Similar to the table for Bulk Species, the surface species can be matched (or coupled)
directly to the surface species dependent variables if the Chemistry is coupled to a mass
transfer interface where the surface concentration is solved. There are three cases
where mass transfer interfaces solve surface species concentration (s).
The last column Value(mol/m^2) will be automatically set to Solved for when a surface
species dependent variable is selected under the column Surface concentration.
Otherwise for a User defined being for Surface concentration column, specify the
concentration of surface species Value(mol/m^2) column.
The species present in this section will not be used to define mixture properties.
Solid Species
The Solid Species table is available when there is at least one solid species (with “(s)” as
suffix).
The species present in this section will not be used to define mixture properties.
Aqueous Species
The Aqueous Species table is available when there is at least one aqueous species (with
“(aq)” as suffix).
The species present in this section will not be used to define mixture properties.
When the Chemistry interface is created using from the Generate Space-Dependent
Model the table is automatically set up in accordance with the added equilibrium
reaction nodes.
Transport Properties
ACTIVITY
This section is available when the Thermodynamics checkbox is cleared.
Select the Use activity checkbox to solve for species activities instead of species
concentrations, which is a common approach when nonideal fluids are modeled.
Two types of CHEMKIN input files can be imported here: Thermo and Transport, for
thermodynamic properties and transport properties, respectively. Properties for either
volumetric or surface species are supported. Click Browse to locate the CHEMKIN file
to be imported, then click Import. For Thermo, the imported data is directly entered in
the NASA format fields in the Species node’s Thermodynamic Expressions section; for
Transport, the imported data is entered in its Transport Expressions section.
Reaction
To add a Reaction node ( ) either right-click the Chemistry node or in the Chemistry
toolbar click Reaction.
Formula
Enter a chemical equation in the Formula field. The chemical equation should be of the
format “A + B arrow C + D”. Here, A and B are reactants, C and D are product species,
and arrow denotes a reaction arrow. The participating species should be written with
Valid Species Names. Valid reaction arrows are “<=>” for reversible reaction, “=>” for
irreversible reaction, and “=” for equilibrium reaction. Species can be given trivial
names, or their chemical formulas can be used as names. Examples of valid formulas
are; “carbon+oxygen=>carbondioxide”, and “C(s)+O2(g)=>CO2(g)”.
Click Apply to make the interface examine the species taking part in the chemical
equation, and automatically add the associated Species features to the Model Builder.
Balance ( )
Use the Balance button to automatically calculate the stoichiometric coefficients such
that the number of atoms of each kind are the same on both sides of the reaction. This
turns, for example, the formula “H2+O2=>H2O” into “2H2+O2=>2H2O”. The
balancing involves parsing all participating species for elements in the periodic table. It
therefore requires that all species in the Formula field are written either using their
chemical formula, say “H2O”, or that each species in the reaction have an enabled
Chemical Formula field in their Species node. For example, it is possible to balance the
formula “H2+O2=>water” as long as there is a Species node with the name “water”
already present, and an enabled Chemical Formula.
For automatic reaction balancing to be successful, requires that the problem is well
posed. One example of a problem that is not well posed is “C+H2=>CH4+C2H6”, in
which case any ratio of CH4/C2H6 could be obtained. Another example is
“H2=>O2” where not all elements are present on both sides.
Reaction Type
Select the Reaction type — Reversible, Irreversible, or Equilibrium — or edit the
expression directly in the Formula field. In the latter case, specify the reaction type with
a delimiter separating the two sides of the equation:
• If the reaction is Reversible or Irreversible, the reaction rate for reaction i contributes
to the change in species i as follows:
Ri = ij rj (5-2)
j
REACTION RATE
This section is available when the Reaction type is either Reversible or Irreversible.
When Mass action law is selected (default), the rate expression is automatically derived
from the stoichiometric coefficients in the reaction formula:
– ij
f
rj = kj ci (5-3)
i react
– ij
f r
rj = kj ci – kj c i ij (5-4)
i react i prod
The deduced overall reaction order is shown in text below the respective equation in
the Reaction Rate section.
2 S 2 O 42 – + H 2 O S 2 O 32 – + 2 HSO 3–
The automatically deduced reaction order is three, however, in the case that water is
the solvent, the order should probably be two. This is specified as follows:
Figure 5-2: The reaction order can be manually specified for a user defined reaction rate.
RATE CONSTANTS
This section applies for Reversible or Irreversible reactions and defines the reaction rate
constants used in the reaction rates.
The SI units of the rate constants are automatically based on the order of the reaction
with respect to the concentrations, as defined in the Reaction formula.
r f
k = k K eq0
Thus, in this case, the forward rate constant and equilibrium constant for the reaction
are needed. The Equilibrium constant is edited in the Equilibrium Settings section.
r
r r n r
k = A T T ref exp – E R g T
Specify the activation energy and the frequency factor in the Arrhenius expressions to
account for temperature variations. The reference temperature, Tref equals 1 K. The
available fields are based on the Reaction type chosen in the Reaction node. Enter
values or expressions for each of the following (reverse expressions are only available
for reversible reactions):
EQUILIBRIUM SETTINGS
This section is available for equilibrium reactions, and for reversible reactions when the
Specify equilibrium constant checkbox has been selected.
Equilibrium Expression
For an equilibrium reaction, specify the Equilibrium expression. When the Equilibrium
expression is set to Automatic the following expression is used:
Select User defined from the Equilibrium expression list to instead enter a manually
defined equilibrium expression.
Equilibrium Constant
Specify the Equilibrium constant Keq0 for an equilibrium reaction, or for a reversible
reaction when the Specify equilibrium constant checkbox has been selected (in the Rate
Constants section).
The Equilibrium constant can either be User defined, or automatically defined when set
to Automatic or Thermodynamics.
Use the Automatic option to compute the equilibrium constant for an ideal system.
The Thermodynamics option is available when all reactions in the interface are
equilibrium reactions, and the interface is fully coupled to a Thermodynamic System
(see Species Matching). Use this setting to automatically compute the equilibrium
constant for an ideal or nonideal system, dependent on the thermodynamic model
applied for the coupled system.
Using Automatic or Thermodynamics, Keq0 is calculated from the Gibbs free energy of
the reaction. For more details see The Equilibrium Constant and the Automatically
Defined Equilibrium Constants section therein.
Enthalpy of Reaction
The Enthalpy of reaction H (SI unit: J/mol) is calculated by the interface from species
properties and the related stoichiometric coefficients:
Hj = ij h i – – ij h i (5-5)
i prod i react
Entropy of Reaction
The Entropy of reaction S (SI unit: J/(mol·K)) comes from a similar expression:
In Equation 5-5 and Equation 5-6, hi and si are the species’ molar enthalpy and molar
entropy, respectively.
Enter these quantities in the Species Thermodynamic Expressions section for the Species
node either by using the predefined polynomial or by providing a custom expression
or constants.
The stoichiometric coefficients, ij, are defined as being negative for reactants and
positive for products. Using Equation 5-5 and Equation 5-6 to equate the Gibbs free
energy of reaction enables the equilibrium constant to be expressed according to
Equation 5-5.
TURBULENT FLOW
This section is available if the following conditions are met:
When this section is activated, the Reaction feature can be coupled to turbulent flow in
the Transport of Concentrated Species interface.
In a turbulent flow, there are many small turbulent eddies (known as fine structures),
where actual dissipation of turbulent kinetic energy into heat and simultaneous mixing
occur. The chemical reactions can take place inside these isolated regions. According
to the ratio between the time scales of chemical reactions and mixing (the Damköhler
number, Da), the reaction rate can be modeled in the following three ways:
• Da << 1 — the mixing process is very fast, the limiting rate step is the chemical
reaction
The equations for the reaction rate controlled by both chemical reaction and turbulent
mixing are
– i r
ci
for f
r MV j = k
r
– i p
ci
rev r
r MV j = k
p
p
--------------
for
r ED j = ------ min min
T p Mp
p
p r
= ------ min min -------------- ------------
rev
r ED j -
T p M p r Mr
r
For very fast mixing process (Da << 1), the reaction rate equations are the same as that
for normal reaction (without turbulence).
For very fast chemical reaction (Da >> 1), the equation for reaction rate is,
c for rev
r j = r ED j –r ED j
Turbulence-Reaction Model
Select a turbulent model from the combo box, for example, Eddy dissipation.
REGULARIZATION
This section is available under the same conditions as those for the Turbulent Flow
section.
With the checkbox Reaction rate regularization selected, a table for Reaction rate
damping limits will be available. For each species in the reaction, the default damping
limit is 1e-6.
Species
When a Reaction is defined, a Species node ( ) is automatically generated for the
participating reactants and products. This feature enables you to review and enter
species specific information regarding chemical kinetics, thermodynamics, and
transport properties.
It is also possible to add and define an individual Species node: in the Chemistry toolbar
click Species or right-click the Chemistry node and select it from the context menu.
NAME
When a Species node is automatically generated using the Formula text field for the
Reaction node, the Name is also automatically generated.
For a Species node added individually, enter a Name in the field and click Apply. By
entering a name consisting of elements from the periodic table, the molar mass is
calculated and added in the Chemical Formula section. The species charge, and type, are
also deduced from the species name.
Bulk species and Solvent are solved for volumetric concentrations (SI unit: mol/m3),
while Surface species are solved for surface concentration (SI unit: mol/m2). The
compositions for Bulk species and Solvent use the syntax c_speciesname, while Surface
species uses csurf_speciesname_surf.
When Surface species is selected, the corresponding reaction formula introduces (ads)
after the species notation and changes the species’ name to speciesname_surf.
Additionally, the Species node name is updated in a similar fashion.
CHEMICAL FORMULA
The Chemical Formula section contains the species chemical formula, Molar mass, M,
and Charge, z.
If the name entered for the species consists of only elements from the periodic table,
and optionally charge and phase indication, then the Chemical Formula field will be
populated with the name entered in the Name section, and the molar mass and charge
will be added to this section. The species molar mass is computed from the mass of
occurring individual elements1. The rules for writing chemical formulas are the same
as those for Species names.
When the species name contains parts not in the periodic table, for example when a
descriptive name such as water is used, the molar mass is set to 0.0 kg/mol and the
charge to zero. In this case, the molar mass needs to be defined in order to achieve
mass balanced reactions and correct definitions of mass basis properties. By entering a
chemical formula consisting only of elements from the periodic table (and optionally
charge and phase indication), the molar mass, and charge are derived automatically.
When needed, the Molar mass can be edited in the corresponding text field. Editing
the Chemical formula and pressing apply will override the molar mass and charge
[Link] Charge field cannot be edited as long as a chemical formula is enabled.
1. Values are averages of upper and lower bounds for each atom as published by CIAAW. Source: CIAAW.
Atomic weights of the elements 2019. Available online at [Link].
It is possible to specify the species density when the fluid Mixture is specified as Liquid.
The default value is that of water at 293 K.
REACTION RATE
Change the Automatic default setting to User defined to use a species reaction rate other
than the one set up in the associated Reaction node. For individual species, use the User
defined option to set a reaction rate other than zero (that is, nonreactive).
Edit either the Rate expression (SI unit: mol/(m3·s)), the Surface rate expression (SI
unit: mol/(m2·s)), or both. For a bulk species, both expressions appear if surface
reactions are present since the reaction of the species can depend both on bulk reaction
R and surface reaction Rads rates. For a surface species, only the surface reaction rate
Rads appears.
ADDITIONAL SOURCE
The Additional Source section is available in order to include additional rate
contribution for the species to the reaction kinetics. When the Additional source
checkbox is selected, add an Additional rate expression in the text field (SI unit: mol/
m3).
CONSTANT CONCENTRATION/ACTIVITY
To account for nonideality in the fluid mixture, adjust the activity coefficient in the
Activity coefficient input field. This input field is only shown if activity instead of
concentration has been chosen in the interface, that is, the Use activity checkbox is
selected on the Chemistry interface Settings window
THERMODYNAMIC EXPRESSIONS
The parameters utilized for calculation of thermodynamic mixture and reaction
properties are set in this section.
The Electrode Reaction subnode defines the electrode kinetics for a charge transfer
reaction that occurs on an electrolyte-electrode interface boundary. Use multiple
nodes to model multiple reactions, for instance in mixed potential problems.
REACTION FORMULA
Formula
Enter an electrode reaction Formula, as a reduction reaction. Use the single letter “e”
to symbolize an electron. The delimiter between reactants and products has to be
written as “<=>” (without quotation marks). The phase of the species, that is (aq) for
aqueous dilute ions, (s) for solids, and (g) for gases can be indicated in the name. The
phase is used to select an automatic reference state (see Reference Concentrations) for
computing the equilibrium potential using the Nernst equation. Click Apply to make
the interface examine the species taking part in the model’s reactions and automatically
add the associated Species features to the Model Builder.
EQUILIBRIUM POTENTIAL
The Equilibrium potential, Eeq (SI unit: V), is used in the electrode kinetics
expressions in the following section (via the definition of the overpotential), or for
setting up primary current distribution potential constraints.
Nernst Equation
After providing the reference electrode potential, the equilibrium potential is
calculated using the Nernst equation. The concentrations entered in the Species
Matching section of the Chemistry interface will be used to calculate the equilibrium
potential. The reference concentrations, defined in the Reference Concentrations
section, will be used to compute the activities in the reaction quotient expression, Qr.
Automatic
This option is only available if the Calculate mixture properties checkbox in the
Calculate Transport Properties section is checked.
If only species enthalpies and entropies at standard state are available, use the Nernst
Equation option instead.
REFERENCE CONCENTRATIONS
The reference concentrations for the species in the reaction can be changed here.
Automatic
The phase indicated when first naming a species will be used to select a suitable
reference concentration. The species must indicate the phase in the name when the
species is first created.
For aqueous dilute species, denoted by (aq) in their names, the activity is calculated as
their concentration divided by 1 M. For gaseous species, denoted by (g) in their
names, the activity is calculated as their concentration divided by the standard
reference pressure of 1 atm, converted into concentration using the ideal gas law. For
solid species, denoted by (s) in their names, the reference concentration 1. For surface
species, denoted by (ads) in their names, the reference surface concentration will be set
to the site density configured in the Species Matching section. Any species not
containing a phase in their name, will use a reference state depending on the phase
selected under Mixture Properties. If the phase is Gas, the gaseous species reference
concentration described above will be used, while if the phase is Liquid, the aqueous
species 1 M reference concentration will be used.
User Defined
The reference concentrations for each type of species can be set manually, for aqueous,
gaseous, solid, surface, and any other species, respectively.
ELECTRODE KINETICS
See the Electrode Reaction node in Shared Physics Features in the Current
Distribution Interfaces for a general description of the Electrode Kinetics section.
If the equilibrium potential is calculated using Nernst Equation, the exponents in the
local current density expression are evaluated using the reference overpotential. If
HEAT OF REACTION
See the Electrode Reaction node in Shared Physics Features in the Current
Distribution Interfaces for a general description of the Heat of Reaction section.
Electrode Reactions in Chemistry do not support the Temperature Derivative option.
By choosing Automatic, the Thermoneutral voltage parameter, Etherm (SI unit: V), will
be calculated according to
r H
E therm = – ----------
- (5-7)
nF
Multiple Electrode Reaction nodes may be added to the Electrode Reaction Group.
Variables for the sum of all electrode reactions in one group can be used as input in
Electrode Reaction features in current distribution interfaces.
For the case when reaction kinetics data are entered manually into the Reaction table
and temperature dependent reaction kinetics apply, right-click to add a Reaction
Thermodynamics subnode or select it from the Chemistry toolbar, Attributes menu. In
it, the Enthalpy of Reaction (J/mol) for each reaction can be specified.
REACTION TABLE
The reversible reactions in the Reaction table are numbered and contain reactants,
products, and kinetic parameters describing the reaction. Use the buttons under the
Reaction table to add and sort the reaction details.
• In general, use the Move Up ( ), Move Down ( ), and Delete ( ) buttons and
the fields under tables to edit the table contents. Or right-click a table cell and select
Move Up, Move Down, or Delete.
• The Add button ( ) adds default reactant, A, and product, B, with a default. Click
the corresponding field to edit the reactant, product, or parameters. After editing
the Species Group node is also updated. It is created together with the reaction
group.
• You can save the parameters to a text file to reuse in other models. Click the Save to
File button ( ) and enter a File name in the Save to File dialog, including the
extension .txt. Click Save to store the parameters in a text file or in a Microsoft
Excel Workbook spreadsheet if the license includes LiveLink™ for Excel®. The
information is saved in space-separated columns in the same order as displayed on
screen. When saving to Excel, an Excel Save dialog appears where you can specify the
sheet and range and whether to overwrite existing data or include a header.
• You can import or load data in files from a spreadsheet program, for example, with
the Load from File button ( ) and the Load from File dialog that appears. Data must
be separated by spaces or tabs. If there is already data in the table, imported
parameters are added after the last row. Move or edit rows as needed. If the license
includes LiveLink™ for Excel® you can also load parameters from a Microsoft Excel
Workbook spreadsheet. Then an Excel Load dialog appears where you can specify the
sheet and range and whether to overwrite existing data. It is also possible to import
from a spreadsheet containing a separate column for units.
Add the node from the Chemistry toolbar or right-click Chemistry and add it from the
context menu.
For the case when reaction kinetics data are entered manually into the Reaction table
and temperature dependent reaction kinetics apply, right-click to add a Reaction
Thermodynamics subnode or select it from the Chemistry toolbar, Attributes menu. In
it, the Enthalpy of Reaction (J/mol) for each reaction can be specified.
REACTION TABLE
The equilibrium reactions in the table are numbered and contain reactants, products,
and kinetic parameters describing the reaction. Use the buttons under the Reaction
table to add and sort the reaction details.
• In general, use the Move Up ( ), Move Down ( ), and Delete ( ) buttons and
the fields under tables to edit the table contents. Or right-click a table cell and select
Move Up, Move Down, or Delete.
• The Add button ( ) adds default reactant, A, and product, B, with a default. Click
the corresponding field to edit the reactant, product, or parameters. After editing
the Species Group node is also updated. It is created together with the reaction
group.
• You can save the parameters to a text file to reuse in other models. Click the Save to
File button ( ) and enter a File name in the Save to File dialog, including the
extension .txt. Click Save to store the parameters in a text file or in a Microsoft
Excel Workbook spreadsheet if the license includes LiveLink™ for Excel®. The
information is saved in space-separated columns in the same order as displayed on
Species Group
The Species Group node ( ) contains information on a molecular level about the
volumetric species and the surface species present in the model. The Property for
Volumetric Species or Property for Surface Species tables typically collect parameters from
when importing CHEMKIN transport files.
This node is automatically added when either the Reversible Reaction Group or the
Equilibrium Reaction Group is used.
Reaction Thermodynamics
The Reaction Thermodynamics subnode ( ), the Enthalpy of Reaction (J/mol) of
each reaction can be specified. This node overrides all the automatically calculated
reaction enthalpies as defined in the Species Thermodynamics subnode.
Add the Reaction Thermodynamics node from the Chemistry toolbar, Attributes menu.
Alternatively, right-click a Reversible Reaction Group or Equilibrium Reaction Group
to add the Reaction Thermodynamics subnode.
Species Activity
The Species Activity node ( ) creates variables for the activities of all the species/
surface species present in the Species Group parent feature. Edit the Activity coefficient
field in the Species Activity or Surface Species Activity tables by clicking in these.
Species Thermodynamics
The Species Thermodynamics node ( ) creates variables for the enthalpies, entropies,
and heat capacities for all the species/surface species present in the Species Group
parent feature. The purpose is to compute thermodynamic mixture properties and the
heat of reactions.
A Space Charge Density Coupling ( ) multiphysics node is also added. This node
computes the local space charge, based on the local concentrations and species charges
in the Transport of Diluted Species interface, and adds it to Poisson’s Equation in the
Electrostatics interface.
The physics interface can simulate most forms of electrophoresis modes, such as zone
electrophoresis, isotachophoresis, isoelectric focusing, and moving boundary
electrophoresis.
The interface supports simulation in 1D, 2D, and 3D as well as for axisymmetric
components in 1D and 2D.
The dependent variables are the electrolyte potential, and the molar concentrations of
the included species, added individual by each species node in the model tree.
SETTINGS
The Label is the default physics interface name.
The Name is used primarily as a scope prefix for variables defined by the physics
interface. Refer to such physics interface variables in expressions using the pattern
<name>.<variable_name>. In order to distinguish between variables belonging to
different physics interfaces, the name string must be unique. Only letters, numbers, and
underscores (_) are permitted in the Name field. The first character must be a letter.
The default Name (for the first physics interface in the model) is el.
DOMAIN SELECTION
If any part of the model geometry should not partake in the mass transfer model,
remove that part from the selection list.
For 1D components, enter a Cross sectional area Ac (SI unit: m2) to define
a parameter for the area of the geometry perpendicular to the 1D
component. The value of this parameter is used, among other things, to
automatically calculate the total current from the current density vector.
The analogy is valid for other fluxes. The default is 1 m2.
TRANSPORT MECHANISMS
Mass transport due to diffusion and migration is always included. Use the checkboxes
available under Additional transport mechanisms to control other transport
mechanisms.
CONSISTENT STABILIZATION
To display this sections, click the Show More Options button ( ) and select
Stabilization in the Show More Options dialog.
• When the Crosswind diffusion checkbox is selected, a weak term that reduces spurious
oscillations is added to the transport equation. The resulting equation system is
always nonlinear.
• For both Streamline diffusion and Crosswind diffusion, select an Equation residual.
Approximate residual is the default and means that derivatives of the diffusivity are
INCONSISTENT STABILIZATION
To display this section, click the Show More Options button ( ) and select Stabilization
in the Show More Options dialog. By default, the Isotropic diffusion checkbox is not
selected because this type of stabilization adds artificial diffusion and affects the
accuracy of the original problem. However, this option can be used to get a good initial
guess for under-resolved problems.
ADVANCED SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog. Normally these settings do not need
to be changed. Select a Convective term — Nonconservative form (the default) or
Conservative form. Use the conservative formulation for compressible flow.
DISCRETIZATION
To display all settings available in this section, click the Show More Options button ( )
and select Advanced Physics Options in the Show More Options dialog.
If the checkbox is cleared, the COMSOL Multiphysics software instead computes the
flux variables from the dependent variables using extrapolation, which is less accurate
in postprocessing results but does not create extra dependent variables on the
boundaries for the fluxes.
• <name>.nIl, where <name> is the name of the interface (default is el), set on the
interface top node. This is the normal electrolyte current density.
• <name>.ntflux_<species_name> is the Species name (see Common Settings for
the Species Nodes in the Electrophoretic Transport Interface below). This is the
normal total flux for each species.
For details about the boundary fluxes settings, see Computing Accurate Fluxes in the
COMSOL Multiphysics Reference Manual.
Regarding the Value type when using splitting of complex variables, see Splitting
Complex-Valued Variables in the COMSOL Multiphysics Reference Manual.
DEPENDENT VARIABLES
The dependent variable name for the electrolyte potential variable is phil by default.
The name of the concentration dependent variables are named as [Link], where el is
the name of the interface as set above, and the xxx string is controlled by the Species
name setting on the individual species nodes.
FURTHER READING
• Ampholyte
• Fully Dissociated Species
• Uncharged Species
• Weak Acid
• Weak Base
• Concentration
• Flux
• Inflow
• Initial Concentration
• No Flux
• Outflow
• Species Source
The Ampholyte, Weak Acid, and Weak Base nodes are dissociation species and may
define an arbitrary number of dissociation steps. Each dissociation step is defined by
its pKa (the acid equilibrium constant) parameter. For the weak bases the pKa refers
to the acid constant of the conjugate acid. Each dissociation step adds one additional
subspecies concentration variable so that the concentration dependent variable
represents the sum of all subspecies, and initial and boundary conditions are defined
with respect to this total concentration.
All species node have a setting for the Species name, which needs to be unique. The
species name is used for naming of all related variables of the species. For species nodes
not defining any subspecies, the concentration variables are named as
<name>.c_<species_name> where <name> is the name of the interface (default is el),
set on the interface top node, and <species_name> is the Species name. For
dissociation species nodes defining multiple subspecies, the concentration nodes are
named as <name>.c<X>_<species_name> where <X> is the integer from 1 up to the
total number of subspecies. Note that the Solvent node automatically defines the
concentration variables for protons (<name>.cH) and hydroxide ions (<name>.cOH).
All species except the Uncharged Species carry charge and contribute to the total
electrolyte current which is used in the equation for solving the electrolyte potential.
The Immobile Species checkbox can be used to lock the concentration of a species, to,
for instance, define the immobile charges in an ion-selective membrane or a gel. When
the checkbox is enabled the concentration of the species is not added as a dependent
variable to the model; instead the concentration will be set to the value provided in the
Concentration field. The contribution to the electrolyte current for immobile species is
zero.
For dissociation species you may choose to set the transport parameters to be the Same
for all species appearing in the different dissociation steps, or you may use Individual
settings for each subspecies.
Typically the mobilities and diffusivities for small species are related by the
Nernst-Einstein relation, and when this relation is enabled you can choose whether to
specify either the Diffusivity (SI unit: m2/s) or the Mobility (SI-unit: s·mol/kg). The
Debye-Hückel-Henry relation is commonly used for larger molecules, such as proteins.
Note: There are other definitions of the migration transport equations in the
literature which use mobilities expressed in m2/(V·s), whereas COMSOL
Multiphysics uses s·mol/kg. To convert mobilities expressed in m2/(V·s) to the
corresponding values in s·mol/kg, you typically divide by the Faraday constant,
F_const (about 96,485 C/mol).
The default correction model is Bruggeman, which multiplies the diffusivity and
mobility values by the porosity to the power of 1.5. The porosity of a domain is set by
the Porous Matrix Properties node.
The Debye-Hückel-Henry relation makes use of the ionic strength for calculating the
species mobility from the diffusivity. All charged species contribute to the ionic
strength, either assuming the species contributing to an Ideal solution or by using the
Linderstrøm-Lang assumption. The latter is usually used for macromolecules.
• Ampholyte • No Flux
• Concentration • Outflow
• Current • Porous Matrix Properties
• Current Density • Potential
• Current Source • Protein
• Flux • Species Source
• Fully Dissociated Species • Solvent
• Inflow • Uncharged Species
• Initial Concentration • Weak Acid
• Initial Potential • Weak Base
• Insulation
In the COMSOL Multiphysics Reference Manual, see Table 2-4 for links
to common sections and Table 2-5 for common feature nodes. You can
also search for information: press F1 to open the Help window or Ctrl+F1
to open the Documentation window.
If Convection is enabled on the interface top node, you can specify the Velocity field
(m/s) as user defined input using analytical expressions or the velocity field variables
solved for by a separate physics interface.
The Solvent node automatically defines the concentration variables and for protons
(<name>.cH) and hydroxide ions (<name>.cOH), and the corresponding flux
expressions. See Diffusion and Migration Settings for how to set up the transport
parameters for the proton and hydroxide ions.
In the Solvent Properties section you can modify the Dynamic viscosity (Pa·s) and
Relative permittivity (unitless) values. The Built in and default values are applicable to
water. These parameters are used when calculating mobilities according to the
Debye-Hückel-Henry relation in the species nodes.
In the Water Self-Ionization section you can change the default Built in expression for
the Water self-ionization constant, pKw (unitless), to any user-defined expression.
See also Common Settings for the Species Nodes in the Electrophoretic Transport
Interface and Diffusion and Migration Settings.
Uncharged Species
Use this node to define a species that does not carry any charge, nor is impacted by the
electric field.
Weak Acid
The Weak acid node supports multiple dissociation steps, where the acid of the first
dissociation step is uncharged.
The species may be either Monoprotic, subject to one dissociation step only, or
Polyprotic. For the latter case any Number of dissociation steps larger than one may be
used.
See also Common Settings for the Species Nodes in the Electrophoretic Transport
Interface and Diffusion and Migration Settings.
Weak Base
The Weak base node supports multiple dissociation steps, where the base of the last
dissociation step is uncharged.
The species may be either Monoprotic, subject to one dissociation step only, or
Polyprotic. For the latter case any Number of dissociation steps larger than one may be
used.
Note that the pKa refers to the acid constant of the conjugate acid of the weak base.
See also Common Settings for the Species Nodes in the Electrophoretic Transport
Interface and Diffusion and Migration Settings.
Ampholyte
Use the Ampholyte node generically to define any species where the average charge
depends on the pH of the solution. The Dissociation model may be based either on a
set of Equilibrium constants or an Average charge.
When using the Equilibrium constants the Base charge in last dissociation step, Z0
(unitless), needs to be set.
Protein
Use the Protein node to define macromolecules. The features of the Protein node are
similar to the Ampholyte node, but with the default settings applicable for larger
molecules.
See also Common Settings for the Species Nodes in the Electrophoretic Transport
Interface and Diffusion and Migration Settings.
Current Source
To make this node available, click the Show More Options button ( ) and select
Advanced Physics Options in the Show More Options dialog.
Use this node to add a current source in a domain. A current source may appear in a
domain in homogenized porous electrode modeling, but should normally not be used.
Initial Potential
Use this node to specify the Initial Value of the electrolyte potential for the solver.
Current
The Current boundary condition sets the total current or average current density over
a boundary. It will set a constant electrolyte potential along the given boundary, which
satisfies the current value setting.
When using the Total current option in 1D or 2D, the boundary area is based either
on the Cross sectional area (1D) or the Out-of-Plane thickness (2D) properties, set on
the physics interface top node.
Current Density
Use the Current Density node to specify the current density distribution along a
boundary.
Note that using this node in 2D or 3D may result in an uneven potential distribution
along the boundary. To mitigate such effects you may use the Current node instead.
Insulation
The Insulation boundary condition describes the walls of a cell or the boundaries of the
cell that do not face an electrode (or a reservoir containing an electrode). The
boundary condition imposes the following equation:
il n = 0
Potential
Add the Potential node on a boundary to set a fixed potential. This node is typically
used to model electrode surfaces or boundaries facing an electrolyte reservoir.
The node sets the potential in the electrolyte, l, to be equal to the Boundary electrolyte
potential, l, bnd (SI unit: V).
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog.
Species Source
To make this node available, click the Show More Options button ( ) and select
Advanced Physics Options in the Show More Options dialog.
This node may be added as a subnode to any species node. See also Common Settings
for the Species Nodes in the Electrophoretic Transport Interface.
This node specifies the initial value for the Concentration, c (mol/m3), of the parent
species. This value serve as the initial condition for a transient simulation. The value
also serves as a start guess for stationary problems.
You can use spatially dependent functions (such as smoothed step functions) available
under Definitions when defining the Concentration expression to specify different
concentrations in different parts of the geometry. You can also use additional Initial
Values node and modify the Selection to set different values for different domains.
Concentration
This node may be added as a subnode to any species node. See also Common Settings
for the Species Nodes in the Electrophoretic Transport Interface
This condition node adds a boundary condition for the parent species concentration.
Use the node to, for instance, specify the inlet concentration at the boundary facing
an electrolyte reservoir.
No Flux
This node may be added as a subnode to any species node. See also Common Settings
for the Species Nodes in the Electrophoretic Transport Interface.
Flux
This node may be added as a subnode to any species node. See also Common Settings
for the Species Nodes in the Electrophoretic Transport Interface.
This node can be used to specify the species inward flux across a boundary. The flux
can represent a flux from or into a much larger surrounding environment, a phase
change, or a flux due to chemical reactions.
External convection
Set Flux type to External convection to prescribe a flux to or from an exterior domain
(not modeled) assumed to include convection. The exterior can for example include a
forced convection to control the temperature or to increase the mass transport. In this
case the prescribed mass flux corresponds to
J0 = kc cb – c
where kc is a mass transfer coefficient and cb is the bulk concentration, the typical
concentration far into the surrounding exterior domain.
Inflow
This node is available when you select the Convection checkbox on the physics interface
Settings window.
The other option, Flux (Danckwerts) can be more stable and fast to solve when high
reaction rates are anticipated in the vicinity of the inlet. Oscillations on the solutions
can also be avoided in such cases. The latter condition uses a flux boundary condition
based on the velocity across the boundary and the concentration values.
Outflow
Set this condition at outlets where species are transported out of the model domain by
migration or fluid motion. It is assumed that migration and convection are the
dominating transport mechanisms across outflow boundaries, and therefore that
diffusive transport can be ignored; that is:
n – D c = 0
When this physics interface is added, these default nodes are also added to the Model
Builder — Surface Properties, No Flux, and Initial Values. Then, from the Physics toolbar,
add other nodes that implement, for example, boundary conditions. You can also
right-click Surface Reactions to select physics features from the context menu.
SETTINGS
The Label is the default physics interface name.
The Name is used primarily as a scope prefix for variables defined by the physics
interface. Refer to such physics interface variables in expressions using the pattern
<name>.<variable_name>. In order to distinguish between variables belonging to
different physics interfaces, the name string must be unique. Only letters, numbers, and
underscores (_) are permitted in the Name field. The first character must be a letter.
The default Name (for the first physics interface in the model) is sr.
DEPENDENT VARIABLES
Add or remove species and also change the names of the dependent variables that
represent the species concentrations. Note that the names can be changed but the
names of fields and dependent variables must be unique within a model.
Enter the Number of surface species. Use the Add surface concentration ( ) and
Remove surface concentration ( ) buttons as needed. The same number of Surface
concentrations cs, cs2, cs3, … are then listed in the table.
DISCRETIZATION
To display all settings available in this section, click the Show More Options button ( )
and select Advanced Physics Options in the Show More Options dialog.
By default the Compensate for boundary stretching checkbox is selected for the Surface
Properties node. This section is then used to stabilize the tangential mesh velocity
term.
When the Compensate for boundary stretching checkbox is cleared (not selected), and
for fixed geometries or moving geometries, the stabilization has no effect.
• Boundary, Edge, Point, and Pair Nodes for the Surface Reactions
Interface
• Theory for the Surface Reactions Interface
Boundary, Edge, Point, and Pair Nodes for the Surface Reactions
Interface
has these boundary, edge, point, and pair nodes, listed in alphabetical order, available
from the Physics ribbon toolbar (Windows users), Physics context menu (Mac or Linux
users), or right-click to access the context menu (all users).
• Initial Values
All other available nodes are described for the Transport of Diluted Species interface.
See Domain, Boundary, and Pair Nodes for the Transport of Diluted Species Interface.
In the COMSOL Multiphysics Reference Manual see Table 2-4 for links
to common sections and Table 2-5 to common feature nodes. You can
also search for information: press F1 to open the Help window or Ctrl+F1
to open the Documentation window.
Surface Properties
Use the Surface Properties node to define the density of sites, the site occupancy
number, and the surface diffusion.
SITES
Enter a value or expression for the Density of sites s (SI unit: mol/m2). The default
is 2 x 10-5 mol/m2.
Enter a Site occupancy number i (dimensionless), indicating how many surface sites a
surface species block upon adsorption.
SURFACE DIFFUSION
Select a Surface material from the list. The default is None.
For each surface concentration species, the default Diffusion coefficient Di (SI unit: m2/
s) is User defined. Select Isotropic, Diagonal, Symmetric, or Full depending on the
characteristics of the surface, and then enter values or expressions in the field or matrix.
Initial Values
The Initial Values node allows the initial value or guess for the surface and bulk
concentrations.
INITIAL VALUES
Based on the number of surface species and number of bulk species entered for the
physics interface under Dependent Variables section, enter values for the same number
of Surface concentration cs, cs2, cs3, … (SI unit: mol/m2) and Bulk concentration cb,
cb2, cb3, … (SI unit: mol/m2) in each field.
Reactions
The Reactions node adds rate expression terms to the species transport equations in
order to account for consumption or production of species due to reactions.
SURFACE CONCENTRATION
Select each species checkbox as needed and enter a value or expression for each species
concentration, cs,0,cs1,cs2… (SI unit: mol/(m2·s)).
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog.
When studying mixtures that are not dilute, the mixture and transport properties
depend on the composition, and a different physics interface is recommended. See The
Transport of Concentrated Species Interface in the Chemical Reaction Engineering
Module User’s Guide for more information.
Fick’s law governs the diffusion of the solutes, dilute mixtures, or solutions, while the
phenomenon of ionic migration is sometimes referred to as electrokinetic flow. The
Transport of Diluted Species interface supports the simulations of chemical species
transport by convection, migration, and diffusion in 1D, 2D, and 3D as well as for
axisymmetric components in 1D and 2D.
In this section:
Note: Some features explained in this section require certain add-on modules. For
details see [Link]
c i
------- + J i + u c i = R i (5-8)
t
Equation 5-8 in its form above includes the transport mechanisms diffusion and
convection. If Migration in Electric Field is activated (only available in some add-on
products), the migration mechanism will be added to the equation as well. See more
details in the section Adding Transport Through Migration.
The mass flux relative to the mass averaged velocity, Ji (SI unit: mol/(m2·s)), is
associated with the mass balance equation above and used in boundary conditions and
flux computations. The Transport of Diluted Species interface always includes mass
transport due to molecular diffusion. In this case the mass flux Ji defines the diffusive
flux vector
J i = – D c i (5-9)
The third term on the left side of Equation 5-8 describes the convective transport due
to a velocity field u. This field can be expressed analytically or obtained from coupling
the physics interface to one that solves for fluid flow, such as Laminar Flow. Note that
all fluid flow interfaces solve for the mass averaged velocity.
On the right-hand side of the mass balance equation (Equation 5-8), Ri represents a
source or sink term, typically due to a chemical reaction or desorption on a porous
matrix. To specify Ri, another node must be added to the Transport of Diluted Species
interface — the Reaction node for example, which includes an input field for specifying
a reaction expression using the variable names of all participating species.
The kinetics of the reaction is so fast that the equilibrium condition is fulfilled at all
times in all space coordinates.
ai i
i products
K eq = ----------------------------------
–
ai i
i reactants
ci
a i = c i -------
c a0
where ca0 (SI unit: mol/m3) is the standard molarity, and c,i (dimensionless) an
activity coefficient.
i
K eq = ai
i
The Equilibrium Reaction node solves for a reaction rate so that the equilibrium
condition is always fulfilled in the domain. It is available for the Chemical Reaction
Engineering Module; Battery Design Module; Corrosion Module; Electrochemistry
Module; Electrodeposition Module; and Fuel Cell & Electrolyzer Module.
c,i is set to unity when the Equilibrium constant is selected in the Settings
window. For nonunity activity coefficients, a user-defined equilibrium
condition can be used.
Two formulations of the mass balance are available, these are referred to as the
nonconservative and conservative form:
c
nonconservative: ----- + J i + u c = R (5-10)
t
c
conservative: ----- + J i + cu = R (5-11)
t
In these equations Ji is the diffusive flux vector, u is the solvent velocity field, and R
is a production or consumption rate expression. The nonconservative is often more
numerically robust, and therefore chosen by default for the interface. This formulation
however disregards density changes in the fluid. This can be seen by expanding the
conservative convection term using the chain rule. One of the resulting terms, c·u,
equals zero for an incompressible fluid which results in the nonconservative form. To
switch between the two formulations, click the Show button ( ) and select Advanced
Physics Options.
Note: The features below are only available in a limited set of add-on products. For a
detailed overview of which features are available in each product, visit
[Link]
There are two types of mass sources in the Transport of Diluted Species interface: point
sources and line sources.
POINT SOURCE
A point source is theoretically formed by assuming a mass injection/ejection, Qꞏ c (SI
unit: mol/(m3·s)), in a small volume V and then letting the size of the volume tend
to zero while keeping the total mass flux constant. Given a point source strength, qꞏ p,c
(SI unit: mol/s), this can be expressed as
ꞏ
lim
V 0 Qc = qꞏ p,c (5-12)
V
qꞏ p,c test c
is added at a point in the geometry. As can be seen from Equation 5-12, Qꞏ c must tend
to plus or minus infinity as V tends to zero. This means that in theory the
concentration also tends to plus or minus infinity.
Observe that “point” refers to the physical representation of the source. A point source
can therefore only be added to points in 3D components and to points on the
symmetry axis in 2D axisymmetry components. Other geometrical points in 2D
components represent physical lines.
LINE SOURCE
A line source can theoretically be formed by assuming a source of strength Qꞏ l,c (SI
unit: mol/(m3·s)), located within a tube with cross section S and then letting S tend
to zero while keeping the total mass flux per unit length constant. Given a line source
strength, qꞏ l,c (SI unit: mol/(m·s)), this can be expressed as
lim
S 0 Qꞏ l,c = qꞏ l,c (5-13)
S
As in the point source case, an alternative approach is to assume that mass is injected/
extracted through the surface of a small object. This results in the same mass source,
but requires that effects resulting from the physical object’s volume are neglected.
qꞏ l,c test c
As with a point source, it is important not to mesh too finely around the line source.
For feature node information, see Line Mass Source and Point Mass
Source.
Note: Migration is only available in a limited set of add-on products. For a detailed
overview of which features are available in each product, visit
[Link]
c i
+ – D i c i – z i u m i F c i V + c i u = R i (5-14)
t
where
J i = – D i c i – z i u m i Fc i V
The velocity, u, can be a computed fluid velocity field from a Fluid Flow interface or
a specified function of the spatial variables x, y, and z. The potential can be provided
by an expression or by coupling the system of equations to a current balance, such as
the Electrostatics interface. Sometimes it is assumed to be a supporting electrolyte
present, which simplifies the transport equations. In that case, the modeled charged
species concentration is very low compared to other ions dissolved in the solution.
Thus, the species concentration does not influence the solution’s conductivity and the
net charge within the fluid.
D
u m i = --------i
RT
where R (SI unit: J/(mol·K)) is the molar gas constant and T (SI unit: K) is the
temperature.
Note: In the Nernst–Planck Equations interface, the ionic species contribute to the
charge transfer in the solution. It includes an electroneutrality condition and also
computes the electric potential field in the electrolyte. For more information, see
Theory for the Nernst–Planck Equations Interface. This interface is included in the
Chemical Reaction Engineering Module.
Supporting Electrolytes
In electrolyte solutions, a salt can be added to provide a high electrolyte conductivity
and decrease the ohmic losses in a cell. These solutions are often called supporting
electrolytes, buffer solutions, or carrier electrolytes. The added species, a negative and
a positive ion pair, predominates over all other species. Therefore, the supporting
electrolyte species can be assumed to dominate the current transport in the solution.
In addition, the predominant supporting ions are usually selected so that they do not
react at the electrode surfaces since the high conductivity should be kept through the
process, that is, they should not be electroactive species. This also means that the
concentration gradients of the predominant species in a supporting electrolyte are
usually negligible.
The current density vector is proportional to the sum of all species fluxes as expressed
by Faraday’s law:
i = F zi Ni
i
– z j u m j F c j
2
i = F (5-15)
j
Equation 5-15 is simply Ohm’s law for ionic current transport and can be simplified to
i = – (5-16)
where is the conductivity of the supporting electrolyte. A current balance gives the
current and potential density in the cell
i = 0
– = 0 (5-17)
Equation 5-17 can be easily solved using the Electrostatics or Secondary Current
Distribution interface and, when coupled to the Transport in Diluted Species interface,
the potential distribution shows up in the migration term.
Crosswind Diffusion
Transport of diluted species applications can often result in models with a very high
cell Péclet number — that is, systems where convection or migration dominates over
diffusion. Streamline diffusion and crosswind diffusion are of paramount importance
to obtain physically reasonable results. The Transport of Diluted Species interface
provides two crosswind diffusion options using different formulations. Observe that
crosswind diffusion makes the equation system nonlinear even if the transport
equation is linear.
CODINA
The Codina formulation is described in Ref. 1. It adds diffusion strictly in the direction
orthogonal to the streamline direction. Compared to the do Carmo and Galeão
formulation, the Codina formulation adds less diffusion but is not as efficient at
reducing over- and undershoots. It also does not work as well for anisotropic meshes.
The advantage is that the resulting nonlinear system is easier to converge and that
underresolved gradients are less smeared out.
Use the Danckwerts condition to specify inlet conditions for domains where high
reaction rates are anticipated in the vicinity to the inlet (Ref. 2).
n J i + uc i = n uc i 0 (5-18)
c + c P i + ( g c G i) + u c i =
t l i t t (5-19)
D D i + D e i c i + R i + S i
On the left-hand side of Equation 5-19, the first three terms correspond to the
accumulation of species within the liquid, solid, and gas phases, while the last term
describes the convection due to the velocity field u (SI unit: m/s).
In Equation 5-19 ci denotes the concentration of species i in the liquid (SI unit: mol/
m3), cP, i the amount adsorbed to solid particles (moles per unit dry weight of the
solid), and cG, i the concentration of species i in the gas phase.
The equation balances the mass transport throughout the porous medium using the
porosity p, the liquid volume fraction l; the dry bulk density, = (1 p)s, and the
solid phase density s.
For saturated porous media, the liquid volume fraction l is equal to the porosity p,
but for unsaturated porous media, they are related by the saturation s as l = psThe
resulting gas volume fraction in the case of an unsaturated porous medium is
g = p – l = 1 – s p
On the right-hand side of Equation 5-19, the first term introduces the spreading of
species due to mechanical mixing resulting from the porous media (dispersion), as well
as from diffusion and volatilization to the gas phase. The dispersion tensor is denoted
DD (SI unit: m2/s) and the effective diffusion by De (SI unit: m2/s).
The last two terms on the right-hand side of Equation 5-19 describe production or
consumption of the species; Ri is a reaction rate expression which can account for
reactions in the liquid, solid, or gas phase, and Si is an arbitrary source term, for
example due to a fluid flow source or sink.
c
c = c P i c i – c p = K P,i i – c P i s p (5-20)
t P i ci t P i s t t t
Volatilization
Volatilization is the process where a solute species in the liquid is transported to the
gas phase due to vaporization. Assuming that the amount of solute in the gas phase,
cG,i, is a linear function of the liquid phase concentration, the volatilization term is
defined as
c G i c i g c i g
= + k c = g k G i + k G i c i (5-21)
c
t g G i
g ci t G i i t t t
c + c P i + u c i = D D i + D e i c i + R i + S i (5-22)
t p i t
The velocity field to be used in the Model Inputs section on the physics
interface can, for example, be prescribed using the velocity field from a
Darcy’s Law or a Brinkman Equations interface.
The average linear fluid velocities ua, provides an estimate of the fluid velocity within
the pores:
u-
u a = ---- Saturated
p
u-
u a = --- Unsaturated
l
where p is the porosity and l = sp the liquid volume fraction, and s the saturation,
a dimensionless number between 0 and 1.
Figure 5-3: A block of a porous medium consisting of solids and the pore space between the
solid grains. The average linear velocity describes how fast the fluid moves within the pores.
The Darcy velocity attributes this flow over the entire fluid-solid face.
If the conservative formulation is expanded using the chain rule, then one of the terms
from the convection part, ci·u, would equal zero for an incompressible fluid and
would result in the nonconservative formulation described in Equation 5-19.
When using the nonconservative formulation, which is the default, the fluid is assumed
incompressible and divergence free: u = . The nonconservative formulation
improves the stability of systems coupled to a momentum equation (fluid flow
equation).
To switch between the two formulations, click the Show button ( ) and
select Advanced Physics Options. In the section Advanced Settings select
either Nonconservative (the default) or Conservative. The conservative
formulation should be used for compressible flow.
De = DF Free Flow
p
D e = ----- D L Saturated Porous Media
L
l
D e = ----- D L Unsaturated Porous Media
L
l g
D e = ----- D L + ------ k G D G Unsaturated with Volatilization
L G
Here DF, DL, and DG are the single-phase diffusion coefficients for the species diluted
in a fluid, a pure liquid, and a gas phase, respectively (SI unit: m2/s), and F, L, and
G are the corresponding tortuosity factors (dimensionless).
The tortuosity factor accounts for the reduced diffusivity due to the fact that the solid
grains impede Brownian motion. The interface provides predefined expressions to
–7 3 2 –7 3 2
L = l p , G = g p
–5 2 2 –5 2 2
L = l p , G = g p
For saturated porous media l = p. The fluid tortuosity for the Millington and Quirk
model is
–1 3
L = p
–1 2
L = p
User defined expressions for the tortuosity factor can also be applied.
Dispersion
The contribution of dispersion to the mixing of species typically overshadows the
contribution from molecular diffusion, except when the fluid velocity is very low.
The spreading of mass, as a fluid travel through a porous medium is caused by several
contributing effects. Local variations in fluid velocity lead to mechanical mixing
referred to as dispersion occurs because the fluid in the pore space flows around solid
particles, so the velocity field varies within pore channels. The spreading in the
direction parallel to the flow, or longitudinal dispersivity, typically exceeds the
transverse dispersivity from up to an order of magnitude. Being driven by the
concentration gradient alone, molecular diffusion rate is low relative to the mechanical
dispersion, except at very low fluid velocities.
The dispersion is controlled through the dispersion tensor DD. The tensor
components can either be given by user-defined values or expressions or derived from
the directional dispersivities.
Using the longitudinal and transverse dispersivities in 2D, the dispersivity tensor
components are (Ref. 5):
2 2
ui uj
D Dii = L ------ + T ------
u u
ui uj
D Dij = D Dji = L – T -----------
u
In these equations, DDii (SI unit: m2/s) are the principal components of the
dispersivity tensor, and DDji and DDji are the cross terms. The parameters L and T
(SI unit: m) specify the longitudinal and transverse dispersivities; and ui (SI unit: m/
s) stands for the velocity field components.
In order to facilitate modeling of stratified porous media in 3D, the tensor formulation
by Burnett and Frind (Ref. 4) can be used. Consider a transverse isotropic media,
where the strata are piled up in the z direction, the dispersivity tensor components are:
In Equation 5-24 the fluid velocities u, v, and w correspond to the components of the
velocity field u in the x, y, and z directions, respectively, and 1 (SI unit: m) is the
longitudinal dispersivity. If z is the vertical axis, 2 and 3 are the dispersivities in the
transverse horizontal and transverse vertical directions, respectively (SI unit: m).
Setting 2 = 3 gives the expressions for isotropic media shown in Bear (Ref. 5 and
Ref. 6).
Adsorption
As species travel through a porous medium they typically attach to (adsorb), and
detach (desorb) from the solid phase, which slows chemical transport through the
porous medium. Adsorption and desorption respectively reduces or increases species
concentrations in the fluid. The adsorption properties vary between chemicals, so a
plume containing multiple species can separate into components (Ref. 7). The
Adsorption feature includes four predefined and one user-defined relationships to
predict the solid concentrations, cPi from the concentration in the liquid phase, ci:
• Freundlich (Ref. 8)
- Freundlich constant KF (SI unit:·mol/kg), Freundlich exponent NF
(dimensionless), and reference concentration cref (SI unit: mol/m3).
• Langmuir (Ref. 9)
- Langmuir constant KL (SI unit: m3/mol), and adsorption maximum cPmax
(SI unit: mol/kg).
• Toth (Ref. 10)
- Toth constant bT (SI unit: m3/mol), Toth exponent NT (dimensionless), and
adsorption maximum cPmax (SI unit: mol/kg).
• BET (Brunauer–Emmett–Teller, Ref. 11)
- BET constant KB (dimensionless), the monolayer adsorption capacity c0
(SI unit: mol/kg) and the saturation concentration, cS (SI unit: mol/m3).
These predefined expressions are adsorption isotherms that describe the amount of
species sorbed to the solid. Applying the isotherms, as defined in the Adsorption
section above, assumes that adsorption is at equilibrium locally. This implies that the
species phase transfer, between the fluid and the solid phase (within the porous
medium), is much faster than the transport within the fluid phase.
Using a Species Source feature, arbitrary expressions can be entered to define, for
example, nonequilibrium and temperature-dependent adsorption laws, in the manner
of Fetter (Ref. 12), or Bear and Verruijt (Ref. 13).
The retardation factor, RF, describes how adsorption slows the solute velocity, uc,
relative to the average linear velocity of the fluid, ua, as in
If the contaminant moves at the average linear velocity of the fluid for RF = 1. For
RF > 1, the contaminant velocity is lower than the fluid velocity owing to residence
time on solids.
Reactions
Chemical reactions of all types influence species transport in porous media. Examples
include biodegradation, radioactive decay, transformation to tracked products,
temperature- and pressure-dependent functions, exothermic reactions, and
endothermic reactions. The reactions represent change in species concentration per
unit volume porous medium per time. Reaction terms are used on the right-hand side
of the governing equation to represent these processes. For reactions in a fluid phase,
multiply the expression by the fluid volume fraction . Similarly, solid phase reaction
expressions include the bulk density, b, and gas phase reactions include the gas
volume fraction, av.
ln 2
R Li = – --------- c i Radioactive decay — liquid
Li
ln 2 c Pi
R Pi = – b --------- ---------- c i Radioactive decay — solid
Pi c i
c Gi
R Gi = – --------- a v ----------- c i Radioactive decay — gas
ln 2
Gi c
R Lk = Li c i Creation from parent c Li — liquid
c Pi
R Pk = b Pi ---------- c i Creation from sorbed parent c Pi — solid
c i
c Gi
R Gk = – a v ----------- c i Reaction — gas
c
where is the chemical half life, is a reaction rate, and the subscripts L, P, and G
denote liquid, solid, and gas phases, respectively. In the equations, the reactions either
depend on liquid concentration ci or solid phase concentrations cPi obtained using the
sorption derivative with ci or gas phase concentration cGi depending on the gas volume
fraction, the volatilization, and the liquid concentration.
Ea T – TR
T = R exp ------------------------------ (5-26)
R u TT R
The fluid flow in a fracture can be modeled using Darcy’s law formulated in a thin
sheet of porous medium (a fracture):
u = --- t p
Here u is the tangential Darcy velocity, is the fracture permeability, the fluid’s
dynamic viscosity, and tp is the tangential gradient of the fluid pressure.
The equation to solve for mass transport of species ci in a thin fracture, embedded in
a porous media, is derived from Equation 5-19. The resulting equation is:
b c P i p c i
d fr ------------------ + ------------- + t D e i t c i + u t c i = d fr R i + d fr S i + n 0 (5-27)
t t
Here dfr is the fracture thickness, cP,i the amount of species adsorbed to (or desorbed
from) the porous matrix (moles per unit dry weight of the solid), p is the fracture
porosity, and De is the effective diffusivity. The first two terms on the right hand side
represent source terms from reactions, and n0 corresponds to out-of plane flux from
the adjacent porous domain.
In order to arrive at the tangential differential equation, the gradient is split into the
contributions normal and tangential to the fracture:
c i = n c i + t c i
c i = t c i
Using The Transport of Diluted Species in Fractures Interface, the transport along
fracture boundaries alone is solved for. In this case the transport in the surrounding
porous media neglected and the out-of plane flux n0 vanishes.
See Fracture for more information about the boundary feature solving
Equation 5-27. See for more information about the physics interface
solving the equation on boundaries only.
References
1. R. Codina, “A discontinuity-capturing crosswind-dissipation for the finite element
solution of the convection-diffusion equation”, Computer Methods in Applied
Mechanics and Engineering, vol. 110, pp. 325–342, 1993.
3. R.J. Millington and J.M. Quirk, “Permeability of Porous Solids”, Trans. Faraday
Soc., vol. 57, pp. 1200–1207, 1961.
4. R.D. Burnett and E.O. Frind, “An Alternating Direction Galerkin Technique for
Simulation of Groundwater Contaminant Transport in Three Dimensions: 2.
Dimensionality Effects”, Water Resour. Res., vol. 23, no. 4, pp. 695–705, 1987.
7. D.M. Mackay, D.L. Freyberg, P.V. Roberts, and J.A. Cherry, “A Natural Gradient
Experiment on Solute Transport in a Sand Aquifer: 1. Approach and Overview of
Plume Movement”, Water Resour. Res., vol. 22, no. 13, pp. 2017–2030, 1986.
10. J. Toth, “State equation of the solid gas interface layer”, Acta Chem. Acad. Hung.
vol. 69, pp. 311–317, 1971.
13. J. Bear and A. Verruijt, Modeling Groundwater Flow and Pollution, D. Reidel
Publishing, 1994.
15. J.M. Coulson and J.F. Richardson, Chemical Engineering, vol. 2, 4th ed.,
Pergamon Press, Oxford, U.K., 1991.
16. J.M. Coulson and J.F. Richardson, Chemical Engineering, vol. 1, 4th ed.,
Pergamon Press, Oxford, U.K., 1991.
17. D.E Rosner, Transport Processes in Chemically Reacting Flow Systems, ISBN-13:
978-1483130262, Butterworth–Heinemann, 1986.
18. R.B. Bird, W.E. Stewart, and E.N. Lightfoot, Transport Phenomena, 2nd ed.,
John Wiley & Sons, Inc., 2007.
The species concentrations are denoted, ci (SI unit: mol/m3), and the potential, l (SI
unit: V).
N i = – D i c i – z i u m i Fc i l + uc i = J i + uc i (5-28)
where Di (SI unit: m2/s) is the diffusion coefficient, zi (1) the corresponding charge,
um,i (SI unit: s·mol/kg) the mobility and u (SI unit: m/s) the velocity vector. Ji
denotes the molar flux relative to the convective transport (SI unit: mol/(m2·s)). For
a detailed description of the theory of these equations and the different boundary
conditions, see Theory for the Transport of Diluted Species Interface.
il = zi Ni (5-29)
i
il = Ql (5-30)
where Ql (SI unit: A/m3) is the electrolyte current source stemming from, for
example, porous electrode reactions. For nonporous electrode domains this source
term is usually zero.
N+2
zi ci = 0 (5-31)
i=1
In water-based systems the species H+ and OH- are always present. The auto
ionization reaction for water is
+ -
H 2 O H + OH (5-32)
2 –6
c H + c OH - = K w 1 mol dm (5-33)
where Kw 1014.
Now, the electroneutrality condition, including the two additional species H+ and
OH-, reads
c H + – c OH - + zi ci = 0 (5-34)
i=1
Combining these two equations results in the following algebraic expressions for the
concentrations of H+ and OH-.
2
cH+ = –
--- +
2 –6
------ + K w 1 mol dm (5-35)
2 4
and
2
c OH - =
--- +
2 –6
------ + K w 1 mol dm (5-36)
2 4
where
= zi ci (5-37)
i=1
+ z +k–1
z +k z +k–1 + H S k0– 1
S k0 S k0– 1 +H K a 1 = ---------------------------------------- (5-38)
z0 + k
Sk
to
+ z
z +1 z + H S 00
S k0 S 00 + H K a k = -------------------------
- (5-39)
z +1
S 10
where z0 is the charge (valence) of species S0 (which has no dissociable protons) and
Ka,j is the acid (equilibrium) constant of the jth dissociation reaction. The brackets
“[ ]” here represent the species activity. The charge of each species is always deductible
from the index i according to z0+i and will be dropped from now on.
If the proton activity is known, any species Sm may be expressed using any other
species Sl according to
m–l
H Sl
S m = ------------------------------------- (5-40)
k–l
K a j
j = k–m+1
if m l and
k–m
m–l
Sm = H Sl K a j
j = k–l+1
(5-41)
if l m.
Setting m i and denoting the flux of species i by Ni using equation Equation 5-28,
the mass balance equation for the concentration ci of each subspecies i in the
dissociation chain is
c
-------i + N i = R eq i k – i – R eq i k – i + 1 + R i (5-42)
t
where Req,i,j is the reaction source stemming from the jth dissociation step (with
Req,i,k+1 0), and Ri any additional reaction sources.
k k
c i
------
- + N i = Ri (5-43)
t
i=0 i=0
N i = – Dc i – zu m Fc i l + uc i (5-44)
When considering the contribution to the current and the charge balance equation you
2 2
need to take into account that the squared average charge, z = z 0 – , is not equal
2 2 2 2 2 2
to the “average squared charge”, z = z 0 + 2z 0 + = z – + (Ref. 1).
2
i l = – F zD i c i + z u m c i l (5-45)
The average number of protons removed from the proton typically depends on the
pH. If the average number of removed protons depend only on the pH, the averaged
squared number of protons removed can be written as
2 d 2
= – c H+ + (5-46)
d cH+
And from this you can derive the average squared charge according to
2 d z2 d z z2
z = – cH+ + = – cH+ + (5-47)
d c H+ d cH+
DIFFUSIVITY-MOBILITY RELATIONS
The Stokes radius r of a molecule is related to the diffusivity according to
where is the (SI unit: Pa·s) is the dynamic viscosity and k the Boltzmann constant.
For small molecules, there is the frequently used Nernst–Einstein relation between the
diffusivity and the mobility
D
u m = -------- (5-49)
RT
For larger molecules, such as proteins, the mobility may instead be calculated based on
the Debye–Hückel–Henry expression (Ref. 2 ) according to
ef r - = -----------------------------
Df r -
u m = ----------------------------------- (5-50)
6F 1 + r RT 1 + r
where (1/m) is the Debye parameter, which depends on the ionic strength of the
solution, is defined for ideal solutions as
2 N
2e N A
zi ci
2 2
= ----------------- (5-51)
0 kT
i=1
where is the dielectric constant of the fluid and 0 the permittivity of free space.
2
( z should be used if available in the formula above when calculating the ionic
strength).
The function f above is based on a sigmoidal function so that it ranges from 1 for r 0
to 1.5 for r . Note that the Debye–Hückel–Henry expression approaches the
Nernst–Einstein mobility as r 0.
For larger molecules (macro ions), where the distance between the charges is large
compared to 1/, the Linderstrøm–Lang approximation postulates a smaller
contribution of to the ionic strength so that the z-valent ion behaves as a monovalent
ion with a z-fold concentration. For an assemble of N M smaller molecules and M
macro ions, the Debye parameter then is defined as
N–M N
2e N A
2
= ----------------- abs(z i)c i
2 2
zi ci + (5-52)
0 kT
i=1 i = N–M+1
In this section:
N t i = – D s i t c s i
where Ds,i (SI unit: m2/s) is the surface diffusion coefficient for species i.
c s i
= – t N t i + R s i (5-53)
t
where Rs,i (SI unit: mol/(m2·s)) is the sum of all sources due to surface reactions and
adsorption/desorption phenomena.
Of frequent interest for surface reaction kinetics are the fractional surface coverages, i
(dimensionless), of the species (with index i).
i c s i
i = -------------
-
s
(The site occupancy number accounts for the situation when a large species covers
more than one site on the surface.)
For the case of monolayer adsorption, the sum of all fractional coverages of free and
adsorbed sites is unity, and hence the fraction of free sites on the surface, *, can be
calculated from
* = 1 – i
i
The reaction rate in mass basis, rb,k (SI unit: kg/(s·m2)) for species k, is given by
r k = M k R b k
with Mk (SI unit: kg/mol) being the molar mass of the species.
Based on this, the species contribution to the bulk growth velocity, vk (SI unit: m/s),
is given by
r b k
v b k = ---------
-
k
r b tot = r b k
k
v b tot = vb k
k
R b k
R b frac k = --------------
-
R b tot
r b k
r b frac k = ------------
-
r b tot
v b k
v b frac k = -------------
-
v b tot
The bulk concentration, cb,k (SI unit: mol/m2), for species k is governed by the
equation
c b k
= R b k (5-54)
t
The bulk concentration in mass basis, mb,k (SI unit: kg/m2) for a species k, can be
derived from
m b k = M k c b k
m b k
s b k = ------------
-
k
c b tot = c b k
k
m b tot = mb k
k
s b tot = sk
k
FRACTIONAL QUANTITIES
The fractional bulk concentration, bulk mass, and thickness (all dimensionless) are
calculated according to
c b k
c b frac k = ------------
-
c b tot
m b k
m b frac k = ---------------
-
m b tot
s b k
s b frac k = ------------
-
s b tot
In order to comply with the additional contributions to the mass balance, equations
are added. First, the following terms are added to the right-hand side of Equation 5-53
and Equation 5-54, respectively:
– c s i ln A
t
– c b k ln A
t
where A is the infinitesimal mesh area segment (area scale factor). The above terms
account for the concentration change due to a fractional area change.
t c s i v t mesh
t c b k v t mesh
This convectional term needs often to be stabilized using methods such as streamline
diffusion or isotropic diffusion.
is used to define the stoichiometric coefficients, i, with i being positive (red) for
products and negative (ox) for the reactants in a reduction reaction. The number of
participating electrons, n, is always positive.
In this section:
i m i m
Ni = -----------------
nm F
-
m
where im is the local current density (SI unit: A/m2) of the electrochemical reaction,
nm the number of participating electrons and F (SI unit: C/mol) is Faraday’s
constant.
The molar species flux, Ni, is obtained from normal component of the molar species
flux vector over the electrode-electrolyte interface:
Ni = Ni n
where n is the normal vector of the boundary pointing into the domain.
i m i m
R i molar = – av m -----------------
nm F
-
m
ni n = Mi Ni
R i mass = M i R i molar
This chapter describes the physics interfaces found under the Fluid Flow branch
( ). The chapter summarizes each physics interface including the different fields,
material properties, and boundary conditions associated with them, and suggests
how and when to apply it.
In this chapter:
| 309
The Laminar Flow and Creeping Flow
Interfaces
In this section:
In the COMSOL Multiphysics Reference Manual, see Table 2-4 for links to common
sections such as Discretization, Consistent Stabilization, Inconsistent Stabilization, and
Advanced Settings sections, some of them accessed by clicking the Show button ( )
and choosing the applicable option. You can also search for information: press F1 to
open the Help window or Ctrl+F1 to open the Documentation window.
The equations solved by the Creeping Flow interface are the Stokes equations for
conservation of momentum and the continuity equation for conservation of mass.
The Creeping Flow interface can be used for stationary and time-dependent analyses.
The main feature is the Fluid Properties node, which adds the Stokes equations and
provides an interface for defining the fluid material and its properties. Except where
noted below, see The Laminar Flow Interface for all other settings.
DISCRETIZATION
By default, the Creeping Flow interface uses P2+P1 elements. Contrary to general
laminar and turbulent single-phase flow simulations employing purely linear P1+P1
elements, P2+P1 elements are well suited for most creeping flow simulations but are
not in general fully conservative. Full conservation properties and high accuracy is
obtained by selecting P2+P2 or P3+P3 elements.
Note that P1+P1, P2+P2, and P3+P3 discretizations (the so-called equal order
interpolations) require streamline diffusion to be active.
The physics interface supports incompressible flow, weakly compressible flow (the
density depends on temperature but not on pressure), and compressible flow at low
Mach numbers (typically less than 0.3). It also supports flow of non-Newtonian fluids.
The equations solved by the Laminar Flow interface are the Navier–Stokes equations
for conservation of momentum and the continuity equation for conservation of mass.
The Laminar Flow interface can be used for stationary and time-dependent analyses.
Time-dependent studies should be used in the high-Reynolds number regime as these
flows tend to become inherently unsteady.
When the Laminar Flow interface is added, the following default nodes are also added
in the Model Builder: Fluid Properties, Wall (the default boundary condition is No slip),
and Initial Values. Other nodes that implement, for example, boundary conditions and
volume forces, can be added from the Physics toolbar or from the context menu
displayed when right-clicking Laminar Flow.
The Name is used primarily as a scope prefix for variables defined by the physics
interface. Physics interface variables can be referred to using the pattern
<name>.<variable_name>. In order to distinguish between variables belonging to
different physics interfaces, the name string must be unique. Only letters, numbers, and
underscores (_) are permitted in the Name field. The first character must be a letter.
The default Name (for the first physics interface in the model) is spf.
If the Neglect inertial term (Stokes flow) checkbox is selected, then the Label changes
to Creeping Flow, which is the same Label that displays when that interface is added
from the Model Wizard or Add Physics window.
PHYSICAL MODEL
Compressibility
Depending of the fluid properties and the flow regime, three options are available for
the Compressibility option. In general the computational complexity increases from
Incompressible flow to Weakly compressible flow to Compressible flow (Ma<0.3) but the
underlying hypotheses are increasingly more restrictive in the opposite direction.
When the Incompressible flow option (default) is selected, the incompressible form of
the Navier–Stokes and continuity equations is applied. In addition, the fluid density is
evaluated at the Reference pressure level defined in this section. The Reference
temperature is set to 293.15 K.
The Weakly compressible flow option models compressible flow when the pressure
dependency of the density can be neglected. When selected, the compressible form of
the Navier–Stokes and continuity equations is applied. In addition, the fluid density is
evaluated at the Reference pressure level defined in this section.
When the Compressible flow (Ma<0.3) option is selected, the compressible form of the
Navier–Stokes and continuity equations is applied. Ma 0.3 indicates that the inlet
and outlet conditions, as well as the stabilization, may not be suitable for transonic and
supersonic flow. For more information, see The Mach Number Limit.
Include Gravity
When the Include gravity checkbox is selected, a global Gravity feature is shown in the
interface model tree, and the buoyancy force is included in the Navier–Stokes
equations.
Also, when the Include gravity checkbox is selected, the Use reduced pressure option
changes the pressure formulation from using the total pressure (default) to using the
reduced pressure. This option is suitable for configurations where the density changes
are very small; otherwise, the default formulation can be used. For more information,
see Gravity
Reference Values
Reference values are global quantities used to evaluate the density of the fluid when
the Incompressible flow or the Weakly compressible flow option is selected.
Reference pressure level There are generally two ways to include the pressure in fluid
flow computations: either to use the absolute pressure pAppref, or the gauge
pressure p. When pref is nonzero, the physics interface solves for the gauge pressure
whereas material properties are evaluated using the absolute pressure. The reference
pressure level is also used to define the reference density.
Reference position When Include gravity is selected, the reference position can be
defined. It corresponds to the location where the total pressure (that includes the
hydrostatic pressure) is equal to the Reference pressure level.
DEPENDENT VARIABLES
The following dependent variables (fields) are defined for this physics interface — the
Velocity field u and its components, and the Pressure p.
If required, the names of the field, component, and dependent variable can be edited.
Editing the name of a scalar dependent variable changes both its field name and the
dependent variable name. If a new field name coincides with the name of another field
of the same type, the fields share degrees of freedom and dependent variable names. A
new field name must not coincide with the name of a field of another type or with a
component name belonging to some other field. Component names must be unique
within a model except when two fields share a common field name.
CONSISTENT STABILIZATION
To enable this section, click the Show More Options button ( ) and select Stabilization
in the Show More Options dialog.
There are two consistent stabilization methods: Streamline diffusion and Crosswind
diffusion. Usually, both checkboxes for these methods are selected by default and
should remain selected for optimal performance. Consistent stabilization methods do
not perturb the original transport equation. Streamline diffusion must be selected
when using equal-order interpolation for pressure and velocity.
Select the Use dynamic subgrid time scale checkbox to estimate the influence of
temporal variations in the velocity field, instead of using the inverse time step, in the
consistent stabilization terms. This checkbox is selected by default
Select the Limit small time steps effect on stabilization time scale checkbox to prevent
loss of stabilization at small time steps.
INCONSISTENT STABILIZATION
To enable this section, click the Show More Options button ( ) and select Stabilization
in the Show More Options dialog.
There is usually just one inconsistent stabilization method — Isotropic diffusion. This
method is equivalent to adding a term to the diffusion coefficient in order to dampen
If required, select the Isotropic diffusion checkbox and enter a Tuning parameter id as
a scalar positive value. The default value is 0.25 (a reasonable value to start with is
roughly 0.5 divided by the element order). A higher value adds more isotropic
diffusion.
ADVANCED SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog. Normally these settings do not need
to be changed.
The Use pseudo time stepping for stationary equation form is per default set to Automatic
from physics. This option can add pseudo time derivatives to the equation when the
Stationary equation form is used in order to speed up convergence. Pseudo time
stepping is triggered when the Laminar Flow interface is selected in some multiphysics
coupling features. Set Automatic from physics to On to apply pseudo time stepping also
for laminar flows. Set it to Off to disable pseudo time stepping completely.
When Use pseudo time stepping for stationary equation form is set to Automatic from
physics or On, a CFL number expression should also be defined. For the default Automatic
option, the local CFL number (from the Courant–Friedrichs–Lewy condition) is
determined by a PID regulator.
The Use Block Navier-Stokes preconditioner checkbox under Linear solver is available
when the Compressibility option is set to Incompressible flow. When this checkbox is
selected, the default solver for time-dependent study steps will use the Block Navier–
Stokes preconditioner in iterative solvers for the velocity and pressure. Using this
DISCRETIZATION
The default discretization for Laminar Flow is P1+P1 elements — that is, piecewise
linear interpolation for velocity and pressure. This is suitable for most flow problems.
Some higher-order interpolations are also available, and they can be cost-effective
options to obtain high accuracy for flows with low Reynolds numbers.
The P2+P2 and P3+P3 options, the equal-order interpolation options, are the preferred
higher-order options because they have higher numerical accuracy than the
mixed-order options P2+P1 and P3+P2. The equal-order interpolation options do,
however, require streamline diffusion to be active.
In the COMSOL Multiphysics Reference Manual, see Table 2-4 for links to common
sections and Table 2-5 to common feature nodes. You can also search for information:
press F1 to open the Help window or Ctrl+F1 to open the Documentation window.
Fluid Properties
The Fluid Properties node adds the momentum and continuity equations solved by the
physics interface, except for volume forces, which are added by the Volume Force
feature. The node also provides an interface for defining the material properties of the
fluid.
Temperature
By default, the Temperature model input is set to Common model input, and the
temperature is controlled from Default Model Inputs under Global Definitions or by a
locally defined Model Input. If a Heat Transfer interface is included in the component,
it controls the temperature Common model input. Alternatively, the temperature field
can be selected from another physics interface. All physics interfaces have their own
tags (Name). For example, if a Heat Transfer in Fluids interface is included in the
component, the Temperature (ht) option is available for T.
You can also select User defined from the Temperature model input in order to manually
prescribe T.
Absolute Pressure
This input appears when a material requires the absolute pressure as a model input.
The absolute pressure is used to evaluate material properties, but it also relates to the
value of the calculated pressure field. There are generally two ways to calculate the
pressure when describing fluid flow: either to solve for the absolute pressure or for a
pressure (often denoted gauge pressure) that relates to the absolute pressure through
a reference pressure.
The choice of pressure variable depends on the system of equations being solved. For
example, in a unidirectional incompressible flow problem, the pressure drop over the
modeled domain is probably many orders of magnitude smaller than the atmospheric
pressure, which, when included, may reduce the stability and convergence properties
of the solver. In other cases, such as when the pressure is part of an expression for the
gas volume or the diffusion coefficients, it may be more convenient to solve for the
absolute pressure.
The default Absolute pressure pA is p pref, where p is the dependent pressure variable
from the Navier–Stokes or RANS equations, and pref is from the user input defined at
the physics interface level. When pref is nonzero, the physics interface solves for a
gauge pressure. If the pressure field instead is an absolute pressure field, pref should be
set to 0.
FLUID PROPERTIES
Density
The density can either be specified by a material, or by a User defined expression. The
density in a material can depend on temperature and pressure, and these dependencies
are automatically replaced by pref for weakly compressible flows and pref and Tref for
incompressible flows (as specified by the Compressibility setting at the physics interface
level). If density variations with respect to pressure are to be included in the
computations, Compressibility must be set to compressible. Any dependencies in the
density on quantities other than temperature and pressure must be consistent with the
Compressibility setting at the interface level.
Dynamic Viscosity
The Dynamic viscosity describes the relationship between the shear rate and the shear
stresses in a fluid. Intuitively, water and air have low viscosities, and substances often
described as thick (such as oil) have higher viscosities.
Volume Force
The Volume Force node specifies the volume force F on the right-hand side of the
momentum equation.
u T 2
+ u u = – pI + u + u – --- u I + F
t 3
If several volume-force nodes are added to the same domain, then the sum of all
contributions are added to the momentum equation.
Initial Values
The initial values serve as initial conditions for a transient simulation or as an initial
guess for a nonlinear solver in a stationary simulation. Note that for a transient
compressible-flow simulation employing a material for which the density depends on
INITIAL VALUES
Initial values or expressions should be specified for the Velocity field u and the Pressure
p.
When Include gravity is selected and Use reduced pressure not selected in the interface
Physical model section, the Compensate for hydrostatic pressure approximation (named
Compensate for hydrostatic pressure for compressible flows) checkbox is available and
selected by default. When it is selected, the hydrostatic pressure is automatically added
to the pressure entered in p user input.
Wall
The Wall node includes a set of boundary conditions describing fluid-flow conditions
at stationary, moving, and leaking walls. For turbulent flow, the description may
involve wall functions and asymptotic expressions for certain turbulence variables.
BOUNDARY CONDITION
Select a Boundary condition for the wall.
No Slip
No slip is the default boundary condition to model solid walls. A no-slip wall is a wall
where the fluid velocity relative to the wall velocity is zero. For a stationary wall that
means that u = 0.
The option for Porous treatment of no slip condition is available when Enable porous
media domains is activated in the Physical Model section in the settings for the main
physics interface node. It specifies how Wall boundaries and Interior Wall boundaries
adjacent to porous domains are treated. When Standard no slip formulation is chosen,
a common no slip condition is applied on all solid walls. When the default Porous slip
is chosen, a blending analytic expression is instead applied on the corresponding wall
boundaries adjacent to the porous medium domain. It results in a no slip condition in
case the porous length scale is fully resolved by the mesh and a slip condition in the
Slip
The Slip option prescribes a no-penetration condition, u·n . It is implicitly assumed
that there are no viscous effects at the slip wall and hence, no boundary layer develops.
From a modeling point of view, this can be a reasonable approximation if the main
effect of the wall is to prevent fluid from leaving the domain.
Leaking Wall
This boundary condition may be used to simulate a wall where fluid is leaking into or
leaving the domain with the velocity u = ul through a perforated wall. The
components of the Fluid velocity ul on the leaking wall should be specified.
Navier Slip
This boundary condition enforces no-penetration at the wall, u nwall0, and adds
a tangential stress
K nt = – --- u slip
where Knt Kn Kn nwallnwallKn Knwall, and K is the viscous stress tensor. is
a slip length, and uslip u u nwallnwall is the velocity tangential to the wall.
The Slip length setting is per default set to Factor of minimum element length. The slip
length is then defined as fhhmin, where hmin is the smallest element side and fh
is a user input. Select User defined from the Slip length selection list in order to manually
prescribe (SI unit: m).
In cases where the wall movement is nonzero, select the Account for the translational
wall velocity of the wall in the friction force checkbox to use
u ubnd u ubnd nwallnwall instead of uslip in the friction force.
The Navier slip option is not available when selecting a turbulence model.
The Translational velocity setting controls the translational wall velocity, utr. The list is
per default set to Automatic from frame. The physics automatically detects if the spatial
frame moves. This can for example happen if an ALE interface is present in the model
component. If there is no movement utr 0. If the frame moves, utr becomes equal
to the frame movement. utr is accounted for in the actual boundary condition
prescribed in the Boundary condition section.
Select Zero (Fixed wall) from Translational velocity selection list to prescribe utr 0.
Select Manual from Translational velocity selection list in order to manually prescribe
Velocity of moving wall, utr. This can for example be used to model an oscillating wall
where the magnitude of the oscillations are very small compared to the rest of the
model. Specifying translational velocity manually does not automatically cause the
associated wall to move. An additional Moving Mesh node needs to be added from
Definitions to physically track the wall movement in the spatial reference frame.
The Sliding wall option is appropriate if the wall behaves like a conveyor belt with the
surface sliding in a tangential direction. A velocity is prescribed at the wall and the
boundary itself does not have to actually move relative to the reference frame.
• For 3D components, values or expressions for the Velocity of sliding wall uw should
be specified. If the velocity vector entered is not in the plane of the wall, COMSOL
Multiphysics projects it onto the tangential direction. Its magnitude is adjusted to
be the same as the magnitude of the vector entered.
• For 2D components, the tangential direction is unambiguously defined by the
direction of the boundary. For this reason, the sliding wall boundary condition has
different definitions in different space dimensions. A single entry for the Velocity of
the tangentially moving wall Uw should be specified in 2D.
CONSTRAINT SETTINGS
This section is displayed by clicking the Show More Options button ( ) and selecting
Advanced Physics Options in the Show More Options dialog. The Constraints settings can
be set to Automatic, Pointwise constraints, Nitsche constraints, or Weak constraints.
Mixed constraints can be selected when imposing a no slip condition exactly.
• Apply reaction terms on can be set to Individual dependent variables (default) or All
physics (symmetric). This setting is not available when Nitsche constraints is selected.
• Select Elemental (default) or Nodal under Constraint method. This setting is not
available for Nitsche constraints or Weak constraints.
Inlet
This condition should be used on boundaries for which there is a net flow into the
domain. To obtain a numerically well-posed problem, it is advisable to also consider
the Outlet conditions when specifying an Inlet condition. For example, if the pressure
is specified at the outlet, the velocity may be specified at the inlet, and vice versa.
Specifying the velocity vector at both the inlet and the outlet may cause convergence
difficulties.
BOUNDARY CONDITION
The available Boundary condition options for an inlet are Velocity, Fully developed flow,
and Pressure. After selecting a Boundary Condition from the list, a section with the same
or a similar name displays underneath. For example, if Velocity is selected, a Velocity
section, where further settings are defined, is displayed.
VELOCITY
The Normal inflow velocity is specified as u = nU0, where n is the boundary normal
pointing out of the domain and U0 is the normal inflow speed.
The Velocity field option sets the velocity vector to u = u0. The components of the inlet
velocity vector u0 should be defined for this choice.
• For incompressible flow, the Pressure list has two options, Static and Total. For
weakly compressible and compressible flow, the static pressure should be specified
in the text field.
- If Pressure is Static, and the reference pressure pref, defined at the physics
interface level, is equal to , the value of the pressure p0, at the boundary, is the
absolute pressure. Otherwise, p0 is the relative pressure at the boundary.
- If Pressure is Total, the Average checkbox is available and cleared by default to
prescribe the total pressure pointwise. If it is selected, the averaged total pressure
is imposed in the weak forms instead.
When Include gravity is selected and Use reduced pressure not selected in the interface
Physical model section, the Compensate for hydrostatic pressure approximation
(named Compensate for hydrostatic pressure for incompressible flows) checkbox is
available and selected by default. When it is selected, the hydrostatic pressure is
automatically added to the pressure entered in p0 user input.
• The Suppress backflow option adjusts the inlet pressure locally in order to reduce the
amount of fluid exiting the domain through the boundary. If you clear the suppress
backflow option, the inlet boundary can become an outlet depending on the
pressure field in the rest of the domain.
• Flow direction controls in which direction the fluid enters the domain.
- For Normal flow, it prescribes zero tangential velocity component.
- For User defined, an Inflow velocity direction du (dimensionless) should be
specified. The magnitude of du does not matter, only the direction. du must
point into the domain.
MASS FLOW
The mass flow at an inlet can be specified by the Mass flow rate, the Pointwise mass flux,
the Standard flow rate, or the Standard flow rate (SCCM).
The Apply condition on each disjoint selection separately checkbox is selected per
default. When this setting is selected, the mass flow condition is applied separately on
each disjoint selection. If this option is not selected, the condition is applied over the
whole feature selection. The Apply condition on each disjoint selection separately should
be disabled only if the flow conditions are known to be identical on each disjoint
boundary.
For 2D components, the Channel thickness dbc is used to define the area across which
the mass flow occurs. This setting is not applied to the whole model. Line or surface
integrals of the mass flow over the boundary evaluated during postprocessing or used
in integration coupling operators do not include this scaling automatically. Such results
should be appropriately scaled when comparing them with the specified mass flow.
The standard density can be defined directly, or by specifying a standard pressure and
temperature, in which case the ideal gas law is assumed. The options in the
Standard flow rate defined by list are:
• Standard density, for which the Standard molar volume Vm should be specified.
• Standard pressure and temperature, for which the Standard pressure Pst and the
Standard temperature Tst should be defined.
For 2D components, the Channel thickness dbc is used to define the area across which
the mass flow occurs. This setting is not applied to the whole model. Line or surface
integrals of the mass flow over the boundary evaluated during postprocessing or used
in integration coupling operators do not include this scaling automatically. Such results
should be appropriately scaled when comparing them with the specified mass flow.
The Apply condition on each disjoint selection separately checkbox is selected per
default. When this setting is selected, the fully developed flow condition is applied
separately on each disjoint selection. If this option is not selected, the condition is
applied over the whole feature selection. The Apply condition on each disjoint selection
separately should be disabled only if the flow conditions are known to be identical on
each disjoint boundary.
The fully developed flow condition requires any volume force to be approximately
aligned with the normal of the inlet boundary. The exception is gravity when the
Include gravity setting is selected in the physics interface settings. Unless Use reduced
pressure is also selected, an option to Compensate for hydrostatic pressure or
Compensate for hydrostatic pressure approximation becomes available. It is selected per
default and should only be deselected if the inlet normal is aligned with the gravity
force and you want to specify an average pressure that includes the hydrostatic
pressure.
Outlet
This condition should be used on boundaries for which there is a net outflow from the
domain. To obtain a numerically well-posed problem, it is advisable to also consider
the Inlet conditions when specifying an Outlet condition. For example, if the velocity
is specified at the inlet, the pressure may be specified at the outlet, and vice versa.
Specifying the velocity vector at both the inlet and the outlet may cause convergence
difficulties. Selecting appropriate outlet conditions for the Navier–Stokes equations is
a nontrivial task. Generally, if there is something interesting happening at an outflow
boundary, the computational domain should be extended to include this
phenomenon.
BOUNDARY CONDITION
The available Boundary condition options for an outlet are Pressure, Velocity, Fully
developed flow, and Mass flow.
• For incompressible flow, the Pressure list has two options, Static and Total. For
weakly compressible and compressible flow, the static pressure should be specified
in the text field.
- If Pressure is Static, and the reference pressure pref, defined at the physics
interface level, is equal to , the value of the pressure p0, at the boundary, is the
absolute pressure. Otherwise, p0 is the relative pressure at the boundary.
- If Pressure is Total, the Average checkbox is available and selected by default to
prescribed the averaged total pressure in the weak forms. If it is cleared, the total
pressure is imposed pointwise.
When Include gravity is selected and Use reduced pressure not selected in the interface
Physical model section, the Compensate for hydrostatic pressure approximation (named
Compensate for hydrostatic pressure for incompressible flows) checkbox is available and
selected by default. When it is selected, the hydrostatic pressure is automatically added
to the pressure entered in p0 user input.
• The Normal flow option changes the no tangential stress condition to a no tangential
velocity condition. This forces the flow to exit (or enter) the domain perpendicularly
to the outlet boundary.
• The Suppress backflow checkbox is selected by default. This option adjusts the outlet
pressure in order to reduce the amount of fluid entering the domain through the
boundary.
VELOCITY
See the Inlet node Velocity section for the settings.
The channel can be thought of as a virtual extrusion of the outlet cross section. The
outlet boundary must hence be flat in order for the fully developed flow condition to
work properly. In 2D axisymmetric models, the outlet normal must be parallel to the
symmetry axis.
The Apply condition on each disjoint selection separately checkbox is selected per
default. When this setting is selected, the fully developed flow condition is applied
separately on each disjoint selection. If this option is not selected, the condition is
applied over the whole feature selection. The Apply condition on each disjoint selection
separately should be disabled only if the flow conditions are known to be identical on
each disjoint boundary.
The fully developed flow condition requires any volume force to be approximately
aligned with the normal of the outlet boundary. The exception is gravity when the
Include gravity setting is selected in the physics interface settings. Unless Use reduced
pressure is also selected, an option to Compensate for hydrostatic pressure or
Compensate for hydrostatic pressure approximation becomes available. It is selected per
default and should only be deselected if the outlet normal is aligned with the gravity
force and you want to specify an average pressure that includes the hydrostatic
pressure.
CONSTRAINT SETTINGS
This section is displayed by clicking the Show button ( ) and selecting Advanced
Physics Options.
Symmetry
This node provides a boundary condition for symmetry boundaries. It should only be
used when the geometry and expected solution have mirror symmetry. By using
u n = 0, – pI + u + u T – 2
--- u I n = 0
3
u n = 0, – pI + u + u T n = 0
for the compressible and incompressible formulations. The Dirichlet condition takes
precedence over the Neumann condition, and the above equations are equivalent to
the following equation for both the compressible and incompressible formulations:
u n = 0, K – K n n = 0
K = u + u T n
BOUNDARY SELECTION
For 2D axial symmetry, a boundary condition does not need to be defined for the
symmetry axis at r 0. The software automatically provides a condition that prescribes
ur 0 and vanishing stresses in the z direction and adds an Axial Symmetry node that
implements these conditions on the axial symmetry boundaries only.
CONSTRAINT SETTINGS
This section is displayed by clicking the Show button ( ) and selecting Advanced
Physics Options.
Open Boundary
The Open Boundary condition describes boundaries in contact with a large volume of
fluid. Fluid can both enter and leave the domain on boundaries with this type of
condition.
BOUNDARY CONDITIONS
The Boundary condition options for open boundaries are Normal stress and No viscous
stress.
Normal Stress
The Normal stress f0 condition implicitly imposes p f0.
No Viscous Stress
The No Viscous Stress condition specifies vanishing viscous stress on the boundary. This
condition does not provide sufficient information to fully specify the flow at the open
boundary and must at least be combined with pressure constraints at adjacent points.
u + u T – 2
--- u I n = 0
3
u + u T n = 0
for the compressible and the incompressible formulations. This condition can be useful
in some situations because it does not impose any constraint on the pressure. A typical
example is a model with volume forces that give rise to pressure gradients that are hard
to prescribe in advance. To make the model numerically stable, this boundary
condition should be combined with a point constraint on the pressure.
Boundary Stress
The Boundary Stress node adds a boundary condition that represents a general class of
conditions also known as traction boundary conditions.
BOUNDARY CONDITION
The Boundary condition options for the boundary stress are General stress, Normal
stress, and Normal stress, normal flow.
General Stress
When General stress is selected, the components for the Stress F should be specified.
The total stress on the boundary is set equal to the given stress F:
– pI + u + u T – 2
--- u I n = F
3
– pI + u + u T n = F
This boundary condition implicitly sets a constraint on the pressure that for 2D flows is
u n
p = 2 ---------- – n F (6-1)
n
Normal Stress
Normal Stress is described for the Open Boundary node.
n – pI + u + u T – --- u I n = – f 0 ,
T 2
tu = 0
3
T
n – pI + u + u T n = – f 0 , tu = 0
This boundary condition implicitly sets a constraint on the pressure that for 2D flows is
u n
p = 2 ---------- + f 0 (6-2)
n
When Include gravity is selected and Use reduced pressure not selected in the interface
Physical model section, the Compensate for hydrostatic pressure approximation (named
Compensate for hydrostatic pressure for incompressible flows) checkbox is available and
selected by default. When it is selected, the hydrostatic pressure is automatically added
to the pressure entered in f0 or phydron is added to F depending on the selected
option.
CONSTRAINT SETTINGS
This section is displayed by clicking the Show button ( ) and selecting Advanced
Physics Options.
If Normal Stress, Normal Flow is selected as the Boundary condition, then to Apply
reaction terms on all dependent variables, the All physics (symmetric) option should be
If the boundaries are curved, the orientation of the source must be specified manually
(see Orientation of Source).
BOUNDARY SELECTION
The software usually automatically identifies the boundaries as either source boundaries or
destination boundaries, as indicated in the selection list. This works fine for cases like opposing
parallel boundaries. In other cases, right-click Periodic Flow Condition and select Manual Destination
Selection to control the destination. By default it contains the selection that COMSOL
Multiphysics identifies.
DESTINATION SELECTION
This section is available for specifying the destination boundaries, if needed, when the
Manual Destination Selection option is selected in the context menu for the Periodic Flow
Condition node. You can only select destination boundaries from the union of all source
and destination boundaries.
FLOW CONDITION
This section is available when Incompressible flow is selected for Compressibility under
the Physical Model section for the physics interface.
The Flow Condition at the boundary is specified through a value or expression for either
ꞏ . The mass flow option ensures
the Pressure difference, psrc pdst, or the Mass flow, m
ORIENTATION OF SOURCE
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog. For information about the Orientation
of Source section, see Orientation of Source and Destination in the COMSOL
Multiphysics Reference Manual.
ORIENTATION OF DESTINATION
This section appears if the setting for Transform to intermediate map in the Orientation
of Source section is changed from the default value, Automatic, and Advanced Physics
Options is selected in the Show More Options dialog. For information about the
Orientation of Destination section, see Orientation of Source and Destination in the
COMSOL Multiphysics Reference Manual.
Porous Interface
The Porous Interface condition is designed to properly account for a sudden jump in
porosity, p, across a boundary between different domains. It describes possible
discontinuity of stress across the interface, and also reveals modified behavior of
tangential velocity due to boundary layer on the upstream side of the interface. Choose
among the following options under the Continuity conditions:
All three options give continuity of the velocity across the interface in constant-density
flows, while in case of a jump in density:
1 give continuity of the mass flux (product of density and normal velocity) and
tangential velocity;
2 account for the density-jump correction in the stress condition.
When Velocity and porosity-corrected stress with loss is chosen, a Pressure loss model
needs to be specified. The options are:
• User-defined loss coefficients (default). Enter values for Expansion loss coefficient and
Contraction loss coefficient;
• Borda–Carnot. Specify Vena contracta model.
Notice that the notions ‘expansion’ and ‘contraction’ used in this section correspond
not to geometrical changes, but to the variations of the microscopic structure across
the interface in the flow direction — increasing or decreasing porosity, p, respectively.
Flow Continuity
The Flow Continuity condition is suitable for pairs where the boundaries match; it
prescribes that the flow field is continuous across the pair.
The parts of the boundary where a source boundary lacks a corresponding destination
boundary and vice versa will get conditions from other boundary conditions under the
physics interface acting as fallback boundary conditions on the nonoverlapping parts.
By default, the Wall node is used as fallback unless another feature has been selected
for the [Link] the condition is set for pairs adjacent to domains with different
porosity p, it imposes conditions identical to the Porous Interface feature, which is
designed to properly account for a sudden jump in porosity. See the section Porous
About Pairs
PRESSURE CONSTRAINT
The relative pressure value is set by specifying the Pressure p0. If the reference pressure
pref defined at the physics interface level is equal to zero, p0 represents the absolute
pressure.
When Include gravity is selected and Use reduced pressure not selected in the interface
Physical model section, the Compensate for hydrostatic pressure approximation (named
Compensate for hydrostatic pressure for incompressible flows) checkbox is available and
selected by default. When it is selected, the hydrostatic pressure is automatically added
to the pressure entered in p0 user input.
CONSTRAINT SETTINGS
This section is displayed by clicking the Show button ( ) and selecting Advanced
Physics Options.
The Apply reaction terms on setting is set per default to Individual dependent variables.
All physics (symmetric) cannot be used together with a segregated solver when fluid
flow is coupled with Moving Mesh, Level Set, or Phase Field in Fluids.
For the Reacting Flow in Porous Media, Diluted Species interface, which is available
with the CFD Module, Chemical Reaction Engineering Module, or Battery Design
Module, there are two nodes: one for the fluid flow (Fluid Point Source) and one for
the species (Species Point Source).
SOURCE STRENGTH
The source Mass flux, qꞏ p should be specified. A positive value results in mass being
ejected from the point into the computational domain. A negative value results in mass
being removed from the computational domain.
The Line Mass Source feature models mass flow originating from a tube region with
infinitely small radius.
For the Reacting Flow in Porous Media, Diluted Species interface, which is available
with the CFD Module, Chemical Reaction Engineering Module, or Battery Design
Module, there are two nodes, one for the fluid flow (Fluid Line Source) and one for the
species (Species Line Source).
2D Points
2D Axisymmetry Points not on the axis of symmetry
3D Edges
SOURCE STRENGTH
The source Mass flux, qꞏ l , should be specified. A positive value results in mass being
ejected from the line into the computational domain and a negative value means that
mass is removed from the computational domain.
Line sources located on a boundary affect the adjacent computational domains. This,
for example, has the effect that a line source located on a symmetry plane has twice the
given strength.
Gravity
The Gravity global feature is automatically added when Include gravity is selected at the
interface level in the Physical Model settings. It defines the gravity forces from the
Acceleration of gravity value.
ACCELERATION OF GRAVITY
The Acceleration of gravity (SI unit m/s, default value gconstez in 2D axial symmetry
and 3D and gconstey in 2D) is used to define the gravity forces. It should be a global
quantity.
The main feature is the Porous Medium Properties node, which provides interfaces for
defining the fluid material and the porous matrix properties.
When this physics interface is added, the following default nodes are also added in the
Model Builder — Porous Medium, No Flow (the default boundary condition), and Initial
Values. Then, from the Physics toolbar, add other nodes that implement, for example,
boundary conditions and mass sources. You can also right-click Darcy’s Law to select
physics features from the context menu.
SETTINGS
The Label is the default physics interface name.
The Name is used primarily as a scope prefix for variables defined by the physics
interface. Refer to such physics interface variables in expressions using the pattern
<name>.<variable_name>. In order to distinguish between variables belonging to
different physics interfaces, the name string must be unique. Only letters, numbers, and
underscores (_) are permitted in the Name field. The first character must be a letter.
The default Name (for the first physics interface in the model) is dl.
PHYSICAL MODEL
Enter a Reference pressure level pref (SI unit: Pa). The default value is 1[atm].
GRAVITY EFFECTS
By default there are no gravity effects added to Darcy’s Law interface. Select the
checkbox Include gravity to activate the acceleration of gravity. When this checkbox is
selected, a global Gravity feature node is shown in the interface model tree.
DISCRETIZATION
To display all settings available in this section, click the Show More Options button ( )
and select Advanced Physics Options in the Show More Options dialog.
You can choose the order of the shape functions used for the pressure variable solved
by the Darcy’s Law interface. The default shape functions are Quadratic Lagrange.
The Compute boundary fluxes checkbox is not activated by default. When this option is
selected, the solver computes variables storing accurate boundary fluxes from each
boundary into the adjacent domain.
If the checkbox is cleared, the COMSOL Multiphysics software instead computes the
flux variables from the dependent variables using extrapolation, which is less accurate
in postprocessing results but does not create extra dependent variables on the
boundaries for the fluxes.
Also, the Apply smoothing to boundary fluxes checkbox is available if the previous
checkbox is checked. The smoothing can provide a better behaved flux value close to
singularities.
For details about the boundary fluxes settings, see Computing Accurate Fluxes in the
COMSOL Multiphysics Reference Manual.
The Value type when using splitting of complex variables setting should in most pure
mass transport problems be set to Real which is the default. It makes sure that the
dependent variable does not get affected by small imaginary contributions, which can
occur, for example, when combining a Time Dependent or Stationary study with a
frequency-domain study. For more information, see Splitting Complex-Valued
Variables in the COMSOL Multiphysics Reference Manual.
• Domain, Boundary, Edge, Point, and Pair Nodes for the Darcy’s Law
Interface
• Theory for the Darcy’s Law Interface
• Physical Constants in the COMSOL Multiphysics Reference Manual
Domain, Boundary, Edge, Point, and Pair Nodes for the Darcy’s Law
Interface
The Darcy’s Law Interface has the following domain, boundary, edge, point, and pair
nodes, these nodes are available from the Physics ribbon toolbar (Windows users),
Physics context menu (Mac or Linux users), or right-click to access the context menu
(all users).
• Atmosphere/Gauge • Outlet
• Electrode-Electrolyte Interface • Pervious Layer
Coupling • Point Mass Source
• Flux Discontinuity • Precipitation
• Fracture • Pressure
• Hydraulic Head • Pressure Head
• Inlet • Reaction Coefficients1
• Interior Wall • Symmetry
• Line Mass Source • Thin Barrier
• Mass Flux
• No Flow
1 This node is described for the Transport of Diluted Species Interface
n 1 u1 –2 u2 = 0
The continuity boundary condition ensures that the pressure and mass flux are
continuous. In addition, the Pressure boundary condition is available on interior
boundaries.
In the COMSOL Multiphysics Reference Manual see Table 2-4 for links
to common sections and Table 2-5 to common feature nodes. You can
also search for information: press F1 to open the Help window or Ctrl+F1
to open the Documentation window.
Porous Medium
The Porous Medium node adds the equations for modeling flow through porous
domains. By default these are Equation 6-3 and Equation 6-4 (excluding any mass
sources).
+ u = Q
(6-3)
t p m
For a steady-state problem the first term in Equation 6-3 disappears. When Mass
Source is active Equation 6-4 is of the following form:
u = – --- p – g (6-5)
The Porous Medium feature has two default subfeatures — the Fluid subfeature where
the fluid density (SI unit: kg/m3) and dynamic viscosity (SI unit: Pa·s) are defined
and the Porous Matrix subfeature where the permeability (SI unit: m2) and porosity
p (dimensionless) are specified.
The subnodes inherit these coordinate system settings. In particular, the Permeability
or Hydraulic conductivity (in the Porous Matrix subnode) should be set according to
the coordinate system selected in this section.
FLOW MODEL
Define if the flow follows a linear or nonlinear pressure-velocity relationship.
• Darcian flow (default) defines a linear relationship using Equation 6-3 and
Equation 6-4.
• Non-Darcian flow defines a nonlinear relationship using Equation 6-3 and
p = – --- u – u u
where the nonlinear parameter (SI unit: 1/m) is further specified in the Porous
Matrix subfeature.
STORAGE MODEL
Define the time dependent storage term by selecting one of the following options from
the list:
• From density and porosity (default), uses the formulation of Equation 6-3
Note that some options are only available in some modules. For a detailed
overview of the functionality available in each product, visit https://
[Link]/products/specifications/
Context Menus
Darcy’s Law > Porous Medium
Richards’ Equation > Porous Medium
Ribbon
Physics tab with interface as Darcy’s Law or Richards’ Equation selected:
Fluid
This node defines the material properties of the fluid of the Porous Medium, the
Unsaturated Porous Medium, the Dual Porosity Medium, the Dual Permeability
Medium, or the Unsaturated Porous Medium parent node.
MODEL INPUT
This section contains fields and values that are inputs for expressions defining material
properties. If such user-defined property groups are added, the model inputs appear
here.
Incompressible
The default Reference density ref uses values From material. For User defined enter
another value or expression.
Compressible
The default Density uses values From material. For User defined enter another value or
expression as a function of the absolute pressure. The compressibility of the fluid is
computed from it.
Compressible, Linearized
The default Reference density ref and the Fluid compressibility fuse values From
material. For User defined enter another value or expression. The fluid density increases
linearly as a function of the fluid pressure.
Ideal Gas
For Ideal gas it uses the ideal gas law to describe the gas density. In this case, specify
the thermodynamics properties. Select a Gas constant type — Specific gas constant Rs
(the default) or Mean molar mass Mn (SI unit: J/(mol·K)). For Mean molar mass the
universal gas constant R 8.314 J/(mol·K) is used as the built-in physical constant.
For both properties, the defaults use values From material. For User defined enter
another value or expression.
Dynamic Viscosity
For all fluid types specify the Dynamic viscosity (SI unit: Pa·s) uses values From
material. For User defined enter another value or expression.
Constitutive Relation
The Polymer Flow Module allows the use of inelastic non-Newtonian models. For
Darcian Flow, you can choose between two options: Specify dynamic viscosity (default)
or Inelastic non-Newtonian. Use the default option to either get the dynamic viscosity
from a material, or to add a user defined expression. The default option lets you either
use the dynamic viscosity from a material or define it with a custom expression. The
Inelastic non-Newtonian option provides several models and defines the Apparent shear
rate.
• Power Law
• Carreau
• Carreau-Yasuda
• Cross
• Cross-Williamson
• Sisko
The setup of these models in porous media is similar to their definition under the Fluid
Properties feature.
Context Menus
Darcy’s Law > porous medium feature > Fluid
Richards’ Equation > porous medium feature > Fluid
Porous Matrix
This node defines the porosity and material properties of the solid matrix of the Porous
Medium or Unsaturated Porous Medium parent node.
MATRIX PROPERTIES
The default Porosity p of the solid matrix is taken From material. In a Porous Material
node, the porosity is defined as follows:
p = 1 – si – imfi
i i
where si and imfi are the porosities of the Solid and Immobile Fluids subnodes under
the Porous Material node. See Porous Material in the COMSOL Multiphysics
Reference Manual for more information.
If required by a Storage model in the parent node, specify the Effective compressibility
of the porous matrix. The default value is p 104 1/Pa.
Select a Permeability model to specify the capacity of the porous material to transmit
flow. Which options are available depends on the Flow model setting in the parent node.
Note that for the Unsaturated Porous Medium parent node only the Darcian Flow
models are available.
Darcian Flow
If Darcian flow is selected in the parent Porous medium node, select between the
following options for the Permeability model:
• Select Permeability (default) to define the permeability of the porous matrix. The
default Permeability (SI unit: m2) uses the value From material, as defined by the
Porous material. For User defined select Isotropic to define a scalar value or Diagonal
or Symmetric to define a tensor value.
• Select Hydraulic conductivity or define a combination of fluid permeability and
dynamic viscosity. For Hydraulic conductivity K (SI unit: m/s) select Isotropic to
define a scalar value or Diagonal or Symmetric to define a tensor value. The default is
2.94·104 m/s.
• Select Kozeny-Carman to define the permeability from the porosity and mean particle
diameter. Enter the mean Particle diameter dp (SI unit: m), the default value is
0.5 mm.
• For Forchheimer, the default Permeability (SI unit: m2) uses the value From
material. Furthermore, the dimensionless Forchheimer parameter cF can be defined.
The default value is 0.55.
• If Ergun is selected, enter the mean Particle diameter dp (default value: 0.5 mm).
• For Burke–Plummer, specify the mean Particle diameter dp (default value: 0.5 mm).
• For Klinkenberg, the default Permeability (SI unit: m2) uses the value From
material. Enter the Klinkenberg parameter bK. Its default value is 103 Pa.
Note that some options are only available in some modules. For a detailed
overview of the functionality available in each product, visit https://
[Link]/products/specifications/
RETENTION MODEL
For an Unsaturated Porous Medium select between the following options for the
retention model:
• van Genuchten, to specify the retention model using the van Genuchten relationship.
Enter the constitutive relation constants (the default value is 1, and the SI unit is
1/m), n (default value is 2), and l (default value is 0.5). The constitutive parameter
m is equal to 1 1n.
• Brooks and Corey to use the retention model according to the Brooks and Corey
relationships.
• User defined to use a different retention model. Enter user defined expressions for
the Effective saturation Se, the Liquid volume fraction l. The default is p (the
porosity variable). Specify the Specific moisture capacity Cm (SI unit: 1/m). The
default value is 0 (1/m). Enter an expression for the Relative permeability r. The
default value is 1.
Context Menus
Darcy’s Law > porous medium feature > Fluid
Richards’ Equation > porous medium feature > Fluid
Cm p r
- + S e S p ------ + – -------- p + g D = Q m
------- (6-6)
g t
The Unsaturated Porous Medium feature has two default subfeatures: the Fluid
subfeature, where the fluid density (SI unit: kg/m3) and viscosity (SI unit: Pa·s)
are defined, and the Porous Matrix subfeature, where the permeability (SI unit: m2)
and porosity p (dimensionless) are specified as well as the retention model.
The subnodes inherit these coordinate system settings. In particular, the Permeability
or Hydraulic conductivity (in the Porous Matrix subnode) should be set according to
the coordinate system selected in this section.
If From retention model is chosen, the first term of Equation 6-6 accounts only for the
specific moisture capacity Cm which is defined by the Retention Model in the Porous
Matrix subnode:
C m p
-------- .
g t
For the option Linearized storage the storage coefficient Sp in Equation 6-6 is defined
as
S p = p f + 1 – p p .
From liquid content enforces the first term of Equation 6-6 to be defined in terms of
liquid volume fraction as
l
----------------
t
and the User defined option allows to define the storage coefficient Sp in Equation 6-6
directly.
Note that some options are only available in some modules. For a detailed
overview of the functionality available in each product, visit https://
[Link]/products/specifications/
Context Menus
Darcy’s Law > Unsaturated Porous Medium
Richards’ Equation > Unsaturated Porous Medium
The feature has three default subfeatures —the Fluid subfeature where the fluid density
(SI unit: kg/m3) and dynamic viscosity (SI unit: Pa·s) are defined, the Macropores
subfeature where the hydraulic properties of the macroporous matrix are defined, and
the Micropores where the hydraulic properties of the microporous matrix are defined.
The subnodes inherit these coordinate system settings. In particular, the Permeability
or Hydraulic conductivity (in the Macropores and Micropores subnodes) should be set
according to the coordinate system selected in this section.
STORAGE MODEL
Choose from a list one of the following formulations:
• From density and porosity (default), uses the formulation equivalent to Equation 6-3
• Linearized storage, where the following linear equation is used to define the storage
in the macropores as Sp pf 1 pp and in the micropores as
Sp,m p,mf 1 p,mp.
• Poroelastic storage, where Sp = pf in the macropores and Sp,m = p,mf in the
micropores.
INTERPOROSITY FLOW
Specify the Fluid Transfer Function w which is used to calculate the interporosity flow,
the mass exchange between macro- and microscale system:
Q ip = w p M – p m (6-7)
with pM being the pressure within the macropores and pm the pressure within the
micropores.
Note that some options are only available in some modules. For a detailed
overview of the functionality available in each product, visit https://
[Link]/products/specifications/
Context Menus
Darcy’s Law > Dual Porosity/Permeability > Dual Porosity Medium
Richards’ Equation > Dual Porosity/Permeability > Dual Porosity Medium
Ribbon
Physics tab with Darcy’s Law or Richards’ Equation selected:
The feature has three default subfeatures —the Fluid subfeature where the fluid density
(SI unit: kg/m3) and dynamic viscosity (SI unit: Pa·s) are defined, the Macropores
subfeature where the hydraulic properties of the macroporous matrix are defined, and
the Micropores where the hydraulic properties of the microporous matrix are defined.
The subnodes inherit these coordinate system settings. In particular, the Permeability
or Hydraulic conductivity (in the Macropores and Micropores subnodes) should be set
according to the coordinate system selected in this section.
STORAGE MODEL
With this option under the Porous Medium section, Equation 6-3 is formulated with
respect to a storage term (analogous to Equation 4-4). Therefore, choose from a list
one of the following formulations:
• From density and porosity (default), uses the formulation of Equation 4-4
• Linearized storage, where the following linear equation is used to define the storage:
S p,i = p,i f + 1 – p,i p,i
with i=M for the macropores and i=m for the micropores.
Q ip = w p M – p m (6-8)
with pM being the pressure in the macropores and pm the pressure in the micropores.
Note that some options are only available in some modules. For a detailed
overview of the functionality available in each product, visit https://
[Link]/products/specifications/
Context Menus
Darcy’s Law > Dual Porosity/Permeability > Dual Permeability Medium
Richards’ Equation > Dual Porosity/Permeability > Dual Permeability Medium
Ribbon
Physics tab with Darcy’s Law or Richards’ Equation selected:
C m,M p M
M S e,M S p,M + -------------
- ----------- + u M = – Q ip + M Q m
g t
C m,m p m (6-9)
1 – M S e,m S p,m + ------------
- ---------- + u m = Q ip + 1 – M Q m
g t
p = M p M + 1 – M p m
The feature has three default subfeatures —the Fluid subfeature where the fluid density
(SI unit: kg/m3) and dynamic viscosity (SI unit: Pa·s) are defined, the Macropores
subfeature where the hydraulic properties of the macroporous matrix are defined, and
the Micropores where the hydraulic properties of the microporous matrix are defined.
The subnodes inherit these coordinate system settings. In particular, the Permeability
or Hydraulic conductivity (in the Macropores and Micropores subnodes) should be set
according to the coordinate system selected in this section.
STORAGE MODEL
With this option, define the first term in Equation 6-9. Therefore, choose from a list
one of the following formulations:
If From retention model is chosen, the first term of Equation 6-9 accounts only for the
specific moisture capacity Cm,i which is defined by the Retention Model in the
Macropores (i=M) or Micropores (i=m) subnode:
C m i p
----------- .
g t
For the option Linearized storage the storage coefficient Sp,i in Equation 6-9 is defined
as
l,i
------------------
t
• and the User defined option allows to define the storage coefficient Sp,i in
Equation 6-9 directly.
INTERPOROSITY FLOW
Specify the Fluid Transfer Function w which is used to calculate the interporosity flow,
which is the mass exchange between macro- and microscale system:
Q ip = w p M – p m (6-10)
with pM being the pressure within the macroscale system and pm the pressure within
the microscale system.
Context Menus
Darcy’s Law > Dual Porosity/Permeability > Unsaturated Dual Permeability Medium
Richards’ Equation > Dual Porosity/Permeability > Unsaturated Dual Permeability Medium
Ribbon
Physics tab with Darcy’s Law or Richards’ Equation selected:
Macropores
This node defines the porosity and material properties of the macroporous matrix of
the Dual Porosity Medium, the Dual Permeability Medium, or the Unsaturated Dual
Permeability Medium parent node.
VOLUME FRACTION
Here enter the Volume Fraction of Macropores, M.
MATRIX PROPERTIES
The default Porosity p,M of the solid matrix of the macropore system is taken From
material. Select User defined to enter a value or expression for p,M.
If required by a Storage model in the parent node, specify the Effective compressibility
of the porous matrix of the macropore system. The default value is p,M 104 1/Pa.
Select a Permeability model to specify the capacity of the porous material to transmit
flow. For the macropore settings only the Darcian Flow models are available. Select
between the following options for the Permeability model:
• Select Permeability (default) to define the permeability of the porous matrix. The
default Permeability M (SI unit: m2) uses the value From material, as defined by the
Porous material. For User defined select Isotropic to define a scalar value or Diagonal
or Symmetric to define a tensor value.
• Select Hydraulic conductivity or define a combination of fluid permeability and
dynamic viscosity. For Hydraulic conductivity KM (SI unit: m/s) select Isotropic to
define a scalar value or Diagonal or Symmetric to define a tensor value. The default is
2.94·104 m/s.
• Select Kozeny-Carman to define the permeability from the porosity and mean particle
diameter. Enter the mean Particle diameter dp,M (SI unit: m), the default value is
0.5 mm.
RETENTION MODEL
For an Unsaturated Dual Permeability Medium select between the following options
for the retention model:
• van Genuchten, to specify the retention model using the van Genuchten relationship.
Enter the constitutive relation constants (the default value is 1, and the SI unit is
1/m), n (default value is 2), and l (default value is 0.5). The constitutive parameter
m is equal to 1 1n.
If there is a residual volume of liquid that cannot move through the pore network, also
enter a value between 0 and 1 for the Residual liquid volume fraction r. The default
value is 0.
Context Menus
Darcy’s Law > porous medium feature > Macropores
Richards’ Equation > porous medium feature > Macropores
Micropores
This node defines the porosity and material properties of the microporous matrix of
the Dual Porosity Medium, Dual Permeability Medium, or the Unsaturated Dual
Permeability Medium parent node.
MODEL INPUT
This section is only available for the Unsaturated Dual Permeability Medium parent
node and contains fields and values that are inputs for expressions defining material
properties. If such user-defined property groups are added, the model inputs appear
here.
MATRIX PROPERTIES
The default Porosity p,m of the solid matrix of the micropore system is taken From
material. Select User defined to enter a value or expression for p,m.
Select a Permeability model to specify the capacity to transmit flow for the porous
material of the microscale system. Here, only the Darcian Flow models are available.
Select between the following options for the Permeability model:
• Select Permeability (default) to define the permeability of the porous matrix. The
default Permeability m (SI unit: m2) uses the value From material, as defined by the
Porous material. For User defined select Isotropic to define a scalar value or Diagonal
or Symmetric to define a tensor value.
• Select Hydraulic conductivity or define a combination of fluid permeability and
dynamic viscosity. For Hydraulic conductivity Km (SI unit: m/s) select Isotropic to
define a scalar value or Diagonal or Symmetric to define a tensor value. The default is
2.94·104 m/s.
• Select Kozeny-Carman to define the permeability from the porosity and mean particle
diameter. Enter the mean Particle diameter dp,m (SI unit: m), the default value is
0.5 mm.
RETENTION MODEL
For an Unsaturated Dual Permeability Medium select between the following options
for the retention model:
• From macropores to take over the retention model settings from the Macropores
node.
• van Genuchten, to specify the retention model using the van Genuchten relationship.
Enter the constitutive relation constants (the default value is 1, and the SI unit is
1/m), n (default value is 2), and l (default value is 0.5). The constitutive parameter
m is equal to 1 1n.
• Brooks and Corey to use the retention model according to the Brooks and Corey
relationships.
• User defined to use a different retention model. Enter user defined expressions for
the Effective saturation Se,m, the Liquid volume fraction l,m. The default is p,m (the
porosity variable). Specify the Specific moisture capacity Cm,m (SI unit: 1/m). The
default value is 0 (1/m). Enter an expression for the Relative permeability r,m. The
default value is 1.
INITIAL VALUES
Define the initial pressure of the microscale system. The default is to use the initial
values defined in the Initial Values feature node which means that the same initial
values apply to the macroscale and the microscale system.
Select User Defined to specify an initial pressure for the microscale system pm0,init.
Note that some options are only available in some modules. For a detailed
overview of the functionality available in each product, visit https://
[Link]/products/specifications/
Context Menus
Darcy’s Law > porous medium feature > Micropores
Richards’ Equation > porous medium feature > Micropores
Mass Source
The Mass Source node adds a mass source Qm, which appears on the right-hand side of
the Darcy’s Law equation (Equation 6-3).
+ u = Q
(6-11)
t m
For the Fracture Flow interface, the mass source is applicable to the right-hand side of
Equation 4-40 in the Subsurface Flow Module User’s Guide (where it is multiplied
with the fracture thickness).
Context Menus
Darcy’s Law > Mass Source
Richards’ Equation > Mass Source
Ribbon
Physics tab with interface as Darcy’s Law or Richards’ Equation selected:
Contributing Velocity
The Contributing Velocity node adds a velocity contribution uctrb to the velocity field
ud that is computed from the flow model selected in the parent Porous Medium,
Unsaturated Porous Medium, or Dual Porosity Medium feature. The total velocity
field used in the continuity equation is therefore
u = u d + u ctrb (6-12)
Such velocity contributions can arise in multiphysics models that involve, for example,
transport of solutes. If several Contributing Velocity nodes are added under the same
parent feature, the contributions are treated additively. The sum of all contributing
velocity fields is available in the variables [Link] (material frame) and
[Link] (spatial frame), with name being the Name of the physics interface (for
example, dl).
ADVANCED
Select the Frame in which the contributing velocity field is specified. The default is the
Reference configuration, which means that the velocity field follows the material under,
for example, a rotation of the domain. If instead your contributing velocity field
follows a fixed direction in space, select the Deformed configuration. This section is only
displayed if Advanced Physics Options is activated and the spatial and material frame of
the component differ, such as in the presence of a Moving Mesh or Solid Mechanics
interface.
Context Menus
If the selected porous medium feature is Porous Medium, Unsaturated Porous
Medium, or Dual Porosity Medium:
Ribbon
Physics tab with Porous Medium, Unsaturated Porous Medium, or Dual Porosity Medium
selected:
Initial Values
The Initial Values node adds an initial value for the pressure that can serve as an initial
condition for a transient simulation or as an initial guess for a nonlinear solver.
If you have the Subsurface Flow Module licensed, you can specify the pressure either
directly or as an expression for the pressure head, Hp, or the hydraulic head, H; the
hydraulic head and the pressure head relate to the pressure p as
p;
H p = ------ H = Hp + D
g
INITIAL VALUES
Enter a value or expression for the initial value of the Pressure p (SI unit: Pa). The
default value is 0 Pa.
In case the Subsurface Flow Module is available, click the Pressure head button to enter
a value or expression for Hp (SI unit: m). The default is 0 m. Click the Hydraulic head
button to enter a value or expression for H (SI unit: m). The default is 0 m.
Context Menus
Darcy’s Law > Initial Values
Richards’ Equation > Initial Values
Ribbon
Physics tab with interface as Darcy’s Law or Richards’ Equation selected:
Gravity
The Gravity node is automatically added when Include gravity is selected at interface
level in the Darcy’s Law settings and it is active in all domains in which the Darcy’s Law
interface is applied.
GRAVITY
Specify either the acceleration vector or — in case you have a Subsurface Flow Module
license — the elevation.
When Elevation is selected from the list, specify the Elevation D (SI unit: m). The
Acceleration of gravity is taken From physics interface by default but could be overridden
when User defined is selected.
When the checkbox Include gravity is not selected in the Darcy’s Law interface Settings,
the elevation D is set equal to zero.
Select the checkbox Specify reference position to define a reference position for the
gravity calculation.
Context Menus
Darcy’s Law > Gravity
Richards’ Equation > Gravity
Cross Section
Use this node with 1D components to model domains with another cross-sectional
area than the global one that is used in the interface Physical Model section. In 1D
geometries, the pressure is assumed to be constant in the radial direction, and Darcy’s
Law accounts for that.
CROSS SECTION
Enter values for the Cross-sectional area Ac to set the cross section of the domain in the
plane perpendicular to the 1D geometry.
Context Menus
Darcy’s Law > Cross Section
Richards’ Equation > Cross Section
Thickness
Use this node with 2D and 1D axisymmetric components to model domains with
another thickness than the overall thickness that is specified in the interface Physical
Model section. In 2D geometries, the pressure is assumed to be constant in the
out-of-plane direction (the z direction with default spatial coordinate names). In 1D
axisymmetric geometries the thickness represents the z direction.
THICKNESS
Specify a value for the Thickness dz of the domain in the out-of-plane direction. This
value replaces the overall thickness in the domains that are selected in the Domain
Selection section, and is used to multiply some terms into the heat equation.
Context Menus
Darcy’s Law > Thickness
Richards’ Equation > Thickness
Ribbon
Physics tab with interface as Darcy’s Law or Richards’ Equation selected:
The source (or sink) is proportional to the Molar mass (kg/mol) of the reacting species,
the current densities and the stoichiometric coefficients according to Faraday’s law as
defined by summation over the Reaction Coefficient subnodes.
The setting in the table will determine the number of available fields for entering the
stoichiometric coefficients of the Reaction Coefficient subnodes.
Context Menus
Darcy’s Law > Porous Electrode Coupling
Richards’ Equation > Porous Electrode Coupling
Ribbon
Physics tab with interface as Darcy’s Law or Richards’ Equation selected:
The flow is proportional to the Molar mass (kg/mol) of the reacting species, the current
densities and the stoichiometric coefficients according to Faraday’s law as defined by
summation over the Reaction Coefficient subnodes.
SPECIES
Based on the number of species required for the model, use the Add ( ) and
Delete ) buttons under the table to add or remove Species. Then enter a value for
the Molar mass (kg/mol) in the applicable rows for each species.
The setting in the table will determine the number of available field for entering the
stoichiometric coefficients of the Reaction Coefficient subnodes.
Context Menus
Darcy’s Law > Electrode Surface Coupling
Richards’ Equation > Electrode Surface Coupling
Pressure
Use the Pressure node to specify the pressure on a boundary. In many cases the
distribution of pressure is known, giving a Dirichlet condition p = p0 where p0 is a
known pressure given as a number, a distribution, or an expression involving time, t,
for example.
PAIR SELECTION
If this node is selected from the Pairs menu, choose the pair to apply this condition to.
A pair must be created first. See Identity, Contact, and Sector Symmetry Pairs in the
COMSOL Multiphysics Reference Manual for more details.
PRESSURE
Enter a value or expression for the Pressure p0 (SI unit: Pa). Enter a relative pressure
value in p0 (SI unit: Pa).
For the Subsurface Flow Module, the Pressure node provides the pressure P0 as a
condition on edges in 3D models. Then select the edges under Edge Selection.
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog.
Context Menus
Darcy’s Law > Pressure
Richards’ Equation > Pressure
Ribbon
Physics tab with interface as Darcy’s Law or Richards’ Equation selected:
Mass Flux
Use the Mass Flux node to specify the mass flux into or out of the model domain
through some of its boundaries. It is often possible to determine the mass flux from
the pumping rate or from measurements. With this boundary condition, positive
values correspond to flow into the model domain:
n --- p + g D = N 0
where N0 is a value or expression for the specified inward (or outward) Darcy flux. D
is the elevation head which is set to zero for other than Subsurface Flow Module
applications.
MASS FLUX
Enter a value or expression for the Inward mass flux N0. A positive value of N0
represents an inward mass flux whereas a negative value represents an outward mass
flux. The units are based on the geometric entity: Boundaries: (SI unit: kg/(m2·s)).
Context Menus
Darcy’s Law > Mass Flux
Richards’ Equation > Mass Flux
Ribbon
Physics tab with interface as Darcy’s Law or Richards’ Equation selected:
SELECTION
The Line Mass Source feature is available for all dimensions, but the applicable selection
differs between the dimensions.
2D Points
2D Axisymmetry Points not on the symmetry axis
3D Edges
Line sources located on a boundary affect the adjacent computational domains. This
effect makes the physical strength of a line source located in a symmetry plane twice
the given strength.
Fracture Flow
The equivalent feature available for fracture flow is the Mass Source attribute of the
Fracture boundary condition and the Mass Source point feature of the Fracture Flow
Interface, both available in 3D only.
Context Menus
Darcy’s Law > geometrical entity > Line Mass Source
Richards’ Equation > geometrical entity > Line Mass Source
Ribbon
Physics tab with Darcy’s Law or Richards’ Equation selected:
Context Menus
Darcy’s Law > Points > Point Mass Source
Richards’ Equation > Points > Point Mass Source
Ribbon
Physics tab with Darcy’s Law or Richards’ Equation selected:
Inlet
The Inlet node adds a boundary condition for the inflow (or outflow) perpendicular
(normal) to the boundary. It has three options that can be used to specify inlet
condition on a boundary, as follows:
VELOCITY
Enter a value or expression for the Normal inflow velocity U0 (SI unit: m/s). A positive
value of U0 represents an inflow velocity. A negative value represents an outflow
velocity. The inlet velocity boundary condition is implemented as;
n --- p + g D = U 0
where U0 is a value or expression for the specified inward (or outward) Darcy velocity.
A positive value of the velocity U0 corresponds to flow into the model domain whereas
PRESSURE
Use the Pressure option to specify the inlet pressure on a boundary. In many cases the
distribution of pressure is known, giving a Dirichlet condition p = p0 where p0 is a
known pressure given as a number, a distribution, or an expression involving time, t,
for example. Enter a value or expression for the Pressure p0 (SI unit: Pa).
MASS FLOW
If you select Mass flow as the inlet condition, specify the total Mass flow rate M0 (SI
unit: kg/s), or the Pointwise mass flux N0 (SI unit: kg/(m2·s)).
With Mass flow rate boundary condition, positive values correspond to flow into the
model domain:
– u n dS = M0
where M0 is a value or expression for the specified inward (or outward) Darcy flux.
Pointwise mass flux boundary condition, positive values correspond to flow into the
model domain:
n --- p + g D = N 0
where N0 is a value or expression for the specified inward (or outward) Darcy flux.
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog.
Context Menus
Darcy’s Law > Inlet
Richards’ Equation > Inlet
Ribbon
Physics tab with interface as Darcy’s Law or Richards’ Equation selected:
n --- p = 0
n --- p + g D = 0
Context Menus
Darcy’s Law > Symmetry
Richards’ Equation > Symmetry
Ribbon
Physics tab with interface as Darcy’s Law or Richards’ Equation selected:
No Flow
The No Flow node is the default boundary condition stating that there is no flow across
impermeable boundaries. The mathematical formulation is:
n --- p + g D = 0
where n is the vector normal to the boundary. D is the elevation head which is set to
zero for any other than Subsurface Flow Module applications.
Context Menus
Darcy’s Law > No Flow
Richards’ Equation > No Flow
Flux Discontinuity
Use the Flux Discontinuity node to specify a mass flux discontinuity through an interior
boundary. The condition is represented by the following equation:
– n u 1 – u 2 = N 0
u = – --- p (6-13)
MASS FLUX
Enter a value or expression for the Inward mass flux N0 (SI unit: kg/(m2·s)). A positive
value of N0 represents a mass flux discontinuity in the opposite direction to the normal
vector of the interior boundary.
Context Menus
Darcy’s Law > Interior Surfaces > Flux Discontinuity
Richards’ Equation > Interior Surfaces > Flux Discontinuity
Ribbon
Physics tab with Darcy’s Law or Richards’ Equation selected:
VELOCITY
Enter a value or expression for the Normal outflow velocity U0 (SI unit: m/s). A positive
value of U0 represents an outflow velocity whereas a negative value represents an
inflow velocity.
– n --- p = U 0
where U0 is a specified value or expression for the outward (or inward) Darcy velocity.
PRESSURE
Similar to the inlet Pressure option, the outlet pressure on a boundary can be specified.
Enter a value or expression for the Pressure p0 (SI unit: Pa).
DISCHARGE
Enter a value or expression for the discharge QD to specify the volumetric flow rate
through the boundary. The mass flux u is related to the discharge as follows:
u ds = Q D . (6-14)
The mean normal outflow velocity at the boundary can then be calculated as Uout =
QD/A, where A is the cross sectional area of the boundary.
Context Menus
Darcy’s Law > Outlet
Richards’ Equation > Outlet
Ribbon
Physics tab with interface as Darcy’s Law or Richards’ Equation selected:
Enter a value or expression for the Precipitation rate which then contributes to the mass
flux at the selected boundaries.
Select the Slope correction checkbox to apply a correction that depends on the normal
to the boundary and the vertical axis. This is needed when the boundary is inclined.
Context Menus
Darcy’s Law > Hydraulics > Precipitation
Richards’ Equation > Hydraulics > Precipitation
Ribbon
Physics tab with Darcy’s Law or Richards’ Equation selected:
Interior Wall
The Interior Wall boundary condition can only be applied on interior boundaries. It is
similar to the No Flux boundary available on exterior boundaries except that it applies
on both sides of an interior boundary. It allows discontinuities of velocity and pressure
across the boundary. The Interior Wall boundary condition can be used to avoid
meshing thin structures by applying no-flux condition on interior curves and surfaces
instead.
Context Menus
Darcy’s Law > Interior Surfaces > Interior Wall
Richards’ Equation > Interior Surfaces > Interior Wall
Ribbon
Physics tab with Darcy’s Law or Richards’ Equation selected:
WALL
Enter a value or expression for the Thickness db (SI unit: m, the default is 0.1 m) and
for the Permeability b (SI unit: m2). The default Permeability b uses the value From
material. For User defined select Isotropic to define a scalar value or Diagonal, Symmetric,
or Full to define a tensor value and enter another value or expression in the field or
matrix.
Context Menus
Darcy’s Law > Interior Surfaces > Thin Barrier
Richards’ Equation > Interior Surfaces > Thin Barrier
Ribbon
Physics tab with Darcy’s Law or Richards’ Equation selected:
Pressure Head
Use the Pressure Head node to specify the pressure head (instead of the pressure) on a
boundary. It adds this boundary condition for the pressure head Hp Hp0, where Hp0
is a known pressure head given as a number, a distribution, or an expression involving
time, t, for example. The dimension of the pressure head is length (SI unit: m).
PRESSURE HEAD
Enter a value or expression for the Pressure head Hp0 (SI unit: m). The default is 0 m.
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog.
Context Menus
Darcy’s Law > Hydraulics > Pressure Head
Richards’ Equation > Hydraulics > Pressure Head
Ribbon
Physics tab with Darcy’s Law or Richards’ Equation selected:
Hydraulic Head
Use the Hydraulic Head node to specify the hydraulic head (instead of the pressure) on
a boundary. This adds the Dirichlet condition for the hydraulic head H H0 where H0
is a known hydraulic head given as a number, a distribution, or an expression involving
time, t, for example.
HYDRAULIC HEAD
Enter a value or expression for the Hydraulic head H0 (SI unit: m). The default is 0 m.
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog.
Context Menus
Darcy’s Law > Hydraulics > Hydraulic Head
Richards’ Equation > Hydraulics > Hydraulic Head
Ribbon
Physics tab with Darcy’s Law or Richards’ Equation selected:
Atmosphere/Gauge
The Atmosphere/Gauge node specifies an atmospheric pressure or gauges the pressure
to the atmospheric value. This means that the total hydraulic potential reduces to the
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog.
Context Menus
Darcy’s Law > Hydraulics > Atmosphere/Gauge
Richards’ Equation > Hydraulics > Atmosphere/Gauge
Ribbon
Physics tab with Darcy’s Law or Richards’ Equation selected:
Pervious Layer
The Pervious Layer node provides a boundary condition that describes a mass flux
through a semi-pervious layer connected to an external fluid source at different
pressure, pressure head, or hydraulic head. The model domain might connect to a
larger body of water through the semi-pervious layer. This condition is represented
with the following boundary condition:
pb – p
n --- p + g D = R b -------------------
- + Db – D (6-15)
g
In this equation, pb (SI unit: Pa) and Db (SI unit: m) are the pressure and the elevation
of the distant fluid source, respectively, and Rb (SI unit: 1/s) is the conductance of
materials between the source and the model domain (conductance to flow in the
semi-pervious layer adjacent to the boundary). Typically Rb KB, where K is the
hydraulic conductivity (SI unit: m/s) of the layer and B (SI unit: m) is its thickness.
Using logical relationships, it is possible to activate these expressions at different times
or under various flow conditions.
n K H p + D = R b H pb – H p + D b – D (6-16)
Hpb is the pressure head (SI unit: m) at the edge of the layer.
When the hydraulic head H is specified instead of the pressure head, the boundary
condition becomes:
n KH = R b H b – H (6-17)
At a free surface, such as a water table or seepage face, the pressure is atmospheric (here
taken to be zero), so the total hydraulic potential equals gravitational potential, which
is defined on D.
Gravity effects are not active by default. Select the checkbox Include
gravity to activate the acceleration of gravity. Setting the elevation D to
zero also turns off gravity effects.
PERVIOUS LAYER
Specify the material properties whether to specify an external pressure, pressure head,
or hydraulic head.
Select an External variable to specify — Pressure and elevation to specify the external
pressure, Pressure head and elevation to specify the external pressure head, or Hydraulic
head. For all selections, enter a value for the Conductance Rb (SI unit: 1/s).
• For Pressure and elevation enter an External pressure pb (SI unit: Pa) and External
elevation Db (SI unit: m).
• For Pressure head and elevation enter an External pressure head Hpb (SI unit: m), Hpb
(SI unit: m) and External elevation Db (SI unit: m).
• For Hydraulic head enter the Hydraulic head Hb (SI unit: m).
Context Menus
Darcy’s Law > Hydraulics > Pervious Layer
Ribbon
Physics tab with Darcy’s Law or Richards’ Equation selected:
Well
The Well feature is intended to model injection or production wells and is available
with the Subsurface Flow Module.
WELL
Enter a value or expression for the Well diameter dw (SI unit: m, the default is 0.1 m).
Select the Well type from the list: Production or Injection.
Specify either the Pressure (SI unit: Pa), Pressure head (SI unit: m), Hydraulic head (SI
unit: m), or the Mass flow. If you select Mass flow, specify the total Mass flow rate (SI
unit: kg/s), the Mass flow rate per unit length (SI unit: kg/(m·s)) or the Mass flux (SI
unit: kg/(m2·s)).
Context Menus
Darcy’s Law > geometrical entity > Well
Richards’ Equation > geometrical entity > Well
Ribbon
Physics tab with Darcy’s Law or Richards’ Equation selected:
Fracture
Use the Fracture node to model flow along a boundaries representing fractures within
a porous medium. By default, it adds the tangential form of the continuity equation
and of Darcy’s Law.
d f ----- p + T d f u = d f Q m (6-18)
t
The Fracture feature has two default subfeatures — the Fluid (Fracture) subfeature
where the fluid density (SI unit: kg/m3) and dynamic viscosity (SI unit: Pa·s) are
defined and the Fracture Material subfeature where the permeability (SI unit: m2)
and porosity p (dimensionless) are specified.
The subnodes inherit these coordinate system settings. In particular, the Permeability
or Hydraulic conductivity (in the Fracture Material subnode) should be set according to
the coordinate system selected in this section.
APERTURE
Enter a value for the Fracture thickness df.
FLOW MODEL
Define if the flow follows a linear or nonlinear pressure-velocity relationship.
• Darcian flow (default) defines a linear relationship using Equation 6-18 and
Equation 6-19.
• Non-Darcian flow defines a nonlinear relationship using Equation 6-18 and the
pressure-velocity relationship
Tp = – --- u – u u
where the nonlinear parameter (SI unit: 1/m) is further specified in the Fracture
Material subfeature.
STORAGE MODEL
Equation 6-18 can also be formulated with respect to a storage term.
p
S ------ + – --- p = Q m
t
• From density and porosity (default), uses the formulation of Equation 6-18
• Linearized storage, where the following linear equation is used to define the storage:
S = p f + 1 – p p
FRACTURE MODEL
Choose between two options to model fractures that have different characteristics.
p d,u – p u,d b
– n u,d u u,d = ------------------------------- ------
db
The barrier thickness db and permeability b are defined in the Fracture Material
subnode.
In addition, either on the upside, downside, or on both sides a highly conductive
fracture material is present and Equation 6-18 and Equation 6-19 are solved for the
highly conductive side. Further specifications are done in the Fracture Material
subnode.
Note that the option to specify the Fracture Model is only available for the
Fracture feature within the Darcy’s Law interface.
For the Fracture boundary node several subnodes are available from the context menu
(right-click the parent node) or from the Physics toolbar, Attributes menu. As they are
Context Menus
Darcy’s Law > Fracture
Richards’ Equation > Fracture
Fracture Flow > Fracture
Ribbon
Physics tab with interface as Darcy’s Law or Richards’ Equations selected:
Fluid (Fracture)
This node defines the material properties of the fluid of the Fracture parent node. The
fluid can be specified as general gas or liquid or as an ideal gas.
MODEL INPUT
This section contains fields and values that are inputs for expressions defining material
properties. If such user-defined property groups are added, the model inputs appear
here.
Gas/Liquid
This option specifies the Density and the Compressibility for a general gas or liquid.
Ideal Gas
For Ideal gas it uses the ideal gas law to describe the fluid. In this case, specify the
thermodynamics properties. Select a Gas constant type — Specific gas constant Rs (the
default) or Mean molar mass Mn (SI unit: J/(mol·K)). For Mean molar mass the
universal gas constant R 8.314 J/(mol·K) is used as the built-in physical constant.
For both properties, the defaults use values From material. For User defined enter
another value or expression.
If required by a Storage Model, the Compressibility of the ideal gas is calculated as f
1pA with the absolute pressure pA (Pa).
Context Menus
Darcy’s Law > Fracture > Fluid
Richards’ Equation > Fracture > Fluid
Fracture Flow > Fracture > Fluid
Fracture Material
This node defines the porosity and material properties of the solid matrix of the
Fracture parent node.
BARRIER PROPERTIES
This section appears if the Thin conducting barrier option for the Fracture model is
chosen in the parent Fracture feature.
Enter the values for the barrier thickness db and permeability b.
Note that the Thin Conductive barrier option is only available for the Fracture feature
within the Darcy’s Law interface.
The Porosity p of the fracture material is taken From material by default. Select User
defined to enter a value or expression for p.
If required by a Storage model in the parent node, specify the Effective compressibility
of the porous matrix. The default value is p 104 1/Pa.
Select a Permeability model to specify the capacity of the fracture material to transmit
flow. Which options are available depends on the Flow model setting in the parent node.
Context Menus
Darcy’s Law > Fracture > Fracture Material
Richards’ Equation > Fracture > Fracture Material
Fracture Flow > Fracture > Fracture Material
When this physics interface is added, the following default nodes are also added in the
Model Builder — Fluid Properties, Wall, and Initial Values. Then, from the Physics
toolbar, add a Porous Medium node to be used on the domain selection corresponding
to the porous media, or add other nodes that implement, for example, boundary
conditions and volume forces. You can also right-click Free and Porous Media Flow,
Brinkman to select physics features from the context menu.
SETTINGS
The Label is the default physics interface name.
The Name is used primarily as a scope prefix for variables defined by the physics
interface. Refer to such physics interface variables in expressions using the pattern
<name>.<variable_name>. In order to distinguish between variables belonging to
different physics interfaces, the name string must be unique. Only letters, numbers, and
underscores (_) are permitted in the Name field. The first character must be a letter.
The default Name (for the first physics interface in the model) is fp.
PHYSICAL MODEL
Compressibility
By default the physics interface uses the Incompressible flow formulation of the Navier–
Stokes and Brinkman equations to model constant density flow. If required, select
Swirl Flow
For 2D axisymmetric components, select the Swirl flow checkbox to include the swirl
velocity component, that is the velocity component u in the azimuthal direction.
While u can be nonzero, there can be no gradients in the direction. Note that this
feature is only available for specific modules. Visit [Link]
products/specifications/ for a detailed overview.
Include Gravity
Gravity is not included by default. Select the Include gravity checkbox to activate the
acceleration of gravity. This automatically adds a global Gravity feature node to the
interface model tree, and the buoyancy force is included in the Equations.
Also, when the Include gravity checkbox is selected, the Use reduced pressure option
changes the pressure formulation from using the total pressure (default) to using the
reduced pressure. This option is suitable for configurations where the density changes
are very small; otherwise, the default formulation can be used. For more information,
see Gravity.
Reference Position
If Include gravity is selected, a Reference position rref (SI unit: m) can be specified which
is then used for the calculation of the hydrostatic pressure.
TURBULENCE
Turbulent flow can be simulated by changing the Turbulence model type to RANS-EVM
(Reynolds-Averaged Navier–Stokes, eddy-viscosity model), RANS-RSM
(Reynolds-Averaged Navier–Stokes, Reynolds stress model), or Large Eddy Simulation
(which is only available in 3D). If turbulent flow is activated, you can choose from
different Turbulence models and options for Wall treatment. For a description of the
different turbulence models, wall treatment options, and turbulence model
parameters, see Theory for the Turbulent Flow Interfaces in the CFD Module User’s
Guide.
DEPENDENT VARIABLES
The following dependent variables (fields) are defined for this physics interface — the
Velocity field u (SI unit: m/s) and its components, and the Pressure p (SI unit: Pa).
• Domain, Boundary, Point, and Pair Nodes for the Free and Porous
Media Flow, Brinkman Interface
• Theory for the Free and Porous Media Flow, Brinkman Interface
Domain, Boundary, Point, and Pair Nodes for the Free and Porous
Media Flow, Brinkman Interface
The Free and Porous Media Flow, Brinkman Interface has the following domain,
boundary, point, and pair nodes, listed in alphabetical order, available from the Physics
ribbon toolbar (Windows users), Physics context menu (Mac or Linux users), or
right-click to access the context menu (all users).
Note that some features are only available with certain COMSOL products (see
[Link]
The following nodes (listed in alphabetical order) are described for the Laminar Flow
interface in the COMSOL Multiphysics Reference Manual:
In the COMSOL Multiphysics Reference Manual see Table 2-4 for links
to common sections and Table 2-5 to common feature nodes. You can
also search for information: press F1 to open the Help window or Ctrl+F1
to open the Documentation window.
Fluid Properties
Use the Fluid Properties node to define the fluid material, density, and dynamic
viscosity.
The default Density (SI unit: kg/m3) uses values From material based on the Fluid
material selection. For User defined enter another value or expression. The default is
0 kg/m3.
The Dynamic viscosity (SI unit: Pa·s) uses values From material based on the Fluid
material selection. For User defined enter another value or expression. The default is
0 Pa·s.
Porous Medium
The Porous Medium node adds the Brinkman equations (excluding any mass sources)
to the interface. It has two default subfeatures — the Fluid subfeature where the fluid
density (SI unit: kg/m3) and dynamic viscosity (SI unit: Pa·s) are defined and the
Porous Matrix subfeature where the permeability (SI unit: m2) and porosity p
(dimensionless) are specified.
FLOW MODEL
Define if the flow follows a linear or nonlinear pressure-velocity relationship.
• Darcian flow (default) defines a linear relationship characteristic for low Reynolds
number laminar flows.
• Non-Darcian flow defines a nonlinear relationship due to inertial or turbulence
effects.
MODEL INPUT
This section contains fields and values that are inputs for expressions defining material
properties. If such user-defined property groups are added, the model inputs appear
here.
FLUID PROPERTIES
Specify the Density and the Dynamic viscosity (SI unit: Pa·s) of the fluid. The
defaults use values From material, for User defined enter a value or expression.
The dynamic viscosity describes the relationship between the shear stresses and the
shear rate in a fluid. Intuitively, water and air have a low viscosity, and substances often
described as thick, such as oil, have a higher viscosity.
If the Polymer Flow Module license is available and for Darcian flow, also
non-Newtonian models are available and the Constitutive Relation can be switched
between Specify dynamic viscosity (default) or Inelastic non-Newtonian.
Constitutive Relation
Use the default option to either get the dynamic viscosity from a material, or to add a
user defined expression. The default option lets you either use the dynamic viscosity
from a material or define it with a custom expression. The Inelastic non-Newtonian
option provides several models and defines the Apparent shear rate.
Inelastic Non-Newtonian
The following inelastic non-Newtonian Models are available for the Fluid feature under
the Porous Medium feature:
• Power Law
• Carreau
• Carreau-Yasuda
• Cross
• Cross-Williamson
• Sisko
The setup of these models in porous media is similar to their definition under the Fluid
Properties feature.
Porous Matrix
This node defines the porosity and material properties of the solid matrix of the Porous
Medium parent node.
MODEL INPUT
This section contains fields and values that are inputs for expressions defining material
properties. If such user-defined property groups are added, the model inputs appear
here.
MATRIX PROPERTIES
The Porosity p (a dimensionless number between 0 and 1) uses by default the value
From material. For User defined the default value is 1 which is equivalent to free flow.
Select a Permeability model to specify the capacity of the porous material to transmit
flow. Depending on the Flow model selection in the parent Porous Medium feature node
you can choose between the following options:
• Permeability (the default) to directly enter the permeability of the porous matrix or
Kozeny-Carman to define the permeability from the porosity and mean Particle
diameter for Darcian flow or
• Forchheimer or Ergun for Non-Darcian flow.
Note that some of these options are only available for certain modules. For a detailed
overview of the functionality available in each product, visit https://
[Link]/products/specifications/.
The default Permeability (SI unit: m2) uses the value From material, as defined by the
Porous material list. For User defined select Isotropic to define a scalar value or Diagonal
or Symmetric to define a tensor value.
In case a Non-Darcian flow model is chosen in the parent node, Forchheimer is the
default selection for the Permeability model. For Forchheimer, the default Permeability
(SI unit: m2) uses the value From material. Furthermore, the dimensionless
Forchheimer parameter cF can be defined. The default value is 0.55.
If Ergun is selected, enter the mean Particle diameter dp (default value: 0.5 mm). The
permeability is then calculated using Equation 2-4 in the Porous Media Flow
Module User’s Guide.
Mass Source
Enter a value or expression for an optional mass source (or sink) Source term Qm (SI
unit: kg/(m3·s)). This term accounts for mass deposit or mass creation within porous
domains. The physics interface assumes that the mass exchange occurs at zero velocity.
Volume Force
The Volume Force node specifies the force F on the right-hand side of the Navier–
Stokes or Brinkman equations, depending on whether a Fluid Properties or Porous
Medium node is active on the domain. It then acts on each fluid element in the
specified domains.
VOLUME FORCE
Enter the components of the Volume force F (SI unit: N/m3).
SPECIES
Based on the number of species required for the model, use the Add ( ) and
Delete ) buttons under the table to add or remove Species. Then enter a value for
the Molar mass (kg/mol) in the applicable rows for each species.
The setting in the table will determine the number of available fields for entering the
stoichiometric coefficients of the Reaction Coefficient subnodes.
Initial Values
The Initial Values node adds initial values for the velocity field and the pressure that can
serve as an initial condition for a transient simulation or as an initial guess for a
nonlinear solver.
INITIAL VALUES
Enter initial values or expressions for the Velocity field u (SI unit: m/s) and for the
Pressure p (SI unit: Pa). The default values are 0 m/s and 0 Pa, respectively.
Gravity
The Gravity global feature is automatically added when Include gravity is selected at the
interface level in the Physical Model settings. It defines the gravity forces from the
Acceleration of gravity value. When a turbulence model that solves for the turbulent
kinetic energy, k, is used, the option Include buoyancy-induced turbulence is available.
When selected, the Buoyancy contribution is by default set to Automatic from
multiphysics. Contributions are only obtained from multiphysics couplings that
support buoyancy-induced turbulence, such as Nonisothermal Flow. If the Buoyancy
contribution is switched to User defined, a text field for the Turbulent Schmidt number
appears. See also Theory for Buoyancy-Induced Turbulence in the CFD Module
User’s Guide.
This feature requires a specific license. For a detailed overview of the functionality
available in each product visit [Link]
The flow is proportional to the Molar mass (kg/mol) of the reacting species, the current
densities and the stoichiometric coefficients according to Faraday’s law as defined by
summation over the Reaction Coefficient subnodes.
SPECIES
Based on the number of species required for the model, use the Add ( ) and
Delete ) buttons under the table to add or remove Species. Then enter a value for
the Molar mass (kg/mol) in the applicable rows for each species.
The setting in the table will determine the number of available field for entering the
stoichiometric coefficients of the Reaction Coefficient subnodes.
Wall
The Wall node includes a set of boundary conditions describing fluid-flow conditions
at stationary, moving, and leaking walls.
BOUNDARY CONDITION
Select a Boundary condition for the wall.
Slip
The Slip option prescribes a no-penetration condition, u·n . It is implicitly assumed
that there are no viscous effects at the slip wall and hence, no boundary layer develops.
From a modeling point of view, this can be a reasonable approximation if the main
effect of the wall is to prevent fluid from leaving the domain.
Leaking Wall
This boundary condition can be used to simulate a wall where fluid is leaking into or
leaving the domain with the velocity u = ul through a perforated wall. The
components of the Fluid velocity ul on the leaking wall should be specified.
CONSTRAINT SETTINGS
This section is displayed by clicking the Show button ( ) and selecting Advanced
Physics Options.
When a predefined Free and Porous Media Flow, Darcy interface is added from the Porous
Media and Subsurface Flow branch ( ) of the Model Wizard or Add Physics window, the
Darcy’s Law and Laminar Flow interfaces are added to the Model Builder. In addition,
the Multiphysics node is added, which automatically includes the Free and Porous Media
Flow Coupling multiphysics coupling.
The Laminar Flow interface is used to compute the velocity and pressure for a fluid flow
in the laminar flow regime. A flow will remain laminar as long as the Reynolds number
is below a certain critical value. At higher Reynolds numbers, disturbances have a
tendency to grow and cause transition to turbulence.
However, if physics interfaces are added one at a time, followed by the coupling
features, these modified settings are not automatically included.
The Name is used primarily as a scope prefix for variables defined by the coupling node.
Refer to such variables in expressions using the pattern <name>.<variable_name>. In
order to distinguish between variables belonging to different coupling nodes or physics
interfaces, the name string must be unique. Only letters, numbers, and underscores (_)
are permitted in the Name field. The first character must be a letter.
The default Name (for the first multiphysics coupling feature in the model) is nsd1.
DOMAIN SELECTION
When nodes are added from the context menu, you can select Manual (the default)
from the Selection list to choose specific domains to define the multiphase flow
coupling, or select All domains as needed.
When the Free and Porous Media Flow Coupling is added as an effect of adding a Free
and Porous Media Flow, Darcy multiphysics interface, the selection is the intersection
of the boundaries of the participating physics interfaces.
Only boundaries that are active in the participating physics interfaces (which are
chosen from the Coupled Interfaces selection list) can be selected.
COUPLED INTERFACES
This section defines the physics involved in the multiphysics coupling. The Free flow
and Porous media flow lists include all applicable physics interfaces.
• If it is added from the Physics ribbon (Windows users), Physics contextual toolbar
(Mac and Linux users), or context menu (all users), then the first physics interface
of each type in the component is selected as the default.
• If it is added automatically when a multiphysics interface is selected in the Model
Wizard or Add Physics window, then the two participating physics interfaces are
selected.
You can also select None from either list to uncouple the Free and Porous Media Flow
Coupling node from a physics interface. If the physics interface is removed from the
Model Builder, for example Darcy’s Law is deleted, then the Porous media flow list
defaults to None as there is nothing to couple to.
• When No slip is selected, the tangential component of the fluid velocity at the
free-porous interface on the free-flow side (computed in the Free flow interface) is
set to zero.
• When Continuous tangential velocity is selected, the tangential velocity component
of the flow on both sides of the free-porous interface is continuous. In addition,
continuity of normal stresses and conservation of mass across the interface are
ensured.
• When Beavers-Joseph is selected, the difference of the tangential velocity
components of the flow on both sides of the free-porous interface is proportional to
the shear stress at the free-porous interface on the free-flow side. For this option,
enter a value or expression for the Beavers and Joseph parameter aBJ (dimensionless)
that determines the proportionality. In addition, select the checkbox Use projected
permeability to use only the component of the permeability tensor in the direction
of the difference of the tangential velocities on both sides of the interface, instead
of the trace of the permeability tensor, in determining the proportionality.
• When Beavers-Joseph-Saffman is selected, the tangential velocity component of the
flow at the free-porous interface on the free-flow side is proportional to the shear
stress at the interface on the free-flow side. For this option also, enter a value or
expression for the Beavers and Joseph parameter aBJ (dimensionless) that determines
the proportionality. In addition, select the checkbox Use projected permeability to
use only the component of the permeability tensor in the direction of the difference
of the tangential velocities on both sides of the interface, instead of the trace of the
permeability tensor, in determining the proportionality.
• When Viscous slip is selected, the difference of the tangential velocity components
of the flow on the free-flow side and a user-supplied interfacial velocity is
proportional to the shear stress at the free-porous interface on the free-flow side.
Enter values for the Slip length Ls (SI unit: m, the default is 1e-7 m), and an
Interfacial velocity ub (SI unit: m/s, the default is 0 m/s).
The main node is the Porous Medium feature, which adds the Brinkman equations and
provides interfaces for defining the fluid material and the porous matrix.
When this physics interface is added, the following default nodes are also added in the
Model Builder — Porous Medium, Wall (the default boundary type, using No slip as the
default boundary condition), and Initial Values. Then, from the Physics toolbar, add
other nodes that implement, for example, boundary conditions and volume forces.
You can also right-click Brinkman Equations to select physics features from the context
menu.
The boundary conditions are essentially the same as for the Laminar Flow interface.
Differences exist for the following boundary types: Outlet, Symmetry, Open
Boundary, and Boundary Stress where the viscous part of the stress is divided by the
porosity to appear as
1 T 2
----- u + u – --- u I
p 3
In the COMSOL Multiphysics Reference Manual see Table 2-4 for links to common
sections such as Discretization, Consistent Stabilization, Inconsistent Stabilization, and
Advanced Settings, all accessed by clicking the Show button ( ) and choosing the
applicable option. You can also search for information: press F1 to open the Help
window or Ctrl+F1 to open the Documentation window.
SETTINGS
The Label is the default physics interface name.
The default Name (for the first physics interface in the model) is br.
PHYSICAL MODEL
This node specifies the properties of the Brinkman Equations interface, which describe
the overall type of fluid flow model.
Compressibility
By default the physics interface uses the Incompressible flow formulation of the
Brinkman equations to model constant density flow. Alternatively, from the
Compressibility list select Weakly compressible flow, which should be used when the
pressure dependency of the density can be neglected, or Compressible flow (Ma<0.3) to
solve for the full compressible flow of which, however, the Mach number must be
below 0.3.
Swirl Flow
For 2D axisymmetric models, select the Swirl flow checkbox to include the swirl
velocity component, that is the velocity component u in the azimuthal direction.
While u can be nonzero, there can be no gradients in the direction.
Note that this feature is only available for specific modules. See https://
[Link]/products/specifications/ for a detailed overview.
Include Gravity
Gravity is not included by default. Select the Include gravity checkbox to activate the
acceleration of gravity. This automatically adds a global Gravity feature node to the
interface model tree, and the buoyancy force is included in the equations.
Also, when the Include gravity checkbox is selected, the Use reduced pressure option
changes the pressure formulation from using the total pressure (default) to using the
reduced pressure. This option is suitable for configurations where the density changes
Reference Position
If Include gravity is selected, a Reference position rref (SI unit: m) can be specified which
is then used for the calculation of the hydrostatic pressure.
TURBULENCE
Turbulent flow can be simulated by changing the Turbulence model type to RANS-EVM
(Reynolds-Averaged Navier–Stokes, eddy-viscosity model). If RANS-EVM is activated,
you can set the Turbulence model either to one of the algebraic turbulence models,
Algebraic yPlus (the default) or L-VEL, or to one of the following two-equation
turbulence models: k-Low Reynolds Number k-. The Wall treatment is set to
Automatic (default) or Low Re while Wall functions is the only option for k-.
For more information about turbulence modeling, see Theory for the Turbulent Flow
Interfaces in the CFD Module User’s Guide.
DEPENDENT VARIABLES
The following dependent variables (fields) are defined for this physics interface — the
Velocity field u (SI unit: m/s) and its components, and the Pressure p (SI unit: Pa).
ADVANCED SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog. Normally these settings do not need
to be changed.
• Domain, Boundary, Point, and Pair Nodes for the Brinkman Equations
Interface
• Theory for the Brinkman Equations Interface
• Pseudo Time Stepping for Laminar Flow Models and Pseudo Time
Stepping
• Numerical Stability — Stabilization Techniques for Fluid Flow
• Nitsche Constraints
In the COMSOL Multiphysics Reference Manual see Table 2-4 for links
to common sections and Table 2-5 to common feature nodes. You can
also search for information: press F1 to open the Help window or Ctrl+F1
to open the Documentation window.
Porous Medium
The Porous Medium node adds the Brinkman equations: Equation 4-34 and
Equation 4-35 (excluding any mass sources). It has two default subfeatures — the
Fluid subfeature where the fluid density (SI unit: kg/m3) and dynamic viscosity (SI
unit: Pa·s) are defined and the Porous Matrix subfeature where the permeability (SI
unit: m2) and porosity p (dimensionless) are specified.
The subnodes inherit these coordinate system settings. In particular, the Permeability
(in the Porous Matrix subnode) should be set according to the coordinate system
selected in this section.
• Darcian flow (default) defines a linear relationship characteristic for low Reynolds
number laminar flows.
• Non-Darcian flow defines a nonlinear relationship due to inertial or turbulence
effects.
DISTANCE EQUATION
This section is available for the turbulence models Algebraic yPlus or L-VEL. Select how
the Reference length scale lref (SI unit: m) is defined — Automatic (default) or Manual:
• For Automatic the wall distance is automatically evaluated to one tenth of the
shortest side of the geometry bounding box. This is usually quite accurate but it can
sometimes give a too high value if the geometry consists of several slim entities. In
such cases, define the reference length scale manually.
• For Manual it defines a different value or expression for the length scale. The default
is 1 m.
lref controls the result of the distance equation. Objects that are much smaller than lref
are effectively be diminished while the distance to objects much larger than lref are
accurately represented.
Context Menus
Brinkman Equations > Porous Medium
Ribbon
Physics tab with Brinkman Equations selected:
Fluid
This node defines the material properties of the fluid of the Porous Medium parent
node.
MODEL INPUT
This section contains fields and values that are inputs for expressions defining material
properties. If such user-defined property groups are added, the model inputs appear
here.
FLUID PROPERTIES
Specify the Density and the Dynamic viscosity (SI unit: Pa·s) of the fluid. The
defaults use values From material, for User defined enter a value or expression.
The dynamic viscosity describes the relationship between the shear stresses and the
shear rate in a fluid. Intuitively, water and air have a low viscosity, and substances often
described as thick, such as oil, have a higher viscosity.
If the Polymer Flow Module license is available and for Darcian flow, also
non-Newtonian models are available and the Constitutive Relation can be switched
between Specify dynamic viscosity (default) or Inelastic non-Newtonian.
Constitutive Relation
Use the default option to either get the dynamic viscosity from a material, or to add a
user defined expression. The default option lets you either use the dynamic viscosity
from a material or define it with a custom expression. The Inelastic non-Newtonian
option provides several models and defines the Apparent shear rate.
Inelastic Non-Newtonian
The following inelastic non-Newtonian Models are available for the Fluid feature under
the Porous Medium feature:
• Power Law
The setup of these models in porous media is similar to their definition under the Fluid
Properties feature.
Context Menus
Brinkman Equations > Porous Medium > Fluid
Porous Matrix
This node defines the porosity and material properties of the solid matrix of the Porous
Medium parent node.
MODEL INPUT
This section contains fields and values that are inputs for expressions defining material
properties. If such user-defined property groups are added, the model inputs appear
here.
MATRIX PROPERTIES
The Porosity p (a dimensionless number between 0 and 1) uses by default the value
From material. For User defined the default value is 1.
• Permeability (the default) to directly enter the permeability of the porous matrix or
Kozeny-Carman to define the permeability from the porosity and mean Particle
diameter for Darcian flow or
• Forchheimer or Ergun for Non-Darcian flow.
Note that some of these options are only available for certain modules. For a detailed
overview of the functionality available in each product, visit https://
[Link]/products/specifications/.
The default Permeability (SI unit: m2) uses the value From material, as defined by the
Porous material list. For User defined select Isotropic to define a scalar value or Diagonal
or Symmetric to define a tensor value.
For Kozeny-Carman, enter the mean Particle diameter dp (SI unit: m), the default value
is 0.5 mm.
In case a Non-Darcian flow model is chosen in the parent node, Forchheimer is the
default selection for the Permeability model. For Forchheimer, the default Permeability
(SI unit: m2) uses the value From material. Furthermore, the dimensionless
Forchheimer parameter cF can be defined. The default value is 0.55.
If Ergun is selected, enter the mean Particle diameter dp (default value: 0.5 mm). The
permeability is then calculated using Equation 2-4 in the Porous Media Flow
Module User’s Guide.
Context Menus
Brinkman Equations > Porous Medium > Porous Matrix
+ u = Q m (6-20)
t p
DOMAIN SELECTION
Only Porous Matrix domains are available.
MASS SOURCE
Enter a value or expression for the Source term Qbr (SI unit: kg/(m3·s)). The default
is 0 kg/(m3·s).
Context Menus
Brinkman Equations > Mass Source
Ribbon
Physics tab with Brinkman Equations selected:
Volume Force
Use the Volume Force node to specify the force F on the right-hand side of
Equation 6-68. It then acts on each fluid element in the specified domains.
- u u
---- + u ----- =
p t p
(6-21)
1 T 2 Q m
– p + ----- u + u – --- u I – –1 + -------
- u + F
p 3 p2
VOLUME FORCE
Enter the components of Volume force F (SI unit: N/m3).
Context Menus
Brinkman Equations > Volume Source
Ribbon
Physics tab with Brinkman Equations selected:
Initial Values
The Initial Values node adds initial values for the velocity field and the pressure that can
serve as an initial condition for a transient simulation or as an initial guess for a
nonlinear solver.
INITIAL VALUES
Enter initial values or expressions for the Velocity field u (SI unit: m/s) and the Pressure
p (SI unit: Pa). The default values are 0 m/s and 0 Pa, respectively.
Context Menus
Brinkman Equations > Initial Values
Ribbon
Physics tab with Brinkman Equations selected:
Fluid Properties
The Fluid Properties node adds the momentum and continuity equations to solve for
free flow in nonporous domains. The node also provides an interface for defining the
material properties of the fluid.
MODEL INPUTS
Fluid properties, such as density and viscosity, can be defined through user inputs,
variables, or by selecting a material. For the latter option, additional inputs — for
example, temperature or pressure — may be required to define these properties.
Absolute Pressure
This input appears when a material requires the absolute pressure as a model input.
The absolute pressure is used to evaluate material properties, but it also relates to the
value of the calculated pressure field. There are generally two ways to calculate the
pressure when describing fluid flow: either to solve for the absolute pressure or for a
pressure (often denoted gauge pressure) that relates to the absolute pressure through
a reference pressure.
The choice of pressure variable depends on the system of equations being solved. For
example, in a unidirectional incompressible flow problem, the pressure drop over the
modeled domain is probably many orders of magnitude smaller than the atmospheric
pressure, which, when included, may reduce the stability and convergence properties
of the solver. In other cases, such as when the pressure is part of an expression for the
gas volume or the diffusion coefficients, it may be more convenient to solve for the
absolute pressure.
The default Absolute pressure pA is p pref where p is the dependent pressure variable
from the Navier–Stokes equations, and pref is from the user input defined at the
physics interface level. When pref is nonzero, the physics interface solves for a gauge
pressure. If the pressure field instead is an absolute pressure field, pref should be set to
0.
The Absolute pressure field can be edited by clicking Make All Model Inputs Editable
( ) and entering the desired value in the input field.
FLUID PROPERTIES
If density variations with respect to pressure are to be included in the computations,
the flow must be set to compressible.
The Dynamic viscosity describes the relationship between the shear rate and the shear
stresses in a fluid. Intuitively, water and air have low viscosities, and substances often
described as thick (such as oil) have higher viscosities.
Context Menus
Brinkman Equations > Fluid Properties
Ribbon
Physics tab with Brinkman Equations selected:
Gravity
The Gravity global feature is automatically added when Include gravity is selected at the
interface level in the Physical Model settings. It defines the gravity forces from the
Acceleration of gravity value. When a turbulence model that solves for the turbulent
kinetic energy, k, is used, the option Include buoyancy-induced turbulence is available.
When selected, the Buoyancy contribution is by default set to Automatic from
multiphysics. Contributions are only obtained from multiphysics couplings that
support buoyancy-induced turbulence, such as Nonisothermal Flow. If the Buoyancy
contribution is switched to User defined, a text field for the Turbulent Schmidt number
appears. See also Theory for Buoyancy-Induced Turbulence in the CFD Module
User’s Guide.
This feature requires a specific license. For a detailed overview of the functionality
available in each product visit [Link]
ACCELERATION OF GRAVITY
The Acceleration of gravity (SI unit m/s, default value gconstez in 2D axial symmetry
and 3D and gconstey in 2D) is used to define the gravity forces. It should be a global
quantity.
Context Menus
Brinkman Equations > Gravity
------ + u = 0 (6-22)
t
u
------ + u u = – pI + K + F (6-23)
t
where
1
S = --- u + u T
2
THEORY FOR THE LAMINAR FLOW AND CREEPING FLOW INTERFACES | 417
Equation 6-24 describes the conservation of energy, formulated in terms of
temperature. This is an intuitive formulation that facilitates boundary condition
specifications.
To close the equation system, Equation 6-22 through Equation 6-24, constitutive
relations are needed.
For a Newtonian fluid, which has a linear relationship between stress and strain, Stokes
(Ref. 1) deduced the following expression:
2
K = 2S – --- u I (6-26)
3
The dynamic viscosity, (SI unit: Pa·s), for a Newtonian fluid is allowed to depend on
the thermodynamic state but not on the velocity field. All gases and many liquids can
be considered Newtonian.
For an inelastic non-Newtonian fluid, the relationship between stress and strain rate is
nonlinear, and an apparent viscosity is introduced instead of the dynamic viscosity.
Examples of non-Newtonian fluids are honey, mud, blood, liquid metals, and most
polymer solutions.
In theory, the same equations describe both laminar and turbulent flows. In practice,
however, the mesh resolution required to simulate turbulence with the Laminar Flow
interface makes such an approach impractical.
Many applications describe isothermal flows for which Equation 6-24 is decoupled
from Equation 6-22 and Equation 6-23.
2D AXISYMMETRIC FORMULATIONS
A 2D axisymmetric formulation of Equation 6-22 and Equation 6-23 requires to
be zero. That is, there must be no gradients in the azimuthal direction. A common
additional assumption is, however, that u 0. In such cases, the -equation can be
removed from Equation 6-23. The resulting system of equations is both easier to
converge and computationally less expensive compared to retaining the -equation.
= 0
u = 0
Compressible Flow
The equations of motion for a single-phase fluid are the continuity equation:
------ + u = 0 (6-27)
t
u
------ + u u = – p + u + u T – --- u I + F
2
(6-28)
t 3
These equations are applicable for incompressible as well as for compressible flow with
density and viscosity variations.
The weakly compressible flow equations are valid for incompressible as well as
compressible flow with density variations independent of the pressure.
Provided that the densities dependency pressure is specified through model inputs, the
density is automatically evaluated at the reference pressure level.
u-
Ma = -----
a
THEORY FOR THE LAMINAR FLOW AND CREEPING FLOW INTERFACES | 419
where a is the speed of sound. A flow is formally incompressible when Ma 0. This is
theoretically achieved by letting the speed of sound tend to infinity. The Navier–Stokes
equations then have the mathematical property that pressure disturbances are
instantaneously propagated throughout the entire domain. This results in a parabolic
equation system.
The momentum equation, Equation 6-28, is parabolic for unsteady flow and elliptic
for steady flow, whereas the continuity equation, Equation 6-27, is hyperbolic for both
steady and unsteady flow. The combined system of equations is thus hybrid
parabolic-hyperbolic for unsteady flow and hybrid elliptic-hyperbolic for steady flow.
An exception occurs when the viscous term in Equation 6-28 becomes vanishingly
small, such as at an outflow boundary, in which case the momentum equation becomes
locally hyperbolic. The number of boundary conditions to apply on the boundary then
depends on the number of characteristics propagating into the computational domain.
For the purely hyperbolic system, the number of characteristics propagating from the
boundary into the domain changes as the Mach number passes through unity. Hence,
the number of boundary conditions required to obtain a numerically well-posed
system must also change. The compressible formulation of the laminar and turbulent
interfaces uses the same boundary conditions as the incompressible formulation, which
implies that the compressible interfaces are not suitable for flows with a Mach number
larger than or equal to one. Yet, the practical Mach number limit is lower than one.
The main reason is that the numerical scheme (stabilization and boundary conditions)
of the Laminar Flow interface does not recognize the direction and speed of pressure
waves. The fully compressible Navier–Stokes equations do, for example, start to display
very sharp gradients already at moderate Mach numbers. But the stabilization for the
single-phase flow interface does not necessarily capture these gradients. It is impossible
to give an exact limit where the low Mach number regime ends and the moderate
Mach number regime begins, but a rule of thumb is that the Mach number effects start
to appear at Ma 0.3. For this reason, the compressible formulation is referred to as
Compressible flow (Ma<0.3) in COMSOL Multiphysics.
Incompressible Flow
When the temperature variations in the flow are small, a single-phase fluid can often
be assumed incompressible; that is, is constant or nearly constant. This is the case for
all liquids under normal conditions and also for gases at low velocities. For constant ,
Equation 6-27 reduces to
u = 0 (6-29)
u T
+ u u = – pI + u + u + F (6-30)
t
Re = UL
------------
where U denotes a velocity scale, and L denotes a representative length. The Reynolds
number represents the ratio between inertial and viscous forces. At low Reynolds
numbers, viscous forces dominate and tend to damp out all disturbances, which leads
to laminar flow. At high Reynolds numbers, the damping in the system is very low,
giving small disturbances the possibility to grow by nonlinear interactions. If the
Reynolds number is high enough, the flow field eventually ends up in a chaotic state
called turbulence.
Note that the Reynolds number can have different meanings depending on the length
scale and velocity scale. To be able to compare two Reynolds numbers, they must be
based on equivalent length and velocity scales.
The Fluid Flow interfaces automatically calculate the local cell Reynolds number
Rec uh2 using the element length h for L and the magnitude of the velocity
vector u for the velocity scale U. This Reynolds number is not related to the character
of the flow field, but to the stability of the numerical discretization. The risk for
numerical oscillations in the solution increases as Rec grows. The cell Reynolds
number is a predefined quantity available for visualization and evaluation (typically it
is available as: [Link]).
THEORY FOR THE LAMINAR FLOW AND CREEPING FLOW INTERFACES | 421
Gravity
DEFINITION
The gravity force is defined from the acceleration of gravity vector, g, and the density,
. Under usual conditions and in Cartesian coordinates with the z-axis in the vertical
direction,
0
g = 0 .
– g const
u
------ + u u = – pI + u + u T – --- u I + F + g
2
(6-31)
t 3
u
------ + u u=
t
(6-32)
– pI + u + u T – --- u I + ref g r – r ref + F + – ref g
2
3
where r is the position vector and rref is an arbitrary reference position vector.
From this equation, it is convenient to define the reduced pressure which accounts for
the hydrostatic pressure, p̃ = p – ref g r – r ref
u
------ + u u = – p̃I + u + u T – --- u I +
2
t 3 (6-33)
F + – ref g
PRESSURE FORMULATION
When the relative pressure is used (default option) the interface dependent variable
represents the relative pressure and the absolute pressure is defined as pA pref p.
When the pressure is used to define a boundary condition (for example, when p0
When the reduced pressure is used, the interface dependent variable (named p by
default) represents the reduced pressure. The absolute pressure is then defined as
pA pref refg r rref p. In this case when the pressure is used to define a
boundary condition (for example, to define a pressure condition at an outlet), its value
corresponds to the reduced pressure. Hence, the prescribed pressure compensates for
an approximate hydrostatic pressure, phydro,approx refg r rref, which is exact
only when the density is constant and there is no external force.
For incompressible flow, assuming there are no external forces, this leads respectively
to p refg r rref p0 or p̃ = p 0 .
SLIP
The Slip condition assumes that there are no viscous effects at the slip wall and hence,
no boundary layer develops. From a modeling point of view, this is a reasonable
approximation if the important effect of the wall is to prevent fluid from leaving the
domain. Mathematically, the constraint can be formulated as:
u n = 0, – pI + u + u T n = 0
The no-penetration term takes precedence over the Neumann part of the condition
and the above expression is therefore equivalent to
u n = 0, K n – K n n n = 0
K n = u + u T n
expressing that there is no flow across the boundary and no viscous stress in the
tangential direction.
THEORY FOR THE LAMINAR FLOW AND CREEPING FLOW INTERFACES | 423
For a moving wall with translational velocity utr, u in the above equations is replaced
by the relative velocity urel u utr.
POROUS SLIP
The Porous slip option, which can be chosen in the Porous treatment of no slip condition
list when Enable porous media domains is activated, results in a special treatment of Wall
boundaries and Interior Wall boundaries adjacent to porous domains (Porous Medium
feature). Namely, similar to the Navier slip boundary condition, no penetration and
tangential stress conditions are applied at the wall:
u slip
u n = 0 K n – K n n n = – ----- ---------- ,
p y ps
T
u slip = u – u n n , K n = ----- u + u n
p
Here, Kn is the viscous wall traction, n is the wall normal, uslip is the tangential velocity
at the wall while real no slip is assumed to be applied at a distance dw (half-height of
the first cell adjacent to the wall) outside the wall, and is the porous slip length. An
analytical derivation of the velocity profile in the boundary layer where the pressure
gradient is balanced by the sum of the Darcy term, the Forchheimer drag, and the
viscous term (neglecting convective terms) leads to the following expression for yps:
1 + 2c – 1 + 4--- c 1 + 4c D – 1 ND 2
3
X p = --------------------------------------------------- , c = -------------------------------- , c D = ----------- ------ p - g
4 2
1 + 2c + 1 + --- c
3
wd l pore
y ps = l̃ e p – 1 , p = ------ , l̃ = ------------------------
l̃ 1 + 2c
ND u slip l pore 2 13
c = ---------------------------- ---------- 2
dw
SLIDING WALL
The sliding wall option is appropriate if the wall behaves like a conveyor belt; that is,
the surface is sliding in its tangential direction. The wall does not have to actually move
in the coordinate system.
The normalization makes u have the same magnitude as uw even if uw is not exactly
parallel to the wall.
Navier Slip
This boundary condition enforces no-penetration at the wall, u nwall 0, and adds a
tangential stress
K nt = – --- u slip
where Knt Kn Kn nwallnwallKn Knwall, and K is the viscous stress tensor. is
a slip length, and uslip u u nwallnwall is the velocity tangential to the wall. The
boundary condition does not set the tangential velocity component to zero; however,
the extrapolated tangential velocity component is 0 at a distance outside the wall.
The Slip Length setting is per default set to Factor of minimum element length. The slip
length is then defined as fhhmin, where hmin is the smallest element side
THEORY FOR THE LAMINAR FLOW AND CREEPING FLOW INTERFACES | 425
(corresponds to the element size in the wall normal direction for boundary layer
elements) and fh is a user input.
In cases where the wall movement is nonzero, Account for the translational wall velocity
in the friction force may be selected to use u ubnd u ubnd nwallnwall instead
of uslip in the friction force. Then, the extrapolated tangential velocity component is
ubnd at a distance outside of the wall. Note that the Velocity of sliding wall uw is
always accounted for in the friction force.
The Navier Slip option is not available when selecting a turbulence model.
CONSTRAINT SETTINGS
The wall feature uses three different techniques to constrain the velocity field:
• Automatic (default) use different constraint methods depending on whether only the
normal component of the velocity is prescribed, such as in the no penetration
condition, u · n 0, imposed, for example, in Slip walls or No Slip walls using Wall
Functions or Automatic Wall Treatment, or both tangential and normal
components are prescribed, as is the case of No Slip walls in laminar flow.
Nitsche constraints are used to impose the no penetration condition for Slip walls.
When a No Slip condition is prescribed, pointwise constraints are used except for
moving walls where Nitsche constraints are used.
• Pointwise constraints
• Nitsche constraints
• Weak constraints — these are not available on Interior Walls.
• Mixed constraints — this option is only available when both the tangential and
normal components of the velocity need to be prescribed. The velocity on the wall
normal direction is imposed via pointwise constraints. The constraint for the
tangential directions is relaxed, and Nitsche constraints are used instead. This
provides improved accuracy and performance when working with coarse boundary
layer meshes. For more information, see Ref. 18.
INLET CONDITIONS
An inlet requires specification of the velocity components. The most robust way to do
this is to prescribe a velocity field using a Velocity condition.
THEORY FOR THE LAMINAR FLOW AND CREEPING FLOW INTERFACES | 427
pointwise because this is mathematically over-constraining. Instead the pressure can be
specified via a stress condition:
u n
– p + 2 --------- = F n (6-34)
n
u t
-------- = 0
n
which is what the Normal stress condition does. Vanishing tangential stress becomes a
less well-posed inlet condition as the Reynolds number increases. The Pressure
condition in the Inlet feature therefore requires a flow direction to be prescribed,
which provides a well-posed condition independent of Reynolds number.
OUTLET CONDITIONS
The most common approach is to prescribe a pressure via a normal stress condition on
the outlet. This is often accompanied by a vanishing tangential stress condition:
u t
-------- = 0
n
where utn is the normal derivative of the tangential velocity field. It is also possible
to prescribe ut to be zero. The latter option should be used with care since it can have
a significant effect on the upstream solution.
ALTERNATIVE FORMULATIONS
COMSOL Multiphysics provides several specialized boundary conditions that either
provide detailed control over the flow at the boundary or that simulate specific devices.
In practice they often prescribe a velocity or a pressure but calculate the prescribed
values using, for example, ODEs.
pinl
The flow to the domain is assumed to enter through a straight channel of length L.
The channel is a virtual extrusion of the inlet cross section and a pressure constant
pressure Pinl is applied on the inlet of the virtual channel.
The Fully Developed Flow boundary condition prescribes that the tangential flow
component on the boundary is zero:
u – u n n = 0
The momentum equation for a fully developed flow in the virtual extrusion of the inlet
cross section can then be projected onto the inlet boundary with the following weak
equation as the result:
p + P inl
L – t u + t u + ----------------------- I : t û – P inl n û
T
2
THEORY FOR THE LAMINAR FLOW AND CREEPING FLOW INTERFACES | 429
The exact value of L is somewhat arbitrary as long as it is not too high or too low. L is
therefore set to ten times the inlet edge length in 2D and to ten times the square root
of the inlet area in 2D axisymmetry and in 3D.
The fact that the velocity profile is not prescribed, but rather the solution of a projected
weak contribution, means that the actual velocity profile that is obtained on the inlet
can deviate from the analytical fully developed flow profile (in cases such an analytical
solution exists) if required by the solution inside the computational domain, . This is
most notably if the flow is strongly curved just downstream of the inlet. This can, for
example, be the case if an object is positioned just downstream of the inlet or if the
adjacent boundaries are not orthogonal to the inlet. The analytical solution can in
these cases be recovered by including a little bit of the inlet channel in the
computational domain.
The inlet pressure, Pinl, must be solved for and the its equation is a discrete algebraic
equation (DAE) for Pinl. When, for example, the average velocity is specified, the DAE
reads
u n + U av P̂ inl
where denotes the average over the inlet. Since the equation for Pinl is a DAE (the
equation for Pinl does not contain Pinl), it must be solved coupled to Navier–Stokes
and it must be treated by a Vanka presmoother and postsmoother if iterative solvers are
used.
The boundary conditions for the virtual inlet channel are inherited from the
boundaries adjacent to the inlet channel. Virtual boundaries adjacent to walls (except
slip walls) are treated as no-slip walls. Virtual boundaries adjacent to any other type of
boundary are treated as slip-walls (or equivalently as symmetry boundaries). So in the
figure above, if the lower boundary of is a no-slip wall and the top boundary is a
symmetry boundary, the lower boundary of the virtually extruded channel becomes a
no-slip wall and the upper boundary becomes a symmetry boundary.
Algebraic turbulence models need additional equations or constraints. For all other
turbulence models, their weak equations in the virtual inlet channel are projected onto
the inlet of the computational domain. The projections are regularized to prevent the
production to fall to zero, so the solutions of the projects can show slight deviation
from the correct solutions close to no-slip walls.
pexit
The flow to the domain is assumed to enter through a straight channel of length L.
The channel is a virtual extrusion of the inlet cross section and a pressure constant
pressure Pexit is applied on the inlet of the virtual channel.
The Fully Developed Flow boundary condition prescribes that the tangential flow
component on the boundary is zero:
u – u n n = 0
The momentum equation for a fully developed flow in the virtual extrusion of the inlet
cross section can then be projected onto the inlet boundary with the following weak
equation as the result:
p + P exit
L – t u + t u + -------------------------- I : t û – P exit n û
T
2
The exact value of L is somewhat arbitrary as long as it is not too high or too low. L is
therefore set to ten times the inlet edge length in 2D and to ten times the square root
of the inlet area in 2D axisymmetry and in 3D.
The fact that the velocity profile is not prescribed, but rather the solution of a projected
weak contribution, means that the actual velocity profile that is obtained on the outlet
can deviate from the analytical fully developed flow profile (in cases such an analytical
solution exists) if required by the solution inside the computational domain, . The
inlet pressure, Pexit, must be solved for and the its equation is a discrete algebraic
equation (DAE) for Pexit. When, for example, the average velocity is specified, the
DAE reads
u n + U av P̂ exit
THEORY FOR THE LAMINAR FLOW AND CREEPING FLOW INTERFACES | 431
where denotes the average over the inlet. Since the equation for Pext is a DAE, it
must be solved coupled to Navier–Stokes and it must be treated by a Vanka
presmoother and postsmoother if iterative solvers are used.
The boundary conditions for the virtual outlet channel are inherited from the
boundaries adjacent to the outlet channel. Virtual boundaries adjacent to walls (except
slip walls) are treated as no-slip walls. Virtual boundaries adjacent to any other type of
boundary are treated as slip-walls (or equivalently as symmetry boundaries).
No Viscous Stress
For this module, and in addition to the Pressure, No Viscous Stress boundary
condition, the viscous stress condition sets the viscous stress to zero:
u + u T – 2
--- u I n = 0
3
u + u T n = 0
The condition is not a sufficient outlet condition since it lacks information about the
outlet pressure. It must hence be combined with pressure point constraints on one or
several points or lines surrounding the outlet.
This boundary condition is numerically the least stable outlet condition, but can still
be beneficial if the outlet pressure is nonconstant due to, for example, a nonlinear
volume force.
– pI + u + u T – 2
--- u I n = – f 0 n
3
– pI + u + u T n = – f 0 n
u n
p = 2 ---------- + f 0 (6-35)
n
The Normal Stress condition is the mathematically correct version of the condition
(Ref. 4), but it is numerically less stable.
– pI + u + u T – 2
--- u I n = – p 0 n (6-36)
3
– pI + u + u T n = – p 0 n (6-37)
u t (6-38)
THEORY FOR THE LAMINAR FLOW AND CREEPING FLOW INTERFACES | 433
– pI + u + u T – 2
--- u I n = – p̂ 0 n
3
, (6-39)
– pI + u + u T n = – p̂ 0 n
p̂ 0 p 0
un0 (6-40)
A pressure condition can also be applied at an inlet. In this case, either the normal stress
is prescribed
n – pI + u + u T – --- u I n = – p̂ 0
T 2
3
T
(6-41)
n – pI + u + u T n = – p̂ 0
p̂ 0 p 0
together with the tangential condition in Equation 6-38, or, a general flow direction
is prescribed.
T – pI + u + u T – 2
ru --- u I n = – p̂ 0 r n
3 u
T – pI + u + u T n = – p̂ r n
ru 0 u
(6-42)
p̂ 0 p 0
du
u – u r u r u = 0 r u = ----------
-
du
For incompressible single-phase flow, it is also allowed to specify the total pressure,
ptot, instead of the static pressure, pstat, on inlet and outlet boundaries. It is more
1 2
p = p stat = p tot – --- u (6-43)
2
T T
n – pI + u + u T n = n – p stat I + u + u T n (6-44)
where ptot and u2 are averaged over the boundaries using the aveop operator:
1 2
p stat = aveop p tot – --- aveop u
2
See Inlet, Outlet, Open Boundary, and for the individual node settings. Note that
some modules have additional theory sections describing options available with that
module.
Porous Interface
This condition properly accounts for a sudden jump in porosity p across boundary
between different domains, giving the corresponding jump in stress across the
interface. The emergence of a boundary layer on the upstream side of the interface is
also revealed, which provides modifications to the behavior of the tangential velocity
near the interface. The feature helps to avoid the need to add a very thin transition
region, in which p,upstream changes to p,downstream continuously, while solving the
Brinkman equation in such situations. Below, ‘’ and ‘’ (used as subscripts and
superscripts) refer to the upstream and downstream side of the interface, respectively.
Whatever the option for Continuity conditions is chosen, the velocity conditions are
u n = 0 ut u – u n n =0
THEORY FOR THE LAMINAR FLOW AND CREEPING FLOW INTERFACES | 435
That is, the mass flux and tangential velocity across the interface are constant, and n is
assumed to be a normal pointing from ‘’ to ‘’. Velocity and stress option just imposes
usual stress continuity adding a correction for a possible jump in density:
pn – Kn + u n -----
1 2u = 0
p
av
The option Velocity and porosity-corrected stress (default) adds a contribution due to
the inertial term, which is nontrivial (gives nonzero effect) when p jumps across the
interface:
pn – Kn + u n -----
1 2 u + u n --------
1 -
u av = 0
p 2 2p
av
pn – Kn + u n -----
1 2 u + u n --------
1
- u av +p
(loss)
n = 0
p 2 2p
av
This loss occurs in the downstream direction. Its mechanism is similar to the
mechanism of common engineering ‘total pressure loss’. Indeed, ‘expansion’ and
‘contraction’ across the interface experienced by the flow on the microscopic level (due
to increasing or decreasing porosity, p, respectively), are roughly equivalent to
expansion and contraction of flow in a pipe with geometrical variations. Accordingly,
it is assumed that only the normal velocity component is responsible for the loss. In
the case of normal flow and negligible viscous term the pipe-analogy is quite exact.
(loss,contraction) u n 2
p = K contr -----------------------
-
2 2p
av u n u n 2
= ------- ----------------- – -----------------
(loss,expansion)
p
2 p p
1 u n - 1
2 2
------- – 1
(loss,contraction)
p = --- -----------------------
2 p
2
c
vc
and requires to choose Vena contracta model. The User defined option asks for value of
Vena contracta coefficient (cvc 0.5 by default). Weisbach option computes the
coefficient based on the ratio of porosities across the interface:
p, n vc
c vc = c vc,ll + 1 – c vc,ll ----------
p,
and requires inputs for Lower limit and Exponent (cvc,ll 0.63 and nvc 3 are default
values).
Although the velocity conditions formally look the same for all Continuity conditions
options, the latter two (containing the inertial correction due to the porosity jump)
lead to an extra nontrivial effect. Namely, the tangential velocity exponentially evolves
over a boundary layer formed on the upstream side of the interface boundary. This
boundary layer has a characteristic length equal to
p,
l = --------------------
-
u n
The ratio of the tangential velocities right after the interface (‘downstream’) and
outside the boundary layer (‘upstream infinity’) is
u t, 2 p p
- = --------------------------------------------------------
------------------------------------------ -
u t,upstream infinity p p + p p
THEORY FOR THE LAMINAR FLOW AND CREEPING FLOW INTERFACES | 437
(i)
u t, 2
- = --------------------------------------------------------- 1
-----------------------------------------------
(i)
u t,upstream infinity p p
+ p p
Obviously, tangential component of the interstitial kinetic energy is lost across the
interface. For low viscosity and high normal-flow component, when lu is much lower
than lgeom (the characteristic geometry length) there are apparent variations in ut and
u(i)t in a thin boundary layer on the upstream side of the interface. However, for the
cases with high viscosity or nearly interface-parallel flow, lu is much larger than lgeom,
and any variations in ut and u(i)t are virtually invisible.
Notice that the feature does not take into account possible underresolved porous scale,
as is described in Theory for the Free and Porous Media Flow, Darcy Interface.
POINT SOURCE
ꞏ
A point source is theoretically formed by taking a mass injection/ejection, Q (SI unit:
3
kg/(m ·s)), in a small volume V and then letting the size of the volume tend to zero
while keeping the total mass flux constant. Given a point source strength, qꞏ p (SI unit:
kg/s), this can be expressed as
ꞏ
lim
V 0 Q = qꞏ p (6-45)
V
qꞏ p test p
ꞏ
is added to a point in the geometry. As can be seen from Equation 6-45, Q must tend
to plus or minus infinity as V tends to zero. This means that in theory the pressure
also tends to plus or minus infinity.
Observe that “point” refers to the physical representation of the source. A point source
can therefore only be added to points in 3D components and to points on the
symmetry axis in 2D axisymmetry components. Other geometrical points in 2D
components represent physical lines.
LINE SOURCE
ꞏ
A line source can theoretically be formed by assuming a source of strength Q (SI unit:
3
kg/(m ·s)), located within a tube with cross-sectional area S and then letting S tend
to zero, while keeping the total mass flux per unit length constant. Given a line source
strength, qꞏ l (SI unit: kg/(m·s)), this can be expressed as
ꞏ
lim
S 0 Q = qꞏ l (6-46)
S
As in the point source case, an alternative approach is to assume that mass is injected/
extracted through the surface of a small object. This results in the same mass source,
but requires that effects on the fluid resulting from the physical object volume are
neglected.
qꞏ l test p
THEORY FOR THE LAMINAR FLOW AND CREEPING FLOW INTERFACES | 439
components. It cannot, however, be added to geometrical lines in 2D because they
represent physical planes.
As with a point source, it is important not to mesh too finely around the line source.
For feature node information, see Line Mass Source and Point Mass
Source.
For the Reacting Flow in Porous Media, Diluted Species interface, which
is available with the CFD Module, Chemical Reaction Engineering
Module, or Battery Design Module, these shared physics nodes are
renamed as follows:
• The Line Mass Source node is available as two nodes, one for the fluid
flow (Fluid Line Source) and one for the species (Species Line Source).
• The Point Mass Source node is available as two nodes, one for the fluid
flow (Fluid Point Source) and one for the species (Species Point Source).
For optimal functionality, the exact weak formulations of and constants in the
streamline diffusion and crosswind diffusion methods depend on the order of the
shape functions (basis functions) for the elements. The values of constants in the
streamline diffusion and crosswind diffusion methods follow Ref. 5 and Ref. 6.
The governing equations for incompressible flow are subject to the Babuška–Brezzi
condition, which states that the shape functions (basis functions) for pressure must be
of lower order than the shape functions for velocity. If the incompressible Navier–
Stokes equations are stabilized by streamline diffusion, it is possible to use equal-order
interpolation. Hence, streamline diffusion is necessary when using first-order elements
for both velocity and pressure. This applies also if the model is solved using geometric
multigrid (either as a solver or as a preconditioner) and at least one multigrid hierarchy
level uses linear Lagrange elements.
CROSSWIND DIFFUSION
Crosswind diffusion can also be formulated for systems of equations, and when applied
to the Navier–Stokes equations it becomes a shock-capturing operator. COMSOL
Multiphysics supports the formulation in Ref. 9 with a shock-capturing viscosity of the
Hughes–Mallet type Ref. 8.
Incompressible flows do not contain shock waves, but crosswind diffusion is still useful
for introducing extra diffusion in sharp boundary layers and shear layers that otherwise
would require a very fine mesh to resolve.
THEORY FOR THE LAMINAR FLOW AND CREEPING FLOW INTERFACES | 441
time-scale tensor with measures of type 1 t̃ 2 –1 , which are calculated from
projections of weak expressions in a fashion similar to those in Ref. 11. These measures
of the time scale are used when Use dynamic subgrid time scale is activated.
The Limit small time steps effect on stabilization time scale option can be used to ramp
down the time-step contribution in the stabilization when the time step becomes much
smaller than the convective and diffusive time scales. This option prevents loss of
pressure stabilization at such small time steps.
ISOTROPIC DIFFUSION
Isotropic diffusion adds diffusion to the Navier–Stokes equations. Isotropic diffusion
significantly reduces the accuracy of the solution but does a very good job at reducing
oscillations. The stability of the continuity equation is not improved.
NONLINEAR SOLVER
The nonlinear solver method depends on if the model solves a stationary or a
time-dependent problem.
Stationary Solver
In the stationary case, a fully coupled, damped Newton method is applied. The initial
damping factor is low since a full Newton step can be harmful unless the initial values
are close to the final solution. The nonlinear solver algorithm automatically regulates
the damping factor in order to reach a converged solution.
For advanced models, the automatically damped Newton method might not be robust
enough. A pseudo time-stepping algorithm can then be invoked. See Pseudo Time
Stepping for Laminar Flow Models.
It is seldom worth the extra computational cost to update the Jacobian more than once
per time step. For most models it is more efficient to restrict the maximum time step
or possibly lower the damping factor in the Newton method.
LINEAR SOLVER
The linearized Navier–Stokes equation system has saddle point character, unless the
density depends on the pressure. This means that the Jacobian matrix has zeros on the
diagonal. Even when the density depends on the pressure, the equation system
effectively shares many numerical properties with a saddle point system.
For small 2D and 3D models, the default solver suggestion is a direct solver. Direct
solvers can handle most nonsingular systems and are very robust and also very fast for
small models. Unfortunately, they become slow for large models and their memory
requirement scales as somewhere between N1.5 and N2, where N is the number of
degrees of freedom in the model. The default suggestion for large 2D and 3D models
is therefore the iterative GMRES solver. The memory requirement for an iterative
solver optimally scales as N.
Multigrid methods need smoothers, but the saddle point character of the linear system
restricts the number of applicable smoothers. The choices are further restricted by the
anisotropic meshes frequently encountered in fluid-flow problems. The efficiency of
the smoothers is highly dependent on the numerical stabilization. Iterative solvers
THEORY FOR THE LAMINAR FLOW AND CREEPING FLOW INTERFACES | 443
perform at their best when both Streamline Diffusion and Crosswind Diffusion are
active.
The default smoother for P1+P1 elements is SCGS. This is an efficient and robust
smoother specially designed to solve saddle point systems on meshes that contain
anisotropic elements. The SCGS smoother works well even without crosswind
diffusion. SCGS can sometimes work for higher-order elements, especially if Method in
the SCGS settings is set to Mesh element lines. But there is no guarantee for this, so the
default smoother for higher order elements is an SOR Line smoother. SOR Line
handles mesh anisotropy but does not formally address the saddle point character. It
does, however, function in practice provided that streamline diffusion and crosswind
diffusion are both active.
A different kind of saddle point character can arise if the equation system contains
ODE variables. Some advanced boundary conditions can add equations with such
variables. These variables must be treated with the Vanka algorithm. SCGS includes an
option to invoke Vanka. Models with higher-order elements must apply SCGS or use
the Vanka smoother. The latter is the default suggestion for higher-order elements, but
it does not work optimally for anisotropic meshes.
TIME-DEPENDENT SOLVERS
The default time-dependent solver for Navier–Stokes is the BDF method with
maximum order set to two. Higher BDF orders are not stable for transport problems
in general nor for Navier–Stokes in particular.
BDF methods have been used for a long time and are known for their stability.
However, they can have severe damping effects, especially the lower-order methods.
Hence, if robustness is not an issue, a model can benefit from using the generalized-
method instead. Generalized- is a solver that has properties similar to those of the
second-order BDF solver but it is much less diffusive.
Both BDF and generalized- are per default set to automatically adjust the time step.
While this works well for many models, extra efficiency and accuracy can often be
gained by specifying a maximum time step. It is also often beneficial to specify an initial
time step to make the solver progress smoothly in the beginning of the time series.
• Time-Dependent Solver
• Multigrid, Direct, Iterative, SCGS, SOR Line, and Vanka
• Stationary Solver
T
u u = – pI + u + u + F (6-47)
Solving Equation 6-47 requires a starting guess that is close enough to the final
solution. If no such guess is at hand, the fully transient problem can be solved instead.
This is, however, a rather costly approach in terms of computational time. An
intermediate approach is to add a fictitious time derivative to Equation 6-47:
u – nojac u T
------------------------------- + u u = – pI + u + u + F
t̃
where t̃ is a pseudo time step. Since unojac(u) is always zero, this term does not
affect the final solution. It does, however, affect the discrete equation system and
effectively transforms a nonlinear iteration into a step of size t̃ of a time-dependent
solver.
Pseudo time stepping is not active per default. The pseudo time step t̃ can be chosen
individually for each element based on the local CFL number:
h
t̃ = CFL loc ------
u
where h is the mesh cell size. A small CFL number means a small time step. It is
practical to start with a small CFL number and gradually increase it as the solution
approaches steady state.
If the automatic expression for CFLloc is set to the built-in variable CFLCMP, then the
automatic setting suggests a PID regulator for the pseudo time step in the default
solver. The PID regulator starts with a small CFL number and increases CFLloc as the
solution comes closer to convergence.
The variable niterCMP is the nonlinear iteration number. It is equal to one for the first
nonlinear iteration. CFLloc starts at 1.3 and increases by 30% each iteration until it
THEORY FOR THE LAMINAR FLOW AND CREEPING FLOW INTERFACES | 445
reaches 1.39 10.6. It remains there until iteration number 20 at which it starts to
increase until it reaches approximately 106. A final increase after iteration number 40
then takes it to 1060. Equation 6-48 can, for some advanced flows, increase CFLloc
too slowly or too quickly. CFLloc can then be tuned for the specific application.
For details about the CFL regulator, see Pseudo Time Stepping.
Nitsche Constraints
Some boundary conditions are implemented using Nitsche constraints. These
boundary conditions include
• Wall — Slip, sliding walls, and moving walls (that is, walls with nonzero
translational velocity).
• Periodic Flow Condition
• Flow Continuity
The formulation used in the Fluid Flow interfaces in single-phase flow interfaces
corresponds to the Symmetric Interior Penalty Galerkin method (SIPG). The SIPG
method can be regarded to satisfy the boundary conditions in an integral sense rather
than pointwise. More information on SIPG can be found in Ref. 15.
In particular, the SIPG formulation includes a penalty parameter that must be large
enough for the formulation to be coercive. The higher the value, the better the
boundary condition is fulfilled, but a too high value results in an ill-conditioned
equation system. The penalty parameter is implemented according to Ref. 16.
It is possible to model particle tracing with COMSOL Multiphysics provided that the
impact of the particles on the flow field is negligible. First compute the flow field, and
then, as an analysis step, calculate the motion of the particles. The motion of a particle
is defined by Newton’s second law
where x is the position of the particle, m the particle mass, and F is the sum of all forces
acting on the particle. Examples of forces acting on a particle in a fluid are the drag
force, the buoyancy force, and the gravity force. The drag force represents the force
that a fluid exerts on a particle due to a difference in velocity between the fluid and the
particle. It includes the viscous drag, the added mass, and the Basset history term.
Several empirical expressions have been suggested for the drag force. One of those is
the one proposed by Khan and Richardson (Ref. 13). That expression is valid for
spherical particles for a wide range of particle Reynolds numbers. The particle
Reynolds number is defined as
u – u p 2r
Re p = ----------------------------
where u is the velocity of the fluid, up the particle velocity, r the particle radius, the
fluid density, and the dynamic viscosity of the fluid. The empirical expression for the
drag force according to Khan and Richardson is
2 -0.31 3.45
F = r u – u p u – u p 1.84Re p + 0.293Re p0.06
2. P.M. Gresho and R.L. Sani, Incompressible Flow and the Finite Element Method,
Volume 2: Isothermal Laminar Flow, John Wiley & Sons, 2000.
4. R.L. Panton, Incompressible Flow, 2nd ed., John Wiley & Sons, 1996.
THEORY FOR THE LAMINAR FLOW AND CREEPING FLOW INTERFACES | 447
5. I. Harari and T.J.R. Hughes, “What are C and h? Inequalities for the Analysis and
Design of Finite Element Methods,” Comput. Methods Appl. Mech. Eng., vol. 97,
pp. 157–192, 1992.
6. Y. Bazilevs, V.M. Calo, T.E. Tezduyar, and T.J.R. Hughes, “YZ Discontinuity
Capturing for Advection-dominated Processes with Application to Arterial Drug
Delivery,” Int. J. Num. Meth. Fluids, vol. 54, pp. 593–608, 2007.
7. R.B. Bird, W.E. Stewart, and E.N. Lightfoot, Transport Phenomena, 2nd ed., John
Wiley & Sons, 2007.
11. M.-C. Hsu, Y. Bazilevs, V.M. Cali, T.E. Tezduyar, and T.J.R. Hughes, “Improving
stability of stabilized and multiscale formulations in flow simulations at small time
steps,” Comput. Methods Appl. Mech. Eng., vol. 199, pp. 828–840, 2010.
12. D.J. Tritton, Physical Fluid Dynamics, 2nd ed., Oxford University Press, 1988.
13. J.M. Coulson and J.F. Richardson, “Particle Technology and Separation
Processes,” Chemical Engineering, Volume 2, Butterworth-Heinemann, 2002.
14. J.L. Guermond, P. Minev, and J. Shen, “An overview of projection methods for
incompressible flows,” Comput. Methods Appl. Mech. Eng., vol. 195, pp. 6011–
6045, 2006.
15. B. Rivière, Discontinuous Galerkin Methods for Solving Elliptic and Parabolic
Equations, SIAM, 2008.
18. Y. Bazilevs and T.J.R. Hughes, “Weak imposition of Dirichlet boundary conditions
in fluid mechanics,” Comput. Fluids, vol. 36, pp. 12–26, 2007.
THEORY FOR THE LAMINAR FLOW AND CREEPING FLOW INTERFACES | 449
Theory for the Darcy’s Law Interface
The Darcy’s Law Interface theory is described in this section:
Darcy’s law describes flow in porous media driven by gradients in the hydraulic
potential field, which has units of pressure. For many applications it is convenient to
represent the total hydraulic potential or the pressure and the gravitational
components with equivalent heights of fluid or head. Division of potential by the fluid
weight can simplify modeling because units of length make it straightforward to
compare to many physical data. Consider, for example, fluid levels in wells, stream
heights, topography, and velocities. The physics interface also supports specifying
u = – --- p (6-49)
In this equation, u is the Darcy’s velocity or specific discharge vector (SI unit: m/s);
is the permeability of the porous medium (SI unit: m2); is the fluid’s dynamic
viscosity (SI unit: Pa·s); p is the pore pressure (SI unit: Pa) and is the density of the
fluid (SI unit: kg/m3).
The Darcy’s Law interface combines Darcy’s law with the continuity equation
p + u = Q m (6-50)
t
In the above equation, is the fluid density (SI unit: kg/m3), p is the porosity, and
Qm is a mass source term (SI unit: kg/(m3·s)). Porosity is defined as the fraction of
the control volume that is occupied by pores. Thus, the porosity can vary from zero
for pure solid regions to unity for domains of free flow.
For large-scale applications it might be necessary to take gravity effects into account.
Darcy’s law then applies when the gradient in hydraulic potential drives fluid
movement in the porous medium. Darcy’s law then has the form:
• See the section Gravity Effects in the Subsurface Flow Module User’s
Guide.
• Note that gravity effects are only included in some modules. For a
detailed overview of the functionality available in each product visit
[Link]
• Gravity effects are not active by default. Select the checkbox Include
gravity to activate the acceleration of gravity. Setting the elevation D to
zero also turns off gravity effects.
Storage Models
The continuity equation (Equation 6-50) allows flexible specification of relationships
between parameters like density or permeability with respect to variables such as
pressure, temperature, concentration, and more.
Expanding the time-derivative term and defining the porosity and density as functions
of the pressure and using the chain rule results in
= -----
- p - -----
p- p p
p t + t = p p t + p t
-------- ----- -------- ------
t p
p p p
---------------- = p f + -------p- ------ = S p ------
t p t t
Using this relation, the generalized governing equation (Equation 6-50) takes the
following form:
p
S p ------ + u = Q m (6-52)
t
In this equation, Sp is the storage coefficient (SI unit: 1/Pa), which can be interpreted
as the weighted compressibility of the porous material and the fluid. The storage can
be an expression involving results from a solid-deformation equation or an expression
involving temperatures and concentrations from other analyses. The Darcy’s Law
• From density and porosity, where the storage directly depends on changes in porosity
or fluid density
• Linearized storage, which defines Sp using the compressibility of the fluid f and of
the porous matrix p according to
S p = p f + 1 – p p
Storage models are only available for the Subsurface Flow Module and
the Porous Media Flow Module. For a detailed overview of the
functionality available in each product visit [Link]
products/specifications/.
The term Qip describes the mass source from the Interporosity Flow which is the mass
transfer from the macropores to the micropores system. An additional ODE for the
(passive) micropores is solved which only act as additional storage volume:
p m
1 – M S p,m ---------- = 1 – M Q M + Q ip .
t
M p,M + u M = – Q ip + M Q m
t
(6-54)
1 – M p,m + u m = Q ip + 1 – M Q m
t
p = M p M + 1 – M p m
M is the volume fraction of the macropores, Qip denotes the interporosity flow,
signifying the mass transfer from the macropores (identified by index M) to the
micropores (identified by index m).
Solving Darcy’s law for both systems entails solving two equations, each associated
with dependent pressure variables pm and pM. These equations are coupled via Qip.
From this, average quantities for the dual permeability medium as a whole are
computed. The average pressure of the dual permeability medium is defined as:
p = M p M + 1 – M p m
Likewise, average values for permeability, storage, velocity and other relevant
parameters are computed.
M is the volume fraction of the macropores, Qip is the interporosity flow which is the
mass transfer from the macroscale to the microscale system. The indices M and m stand
for macropores and micropores, respectively.
INTERPOROSITY FLOW
Specify the Fluid Transfer Function w which is used to calculate the interporosity flow,
which is the mass exchange between macro- and microscale system:
Q ip = w p M – p m (6-56)
with pM being the pressure within the macroscale system and pm the pressure within
the microscale system
6. Ö. Akgiray and A.M. Saatçı, “A New Look at Filter Backwash Hydraulics,” Water
Sci. Technol. Water Supply, vol. 1, no. 2, pp. 65–72, 2001.
8. Yu-Shu Wu and others, “Gas Flow in Porous Media with Klinkenberg Effects,”
Transp. Porous Media, vol. 32, pp. 117–137, 1998.
The same fields, u and p, are solved for in both the free flow domains and in the porous
domains. This means that the pressure in the free fluid and the pressure in the pores is
continuous over the interface between a free flow domain and a porous domain. It also
means that continuity is enforced between the fluid velocity in the free flow and the
Darcy velocity in the porous domain. This treatment is one of several possible models
for the physics at the interface. Examples of other models can be found in Ref. 1.
Reference for the Free and Porous Media Flow, Brinkman Interface
1. M.L. Bars and M.G. Worster, “Interfacial Conditions Between a Pure Fluid and a
Porous Medium: Implications for Binary Alloy Solidification,” J. Fluid Mech.,
vol. 550, pp. 149–173, 2006.
THEORY FOR THE FREE AND POROUS MEDIA FLOW, BRINKMAN INTERFACE | 457
Theory for the Free and Porous
Media Flow, Darcy Interface
The Free and Porous Media Flow, Darcy interface uses the Navier–Stokes equations to
describe the flow in the free-flow region, implemented by the coupled Laminar Flow
interface, and Darcy’s law, implemented by the coupled Darcy’s Law interface, to
describe the flow in the porous region.
In the free-flow region, the velocity u and pressure p are solved for, whereas in the
porous region only the pressure p is solved for, and the velocity is calculated from the
pressure by Darcy’s law.
The coupling between the free and porous medium flow, implemented by the Free and
Porous Media Flow Coupling, ensures conservation of mass across the free-porous
interface, which is enforced by the condition
n ns u ns = n d u d (6-57)
Here ns and uns are the density and velocity on the free-flow side of the interface, d
and ud the density and velocity on the porous side, and n is a vector normal to the
interface. In addition the coupling enforces the balance of the normal forces by:
p ns – n Kn = p d (6-58)
where pns and pd are the pressure on the free-flow side and porous side of the
interface, respectively, and K is the viscous stress tensor (defined only on the free-flow
side).
For the coupling condition for the tangential velocity component, there are several
options. One of the most widely used conditions is the Beavers-Joseph interface
condition (Ref. 1):
tr n
I – n n u ns – u d = ------------------------ I – n n Kn (6-59)
ns BJ
where aBJ is the Beavers and Joseph parameter, is the permeability tensor of the
porous medium (defined on the porous side of the interface), ns is the fluid’s dynamic
viscosity on the free-flow side of the interface, and n is the number of space
dimensions.
tr n
I – n n u ns = ------------------------ I – n n Kn (6-60)
ns BJ
For cases when the permeability tensor is not isotropic, the Use projected permeability
option allows to take into account only the permeability in the direction of the
tangential velocity component. This is accomplished by replacing the tr n term
on the rights hand side of Equation 6-59 and Equation 6-60 by:
t t (6-61)
with t a unit vector tangent to the interface for 2D and 2D-axisymmetric cases, and for
3D cases by:
v v (6-62)
I – n n Kn -
v = ------------------------------------------ (6-63)
I – n n Kn
If one considers the limit of the Beavers–Joseph condition for large values of the
Beavers and Joseph parameter aBJ, one obtains the Continuous tangential velocity
condition:
I – n n u ns – u d = 0 (6-64)
The same limit for the Beavers–Joseph–Saffman condition results in the No slip
condition:
I – n n u ns = 0 (6-65)
The Viscous slip condition allows for a more general coupling condition. This interface
condition is given by:
Ls
I – n n u ns – u b = --------- I – n n Kn (6-66)
ns
THEORY FOR THE FREE AND POROUS MEDIA FLOW, DARCY INTERFACE | 459
Here Ls is a slip length, and ub a user-defined interfacial velocity.
References
1. G.S. Beavers and D.D. Joseph, “Boundary Conditions at a Naturally Permeable
Wall,” J. Fluid Mech., vol. 30, 1967.
2. P.G. Saffman, “On the Boundary Condition at the Surface of a Porous Medium,”
Stud. Appl. Math., vol. 50, no. 2, pp. 93–101, 1971.
Porosity is defined as the fraction of the control volume that is occupied by pores.
Thus, the porosity can vary from zero for pure solid regions to unity for domains of
free flow.
The physical properties of the fluid, such as density and viscosity, are defined as
intrinsic volume averages that correspond to a unit volume of the pores. Defined this
way, they present the relevant physical parameters that can be measured experimentally,
and they are assumed to be continuous with the corresponding parameters in the
adjacent free flow.
- u
+ u ----- =
u
----
p t p
(6-68)
1 T 2 Q m
– p + ----- u + u – --- u I – – 1 + -------- u+F
p 3 p2
In these equations:
Influence of gravity and other volume forces can be accounted for via the force term
F (SI unit: kg/(m2·s2)).
When the Neglect inertial term (Stokes flow) checkbox is selected, the term (u · u
p) on the left-hand side of Equation 6-68 is disabled.
The mass source, Qm, accounts for mass deposit and mass creation within the domains.
The mass exchange is assumed to occur at zero velocity.
The Forchheimer and Ergun drag options add a viscous force proportional to the
square of the fluid velocity, F uu, on the right-hand side of Equation 6-68; see
References for the Darcy’s Law Interface for details.
In case of a flow with variable density, Equation 6-67 and Equation 6-68 must be
solved together with the equation of state that relates the density to the temperature
and pressure (for instance the ideal gas law).
For incompressible flow, the density stays constant in any fluid particle, which can be
expressed as
+ u = 0
t p
u = Q m
2. M. Le Bars and M.G. Worster, “Interfacial Conditions Between a Pure Fluid and a
Porous Medium: Implications for Binary Alloy Solidification,” J. Fluid Mech.,
vol. 550, pp. 149–173, 2006.
1
u n = ---
ni n (6-69)
i
where (SI unit: kg/m3) is the density of the flowing media, n the surface normal and
ni is the mass flux of species i.
For flow interfaces solving for the velocity field, no-slip conditions are applied at the
electrode surface, resulting in
1
u = – ---
Mi Ni n (6-70)
i
where Mi (SI unit: kg/mol) is the species mass and Ni (SI unit: mol/(m2·s)) the molar
flux calculated by Faraday’s law.
For a porous electrode the sum of all mass fluxes are added to the conservation
equation according to:
------ + u =
t Ri mass (6-71)
i
Note that because the mass is usually not conserved within the species transporting
phase (the right-hand side above being nonzero), the velocity field is not divergence
free.
Heat Transfer
465
466 | CHAPTER 7: HEAT TRANSFER
| 467
468 | CHAPTER 7: HEAT TRANSFER
8
This chapter describes the Level Set and Phase Field in Fluids interfaces, found
under the Mathematics > Moving Interface branch ( ).
In this chapter:
469
T he L e v e l S e t In t erface
In this section:
The main node is the Level Set Model feature, which adds the level set equation and
provides an interface for defining the level set properties and the velocity field.
When this physics interface is added, the following default nodes are also added in the
Model Builder — Level Set Model, No Flow (the default boundary condition), Initial
Values, and Initial Values, Fluid 2. Then, from the Physics toolbar, add other nodes that
implement, for example, boundary conditions. You can also right-click Level Set to
select physics features from the context menu.
SETTINGS
The Label is the default physics interface name.
The Name is used primarily as a scope prefix for variables defined by the physics
interface. Refer to such physics interface variables in expressions using the pattern
<name>.<variable_name>. In order to distinguish between variables belonging to
different physics interfaces, the name string must be unique. Only letters, numbers, and
underscores (_) are permitted in the Name field. The first character must be a letter.
The default Name (for the first physics interface in the model) is ls.
STABILIZATION
To display this sections, click the Show More Options button ( ) and select
Stabilization in the Show More Options dialog.
ADVANCED SETTINGS
To display this sections, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog.
DISCRETIZATION
By default, the Level Set interface uses Linear elements.
DEPENDENT VARIABLES
The dependent variable (field variable) is the Level set variable phi. The name can be
changed but the names of fields and dependent variables must be unique within a
model.
The main node is the Porous Medium Level Set Model feature, which adds the level
set equation and provides interfaces for defining the level set properties, the velocity
field and the porosity of the porous matrix.
When this physics interface is added, the following default nodes are also added in the
Model Builder — Porous Medium, No Flow (the default boundary condition), Initial
Values, and Initial Values, Fluid 2. Then, from the Physics toolbar, add other nodes that
SETTINGS
The rest of the settings are the same as for the Level Set interface.
Domain, Boundary, and Pair Nodes for the Level Set Interface
The Level Set Interface has the following domain, boundary, and pair nodes described.
Boundary conditions for axial symmetry boundaries are not required. For
the symmetry axis at r0, the software automatically provides a suitable
boundary condition and adds an Axial Symmetry node that is valid on the
axial symmetry boundaries only.
In the COMSOL Multiphysics Reference Manual see Table 2-4 for links
to common sections and Table 2-5 to common feature nodes. You can
also search for information: press F1 to open the Help window or Ctrl+F1
to open the Documentation window.
If it is a domain subfeature under the Porous Medium domain feature, it adds the
following equation:
p + u = ls – 1 – ----------
t
In both cases, the Level Set Model node provides the options to define the associated
level set parameters and the velocity field.
Enter a value or expression for the Parameter controlling interface thickness ls
(SI unit: m). The default expression is ls.ep_default, a value proportional to the
maximum element size with a proportionality factor dependent on the ratio of the
maximum and minimum element sizes in the domain.
CONVECTION
Enter values or expressions for the components (u, v, and w in 3D, for example) of the
Velocity field u (SI unit: m/s). The applied velocity field transports the level set
function through convection.
Porous Medium
The Porous Medium node adds the level set equation. It has two default subfeatures —
the Level Set Model feature where the reinitialization parameter (SI unit: m/s) and
the parameter controlling the interface thickness ls (SI unit: m) are defined, and the
Porous Matrix feature where the porosity p (dimensionless) is specified.
Porous Matrix
This node contains inputs for the material properties of the solid matrix of the Porous
Medium parent node.
Initial Values
Use the Initial Values node to define the initial values of the level set variable.
INITIAL VALUES
The initial positions of the two fluids, and consequently the separating interface, can
be specified in two ways. The level set function can be specified explicitly using any type
of variable or expression. Alternatively, the fluid occupying the current domain
selection can be specified. Using the former method, a Time Dependent study step can
directly be solved. Using the latter method, a Phase Initialization study step is needed
in order to initialize the level set function across the fluid-fluid interface.
• To specify the fluid occupying the domain, select Specify phase (default). Then select
the checkbox Fluid 1 ( 0) or Fluid 2 ( 1).
• For User defined enter a value or expression for the level set variable .
Inlet
• Fluid 1 ( 0)
When the Specify level set function explicitly is selected, the level set function must be
specified explicitly. The value must be in the range from 0 to 1, where the default is 0.
No Flow
The No Flow node adds a boundary condition that represents boundaries where there
is no flow across the boundary. This is the default boundary condition.
Open Boundary
Use this node to set up transport across boundaries where both convective inflow and
outflow can occur. On the parts of the boundary where fluid flows into the domain,
an exterior value of the level set function is prescribed. On the remaining parts, where
fluid flows out of the domain, a condition equivalent to the Outflow node is instead
prescribed.
The direction of the flow across the boundary is typically calculated by a fluid flow
interface and is provided as a model input to the Level Set interface.
• Fluid 1 ( 0)
• Fluid 2 ( 1)
• Specify level set function explicitly
When the Specify level set function explicitly is selected, the level set function must be
specified explicitly. The value must be in the range from 0 to 1, where the default is 0.
Thin Barrier
The Thin Barrier feature is available on interior boundaries and introduces a
discontinuity in the level set variable across the boundary. A No Flow condition is
prescribed on each side. This node can be used to avoid meshing thin structures.
The parts of the boundary where a source boundary lacks a corresponding destination
boundary and vice versa will get conditions from other boundary conditions under the
physics interface acting as fallback boundary conditions on the nonoverlapping parts.
By default, the No Flow node is used as fallback unless another feature has been
selected for the boundary.
About Pairs
Ribbon
Physics tab with the physics interface selected:
The main node is the Phase Field Model feature, which adds the phase field equations
and provides an interface for defining the phase field model properties.
When this physics interface is added, the following default nodes are also added in the
Model Builder — Phase Field Model, Wetted Wall (the default boundary condition), Initial
Values, and Initial Values, Fluid 2. Then, from the Physics toolbar, add other nodes that
implement, for example, boundary conditions. You can also right-click Phase Field in
Fluids to select physics features from the context menu.
SETTINGS
The Label is the default physics interface name.
The Name is used primarily as a scope prefix for variables defined by the physics
interface. Refer to such physics interface variables in expressions using the pattern
<name>.<variable_name>. In order to distinguish between variables belonging to
different physics interfaces, the name string must be unique. Only letters, numbers, and
underscores (_) are permitted in the Name field. The first character must be a letter.
The default Name (for the first physics interface in the model) is pf.
ADVANCED SETTINGS
To display this sections, click the Show More Options button ( ) and select Advanced
settings options in the Show More Options dialog.
DISCRETIZATION
By default, the Phase Field in Fluids interface uses Linear elements.
Domain, Boundary, and Pair Nodes for the Phase Field in Fluids
Interface
includes the following domain, boundary, and pair nodes, listed in alphabetical order,
available from the Physics ribbon toolbar (Windows users), Physics context menu (Mac
or Linux users), or right-click to access the context menu (all users).
In the COMSOL Multiphysics Reference Manual see Table 2-4 for links
to common sections and Table 2-5 to common feature nodes. You can
also search for information: press F1 to open the Help window or Ctrl+F1
to open the Documentation window.
Uh max
= -----------------
-
3 2
2
f
= – + – 1 + -----
2 2
CONVECTION
Enter values or expressions for the components (u, v, and w in 3D, for example) of the
Velocity field u (SI unit: m/s). The applied velocity field transports the phase field
variables through convection.
Initial Values
Use the Initial Values node to define the initial values of the phase field variable.
INITIAL VALUES
The initial positions of the two fluids, and consequently the fluid-fluid interface, can
be specified in two ways. The phase field variable can be specified explicitly, using any
type of variable or expression. Alternatively the fluid occupying the current domain
selection can be specified. Using the former method, a Time Dependent study step can
directly be solved. Using the latter method, a Phase Initialization study step is needed
in order to initialize the phase field function across the fluid-fluid interface.
• To specify the fluid occupying the domain, select Specify phase (default). Then select
the checkbox Fluid 1 ( 1) or Fluid 2 ( 1).
• For User defined enter a value or expression for the phase field variable .
SETTINGS
Specify Phase field Condition according to one of the following options:
• Fluid 1 ( 1)
• Fluid 2 ( 1)
• Specify phase field function explicitly
When Specify phase field function explicitly is selected, the phase field function must
be specified in the entire domain. The value must be in the range from 1 to 1, where
the default is 1.
Wetted Wall
The Wetted Wall node is the default boundary condition representing wetted walls.
Along a wetted wall the contact angle for the fluid, w, is specified, and across it, the
mass flow is zero. This is prescribed by
2 2
n = cos w
in combination with
n -----2- = 0
The contact angle w can be defined directly or from Young’s equation, which
considers the components of the forces in the plane of the surface:
cos w + s2 = s1 (8-1)
where s1 is the surface energy density on the fluid 1 — solid (wall) interface and s2
is the surface energy density on the fluid 2 — solid (wall) interface.
WETTED WALL
Select an option from the Specify contact angle list — Directly (the default) or Through
Young’s equation. For Directly enter a value or expression for the Contact angle w (SI
unit: rad). The default value is /2 radians. For Through Young’s equation enter values
or expressions for Phase 1-Solid surface energy density s1 (SI unit: J/m2) and
Phase 2-Solid surface energy density s2 (SI unit: J/m2).
Along an interior wetted wall the contact angle for the fluid, w, is specified on both
sides of the boundary, and across it, the mass flow is zero.
WETTED WALL
Enter a value or expression for the Contact angle w. The default value is 2 rad.
Continuity
The Continuity condition is suitable for pairs where the boundaries match; it prescribes
that the phase field variables are continuous across the pair.
The parts of the boundary where a source boundary lacks a corresponding destination
boundary and vice versa will get conditions from other boundary conditions under the
physics interface acting as fallback boundary conditions on the nonoverlapping parts.
By default, the Wetted Wall node is used as fallback unless another feature has been
selected for the boundary.
About Pairs
Ribbon
Physics tab with the physics interface selected:
In this section:
Figure 8-1: An example of two domains divided by an interface. In this case, one of the
domains consists of two parts. Figure 8-2 shows the corresponding level set representation.
Figure 8-2: A surface plot of the level set function corresponding to Figure 8-1.
The physics interface solves Equation 8-2 in order to move the interface with the
velocity field u:
+ u
= ls – 1 – ---------- (8-2)
t
The terms on the left-hand side give the correct motion of the interface, while those
on the right-hand side are necessary for numerical stability. The parameter, ls,
determines the thickness of the region where varies smoothly from zero to one and
is typically of the same order as the size of the elements of the mesh. By default, ls is
u = 0 (8-3)
the volume (area for 2D problems) bounded by the interface should be conserved if
there is no inflow or outflow through the boundaries. To obtain exact numerical
conservation in cases where Equation 8-3 is not fully satisfied, switch to the
conservative form
+ u
= ls – 1 – ---------- (8-4)
t
Using the conservative level set form, exact numerical conservation of the integral of
is obtained. However, the nonconservative form is better suited for numerical
calculations and usually converges more easily. The nonconservative form, which is the
default form, only conserves the integral of the level set function approximately, but
this level of conservation is sufficient for most applications.
u
+ pore = ls – 1 – ---------- (8-5)
t
Here upore is the pore velocity. Instead using the Darcy velocity u=upore/p,
multiplying the equation with the porosity p, and rescaling such that it again can be
p + u = ls – 1 – ---------- (8-6)
t
This is the nonconservative form of the level set equation that is solved in the Porous
Medium feature.
-
+ u = – 1 – --------- (8-7)
t p ls
The conservative form can be derived from the nonconservative form if it is assumed
that the velocity field u satisfies the following continuity equation:
p
+u = 0 (8-8)
t
1
0 = -------------------------
-
–D
1 + e wi
1 -
0 = -----------------------
D
1 + e wi
If the Transient with Phase Initialization ( ) study is being used, then, for
the initialization to work, it is crucial that there are two Initial Values
nodes. One of the Initial Values nodes should use Specify phase: Fluid 1
( 0) and the other Specify phase: Fluid 2 ( 1). The initial fluid-fluid
interface is then automatically placed on all interior boundaries between
both phases. The smooth initialization is not used in domains with User
defined initial values.
-
n = --------- (8-9)
= 0,5
This variable is available in the physics interface as the interface normal [Link].
The evolution of the phase field variable is governed by the Cahn–Hilliard equation,
which is a 4th-order PDE. The Phase Field in Fluids interface decomposes the Cahn–
Hilliard equation into two second-order PDEs.
For the level set method, the fluid interface is simply advected with the flow field. The
Cahn–Hilliard equation, on the other hand, does not only convect the fluid interface,
but it also ensures that the total energy of the system diminishes correctly. The phase
field method thus includes more physics than the level set method.
The free energy of a system of two immiscible fluids consists of mixing, bulk distortion,
and anchoring energy. For simple two-phase flows, only the mixing energy is retained,
which results in a rather simple expression for the free energy.
where is a measure of the interface thickness. Equation 8-10 describes the evolution
of the phase field parameter:
+ u f f tot
= tot – (8-10)
t
where ftot (SI unit: J/m3) is the total free energy density of the system, and u
(SI unit: m/s) is the velocity field for the advection. The right-hand side of
Equation 8-10 aims to minimize the total free energy with a relaxation time controlled
by the mobility (SI unit: m3·s/kg).
The free energy density of an isothermal mixture of two immiscible fluids is the sum
of the mixing energy and elastic energy. The mixing energy assumes the Ginzburg–
Landau form:
1 2 2 2
f mix = --- + --------2- – 1
2 4
where is the dimensionless phase field variable, defined such that the volume fraction
of the components of the fluid are (1+ )/2 and (1 )/2. The quantity (SI unit: N)
is the mixing energy density and (SI unit: m) is a capillary width that scales with the
thickness of the interface. These two parameters are related to the surface tension
coefficient, (SI unit: N/m), through the equation
2 2
= ----------- --- (8-11)
3
The PDE governing the phase field variable is the Cahn–Hilliard equation:
+ u = G
(8-12)
t
where G (SI unit: Pa) is the chemical potential and (SI unit: m3·s/kg) is the mobility.
The mobility determines the time scale of the Cahn–Hilliard diffusion and must be
large enough to retain a constant interfacial thickness but small enough so that the
convective terms are not overly damped. In COMSOL Multiphysics the mobility is
determined by a mobility tuning parameter that is a function of the interface thickness
2. The chemical potential is:
-
+ u = ----- (8-14)
t
2
2 2
= – + – 1 (8-15)
u = 0 (8-16)
the volume (area for 2D problems) bounded by the interface should be conserved if
there is no inflow or outflow through the boundaries. To obtain exact numerical
conservation in cases where Equation 8-16 is not fully satisfied, switch to the
conservative form
+ u
= -----2-
t
Using the conservative phase field form, exact numerical conservation of the integral
of is obtained. However, the nonconservative form is better suited for numerical
calculations and usually converges more easily. The nonconservative form, which is the
default form, only conserves the integral of the phase field function approximately, but
this is sufficient for most applications.
When the Phase Field in Fluids interface is coupled to a fluid flow interface by means
of , conservation of the integral of using the nonconservative form can be improved
provided that the discretization order of the phase field variables is equal to or lower
than the order of the pressure.
2
f
= – + – 1 + -----
2 2
(8-17)
D wi
0 = – tanh ----------
2
in Fluid 1 and
D wi
0 = tanh ----------
2
If the Transient with Phase Initialization ( ) study is being used, for the
initialization to work it is crucial that there are two Initial Values nodes.
One of the Initial Values nodes is set to Specify phase: Fluid 1 ( 1) and
the other to Specify phase: Fluid 2 ( 1). The initial fluid-fluid interface
is then automatically placed on all interior boundaries between both
phases. The smooth initialization is not used in domains with User defined
initial values.
-
G = ------
2
Geometric properties of the interface are often needed. The unit normal to the
interface is given by
-
n = --------- (8-18)
= 0,5
This variable is available in the physics interface as the interface normal [Link].
The mean curvature (SI unit: 1/m) of the interface can be computed by entering the
following expression:
G
= 2 1 + 1 – ----
When a predefined multiphysics interface is added from the Model Wizard or Add
Physics windows, it adds the constituent interfaces and the Multiphysics Couplings
node, which automatically includes one or more multiphysics couplings.
If the constituent physics interfaces are added one at a time, then it adds an empty
Multiphysics Couplings node. When you right-click this node, you can choose from
the available multiphysics couplings.
495
In this chapter, the following multiphysics couplings nodes are described:
• Potential Coupling
Special conditions for the tangential velocity at points (2D) and edges (3D) shared
with nondeforming surfaces apply, as described in the theory section.
The node, available as a multiphysics coupling node, is only applicable when both the
Electrochemistry interface (Primary/Secondary/Tertiary Current Distribution or
Lithium-Ion Battery or Battery with Binary Electrolyte) and a Deformed Geometry
node are added to a component.
The following settings are recommended in the Deformed Geometry interface if you
are manually setting up the coupling between a Deformed Geometry interface and an
• At the Deformed Geometry interface node, change the Geometry shape order to 1
and Mesh smoothing type to Hyperelastic
• Clear all the checkboxes at the default Prescribed Mesh Displacement boundary
feature node
• Add Free Deformation domain node and make sure it is selected on the deforming
domains of the geometry
Nondeforming Boundary
Use the Nondeforming Boundary multiphysics coupling to define boundaries that do not
undergo deformation in the normal direction.
The node, available as a multiphysics coupling node, is only applicable when both the
Electrochemistry interface (Primary/Secondary/Tertiary Current Distribution or
Lithium-Ion Battery or Battery with Binary Electrolyte) and a Deformed Geometry
node are added to a component.
As a rule of thumb: use Zero normal displacement for planar boundaries and Zero normal
velocity for curved boundaries.
For 3D components, and when Zero normal displacement is selected, the deformation
may be further stabilized by enabling the Allow deformation along specified line only.
The specified line must be parallel to the boundary in the nondeformed geometry.
| 497
Electrochemical Heating
Use the Electrochemical Heating multiphysics coupling ( ) to define domain and
boundary heat sources in a heat transfer interface, based on the sum of irreversible
(Joule heating and activation losses) and reversible heat in an electrochemistry
interface. The node also defines the temperature in the electrochemistry interface to
be equal to that of the heat transfer interface.
The settings of this node are similar to the Electromagnetic Heating node, described
in the COMSOL Multiphysics Reference Manual.
Potential Coupling
The Potential Coupling multiphysics coupling ( ) applies the electrolyte potential
variable from the source interface into the model inputs of the destination interface.
The potential variable is typically used to compute the migration flux in the destination
interface.
COUPLED INTERFACES
Specify the physics interface that provides the potential (Electrostatics, for instance) in
the Source list and the Chemical Species Transport interface in the Destination list.
COUPLED INTERFACES
Specify the Chemical Species Transport interface in the Source list and the
Electrostatics interface in the Destination list.
COUPLED INTERFACES
Specify the FEM interface in the Source list and the BEM interface in the Destination
list.
| 499
500 | CHAPTER 9: MULTIPHYSICS COUPLING NODES
10
Glossary
501
Glossary of Terms
anode An electrode where oxidation occurs. Anodic charge transfer current densities
and overpotentials are positive by definition.
current feeder A part of an electrochemical device with high electric conductivity for
conducting current into the cell. See also current collector.
diluted electrolyte An electrolyte where the charged species are diluted in a solvent so
that the interaction between the ions can be neglected. See also concentrated
electrolyte.
electric potential The potential in the electrode (electron conducting) phase, denoted
s (phis).
electrolyte potential The potential in the electrolyte (ionic) phase, denoted l (phil).
electroneutrality A situation where the net charge of any small control volume of a
domain is zero. Electroneutrality can usually be assumed for electrolytes, with an
exception for the very proximity of the electrolyte-electrode interface, which is due to
the charge separation within the electrochemical double layer.
equilibrium potential The potential difference between the electrode and electrolyte
at which the net current density of an electrode reaction is zero.
gas diffusion electrode (GDE) A porous electrode that also includes gas pores in the
porous matrix.
Gibbs free energy A thermodynamic potential that depends on the enthalpy and
entropy of the reacting species.
intrinsic volume averages The physical properties of the fluid, such as density,
viscosity, and pressure.
intercalation The process of ions reacting on the surface of a host particle to form a
solid, intercalated, species within the host. The intercalated species can then be
transported further into the particle by diffusion processes.
migration The transport of charged species in an electrolyte due to the electric force
imposed by the electric field.
Poisson’s equation An equation for relating the electric field to the space charge
density. Can be modeled in COMSOL using the Electrostatics interface.
pore electrolyte An electrolyte in the pores of a porous matrix. See porous electrode.
porous electrode A porous matrix containing both electron conducting and ion
conducting media.
potentiostat A device that monitors and controls the potential of an electrode versus
a reference electrode.
reference electrode An electrode used for reference when defining the potentials of
the electrodes in a cell. A good reference electrode is stable and does not vary in
potential. Typically no net reactions occur at a reference electrode surface, and the net
current density is zero.
superficial volume averages The flow velocities, which correspond to a unit volume of
the medium including both pores and matrix. These are sometimes called
Darcy velocities, defined as volume flow rates per unit cross section of the medium.
surface molar flux The tangential flux in the surface dimension as governed by
diffusion according to Fick’s law.
INDEX| 507
D Darcy velocity 283, 371 electrochemistry 91
Darcy’s law interface 339 electrode, shell 123
Darcy’s law interface theory 450 electrode current (node) 110
Debye length 38 electrode current density (node) 110
deforming electrode surface (node) 496 electrode current source (node) 91
depositing electrode (node) 124 electrode line current source (node) 71
documentation 25 electrode points current source (node)
domain nodes 73
Brinkman equations 406 electrode potential (node) 112
Darcy’s law 341 electrode power (node) 111
electrochemistry interfaces 89 electrode reaction (node)
electrophoretic transport interface electrochemistry 99
259 electrode surface (node) 94
free and porous media flow 390 electrode symmetry axis current source
level set 472 (node) 72
phase field 478 electrode, shell interface 121
transport of diluted species 191 theory 167
double layer capacitance (node) 104 electrode-electrolyte boundary interface
electrode, shell 122 free and porous media flow 367, 397
508 | I N D E X
electrolyte current density (node) 107 transport of diluted species 204
electrolyte current source (node) 92 fracture flow (node) 381
electrolyte line current source (node) 72 free and porous media flow interface 388
electrolyte points current source (node) theory 457
73 Freundlich exponent 289
electrolyte potential 135 fully developed flow 326
electrolyte potential (node) 106
G galvanic cells 33
electrolyte symmetry axis current
gas reacting fluids 229, 243
source (node) 72
general stress (boundary stress condi-
electrolyte-electrode domain interface
tion) 331
(node) 105
Gibbs free energy 239
electrolytes 33
Ginzburg–Landau equation 489
electromagnetic heat source (multiphys-
gravity 338
ics coupling) 498
ground (node) 126
electroneutrality 38
H harmonic perturbation (node) 112
electrophoretic transport interface 253
heterogeneous rate constant 174
elevation 365
hydraulic head (node) 378
emailing COMSOL 27
Hygroscopic Swelling 223
equilibrium potential 133
Equilibrium Reaction I inflow (node) 201, 265
theory for 273 initial values (node)
equilibrium reaction (node) 209 Brinkman equations 413
equilibrium reaction group (node) 248 corroding electrode surface node 113
external short circuit (node) 112 Darcy’s law 363
depositing electrode surface node 113
F faradaic current 47
electrode, shell 124
Faraday’s constant 134
free and porous media flow 396
Faraday’s law 279
level set 474, 480
Faraday’s laws of electrolysis 173
primary and secondary current distri-
Fick diffusion laws 171
bution 67
flow continuity (node) 335
single-phase, laminar flow 319
flow rate in SCCMs 326
spf interfaces 319
fluid flow
surface reactions 269
Brinkman equations theory 461
tertiary current distribution 82
fluid properties (node) 391
transport of diluted species 198
flux (node) 264
initializing functions 486, 491
transport of diluted species 202, 264
inlet (node) 323
flux discontinuity (node) 204
single-phase flow 323
Darcy’s law 374
INDEX| 509
insulation (node) 93, 263 electromagnetic heat source (node)
interface normal variable 487, 492 498
interior wetted wall (node) 482
N Nernst equation 174
internet resources 25
Nernst–Einstein relation 196, 215, 219,
intrinsic volume averages 461
279
irreversible reaction 234
Nernst–Planck equations 37, 130
K knowledge base, COMSOL 27 Nernst–Planck–Poisson equations 38
Nernst–Planck–Poisson Equations inter-
L laminar flow interface 311
face 251
Langmuir constant 289
no flow (node) 373
leaking wall, wall boundary condition
level set 475
321, 398
no flux (node) 200
level set functions, initializing 486, 491
no slip, wall boundary condition 320, 398
level set interface 470–471
no viscous stress (open boundary) 331
theory 483
nodes, common settings 24
level set model (node) 472
nonconservative formulations 275
line mass source (node)
nondeforming boundary (node) 497
fluid flow 337
non-faradaic reactions (node) 113
species transport 207
normal current density (node) 125
line source
normal stress, normal flow (boundary
species transport 277
stress condition) 332
liquid reacting fluids 229, 243
local O Ohm’s law 63, 132, 280
CFL number 315, 406 ohmic drop 170
open boundary (node)
M mass based concentrations (node) 198
level set 475
mass source (node)
single-phase flow 330
Brinkman equations 412
spf interfaces 330
Darcy’s law 361
transport of diluted species 208
mathematics, moving interfaces
outflow (node)
level set 470–471
electrophoretic transport 265
phase field 477
transport of diluted species 201
theory 483, 488
outlet (node) 327
modeling checklist 53
single-phase flow 327
monolayer adsorption 301
spf interfaces 327
moving interfaces 488
overpotential 42, 133
MPH-files 26
multiphase flow theory 483, 488 P pair nodes
multiphysics couplings Brinkman equations 406
510 | I N D E X
Darcy’s law interface 341 porous electrodes 66, 133
electrochemistry interfaces 89 porous matrix double layer capacitance
electrode, shell 122 (node) 93
electrophoretic transport interface porous media and subsurface flow
259 Brinkman equations interface 403
free and porous media flow 390 Darcy’s law interface 339
level set 472 free and porous media flow interface
phase field 478 388
surface reactions 267 theory, Brinkman equations 461
transport of diluted species 191 theory, free and porous media flow
partially saturated porous media (node) 457
217 porous media transport properties
periodic condition (node) 69 (node) 213, 217
transport of diluted species 205 Porous Medium (node)
periodic flow condition (node) 333 Brinkman equations 392, 407
permeability models 348, 358, 386 potential (node) 263
pervious layer (node) 379 potentiometry 169
phase field interface 477 potentiostat 177
theory 488 pressure (node) 368, 372, 375
phase field model (node) 479 pressure head (node) 377
physics interfaces, common settings 24 pressure point constraint (node) 336
point mass source (node) primary current distribution 35
fluid flow 337 primary current distribution interface 63
species transport 207 theory 129
point nodes pseudo time stepping
Brinkman equations 406 settings 315, 406
Darcy’s law interface 341
R reacting fluids, gases and liquids 229, 243
electrochemistry interfaces 89
Reacting Volume 199
electrode, shell 122
reaction (node) 233
free and porous media flow 390
reaction coefficients (node) 212
surface reactions 267
reaction thermodynamics (node) 249
transport of diluted species 191
reactions (node)
point source
surface reactions 269
species transport 276
tertiary current distribution 81
porous electrode (node) 67, 80
transport of diluted species 199
porous electrode coupling (node) 211
reference electrode (node) 114
free and porous media flow 366, 395
resistive film 139
porous electrode reaction (node) 92
retardation factor 289
INDEX| 511
reversible reaction 234 surface tension force variable 492
reversible reaction group (node) 246 symmetry (node) 329
Darcy’s law 373
S SCCM, flow rate in 326
electrochemistry 94
secondary current distribution 35
spf interfaces 329
secondary current distribution interface
transport of diluted species 204
63
theory 129 T Tafel equation 143
SEMI standard E12-0303 325 Tafel law 43
separator (node) technical support, COMSOL 27
current distribution 81 tertiary current distribution 35
single-phase flow interface tertiary current distribution interface
laminar flow 311 theory 129
sliding wall 322 tertiary current distribution, Nernst–
slip, wall boundary condition 321, 398 Planck interface 74
species (node) 241 theory
species activity (node) 249 Brinkman equations 461
species group (node) 249 electroanalysis interface 169
species source (node) 263 electrode, shell interface 167
species thermodynamics (node) 250 free and porous media flow 457
standard cubic centimeters per minute level set 483
326 phase field 488
standard flow rate 326 primary current distribution interface
standard settings 24 129
stoichiometric coefficients 239 secondary current distribution inter-
Stokes equations 310 face 129
Stokes flow 310 surface reactions 300
stratified porous media 287 tertiary current distribution interface
superficial volume average, porous me- 129
dia 461 transport of diluted species in porous
superficial volume averages, porous me- media interface 272
dia 283 transport of diluted species interface
supporting electrolyte 169 271
Supporting Electrolytes 279 thickness
surface concentration (node) 270 fracture 226
surface equilibrium reaction (node) 211 out-of-plane 366
surface properties (node) 268 thin barrier (node)
surface reactions interface 266 level set 475
theory 300 thin diffusion barrier (node) 208
512 | I N D E X
thin electrode surface (node) 106
Thin Impermeable Barrier 209
tortuosity factors 285
traction boundary conditions 331
transport of diluted species in porous
media interface 190
theory 272
transport of diluted species interface 186
theory 271
V variables
level set interface 487
phase field interface 492
voltammetry, cyclic 169
volume averages 461
volume force (node) 319, 412
free and porous media flow 395
spf interfaces 319
W wall (node)
free and porous media flow 397
single-phase flow 320
websites, COMSOL 27
wetted wall (node) 481
INDEX| 513
514 | I N D E X