Micro Fluidics Module Users Guide
Micro Fluidics Module Users Guide
User’s Guide
Microfluidics Module User’s Guide
© 1998–2023 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.2
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. Other useful links include:
Chapter 1: Introduction
CONTENTS |3
Heat Transfer . . . . . . . . . . . . . . . . . . . . . . . . 56
Coupling to Other Physics Interfaces . . . . . . . . . . . . . . . 58
4 | CONTENTS
Fluid Properties . . . . . . . . . . . . . . . . . . . . . . 100
Initial Values . . . . . . . . . . . . . . . . . . . . . . . 101
Wall . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Velocity . . . . . . . . . . . . . . . . . . . . . . . . . 101
Open Boundary . . . . . . . . . . . . . . . . . . . . . . 101
Symmetry . . . . . . . . . . . . . . . . . . . . . . . . 102
Potential Point Constraint . . . . . . . . . . . . . . . . . . 102
Periodic Flow Condition . . . . . . . . . . . . . . . . . . . 102
Interior Wall . . . . . . . . . . . . . . . . . . . . . . . 104
Flow Continuity . . . . . . . . . . . . . . . . . . . . . . 104
CONTENTS |5
Theory for the Potential Flow Interface 147
General Incompressible Potential Flow Theory . . . . . . . . . . 147
Theory for the Level Set and Phase Field Interfaces 179
Level Set and Phase Field Equations . . . . . . . . . . . . . . . 179
Conservative and Nonconservative Formulations . . . . . . . . . 184
Phase Initialization . . . . . . . . . . . . . . . . . . . . . 185
Numerical Stabilization . . . . . . . . . . . . . . . . . . . 186
6 | CONTENTS
References for the Level Set and Phase Field Interfaces . . . . . . . 187
CONTENTS |7
Interior Wetted Wall . . . . . . . . . . . . . . . . . . . . 214
Continuity . . . . . . . . . . . . . . . . . . . . . . . . 214
8 | CONTENTS
Chapter 6: Porous Media Flow Interfaces
CONTENTS |9
Pervious Layer . . . . . . . . . . . . . . . . . . . . . . . 267
Well . . . . . . . . . . . . . . . . . . . . . . . . . . 268
Fracture . . . . . . . . . . . . . . . . . . . . . . . . . 269
Fluid (Fracture) . . . . . . . . . . . . . . . . . . . . . . 271
Fracture Material . . . . . . . . . . . . . . . . . . . . . . 272
10 | C O N T E N T S
Storage Models . . . . . . . . . . . . . . . . . . . . . . 301
Average Linear Velocity . . . . . . . . . . . . . . . . . . . 302
Dual Porosity and Dual Permeability Theory . . . . . . . . . . . 302
References for the Darcy’s Law Interface. . . . . . . . . . . . . 304
Theory for the Free and Porous Media Flow, Darcy Interface
310
References . . . . . . . . . . . . . . . . . . . . . . . . 312
CONTENTS | 11
Chapter 8: Chemical Species Transport Interfaces
12 | C O N T E N T S
Dispersion . . . . . . . . . . . . . . . . . . . . . . . . 358
Unsaturated Porous Medium . . . . . . . . . . . . . . . . . 358
Liquid . . . . . . . . . . . . . . . . . . . . . . . . . . 359
Gas . . . . . . . . . . . . . . . . . . . . . . . . . . . 361
Adsorption . . . . . . . . . . . . . . . . . . . . . . . . 362
Volatilization . . . . . . . . . . . . . . . . . . . . . . . 364
Species Source. . . . . . . . . . . . . . . . . . . . . . . 364
Hygroscopic Swelling . . . . . . . . . . . . . . . . . . . . 365
Out-of-Plane Flux . . . . . . . . . . . . . . . . . . . . . 366
Fracture . . . . . . . . . . . . . . . . . . . . . . . . . 368
Fluid (Fracture) . . . . . . . . . . . . . . . . . . . . . . 368
Fracture Material . . . . . . . . . . . . . . . . . . . . . . 369
CONTENTS | 13
Chapter 9: Glossary
Index 403
14 | C O N T E N T S
1
Introduction
This guide describes the Microfluidics Module, an optional add-on package that
extends the COMSOL Multiphysics® modeling environment with customized
physics interfaces for microfluidics.
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:
15
About the Microfluidics Module
In this section:
• About Microfluidics
• About the Microfluidics Module
• The Microfluidics Module Physics Interface Guide
• Coupling to Other Physics Interfaces
• The Microfluidics Module Study Capabilities by Physics Interface
• Common Physics Interface and Feature Settings and Nodes
• The Liquids and Gases Materials Database
• Where Do I Access the Documentation and Application Libraries?
About Microfluidics
The field of microfluidics evolved as engineers and scientists explored new avenues to
make use of the fabrication technologies developed by the microelectronics industry.
These technologies enabled complex micron and submicron structures to be
integrated with electronic systems and batch fabricated at low cost. Mechanical devices
fabricated using these technologies have become known as microelectromechanical
systems (MEMS), whilst fluidic devices are commonly referred to as microfluidic
systems or “lab-on-a-chip” devices. A proper description of these microsystems usually
requires multiple physical effects to be incorporated.
16 | CHAPTER 1: INTRODUCTION
Research activity in microfluidics is changing medical-diagnostic processes such as
DNA analysis, and it is spurring the development of successful commercial products.
Tools to address the flow of fluids within porous media are also included as well as a
physics interface to model moderately rarefied gas flows (the Slip Flow interface).
Physics interfaces that address laminar flow, multiphase flow, flow in porous media, and
moderately rarefied flow (the Slip Flow interface) are available. Enhanced capabilities
to treat chemical reactions between dilute species are also included. COMSOL
Multiphysics also has tools to model the transport and reactions of concentrated
species, but the Chemical Reaction Engineering Module is required for these physics
interfaces. In addition to the standard tools for modeling fluid flow, interfaces between
fluids can be modeled by the Level Set, Phase Field in Fluids, and Moving Mesh
interfaces, making it possible to model surface tension and multiphase flow at the
microscale.
Fluid Flow
Single-Phase Flow
18 | CHAPTER 1: INTRODUCTION
PHYSICS INTERFACE ICON TAG SPACE AVAILABLE STUDY TYPE
DIMENSION
Mathematics
Moving Interface
The Microfluidics column lists transport phenomena that are key issues in, for
example, lab-on-a-chip type devices.
20 | CHAPTER 1: INTRODUCTION
This list is only the tip of the iceberg — an overview of the most important applications
where you can use the Microfluidics Module. In your hands, the multiphysics
combinations and applications are unlimited.
TABLE 1-1: EXAMPLES OF COUPLED PHENOMENA AND DEVICES YOU CAN MODEL USING THE MICROFLUIDICS
MODULE.
MICROFLUIDICS
When using the axisymmetric interfaces, the horizontal axis represents the
r direction and the vertical axis the z direction. The geometry must be
created in the right half plane (that is, only for positive r).
Brinkman Equations br u, v, w, p √ √
Darcy’s Law dl p √ √
Free and Porous Media Flow, Brinkman fp u, v, w, p √ √
Free and Porous Media Flow, Darcy - u, v, w, p √ √
MATHEMATICS
Level Set ls φ √
Phase Field in Fluids pf φ, ψ √
22 | CHAPTER 1: INTRODUCTION
TABLE 1-2: MICROFLUIDICS MODULE DEPENDENT VARIABLES AND PRESET STUDY AVAILABILITY.
For detailed information about materials and the Liquids and Gases
Material Library, see Materials in the COMSOL Multiphysics Reference
Manual.
24 | CHAPTER 1: INTRODUCTION
displays information about that feature (or click a node in the Model Builder followed
by the Help button ( ). This is called topic-based (or context) help.
• 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
Overview of the User’s Guide
The Microfluidics Module User’s Guide gets you started with modeling microfluidic
systems using COMSOL Multiphysics. The information in this guide is specific to this
module. Instructions how to use COMSOL Multiphysics in general are included with
the COMSOL Multiphysics Reference Manual.
MODELING IN MICROFLUIDICS
The Microfluidic Modeling chapter familiarizes you with modeling procedures useful
when working with this module. Topics include Physics and Scaling in Microfluidics,
Dimensionless Numbers in Microfluidics, Modeling Microfluidic Fluid Flows,
Modeling Coupled Phenomena in Microfluidics, and Modeling Rarefied Gas Flows.
Single-Phase Flow
Single-Phase Flow Interfaces chapter describes the Laminar Flow, Creeping Flow and
Incompressible Potential Flow interfaces.
Rarefied Flow
Rarefied Flow Interface chapter describes the Slip Flow interface, including the
underlying theory.
28 | CHAPTER 1: INTRODUCTION
2
Microfluidic Modeling
This chapter gives an overview of the physics interfaces available for modeling
microfluidic flows and provides guidance on choosing the appropriate physics
interface for a specific problem.
In this chapter:
29
Physics and Scaling in Microfluidics
Microfluidic flows occur on length scales that are orders of magnitude smaller than
macroscopic flows. Manipulation of fluids at the microscale has a number of
advantages — typically microfluidic systems are smaller, operate faster, and require less
fluid than their macroscopic equivalents. Energy inputs and outputs are also easier to
control (for example, heat generated in a chemical reaction) because the
surface-to-area volume ratio of the system is much greater than that of a macroscopic
system.
In general, as the length scale (L) of the fluid flow is reduced, properties that scale with
the surface area of the system become comparatively more important than those that
scale with the volume of the flow (see Table 2-1). This is apparent in the fluid flow
itself as the viscous forces, which are generated by shear over the isovelocity surfaces
(scaling as L2), dominate over the inertial forces (which scale volumetrically as L3).
The Reynolds number (Re), which characterizes the ratio of these two forces, is
typically low, so the flow is laminar. In many cases the creeping (Stokes) flow regime
applies ( Re « 1 ). The section Single-Phase Flow describes microfluidic fluid flows in
greater detail.
When multiple phases are present surface tension effects become important relative to
gravity and inertia at small length scales. The Laplace pressure, capillary force, and
Marangoni forces all scale as 1/L. The section Multiphase Flow gives more
information on modeling flows involving several phases.
Flow through porous media can also occur on microscale geometries. Because the
permeability of a porous media scales as L2 (where L is the average pore radius) the
flow is often friction dominated when the pore size is in the micron range and Darcy’s
law can be used. For intermediate flows this module also provides a physics interface
to model flows where Brinkman equation is appropriate. For more information see
Porous Media Flow.
Laminar flows make mixing particularly difficult, so mass transport is often diffusion
limited. The diffusion time scales as L2, but even in microfluidic systems diffusion is
often a slow process. This has implications for chemical transport and hence reactions
within microfluidic systems. Chemical Transport and Reactions describes how to
model diffusion-based transport and chemical reactions in microfluidics.
As the length scale of the flow becomes comparable to intermolecular length scale,
more complex kinetic effects become important. For gases the ratio of the molecular
mean free path to the flow geometry size is given by the Knudsen number (Kn).
Clearly, Kn scales as 1/L. For Kn < 0.01, fluid flow is usually well described by the
Navier–Stokes equations with no-slip boundary conditions. In the slip flow regime
(0.01 < Kn < 0.1) appropriate slip boundary conditions can be used with the
Navier-Stokes equations to describe the flow away from the boundary (see Slip Flow).
At Knudsen numbers above 0.1 a fully kinetic approach is required. Flows in this
regime can be modeled using tools from the Molecular Flow Module.
The Free Molecular Flow and Transitional Flow interfaces are available in
the Molecular Flow Module.
In this section:
Each of these numbers is defined in Table 2-2. Both the Reynolds number and the
Peclet number are associated with the relative importance of convective terms in the
corresponding partial differential equation. The Peclet number describes the
importance of convection in relation to diffusion (for either heat or mass transfer), and
the Reynolds number describes the importance of the “convective” inertia term in
relation to viscosity in the Navier–Stokes equations themselves.
Both the Reynolds number and the Peclet number can be defined on the “cell” or
element level. As they are defined in COMSOL Multiphysics numerical instabilities can
arise when the cell Reynolds or Peclet number is greater than one. These instabilities
are usually manifested as spurious oscillations in the solution. Taking the Peclet
In theory the grid can be refined to bring the cell Reynolds or Peclet number below
one, although this is often impractical for many problems. Several stabilization
techniques are included, which enable problems with larger cell Reynolds or Peclet
numbers to be solved. At the crudest level additional numerical diffusion can be added
to the problem to improve its stability. This is achieved by selecting Isotropic Diffusion
under Inconsistent Stabilization for any physics interface.
The stabilization options are visible when the Show More Options button
( ) is clicked and Stabilization is selected in the Show More Options dialog
box.
Re
Re = ρvL Re = ρvh
Reynolds c Ratio of inertial forces to
----------- ----------
number μ 2μ viscous forces.
Laminar flow applies:
[Link]
3
Re < 10
Stabilization required:
c
Re > 1
Peclet number Pe ρc p vL c ρc p vh Ratio of heat convection to
(Heat Flow) Pe = ----------------
- Pe = ---------------
- thermal diffusivity,
κ 2κ
α = κ ⁄ ( ρc p ) .
[Link]
Stabilization required:
c
Pe > 1
Peclet number Pe Ratio of concentration
Pe = vL
c vh-
(Mass ------- Pe = ------- convection to diffusion.
D 2D
Transport) Stabilization required:
c
Pe > 1
Symbol definitions: v is the characteristic velocity or cell velocity, r is the fluid density, L is the characteristic
length scale for the problem, μ is the fluid viscosity, h is the element size, cp is the heat capacity at constant
pressure, κ is the thermal conductivity, and D is the diffusion constant. For anisotropic diffusion or conduc-
tivity an appropriate average is computed. The variables names assume the default name spf.
The following sections describe the options available for simulating Single-Phase Flow,
Multiphase Flow, and Porous Media Flow.
The Creeping Flow Interface ( ) uses the same equations as the Laminar Flow
interface with the additional assumption that the contribution of the inertia term is
negligible. This is often referred to as Stokes flow and is appropriate for use when
viscous flow is dominant, which is often the case in microfluidics applications.
Creeping flow applies when the Reynolds number is much less than one. A creeping
flow problem is significantly simpler to solve than a laminar flow problem — so it is
best to make this assumption explicitly if it applies. By default the flow is
incompressible (see below).
By selecting the Neglect Inertial Form (Stokes Flow) check box, in the
Settings window for Laminar Flow quickly convert a Laminar Flow
interface into a Creeping Flow interface.
COMPRESSIBLE FLOW
For compressible flow it is important that the density and any mass balances are well
defined throughout the domain. Choosing to model incompressible flow simplifies the
equations to be solved and decreases solution times. Most gas flows should be modeled
as compressible flows; however, liquid flows can usually be treated as incompressible.
NON-NEWTONIAN FLOW
The physics interfaces also allow for easy definition of non-Newtonian fluid flow
through access to the dynamic viscosity in the Navier–Stokes equations. The fluid can
be modeled using the Power law, Carreau, Bingham–Papanastasiou, Herschel–
Bulkley–Papanastasiou, and Casson–Papanastasiou models or by means of any
expression that describes the dynamic viscosity appropriately. To use other
non-Newtonian models or model viscoelastic flow, the Polymer Flow Module is
recommended in addition to the Microfluidics Module. The different non-Newtonian
models can be defined directly in the physics, or using the corresponding Material
Model nodes.
Both physics interfaces also include a feature to compute a laminar velocity profile at
arbitrarily shaped inlets and outlets, which makes models much easier to set up.
Multiphase Flow
The Multiphase Flow branch ( ) enables the modeling of multiphase flows. These
physics interfaces are included:
• The Laminar Two-Phase Flow, Level Set Interface ( ) (available under the
Two-Phase Flow, Level Set branch ( )).
• The Laminar Two-Phase Flow, Phase Field Interface ( ) (available under the
Two-Phase Flow, Phase Field branch ( )).
For problems involving topological changes (for example, jet breakup), use either the
Level Set or Phase Field interfaces. These techniques use an auxiliary function (the
level set and phase field functions, respectively) to track the location of the interface,
which is necessarily diffuse. The Level Set interface does not include surface tension
force per default, and is recommended for use in larger scale problems with larger
velocities, or when the effects of the gradient of the surface tension coefficient are
relevant. The interface also includes a domain feature for porous domains. The phase
field method is physically motivated and is usually more numerically stable than the
level set method. It is can also be extended to more phases and is compatible with
fluid-structure interactions.
The moving mesh method represents the interface as a boundary condition along a
line or surface in the geometry. Because the physical thickness of phase boundaries is
usually very small, for most practical meshes The Laminar Two-Phase Flow, Moving
Mesh Interface describes the two-phase boundary the most accurately. However, it
cannot accommodate topological changes in the boundary.
For all the Two and Three-Phase Flow interfaces, compressible flow is possible to
model at speeds of less than 0.3 Mach. You can also choose to model incompressible
flow by simplifying the equations to be solved. Stokes’ law is also an option.
In each physics interface, the density and viscosity are specified for both fluids. You can
easily use non-Newtonian models for any of the fluids, based on the Power law,
Carreau, Bingham-Papanastasiou, Herschel-Bulkley-Papanastasiou, and
Casson-Papanastasiou models, or using an arbitrary user-defined expression.
It is often advantageous to use more than one of these techniques to solve a problem
— for example, a level set model for jet breakup could be checked prior to breakup by
DARCY’S LAW
The Darcy’s Law Interface ( ) is used to model fluid movement through interstices
in a porous medium in the case where the fluid viscosity dominates over its inertia.
Together with the continuity equation and the equation of state for the pore fluid (or
gas) Darcy’s law is used to model low velocity flows, for which the pressure gradient is
the dominant driving force (typically when the Reynolds number of the flow is less
than one). The penetration of reacting gases in a tight catalytic layer, such as a washcoat
or membrane, is an example in which Darcy’s law applies. Often Darcy’s law is
applicable for microfluidic applications, as it is appropriate for the limit of small pore
size.
BRINKMAN EQUATIONS
The Brinkman Equations Interface ( ) is used in situations where the fluid inertia,
or other effects such as body forces, can no longer be neglected. Fluid penetration of
filters and packed beds are applications for this physics interface. The Brinkman
equations are similar in form to the Navier Stokes equations. Figure 2-2 shows the
Settings window for the Brinkman Equations interface.
Figure 2-2: The Settings window for Brinkman Equations. Model incompressible or
compressible (Ma<0.3) flow, and Stokes flow. Other combinations are also possible.
It should be noted that if the porous medium is large in comparison to the free
channel, and the results in the region of the interface are not of interest, then it is
possible to couple a Laminar Flow interface to the Darcy’s Law interface using The
Free and Porous Media Flow, Darcy Interface ( ). This makes the model
computationally cheaper.
By default the Transport of Diluted Species interface accounts for the diffusion of
species by Fick’s law and convection due to bulk fluid flow (see Figure 2-3). The fluid
velocity field can be coupled from another physics interface (for example, Laminar
Flow) by means of a domain level model input. The migration of ionic species in an
electric field can also be added by selecting the appropriate check box in the Settings
window for the physics interface — in this case an additional Electrostatics interface is
usually coupled into the problem by an additional model input.
Chemical reactions can be added to the physics interface at the domain level by the
Reactions node, which requires the Chemical Reaction Engineering Module. This
allows you to specify expressions for the consumption or production of species in terms
Figure 2-3: The Settings window for Transport of Diluted Species, with Convection selected
as the Transport Mechanism by default.
For both consistent stabilization methods, the Equation residual can also be changed.
Approximate residual is the default setting and it means that derivatives of the diffusion
Electrohydrodynamics
Electrohydrodynamics is a general term describing phenomena that involve the
interaction between solid surfaces, ionic solutions, and applied electric and magnetic
fields. Electrohydrodynamics is frequently employed in microfluidic devices to
manipulate fluids and move particles for sample handling and chemical separation.
Table 2-7 summarizes these categories. Although these examples describe specific
multiphysics couplings, COMSOL Multiphysics is not limited to these cases — for
TYPE OF FIELD/FORCE DC AC
ELECTROOSMOSIS
When a polar liquid (such as water) and a solid surface (such as glass or a
polymer-based substrate) come into contact, charge transfer occurs between the
surface and the electrolytic solution. At finite temperature the charges on the surface
are not screened perfectly by the ions in the liquid and a finite thickness electric double
layer (EDL) or Debye layer develops. Electroosmosis is the process by which motion
is induced in a liquid due to the body force acting on the EDL in an electric field.
A complete model of the system includes the space charge layer explicitly. The electric
potential is the solution of a nonlinear partial differential equation, the Poisson–
Boltzmann equation, which can be solved by coupling an Electrostatics interface to a
Transport of Diluted Species interface (with migration enabled) for the ion species.
The software then computes the forces on the fluid and a further coupled Laminar
Flow or Creeping Flow interface is used to compute the overall fluid flow. In practice
this approach is only possible for nanoscale channels — as typically the EDL thickness
is 1–10 nm.
εk B T
λD = --------------------
-
2 2
2z e c ∞
εζ
u eo = ----- E
μ
where E is the applied electric field and μ is the liquid’s dynamic viscosity. From this
equation, the electroosmotic mobility is naturally defined as:
μ eo = εζ
----- (2-1)
μ
The Laminar Flow and Creeping Flow interfaces include a wall boundary condition
option for an Electroosmotic Velocity boundary condition. This enables you to specify
the external electric field (which can be manually specified or coupled from an
Electrostatics interface) and the electroosmotic mobility to define an electroosmotic
flow.
Further details of the theory of electroosmosis can be found in Ref. 1 and Ref. 2.
AC ELECTROOSMOSIS
Because an alternating electric field does not generate a net force on the EDL, AC
electroosmosis is not used for fluid transport in microfluidics. However, the
back-and-forth movements an AC field generates are useful for mixing purposes. To
model AC electroosmotic flow when the frequency of the electric field is sufficiently
low, the same approaches can be taken as for DC electroosmosis. An Electrostatics
interface should still be used to calculate the electric field, but when this is coupled into
other physics interfaces, the AC dependence should be explicitly added using an
ELECTROPHORESIS
Electrophoresis describes the motion of charged particles or molecules suspended in a
liquid due to an applied electric field.
u ep = --- μ eo f ------- E
2 a
3 λD
where a is the radius of the particle, E is the electric field, and f(a/λD) is known as
Henry’s function (note that f(a/λD) is often written as f(κa) where κ=1/λD). Henry’s
function takes the value of 1 in the limiting case where a « λ D (often known as the
Hückel approximation) and 3/2 in the case where a » λ D (this is equivalent to
Equation 2-1 and is referred to as the Smoluchowski approximation). Note that if λD
is large compared to the fluid volume, the charge is effectively unscreened and the
electric force is simply that due to the charge on the molecule. The following result is
obtained from the force balance between the Stokes drag and the electric force for an
unscreened charged particle:
q
u ep = -------------- E
6πμa
where q is the charge on the molecule and μ is the fluid viscosity. Further details of the
theory of electroosmosis can be found in Ref. 2.
These velocity fields can be computed directly from an electric field calculated by the
Electrostatics interface. If necessary the velocity can be added to the flow velocity field
to compute the net particle velocity.
3
F ( t ) = 2πε m a K ( ε m ,ε p )∇ ( E ( t ) ⋅ E ( t ) ) (2-2)
DEP
where εm and εp are the complex permittivities of the medium and the particle
respectively, a is the radius of the particle’s equivalent homogeneous sphere and
K(εm,εp) is the Clausius–Mossotti function. The complex permittivity, ε*, for an
isotropic homogeneous dielectric is
σ
ε∗ = ε – i ----
ω
where ε is the electric permittivity, σ is the electrical conductivity, and ω is the angular
field frequency. The Clausius–Mossotti function is given by:
εp – εm
K ( ε m, ε p ) = ---------------------
-
ε p + 2ε m
which depends on the particle’s complex permittivity, εp, and that of the medium, εm.
Taking the time average of Equation 2-2 gives the time-averaged force:
By balancing this force with the Stokes drag force the dielectrophoretic velocity is
obtained:
ε m r 0 Re ( K ( ε m, ε p ) )∇ ( E rms ⋅ E rms )
u = --------------------------------------------------------------------------------------------
-
DEP 3μ
The value of Erms can be computed from an Electrostatics interface in which the root
mean square (RMS) voltages are applied as boundary conditions. The gradient of the
field can then be computed term by term from the spatial derivatives of an expression
for the dot product of the electric field with itself. Finally the dielectrophoretic velocity
term can be added to the velocity field to compute the particle velocity field.
MAGNETOPHORESIS
Particles with an induced or permanent magnetization can be moved relative to a fluid
flow by the application of an external, inhomogeneous magnetic field. This process is
analogous to dielectrophoresis and is usually termed magnetophoresis. In the case of
a nonconducting particle, in a static, irrotational external applied field, Hext, the
magnetophoretic force is given by (Ref. 1):
3
F MAP = 2πμ m K ( μ m, μ p )a ∇( H ext ⋅ H ext )
where μm and μp are the permeabilities of the medium and the particle respectively
(usually μm =μ0), a is the radius of the particle’s equivalent homogeneous sphere and
K(μm,μp) is the Clausius–Mossotti function. Note that the external magnetic field,
Hext, should be distinguished from the local field H which includes contributions from
the particle itself. In this case the Clausius–Mossotti function is given by:
μp – μm
K ( μ m, μ p ) = -----------------------
-
μ p + 2μ m
By balancing this force with the Stokes drag force the magnetophoretic velocity is
obtained:
μ m r 0 K ( μ m, μ p )∇ ( H ext ⋅ H ext )
u = ------------------------------------------------------------------------------
-
MAP 3μ
The value of Hext can be computed from a Magnetic Fields or a Magnetic Fields, No
Currents interface.
The gradient of the field can then be computed term by term from the spatial
derivatives of an expression for the dot product of the magnetic field with itself. Finally
the magnetophoretic velocity term can be added to the velocity field to compute the
particle velocity field.
ELECTROTHERMALLY-DRIVEN FLOW
Electrothermal body forces arise from electrically generated, nonuniform Joule
heating, which creates variations in conductivity and permittivity and thus Coulomb
and dielectric body forces. It is possible to determine the resulting fluid motion by
solving the Navier–Stokes equations with an additional electrothermal body force
term. The electric field is once again assumed to be quasistatic and can be coupled in
from an Electrostatics interface.
εE
F = – --- ∇σ
-------- + ∇ε
------- ⋅ E -----------------------2- + --- E ∇ε
1 1 2
2 σ ε 1 + ( ωτ ) 2
Because of the heating, ε and σ are temperature dependent, and their gradients are
functions of the temperature gradient: ∇ε = (∂ε/∂T)∇T and ∇σ = (∂σ/∂T)∇T. With
water, for example, the relative change rates for the permittivity and the conductivity
are (1/ε)(∂ε/∂T) = −0.004 1/K and (1/σ)(∂σ/∂T) = 0.02 1/K, respectively.
ELECTROWETTING
The contact angle of a two-fluid interface with a solid surface is determined by the
balance of the forces at the contact point. The equilibrium contact angle, θ0, is given
by Young’s equation:
γ s1 + σ 12 cos θ 0 = γ s2
2
γ s1 – εV
---------- + σ cos θ ew = γ s2
2d f 12
Here ε is the permittivity of the dielectric, V is the potential difference applied, and df
is the dielectric thickness. This equation can be rewritten as
2
εV -
cos θ ew = cos θ 0 + ----------------- (2-3)
2σ 12 d f
The EWOD applications can be modeled by using Equation 2-3 as an expression for
the contact angle. This can simply be entered as the value of the contact angle in the
Two-Phase Flow interface that is being used. Note that the software automatically
handles a time varying voltage in this expression.
Heat Transfer
It is often necessary to consider the effect of heat flow and temperature-dependent
material properties (such as the viscosity or the surface tension) in microfluidic systems.
The COMSOL Multiphysics base package includes physics interfaces for heat transfer
The Heat Transfer interface includes the equations for heat transfer in both fluid and
solid domains. To model a system consisting of both solid and liquid domains add a
single Heat Transfer interface and then add nodes for Heat Transfer in Solids and Heat
Transfer in Fluids with selections corresponding to the solid and fluid domains
respectively. For a fluid domain the convective flow is coupled into domain by selecting
the velocity field from a corresponding Laminar Flow or Creeping Flow interface.
The fluid domain models the heat transfer including both convection and conduction
according to the equation:
∂T- + ( u ⋅ ∇ )T = – ( ∇ ⋅ q ) + Q
ρC p ------
∂t
where, ρ is the fluid density (SI unit: kg/m3), Cp is the specific heat capacity at
constant pressure (SI unit: J/(kg·K)), T is absolute temperature (SI unit: K), u is the
velocity vector (SI unit: m/s), q is the heat flux by conduction (SI unit: W/m2), and
Q contains heat sources other than viscous heating (SI unit: W/m3). For a solid
domain the following equation applies:
∂T
ρC p ------- = – ( ∇ ⋅ q ) + Q
∂t
When using the heat transfer in solids and in fluids domain properties the software
automatically includes the heat transfer between the solid and the fluid. It is important
to include the correct thermal boundary conditions on regions where fluid flows into
or out of a domain, typically a Temperature condition for an inlet and an Outflow
condition for an outlet.
These flow regimes are shown in Figure 2-4. In the continuum flow regime the
Navier–Stokes equations are applicable, as discussed in Modeling Microfluidic Fluid
Flows. Gases flowing in the slip flow regime can be modeled using the Navier–Stokes
equations with modified boundary conditions. The Slip Flow interface is included with
the Microfluidics Module and can be used to model gas flows at these moderate
Knudsen numbers. The Molecular Flow Module includes the Transitional Flow and
the Free Molecular Flow interfaces, which can be used to model fully kinetic gas flows,
at Knudsen numbers greater than 0.1.
Transitional
flow
Free molecular
flow
Figure 2-4: A plot showing the main fluid flow regimes for rarefied gas flows. Different
regimes are separated by lines of constant Knudsen numbers. The number density of the
gas is normalized to the number density of an ideal gas at a pressure of 1 atmosphere and
a temperature of 0°C (n0).
Slip Flow
In the slip flow regime, the Navier–Stokes equations can still be used with modified
boundary conditions to account for rarefaction effects close to the wall. A layer of
rarefied gas with a size similar to the mean free path develops close to the wall — this
is termed the Knudsen layer. The Navier–Stokes equations are not applicable in this
layer, but the flow outside the layer can be described by extrapolating the bulk gas flow
toward the wall and applying Maxwell’s slip boundary condition at the wall (Ref. 5).
For thermal flows the von Smoluchowski temperature jump boundary condition must
also be applied (Ref. 5).
To model flows in the slip flow regime use the Slip Flow interface. That physics
interface can be used to model isothermal and nonisothermal flows with or without
explicit modeling of thermal processes in adjacent solid domains. To model isothermal
flows use the Temperature boundary condition on all external model surfaces, with the
temperature set equal to the fluid temperature. The Slip Wall and External Slip Wall
boundary conditions are used to model slip on interior and exterior model boundaries
respectively. These boundary conditions include thermal creep or transpiration, viscous
4. F.P. Incropera and D.P. DeWitt, Fundamentals of Heat and Mass Transfer, 4th
ed., John Wiley & Sons, 1996.
There are several Fluid Flow interfaces available with the Microfluidics Module.
These are grouped by type and found under the Fluid Flow>Single-Phase Flow
branch ( ) when adding a physics interface. See Modeling Microfluidic Fluid
Flows to help you select which physics interface to use.
In this chapter:
| 63
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.
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.
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. 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) check box 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
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 check box 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 check box 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
μu
F μ = – 12 --------2 (3-1)
dz
where μ is the fluid’s dynamic viscosity, u is the velocity field, and dz is the channel
thickness. This term represents the resistance that the parallel boundaries impose on
the flow; however, it does not account for any changes in velocity due to variations in
the cross-sectional area of the channel.
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 pA=p+pref, 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 box.
There are two consistent stabilization methods: Streamline diffusion and Crosswind
diffusion. Usually, both check boxes 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 check box to estimate the influence of
temporal variations in the velocity field, instead of using the inverse time step, in the
consistent stabilization terms. This check box is selected by default
Select the Limit small time steps effect on stabilization time scale check box 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 box.
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 check box 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 box. 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 check box under Linear solver is available
when the Compressibility option is set to Incompressible flow. When this check box 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.
2
See documentation for The Laminar Two-Phase Flow, Moving Mesh 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.
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.
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 Absolute pressure field can be edited by clicking Make All Model Inputs Editable
( ) and entering the desired value in the input field.
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.
Constitutive Relation
For laminar flow, the Specify dynamic viscosity (default) and Inelastic non-Newtonian
options are available. Use the default option to either get the dynamic viscosity from a
material, or to add a user defined expression. The Inelastic non-Newtonian option
includes several inelastic non-Newtonian models for the relationship between the shear
stress and shear rate.
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.
• Power index n
• Plastic viscosity μp
• Yield stress τy
• Model parameter mp
• Model parameter mp
• Plastic viscosity μp
The default values for the parameters are listed in Table 3-1.
TABLE 3-1: DEFAULT VALUES FOR THE INELASTIC NON-NEWTONIAN MODELS.
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
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) check box 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,
Slip
The Slip option prescribes a no-penetration condition, u·n = 0. 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.
Electroosmotic Velocity
When an electric field drives a flow along the boundary, the components for the Electric
field E along with the Electroosmotic mobility μeo should be defined. The Built-in
expression for the Electroosmotic mobility requires values or expressions for the Zeta
potential ζ and the Relative permittivity εr.
Slip Velocity
In the microscale range, the flow condition at a boundary is seldom strictly no slip or
slip. Instead, the boundary condition is something in between, and there is a Slip
velocity at the boundary. Two phenomena account for this velocity: noncontinuum
effects and the flow induced by a thermal gradient along the boundary.
When the Use viscous slip check box is selected, the default Slip length Ls is User defined.
Another value or expression may be entered if the default value is not applicable. For
Maxwell’s model values or expressions for the Tangential momentum accommodation
coefficient av and the Mean free path λ should be specified. Tangential accommodation
coefficients are typically in the range of 0.85 to 1.0 and can be found in G. Kariadakis,
A. Beskok, and N. Aluru, Microflows and Nanoflows, Springer Science and Business
Media, 2005.
When the Use thermal creep check box is selected, a thermal creep contribution with
Thermal slip coefficient σT is activated. Thermal slip coefficients are typically between
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 ⋅ nwall = 0, and adds
a tangential stress
μ
K nt = – --- u slip
β
where Knt = Kn − (Kn ⋅ nwall)nwall, Kn = Knwall, and K is the viscous stress tensor. β is
a slip length, and uslip = u − (u ⋅ nwall)nwall 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, check Account for the translational wall
velocity in the friction force to use u − ubnd − ((u− ubnd) ⋅ nwall)nwall instead of uslip in
the friction force.
The Navier slip option is not available when selecting a turbulence model.
WALL MOVEMENT
This section contains controls to describe the wall movement relative to the lab (or
spatial) frame.
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
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 box. 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.
Depending on the constraint method selected, the following settings are available:
• 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
BOUNDARY CONDITION
The available Boundary condition options for an inlet are Velocity, Fully developed flow,
Mass 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.
PRESSURE CONDITIONS
This option specifies the normal stress, which in most cases is approximately equal to
the pressure.
• 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 0, 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 check box 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)
check box 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
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 check box 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 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.
CONSTRAINT SETTINGS
This section is displayed by clicking the Show button ( ) and selecting Advanced
Physics Options.
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.
PRESSURE CONDITIONS
This option specifies the normal stress, which in most cases is approximately equal to
the pressure. The tangential stress component is set to zero.
• 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 0, 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 check box 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) check box 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 check box 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
The Apply condition on each disjoint selection separately check box 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.
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.
Normal Stress
The Normal stress f0 condition implicitly imposes p ≈ f0.
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) check box is available and
selected by default. When it is selected, the hydrostatic pressure is automatically added
to the pressure entered in f0 user input.
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.
– 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 (3-2)
∂n
Normal Stress
Normal Stress is described for the Open Boundary node.
n – pI + μ ( ∇u + ( ∇u ) T ) – --- μ ( ∇ ⋅ u )I n = – f 0 ,
T 2
t⋅u = 0
3
T
n ( – pI + μ ( ∇u + ( ∇u ) T ) )n = – f 0 , t⋅u = 0
This boundary condition implicitly sets a constraint on the pressure that for 2D flows is
∂u n
p = 2μ ---------- + f 0 (3-3)
∂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) check box 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 of the selected option.
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
selected. Alternatively, the Individual dependent variables could be selected to restrict
the reaction terms as needed.
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
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
a pressure difference is achieved across the source and destination boundaries. This
pressure difference can, for example, drive the fully developed flow in a channel.
ORIENTATION OF SOURCE
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog box. 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 box. For information about the
Orientation of Destination section, see Orientation of Source and Destination in the
COMSOL Multiphysics Reference Manual.
BOUNDARY CONDITION
The following Boundary condition options are available.
No Slip
The No slip condition models solid walls. No slip walls are walls where the fluid velocity
relative to the wall is zero. For an interior stationary wall this means that u = 0 on both
sides of the wall.
Slip
The Slip condition prescribes a no-penetration condition, u ⋅ n = 0. It implicitly
assumes that there are no viscous effects on either side of the slip wall and hence, no
boundary layer develops. From a modeling point of view, this can be a reasonable
approximation if the important effect is to prevent the exchange of fluid between the
regions separated by the interior wall.
Navier Slip
The Navier slip condition enforces no-penetration at the wall, u ⋅ nwall = 0, and adds a
tangential stress on each side of the wall
μ
K nt = – --- u slip
β
where β is a slip length. For more information, see the Navier Slip option in the Wall
feature.
WALL MOVEMENT
This section contains controls to describe the wall movement relative to the lab (or
spatial) frame.
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
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 interface needs to be added to
physically track the wall movement in the spatial reference frame.
CONSTRAINT SETTINGS
This section is displayed by clicking the Show button ( ) and selecting Advanced
Physics Options. The Constraints settings can be set to Automatic, Pointwise constraints,
or Nitsche constraints. Mixed constraints can be selected when imposing a no slip
condition exactly.
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.
• 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 boundary.
When 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 Interface above
for further details (note that the Flow Continuity does not account for the density-jump
corrections),
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) check box 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.
The Point Mass Source feature models mass flow originating from an infinitely small
domain centered around a point.
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).
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 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.
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 equation solved by the Incompressible Potential Flow interface is the Laplace
equation for a velocity potential. This can be used to derive both a velocity and static
pressure.
The Incompressible Potential Flow interface is available for stationary analyses. The
main feature is Fluid Properties, which adds the Laplace equation. The Fluid
Properties feature provides an interface for defining the fluid material and its properties
used to derive the velocity and pressure. When this physics interface is added, the
following default nodes are also added in the Model Builder:
• Fluid Properties
• Initial Values
• Wall
Then, from the Physics toolbar, add other nodes that implement boundary conditions.
You can also right-click Incompressible Potential Flow 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 ipf.
DEPENDENT VARIABLES
This physics interface solves for the Velocity Potential φ-dependent variable (field).
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.
DISCRETIZATION
Select shape function type for the velocity potential. The default setting is Quadratic.
Boundary conditions for axial symmetry boundaries are not required. For
the symmetry axis at r = 0, 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.
Fluid Properties
The Fluid Properties node adds the Laplace equation solved by the physics interface.
The node also provides an interface for defining the density of the fluid, and builds the
velocity and static pressure.
Material Properties
The density can either be specified by a material, or by a User defined expression.
INITIAL VALUES
An initial value or expression should be specified for the Velocity Potential φ.
Wall
The Wall node sets a slip wall condition for the fluid. This prescribes a no-penetration
condition, u·n = 0.
WALL MOVEMENT
This section contains controls to describe the wall movement relative to the lab (or
spatial) frame.
The Normal wall velocity setting controls the normal wall velocity Ubnd. 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 Ubnd = 0. If the frame moves, Ubnd becomes
equal to the frame movement projected on the wall normal. Ubnd is accounted for in
the actual nonpenetration boundary condition prescribed, so that u ⋅ n = Ubnd.
Select Zero (Fixed wall) from Normal wall velocity selection list to always prescribe
Ubnd = 0.
Velocity
The Velocity node sets a normal inflow velocity condition for the fluid. This prescribes
a flux condition for the velocity potential, ∇φ ⋅ n = −Uin.
Open Boundary
The Open Boundary node sets a normal flow condition for the fluid. The level of φ is
set to a constant value along the boundary, so that the tangential derivative of φ is zero.
OPEN BOUNDARY
The potential level is set by specifying the Velocity potential φbnd.
Symmetry
The Symmetry node prescribes a symmetry condition for the velocity potential,
∇φ ⋅ n = 0.
CONSTRAINT SETTINGS
This section is displayed by clicking the Show button ( ) and selecting Advanced
Physics Options.
If the boundaries are curved, the orientation of the source must be specified manually
(see Orientation of Source).
OFFSET
The Offset at the boundary specifies a value or expression for either the Velocity
potential difference, φsrc = −φdst. The offset ensures a gradient of the Velocity potential
between the source and destination, so that the velocity is not zero.
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.
ORIENTATION OF SOURCE
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog box. 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 box. For information about the
Orientation of Destination section, see Orientation of Source and Destination in the
COMSOL Multiphysics Reference Manual.
Interior Wall
The Interior Wall boundary condition can only be applied on interior boundaries.
It is similar to the Wall node available on exterior boundaries except that it applies on
both sides of an interior boundary. It allows discontinuities of the velocity potential
across the boundary. The Interior Wall boundary condition can be used to avoid
meshing thin structures by applying a no-penetration condition, u ⋅ n = Ubnd, on
interior curves and surfaces instead. Slip conditions and conditions for a moving wall
can also be prescribed.
WALL MOVEMENT
This section contains controls to describe the wall movement relative to the lab (or
spatial) frame.
The Normal wall velocity setting controls the normal wall velocity Ubnd. 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 Ubnd = 0. If the frame moves, Ubnd becomes
equal to the frame movement projected on the wall normal. Ubnd is accounted for in
the actual no-penetration boundary condition prescribed, so that u ⋅ n = Ubnd.
Select Zero (Fixed wall) from Normal wall velocity selection list to always prescribe
Ubnd = 0.
Flow Continuity
The Continuity condition is suitable for pairs where the boundaries match; it prescribes
that the velocity potential variable 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.
Ribbon
Physics tab with the physics interface selected:
Pairs>Continuity
∂ρ
------ + ∇ ⋅ ( ρu ) = 0 (3-4)
∂t
∂u
ρ ------ + ρ ( u ⋅ ∇ )u = ∇ ⋅ [ – pI + K ] + F (3-5)
∂t
where
1
S = --- ( ∇u + ( ∇u ) T )
2
To close the equation system, Equation 3-4 through Equation 3-6, 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 = 2μS – --- μ ( ∇ ⋅ u )I (3-8)
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.
With the Microfluidics Module, you can model flows of non-Newtonian fluids using
the predefined constitutive models. The following models which describe the
stress-strain relationship for non-Newtonian fluids are available: Power law, Carreau,
Bingham–Papanastasiou, Herschel–Bulkley–Papanastasiou and Casson–Papanastasiou.
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.
2D AXISYMMETRIC FORMULATIONS
A 2D axisymmetric formulation of Equation 3-4 and Equation 3-5 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 3-5. The resulting system of equations is both easier to
converge and computationally less expensive compared to retaining the φ-equation.
The default 2D axisymmetric formulation of Equation 3-4 and Equation 3-5 therefore
assumes that
∂ ⁄ ∂φ = 0
uφ = 0
Compressible Flow
The equations of motion for a single-phase fluid are the continuity equation:
∂ρ
------ + ∇ ⋅ ( ρu ) = 0 (3-9)
∂t
∂u
ρ ------ + ρu ⋅ ∇u = – ∇p + ∇ ⋅ μ ( ∇u + ( ∇u ) T ) – --- μ ( ∇ ⋅ u )I + F
2
(3-10)
∂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.
u-
Ma = -----
a
The momentum equation, Equation 3-10, is parabolic for unsteady flow and elliptic
for steady flow, whereas the continuity equation, Equation 3-9, 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 3-10 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
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 3-9 reduces to
ρ∇ ⋅ u = 0 (3-11)
∂u T
ρ + ρ ( u ⋅ ∇ )u = ∇ ⋅ [ – pI + μ ( ∇u + ( ∇u ) ) ] + F (3-12)
∂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.
Non-Newtonian Flow
For an inelastic non-Newtonian fluid, the relationship between stress and strain rate is
nonlinear, and we may express the constitutive relation in terms of an apparent
viscosity. For the incompressible flow, it is:
·
K = 2μ app ( γ ) S
·
where γ is the shear rate,
·
γ = 2S:S
POWER LAW
The Power law model is an example of a generalized Newtonian model. It prescribes
γ· n–1
μ app = m -------
· (3-13)
γ ref
·
where m, n are scalars that can be set to arbitrary values and γ ref denotes a reference
−1
shear rate for which the default value is 1 s . For n > 1, the power law describes a shear
thickening (dilatant) fluid. For n < 1, it describes a shear thinning (pseudoplastic)
fluid. A value of n equal to one gives the expression for a Newtonian fluid.
max ( γ· , γ· min )
n–1
μ app = m ------------------------------
· - (3-14)
γ ref
·
where γ min is a lower limit for the evaluation of the shear rate magnitude. The default
·
value for γ min is 10−2 s−1, but can be given an arbitrary value or expression using the
corresponding text field.
CARREAU MODEL
The Carreau model defines the viscosity in terms of the following four-parameter
expression
n–1
· ------------
μ app = μ ∞ + ( μ 0 – μ ∞ ) [ 1 + ( λγ ) 2 ] 2 (3-15)
where λ is a parameter with the unit of time, μ0 is the zero shear rate viscosity, μ∞ is
the infinite shear-rate viscosity, and n is a dimensionless parameter. This expression is
able to describe the viscosity for most stationary polymer flows.
BINGHAM–PAPANASTASIOU
Viscoplastic fluid behavior is characterized by existence of the yield stress τy — a limit
which must be exceeded before significant deformation can occur. To model the
stress-deformation behavior of viscoplastic materials, different constitutive equations
have been propose. The Bingham plastic model is written as
τy
μ app = μ p + ----
·- , K > τ y
γ
τy ·
μ app = μ p + ----
·- [ 1 – exp ( – m p γ ) ] (3-16)
γ
HERSCHEL–BULKLEY–PAPANASTASIOU
The Herschel–Bulkley –Papanastasiou model combines the effects of the Power law
the Papanastasiou continuous regularization:
γ· n–1
τy ·
μ app = m -------
· + ----
·- [ 1 – exp ( – m p γ ) ] (3-17)
γ ref γ
·
where m, n are scalars that can be set to arbitrary values, and γ ref is the reference shear
rate. In case n equals one, the Bingham–Papanastasiou model is recovered. This
equation is valid in both yielded and unyielded regions. The exponent mp controls the
smoothness of the viscosity function.
CASSON–PAPANASTASIOU
The Casson–Papanastasiou model combines Casson equation with the Papanastasiou
regularization:
2
τy ·
μ app = μ p + ----
·- [ 1 – exp ( – m p γ ) ] (3-18)
γ
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=
∂t
(3-20)
∇ ⋅ – 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 (3-21)
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
defines the pressure condition at an outlet), it represents the relative pressure. Hence
defining the outlet pressure as phydro,approx = −ρrefg ⋅ (r − rref) compensates for the
gravity force for an ambient reference pressure of 0 Pa when the density is constant,
there is no external force, and provided pref, g, and r0 are defined consistently.
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.
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:
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 νps 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 + X e – ξp 1 + X e –ξ p 2 d l pore
ξ
= l̃ -------------------------- -------------------------- e p – 1 ,
p p w
y ps ξ p = ------ , l̃ = ------------------------,
–ξp 1 + X p l̃ 1 + 2c β
1 – Xp e
1 + 2c β – 1 + 4--- c β 1 + 4c D – 1 β ND κ 2
3
X p = --------------------------------------------------- , c β = -------------------------------- , c D = ----------- ------ ∇p - ρg
2 μ μ
1 + 2c β + 1 + 4--- c β
3
ξ wd l pore
y ps = l̃ ( e p – 1 ) , ξ p = ------ , l̃ = ------------------------,
l̃ 1 + 2c β
β ND κ u slip l pore 2 1⁄3
c β = ---------------------------- ---------- ⁄ 2
μ dw
Although this formulation is an approximation, since it uses the slip velocity at the wall
to reconstruct the pressure gradient, it is rather accurate. Moreover, the influence of
the convective terms is partially accounted for in this formulation.
where t = (ny , −nx) for 2D and t = (nz, −nr) for axial symmetry.
• For 3D components, the velocity is set equal to a given vector uw projected onto
the boundary plane:
u w – ( n ⋅ u w )n
u = ---------------------------------------- u w
u w – ( n ⋅ u w )n
The normalization makes u have the same magnitude as uw even if uw is not exactly
parallel to the wall.
SLIP VELOCITY
In the microscale range, the flow at a boundary is seldom strictly no slip or slip.
Instead, the boundary condition is something in between, and there is a slip velocity
at the boundary. Two phenomena account for this velocity: violation of the continuum
hypothesis for the viscosity and flow induced by a thermal gradient along the
boundary.
The following equation relates the viscosity-induced jump in tangential velocity to the
tangential shear stress along the boundary:
1
Δu = --- τ n, t
β
μ -
β = ------------------------
2 – α v
-------------- - λ
αv
μ-
β = -----
Ls
where Ls, the slip length (SI unit: m), is a straight channel measure of the distance
from the boundary to the virtual point outside the flow domain where the flow profile
extrapolates to zero. This equation holds for both liquids and gases.
Thermal creep results from a temperature gradient along the boundary. The following
equation relates the thermally-induced jump in tangential velocity to the tangential
gradient of the natural logarithm of the temperature along the boundary:
μ
Δu = σ T --- ∇ t log T
ρ
where σT is the thermal slip coefficient (dimensionless) and ρ is the density of the fluid.
The thermal slip coefficients range between 0.3 and 1.0 and can be found in Ref. 17.
Ls μ
u – u w, t = ------ τ n, t + σ T ------- ∇ t T
μ ρT
τ n, t = K n – ( n ⋅ K n )n
where the components of K are the Lagrange multipliers that are used to implement
the boundary condition. Similarly, the tangential temperature gradient results from the
difference of the gradient and its normal projection:
∇ t T = ∇T – ( n ⋅ ∇T )n
2 – αv
L s = --------------- λ
αv
ELECTROOSMOTIC VELOCITY
Most solid surfaces acquire a surface charge when brought into contact with an
electrolyte. In response to the spontaneously formed surface charge, a charged
solution forms close to the liquid-solid interface. This is known as an electric double
layer. If an electric field is applied to the fluid, this very narrow layer starts to move
along the boundary.
It is possible to model the fluid’s velocity near the boundary using the Helmholtz–
Smoluchowski relationship between the electroosmotic velocity u and the applied
electric field:
u = μ eo E t
where μeo is the electroosmotic mobility and Et is the fluid electric field tangential to
the wall.
Built-in Expression
Use the Electroosmotic mobility μeo (SI unit: m2/(s·V)) Built-in expression to
compute the electroosmotic mobility from:
ζ
μ eo = – ε r ε 0 --- (3-22)
μ
Navier Slip
This boundary condition enforces no-penetration at the wall, u ⋅ nwall = 0, and adds a
tangential stress
μ
K nt = – --- u slip
β
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
(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) ⋅ nwall)nwall 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 boundary condition is suitable for walls adjacent to a fluid-fluid
interface or a free surface when solving for laminar flow. Applying this boundary
condition, the contact line (fluid-fluid-solid interface) is free to move along the wall.
Note that in problems with contact lines, the tangential velocity of the wall typically
represents the movement of the contact line but the physical wall is not moving. In
such cases, Account for the translational wall velocity in the friction force should not be
checked.
The Navier Slip option is not available when selecting a turbulence model.
CONSTRAINT SETTINGS
The wall feature uses three different techniques to constraint 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. They 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. 19.
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.
∂u n
– p + 2μ --------- = F n (3-23)
∂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:
where ∂ut/∂n 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 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.
Mass Flow
The Mass flow boundary condition constrains the mass flowing into the domain across
an inlet boundary. The mass flow can be specified in a number of ways.
mf
u = – ------- n
ρ
– dbc ρ ( u ⋅ n ) dS = m
∂Ω
where dbc (only present in the 2D Cartesian axis system) is the boundary thickness
normal to the fluid-flow domain and m is the total mass flow rate.
In addition to the constraint on the total flow across the boundary, the tangential
velocity components are set to zero on the boundary
u×n = 0 (3-24)
ρ
– dbc ρ------st- ( u ⋅ n ) dS = Qsv
∂Ω
where dbc (only present in the 2D component Cartesian axis system) is the boundary
thickness normal to the fluid-flow domain, ρst is the standard density, and Qsv is the
standard flow rate. The standard density is defined by one of the following equations:
M
ρ st = -------n-
Vn
p st M n
ρ st = ---------------
-
RT st
where Mn is the mean molar mass of the fluid, Vn is the standard molar volume, pst is
the standard pressure, R is the universal molar gas constant, and Tst is the standard
temperature.
Equation 3-24 or Equation 3-25 is also enforced for compressible and incompressible
flow, respectively, ensuring that the normal component of the viscous stress and the
tangential component of the velocity are zero at the boundary.
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
∂Ω
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.
( 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 to 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:
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
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
This implies that the total stress in the tangential direction is zero. This boundary
condition implicitly sets a constraint on the pressure which for 2D flows is
∂u n
p = 2μ ---------- + f 0 (3-25)
∂n
The Normal Stress condition is the mathematically correct version of the Pressure
Conditions condition (Ref. 4), but it is numerically less stable.
– pI + μ ( ∇u + ( ∇u ) T ) – 2
--- μ ( ∇ ⋅ u )I n = – p 0 n (3-26)
3
u⋅t=0 (3-28)
– pI + μ ( ∇u + ( ∇u ) T ) – 2
--- μ ( ∇ ⋅ u )I n = – p̂ 0 n
3
, (3-29)
( – pI + μ ( ∇u + ( ∇u ) T ) )n = – p̂ 0 n
p̂ 0 ≤ p 0
u⋅n≥0 (3-30)
A pressure condition can also be applied at an inlet. In this case, either the normal stress
is prescribed
together with the tangential condition in Equation 3-28, 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
(3-32)
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
useful, for example, in pump applications. The pressure is then prescribed at the
boundaries using Bernoulli’s principle,
1 2
p = p stat = p tot – --- ρ u (3-33)
2
T T (3-34)
n ( – pI + μ ( ∇u + ( ∇u ) T ) )n = n ( – p stat I + μ ( ∇u + ( ∇u ) T ) )n
where ptot and |u|2 are averaged over the boundaries using the aveop operator:
1 2
p stat = aveop ( p tot ) – --- ρ ⋅ aveop ( u )
2
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
− −
−
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 non-trivial (gives non-zero effect) when εp jumps across the
interface:
+
pn – Kn + ρ ( u ⋅ n ) -----
1 2 u + ρ ( u ⋅ n ) --------
1 -
u av = 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,expansion) ρ ( u ⋅ n ) 2
p = K exp -----------------------
- ,
2ε 2p −
(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).
με 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, +
(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 (3-35)
δV
q· p test ( p )
·
is added to a point in the geometry. As can be seen from Equation 3-35, 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 (3-36)
δS
q· l test ( p )
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 in the COMSOL Multiphysics Reference Manual.
• 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.
STREAMLINE DIFFUSION
For strongly coupled systems of equations, the streamline diffusion method must be
applied to the system as a whole rather than to each equation separately. These ideas
were first explored by Hughes and Mallet (Ref. 8) and were later extended to Galerkin
least-squares (GLS) applied to the Navier–Stokes equations (Ref. 9). This is the
streamline diffusion formulation that COMSOL Multiphysics supports.
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.
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.
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.
Time-Dependent Solver
In the time-dependent case, the initial guess for each time step is (loosely speaking) the
previous time step, which is a very good initial value for the nonlinear solver. The
automatic damping algorithm is then not necessary. The damping factor in the
Newton method is instead set to a constant value slightly smaller than one. Also, for
the same reason, it suffices to update the Jacobian once per time step.
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
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
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 (3-37)
u – nojac ( u ) T
ρ ------------------------------- + ρ ( u ⋅ ∇ )u = ∇ ⋅ [ – pI + μ ( ∇u + ( ∇u ) ) ] + F
Δt̃
where Δt̃ is a pseudo time step. Since u−nojac(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
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
For details about the CFL regulator, see Pseudo Time Stepping in the
COMSOL Multiphysics Reference Manual.
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
2
d x
= F t, x,
dx
m
dt2 dt
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.
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.
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. R.P. Chhabra and J.F. Richardson, Non-Newtonian Flow and Applied Rheology,
2nd ed., Elsevier, 2008.
∇⋅u = 0 (3-39)
∇×u = 0 (3-40)
As the curl of the gradient of a scalar field is zero by definition, the velocity can be
approximated as the gradient of a scalar velocity potential, φ,
u = – ∇φ (3-41)
so that Equation 3-39 and Equation 3-41 result in the Laplace equation
– ∇ ⋅ ∇φ = 0 (3-42)
ρ 2
p = p Tot – --- ∇φ (3-43)
2
where
ρ 2
p Tot = --- U scale (3-44)
2
In this chapter:
• The Laminar Two-Phase Flow, Level Set and Laminar Two-Phase Flow, Phase
Field Interfaces
• The Laminar Three-Phase Flow, Phase Field Interface
• The Laminar Two-Phase Flow, Moving Mesh Interface
• Theory for the Level Set and Phase Field Interfaces
• Theory for the Three-Phase Flow, Phase Field Interface
• Theory for the Two-Phase Flow, Moving Mesh Interface
| 149
The Laminar Two-Phase Flow, Level
Set and Laminar Two-Phase Flow,
Phase Field Interfaces
This section includes the following topics:
When adding the Laminar Two-Phase Flow, Level Set multiphysics interface, a Laminar
Flow and a Level Set interface are added to the Model Builder. In addition, a
multiphysics coupling feature, The Two-Phase Flow, Level Set Coupling Feature, is
added automatically under the Multiphysics node. The Wetted Wall Coupling Feature
is also added, but with empty selection. Other Wetted Wall multiphysics coupling
features and The Interior Wetted Wall Coupling Feature can be added when needed
to model walls.
INTERFACE PROPERTIES
Discretization
By default the fluid flow discretization is set to P1+P1, and the level set discretization
is set to Linear. This combination provides exact conservation of the integral of the level
set variable when using the nonconservative form of the level set equation.
The Two-Phase Flow, Level Set multiphysics coupling feature defines the density and
dynamic viscosity of the fluid used in the Laminar Flow interface, and it defines the
surface tension on the interface in form of a volume force used in the momentum
equation. It also enables the Level Set interface to use the velocity field calculated from
the Laminar Flow interface to transport the interface.
SETTINGS
The Label is the default multiphysics coupling feature name.
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 Two-Phase Flow, Level Set
in the model) is tpf1.
THE LAMINAR TWO-PHASE FLOW, LEVEL SET AND LAMINAR TWO-PHASE FLOW, PHASE FIELD INTERFACES | 151
DOMAIN SELECTION
When nodes are added from the context menu, you can select All domains (the default)
or select Manual from the Selection list to choose specific domains.
COUPLED INTERFACES
This section controls which individual interfaces are coupled by the current coupling
feature. If a physics interface is deleted and then added to the model again, then in
order to reestablish the coupling, you need to choose the correct physics interface
again from the Fluid flow or Moving interfaces lists.
MODEL INPUTS
Fluid properties of each phase, such as density, viscosity, or the surface tension
coefficient, 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.
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 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 fluid flow physics interface level.
The Absolute pressure field can be edited by clicking Make All Model Inputs Editable
( ) and entering the desired value in the input field.
Click the Go to Material button () to move to the selected material node. Click the
Add Multiphase Material button ( ) to add a multiphase material with two phases.
The added material then becomes the one selected in the Multiphase Material list.
FLUID PROPERTIES
A Fluid Properties section will be available per phase if the Material Properties are set to
Locally defined. Use the corresponding section to specify the properties of the two
fluids. The fluids are denoted Fluid 1 and Fluid 2, respectively.
To specify the properties of Fluid 1from a material, select the appropriate material in
the Fluid 1 list. Also make sure that the Density of fluid 1 ρ1 and Dynamic viscosity of
fluid 1 μ1 are both set to From Material.
The density in a material can depend on temperature and/or pressure and these
dependencies are automatically replaced by pref and Tref for incompressible flows (as
specified by the Compressibility setting of the fluid flow interface).
To instead apply a variable or expression for the density or dynamic viscosity for Fluid
A, select User defined in the Density of fluid 1 ρ1 or the Dynamic viscosity of fluid 1 μ1
list and enter the expression in the corresponding text field.
THE LAMINAR TWO-PHASE FLOW, LEVEL SET AND LAMINAR TWO-PHASE FLOW, PHASE FIELD INTERFACES | 153
Similarly, the properties of Fluid 2 can be specified. The default material is set to None.
Care should be taken when using the Domain Material setting for the
material properties for Fluid 1 and Fluid 2. The material properties are
obtained from the domain irrespective of the location of the interface. If
two different materials are selected in domains 1 and 2, with the phase
boundary initially coincident with the domain boundary, the model has
convergence issues once the phase boundary moves away from the
domain boundary. This is because a density discontinuity and a viscosity
discontinuity occurs at the boundary separating the two fluids. For this
reason, selecting the material directly is recommended when setting the
material properties for Fluid 1 and Fluid 2.
ADVANCED SETTINGS
If the Material Properties are set to Locally defined, you can specify the averaging
method for density and dynamic viscosity in this section. The default method for
Density averaging and Viscosity averaging is Volume average. In addition to the default
method, Density averaging can be set to Heaviside function or Harmonic volume average,
while Viscosity averaging can be set to Heaviside function, Harmonic volume average, Mass
average or Harmonic mass average. When a Heaviside function is used, enter a value for
the corresponding mixing parameter, lρ or lμ.
SURFACE TENSION
Select the Include surface tension force in momentum equation check box to include the
surface tension force in the momentum equation. The surface tension force is not
added to porous domains.
The Wetted Wall boundary condition is suitable for walls in contact with the fluid-fluid
interface. When this boundary condition is used, the fluid-fluid interface can move
along the wall.
For laminar flow, this boundary condition enforces the no-penetration condition u ⋅
nwall = 0 and adds a tangential stress on the form
K nt = – μ
--- u
β
where Knt = Kn − (Kn ⋅ nwall)nwall, Kn = Knwall, and K is the viscous stress tensor. β is
the slip length. For numerical calculations, a suitable choice is β = h, where h is the
mesh element size. 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 (see Figure 4-1).If the surface tension force is included in
the momentum equation in The Two-Phase Flow, Level Set Coupling Feature, the
Wetted Wall boundary condition also adds the following boundary force to enforce the
contact angle:
F θ = σδ ( n wall ⋅ n – cos θ w )n
The contact angle θw is defined as the angle between the fluid interface and the wall
(see Figure 4-1). For more information, see Ref. 4 and Ref. 5. Note that the contact
angle is not enforced on boundaries adjacent to porous domains.
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 (4-1)
THE LAMINAR TWO-PHASE FLOW, LEVEL SET AND LAMINAR TWO-PHASE FLOW, PHASE FIELD INTERFACES | 155
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.
Fluid 1
u Wall
Wall
θ
Fluid 2
β
Figure 4-1: Definition of the contact angle θ at interface/wall contact points (left) and
an illustration of the slip length β (right).
SETTINGS
The Label is the default multiphysics coupling feature name.
The default Name (for the first Wetted Wall multiphysics coupling feature in the model)
is ww1.
BOUNDARY SELECTION
When nodes are added from the context menu, select All boundaries (the default) or
select Manual from the Selection list to choose specific boundaries.
COUPLED INTERFACES
This section controls which individual interfaces are coupled by the current coupling
feature. If a physics interface is deleted and then added to the model again, then in
order to reestablish the coupling, you need to choose the correct physics interface
again from the Fluid flow or Moving interfaces lists.
WALL MOVEMENT
This section contains controls to describe the wall movement relative to the lab (or
spatial) frame.
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.
Translational velocity can also be set to Zero (Fixed wall) to force utr = 0. This is typically
used in problems where the mesh is deforming or rotating, but we want the boundary
to keep zero velocity. For example, in fixed walls tangential to a Rotating Domain.
WETTED WALL
When using Navier Slip, 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 (corresponds to the element size in the wall normal direction for
boundary layer elements) and fh is a user input. Select User defined from Slip Length
selection list in order to manually prescribe β (SI unit: m).
If the fluid physics interface includes porous domains, check Use porous slip wall
treatment to use the porous slip wall treatment to provide tangential stresses and the
slip velocity on boundaries adjacent to porous domains. If Use porous slip wall
treatment is not checked, the condition selected in Wall condition is used for porous
boundaries.
CONTACT ANGLE
Select an option from the Specify contact angle list — Directly (the default) or Through
Young’s equation. For Directly enter a Contact angle θw (SI unit: rad). The default 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).
THE LAMINAR TWO-PHASE FLOW, LEVEL SET AND LAMINAR TWO-PHASE FLOW, PHASE FIELD INTERFACES | 157
It is similar to The Wetted Wall Coupling Feature available on exterior boundaries of
the Laminar Two-Phase Flow, Level Set ( ) multiphysics interface, except that it applies
on both sides of an interior boundary. It is an exclusive feature which overrides the
Interior Wall feature in the Laminar interface as well as the Thin Barrier feature in the
Level Set interface. It is available for laminar flow and turbulent flow with wall
functions or automatic wall treatment.
The Interior Wetted Wall coupling feature allows discontinuities (velocity, pressure,
level set variable) across the boundary and can be used to avoid meshing thin structures
in contact with the fluid-fluid interface. When this boundary condition is used, the
fluid-fluid interface can move along the wall.
For laminar flow, this boundary condition enforces the no-penetration condition
u ⋅ nwall = 0 on both sides of the wall, and adds a tangential stress on the form
K nt = – μ
--- u
β
where Knt = Kn − (Kn ⋅ nwall)nwall, Kn = Knwall, and K is the viscous stress tensor. β is
the slip length. For numerical calculations, a suitable choice is β = h, where h is the
mesh element size.
If the surface tension force is included in the momentum equation, the Interior Wetted
Wall boundary condition also adds the following boundary force on both sides of the
walls to enforce the contact angle:
F θ = σδ ( n wall ⋅ n – cos θ w )n
Note that the contact angle is not enforced on boundaries adjacent to porous domains.
For more information, see The Wetted Wall Coupling Feature.
SETTINGS
The Label is the default multiphysics coupling feature name.
The default Name (for the first Interior Wetted Wall multiphysics coupling feature in the
model) is iww1.
COUPLED INTERFACES
This section controls which individual interfaces are coupled by the current coupling
feature. If a physics interface is deleted and then added to the model again, then in
order to reestablish the coupling, you need to choose the correct physics interface
again from the Fluid flow or Moving interfaces lists.
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.
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 interface needs to be added to
physically track the wall movement in the spatial reference frame.
BOUNDARY SELECTION
When nodes are added from the context menu, select All boundaries (the default) or
select Manual from the Selection list to choose specific boundaries.
WETTED WALL
When using Navier Slip, 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 (corresponds to the element size in the wall normal direction for
boundary layer elements) and fh is a user input. Select User defined from Slip Length
selection list in order to manually prescribe β (SI unit: m).
If the fluid physics interface includes porous domains, check Use porous slip wall
treatment to use the porous slip wall treatment to provide tangential stresses and the
slip velocity on boundaries adjacent to porous domains. If Use porous slip wall
treatment is not checked, the condition selected in Wall condition is used for porous
boundaries.
CONTACT ANGLE
Select an option from the Specify contact angle list — Directly (the default) or Through
Young’s equation. For Directly enter a Contact angle θw (SI unit: rad). The default is
π/2 radians. For Through Young’s equation enter values or expressions for Phase 1-Solid
THE LAMINAR TWO-PHASE FLOW, LEVEL SET AND LAMINAR TWO-PHASE FLOW, PHASE FIELD INTERFACES | 159
surface energy density γs1 (SI unit: J/m2) and Phase 2-Solid surface energy density γs2
(SI unit: J/m2).
When adding the Laminar Two-Phase Flow, Phase Field multiphysics interface, a Laminar
Flow and a Phase Field in Fluids interface are added to the Model Builder. In addition,
a multiphysics coupling feature, The Two-Phase Flow, Phase Field Coupling Feature,
is added automatically under the Multiphysics node. Note that unlike the Two-Phase
Flow, Level Set interfaces, the wetted wall feature here is not implemented as a separate
multiphase coupling boundary feature but as a default Wetted Wall feature in the Phase
Field in Fluids interface.
Wetted Wall
Simulations using the Laminar Two-Phase Flow, Phase Field interface are always
time-dependent since the position of an interface almost always depends on its history.
INTERFACE PROPERTIES
Discretization
By default the fluid flow discretization is set to P1+P1, and the phase field discretization
is set to Linear. This combination provides improved conservation of the integral of the
phase field variable when using the nonconservative form of the phase field equations.
The Two-Phase Flow, Phase Field multiphysics coupling feature defines the density and
dynamic viscosity of the fluid used in the Laminar Flow interfaces, and it defines the
surface tension on the interface in form of a volume force used in the momentum
equation. It also enables the Phase Field in Fluids interface to use the velocity field
calculated from the Laminar Flowinterface to transport the interface.
SETTINGS
The Label is the default multiphysics coupling feature name.
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 Two-Phase Flow, Phase
Field in the model) is tpf1.
DOMAIN SELECTION
When nodes are added from the context menu, you can select All domains (the default)
or select Manual from the Selection list to choose specific domains.
COUPLED INTERFACES
This section controls which individual interfaces are coupled by the current coupling
feature. If a physics interface is deleted and then added to the model again, then in
order to reestablish the coupling, you need to choose the correct physics interface
again from the Fluid flow or Moving interfaces lists.
MODEL INPUTS
Fluid properties of each phase, such as density, viscosity, or the surface tension
coefficient, 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.
THE LAMINAR TWO-PHASE FLOW, LEVEL SET AND LAMINAR TWO-PHASE FLOW, PHASE FIELD INTERFACES | 161
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 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 fluid flow physics interface level.
The Absolute pressure field can be edited by clicking Make All Model Inputs Editable
( ) and entering the desired value in the input field.
MATERIAL PROPERTIES
The effective density and dynamic viscosity can either be Locally defined or picked up
from a Multiphase Material. When the properties are defined locally, provide the
properties for each phase in the respective fluid properties section, and the averaging
method in the advanced settings section. If a multiphase material is used, these settings
are controlled from the material. Using a multiphase material is advantageous for
models coupling two-phase flow with other physics interfaces, such as Heat Transfer
in Fluids or Electrostatics. In such cases, the multiphase material can ensure that the
effective material properties for these physics interfaces are averaged using the volume
fraction from the Phase Field in Fluids physics interface.
FLUID PROPERTIES
A Fluid Properties section will be available per phase if the Material Properties are set to
Locally defined. Use the corresponding section to specify the properties of the two
fluids. The fluids are denoted Fluid 1 and Fluid 2, respectively.
To specify the properties of Fluid 1from a material, select the appropriate material in
the Fluid 1 list. Also make sure that the Density of fluid 1ρ1 and Dynamic viscosity of fluid
1μ1 are both set to From Material.
The density in a material can depend on temperature and/or pressure and these
dependencies are automatically replaced by pref and Tref for incompressible flows (as
specified by the Compressibility setting of the fluid flow interface).
To instead apply a variable or expression for the density or dynamic viscosity for Fluid
A, select User defined in the Density of fluid 1 ρ1 or the Dynamic viscosity of fluid 1 μ1
list and enter the expression in the corresponding text field.
THE LAMINAR TWO-PHASE FLOW, LEVEL SET AND LAMINAR TWO-PHASE FLOW, PHASE FIELD INTERFACES | 163
Similarly, the properties of Fluid 2 can be specified. The default material is set to None.
Care should be taken when using the Domain Material setting for the
material properties for Fluid 1 and Fluid 2. The material properties are
obtained from the domain irrespective of the location of the interface. If
two different materials are selected in domains 1 and 2, with the phase
boundary initially coincident with the domain boundary, the model has
convergence issues once the phase boundary moves away from the
domain boundary. This is because a density discontinuity and a viscosity
discontinuity occurs at the boundary separating the two fluids. For this
reason, selecting the material directly is recommended when setting the
material properties for Fluid 1 and Fluid 2.
The fluid defined as Fluid 1 affects the wetting characteristics on wetted walls. See the
Wetted Wall node for details.
ADVANCED SETTINGS
f the Material Properties are set to Locally defined, you can specify the averaging method
for density and dynamic viscosity in this section. Select the method used for Density
averaging and Viscosity averaging. The default method for both settings is Volume
average. In addition to the default method, Density averaging can be set to Heaviside
function or Harmonic volume average, while Viscosity averaging can be set to Heaviside
function, Harmonic volume average, Mass average or Harmonic mass average. When a
Heaviside function is used, enter a value for the corresponding mixing parameter, lρ or
lμ.
When the surface tension force is included in the momentum equation, you can select
the Shift surface tension force to the heaviest phase check box. This can prevent
significant spurious oscillations in the velocity field for the lighter phase in cases with
a large difference in density between the two phases. The amount of shifting is
controlled by the Smoothing factor ds,Fst (default 0.1). The surface tension force is
then multiplied by
V f, 1 – 0.5 V f, 2 – 0.5
f s = ----------------------- ρ 1 H ------------------------- + ρ 2 H -------------------------
2
(4-2)
( ρ1 + ρ2 ) d s, Fst d s, Fst
Shift surface tension force to the heaviest phase works better when combined with
Heaviside function for the averaging of density and viscosity.
Domain, Boundary, Point, and Pair Nodes for the Laminar Flow,
Two-Phase, Level Set and Phase Field Interfaces
The Two-Phase Flow, Level Set and Phase Field interfaces are multiphysics interfaces
combining Laminar Flow or Turbulent Flow interfaces together with Level Set or
Phase Field in Fluids interfaces.
LAMINAR FLOW
The available physics features for the Laminar Flow interface are listed in the section
Domain, Boundary, Pair, and Point Nodes for Single-Phase Flow.
LEVEL SET
The available physics features for the Level Set interface are listed in the section
Domain, Boundary, and Pair Nodes for the Level Set Interface.
THE LAMINAR TWO-PHASE FLOW, LEVEL SET AND LAMINAR TWO-PHASE FLOW, PHASE FIELD INTERFACES | 165
All domain, boundary, point, and pair nodes are available from the Physics ribbon
toolbar (Windows users), Physics context menu (Mac or Linux users), or by
right-clicking to access the context menu (all users).
When adding the Laminar Three-Phase Flow, Phase Field multiphysics interface, a
Laminar Flow and a Ternary Phase Field interface are added to the Model Builder. In
addition the Multiphysics node, including the multiphysics coupling feature Three-Phase
Flow, Phase Field is added.
Simulations using the Laminar Three-Phase Flow, Phase Field interface are always
time-dependent since the position of an interface almost always depends on its history.
The Three-Phase Flow interface solves Navier–Stokes equations for the conservation
of momentum, and a continuity equation for the conservation of mass. The positions
of the interfaces separating the fluid phases are tracked by solving four additional
transport equations: two equations governing phase field variables and two equations
for the corresponding generalized chemical potentials. The movement of the
fluid-fluid interfaces is determined by minimization of free energy.
SETTINGS
The Label is the default multiphysics coupling feature name.
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 tfpf1.
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 three-phase flow, or
select All domains as needed.
MODEL INPUTS
Fluid properties of each phase, 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.
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
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 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 fluid
flow physics interface level.
The Absolute pressure field can be edited by clicking Make All Model Inputs Editable
( ) and entering the desired value in the input field.
MATERIAL PROPERTIES
The effective density and dynamic viscosity can either be Locally defined or picked up
from a Multiphase Material. When the properties are defined locally, provide the
properties for each phase in the respective fluid properties section, and the averaging
method in the advanced settings section. If a multiphase material is used, these settings
are controlled from the material. Using a multiphase material is advantageous for
models coupling two-phase flow with other physics interfaces, such as Heat Transfer
in Fluids or Electrostatics. In such cases, the multiphase material can ensure that the
effective material properties for these physics interfaces are averaged using the volume
fraction from the Ternary Phase Field physics interface.
Click the Go to Material button () to move to the selected material node. Click the
Add Multiphase Material button ( ) to add a multiphase material with three phases.
The added material then becomes the one selected in the Multiphase Material list.
To specify the properties of Fluid A from a material, select the appropriate material in
the Fluid A list. Also make sure that the Density of fluid A ρA and Dynamic viscosity of
fluid A μA are both set to From material.
The density in a material can depend on temperature and/or pressure and these
dependencies are automatically replaced by pref and Tref for incompressible flows (as
specified by the Compressibility setting of the laminar flow interface).
To instead apply a variable or expression for the density or dynamic viscosity for
Fluid A, select User defined in the Density of fluid A ρA or the Dynamic viscosity of fluid
A μA list and enter the expression in the corresponding text field.
COUPLED INTERFACES
This section controls which individual interfaces are coupled by the current coupling
feature. If a physics interface is deleted and then added to the model again, then in
order to reestablish the coupling, you need to choose the correct physics interface
again from the Fluid flow or Moving interfaces lists.
LAMINAR FLOW
The available physics features for The Laminar Flow Interface are listed in Domain,
Boundary, Pair, and Point Nodes for Single-Phase Flow.
All domain, boundary, point, and pair nodes are available from the Physics ribbon
toolbar (Windows users), Physics context menu (Mac or Linux users), or by
right-clicking to access the context menu (all users).
When adding the Laminar Two-Phase Flow, Moving Mesh multiphysics interface, a
Laminar Flow interface is added to the component, and a Moving Mesh interface with a
Deforming Domain feature is added under the Definitions node. The Laminar Flow
interface adds the Navier–Stokes equations and provides a way of defining the
properties of the fluids. For each of the fluids the density and viscosity must be
specified (these are typically taken from the corresponding materials, but can be user
defined).
Simulations using the Laminar Two-Phase Flow, Moving Mesh interface are always
time-dependent since the position of an interface is almost always dependent of its
history. There are additional boundary conditions to describe how the fluid-fluid
interface moves from the Laminar Flow context menu under the option Fluid Interface
Features:
• Fluid-Fluid Interface
• Free Surface
• Contact Angle (as a subfeature to the two conditions above)
PHYSICAL MODEL
This physics interface deforms the mesh within the domains on either side of the two
fluid interfaces to track its movement.
If flow is occurring at very low Reynolds numbers, the inertial term in the Navier–
Stokes equations can be neglected and the linear Stokes equations can be solved on the
domain. This flow type is referred to as creeping flow or Stokes flow and can occur in
microfluidics and MEMS devices, where the flow length scales are very small. To make
this approximation select the Neglect inertial term (Stokes flow) check box, which
significantly improves the solver speed.
Enter a Reference pressure level pref (SI unit: Pa). The default value is 1[atm].
DEPENDENT VARIABLES
The dependent variables (field variables) are for the Velocity field and Pressure. The
names can be changed in the corresponding fields, but the names of fields and
dependent variables must be unique within a model.
Deforming Domain
When the Laminar Two-Phase Flow, Moving Mesh multiphysics interface is added using
the Model Wizard, a Deforming Domain node is added automatically in the Model Builder
under the Definitions>Moving Mesh node. This node serves to represent domains and
boundaries where the mesh can deform. By default, the selection is all domains. Under
By default, the mesh is fixed at all external boundaries of the geometry. Use the
Symmetry/Roller node to select the external boundaries, where the fluid-fluid
interface can slide along the boundary. You can also add other types of boundary
conditions for the mesh motion, for details see Moving Mesh Features in the
COMSOL Multiphysics Reference Manual.
Fluid-Fluid Interface
The Fluid-Fluid Interface node defines the initial position of a fluid-fluid interface and
includes equations to track the evolution of the interface. The Contact Angle subnode
is added by default, and is also available from the context menu (right-click the parent
node) or from the Physics toolbar, Attributes menu.
MODEL INPUT
Enter a value for the Temperature T (SI unit: K). This option is only necessary when
the surface tension coefficient comes from a library of coefficients, as explained below.
SURFACE TENSION
Select the Include surface tension force in momentum equation check box to include the
surface tension force in the momentum equation.
The Surface tension coefficient σ (SI unit: N/m) can be User defined, or select Library
coefficient, liquid/gas interface (default) or Library coefficient, liquid/liquid interface.
• For Library coefficient, liquid/gas interface select an option from the list — Water/Air
(default), Acetone/Air, Acetic acid/Air, Ethanol/Air, Ethylene glycol/Ethylene glycol vapor,
Diethyl ether/Air, Glycerol/Air, Heptane/Nitrogen, Mercury/Mercury vapor, or
Toluene/Air.
• For Library coefficient, liquid/liquid interface select an option from the list —
Benzene/Water, 20°C, Corn oil/Water, 20°C, Ether/Water, 20°C, Hexane/Water, 20°C,
Mercury/Water, 20°C, or Olive oil/Water, 20°C.
The predefined correlations are based on the data in Ref. 5, Ref. 6, and Ref. 7.
NORMAL DIRECTION
The normal direction on the selected boundaries can be reversed by selecting Reverse
normal direction. The direction is indicated by a red arrow in the Graphics window.
Free Surface
The Free Surface node defines the initial position of an external fluid interface - that is,
an interface in which the viscosity in the fluid outside the domain can be neglected. By
applying this feature the motion of the two-phase interface can be tracked. In the
tangential direction the free surface motion is governed by the fluid motion in
combination with the surface tension of the fluid-fluid interface.
The Free Surface node can only be applied to outer boundaries of a Deforming Domain
that do not have any boundary condition assigned under Moving Mesh.
To control the attachment angle between the free surface and adjacent walls, a Contact
Angle subnode is by default added under the Free Surface node. A different contact
MODEL INPUT
Enter a value for the Temperature T (SI unit: K). This option is only necessary when
the surface tension coefficient comes from a library of coefficients, as explained below.
FREE SURFACE
Enter an External pressure pext (SI unit: Pa).
SURFACE TENSION
Select the Include surface tension force in momentum equation check box to include the
surface tension force in the momentum equation.
The default Surface tension coefficient σ (SI unit: N/m) can be User defined, or select
Library coefficient, liquid/gas interface (default) or Library coefficient, liquid/liquid
interface.
• For Library coefficient, liquid/gas interface select an option from the list — Water/Air
(default), Acetone/Air, Acetic acid/Air, Ethanol/Air, Ethylene glycol/Ethylene glycol vapor,
Diethyl ether/Air, Glycerol/Air, Heptane/Nitrogen, Mercury/Mercury vapor, or
Toluene/Air.
• For Library coefficient, liquid/liquid interface select an option from the list —
Benzene/Water, 20°C, Corn oil/Water, 20°C, Ether/Water, 20°C, Hexane/Water, 20°C,
Mercury/Water, 20°C, or Olive oil/Water, 20°C.
The predefined correlations are based on the data in Ref. 5, Ref. 6, and Ref. 7.
MASS FLUX
The mass flux setting specifies the mass transfer across the boundary, due to processes
such as boiling. The default Mass Flux Mf (SI unit: kg/(m2·s)) is User defined, with a
value of 0.
Contact Angle
The Contact Angle subnode is available from the context menu (right-click the
Fluid-Fluid Interface or Free Surface parent node) or from the Physics toolbar,
Attributes menu. The condition applies forces on the wall that balance the surface
tension for the prescribed contact angle. Note that the contact angle can only be
enforced when the surface tension force is included in the momentum equation in the
parent feature.
For laminar flow with moving mesh, the Contact Angle node should be used on edges
or points where a Wall feature with the Navier Slip option is prescribed adjacent to the
free surface. In this case, the Navier Slip option is required for the contact line to move
along the wall.
The representation of the contact angle is dependent on the mesh resolution in the
region where the fluid-fluid interface attaches to the wall. If, during the simulation, the
contact angle is found to fluctuate around a given value, this indicates that the
resolution needs to be improved. This can for example be achieved by adding more
mesh boundary layers on the wall.
• For Directly enter a Contact angle θw (SI unit: rad). The default 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).
The contact angle θw is defined between the fluid-fluid interface and the
surface of the wall adjacent to phase 1.
The Laminar Two-Phase Flow, Level Set and Laminar Two-Phase Flow, Phase Field
Interfaces theory is described in this section:
∂u T
ρ + ρ ( u ⋅ ∇ )u = ∇ ⋅ [ – p I + μ ( ∇u + ∇u ) ] + F g + F st + F ext + F (4-3)
∂t
∇⋅u = 0 (4-4)
Note that Equation 4-3, and Equation 4-4 are solved in the contained interface,
Laminar Flow or Turbulent Flow interface. Note that the form of the continuity
equation, appropriate for high density difference mixtures, differs from the definition
in Theory for the Single-Phase Flow Interfaces.
THEORY FOR THE LEVEL SET AND PHASE FIELD INTERFACES | 179
∂----- ∇φ-
φ- + u ⋅ ∇φ = γ∇ ⋅ ε∇φ – φ ( 1 – φ ) --------- (4-5)
∂t ∇φ
ρ = ρ 1 + ( ρ 2 – ρ 1 )φ
φ – 0.5
ρ = ρ 1 + ( ρ 2 – ρ 1 )H -----------------
lρ
where H is a smooth step function and lρ is a mixing parameter defining the size of the
transition zone. When the Harmonic volume average is selected,
1
ρ = -----------------------------------------------
( 1 – φ ) ⁄ ρ1 + φ ⁄ ρ2
Similarly, the dynamic viscosity can be defined by setting Viscosity averaging to Volume
average,
μ = μ 1 + ( μ 2 – μ 1 )φ
Heaviside function,
φ – 0.5
μ = μ 1 + ( μ 2 – μ 1 )H -----------------
lμ
1
μ = ----------------------------------------------
-
( 1 – φ ) ⁄ μ1 + φ ⁄ μ2
Mass average,
ρ 1 ( 1 – φ )μ 1 + ρ 2 φμ 2
μ = ----------------------------------------------------
-
ρ
ρ
μ = -----------------------------------------------------------
-
ρ1 ( 1 – φ ) ⁄ μ1 + ρ2 φ ⁄ μ2
where μ1 and μ2 are the dynamic viscosities of Fluid 1 and Fluid 2, respectively. For
inelastic non-Newtonian fluids, μ1,2 is replaced by μapp1,2 in the previous expressions.
Further details of the theory for the level set method are in Ref. 1.
∂φ + u ⋅ ∇φ γλ
= ∇ ⋅ -----2- ∇ψ (4-6)
∂t ε
ε ∂f ext
2
ψ = – ∇ ⋅ ε ∇φ + ( φ – 1 )φ + -----
2 2
(4-7)
λ ∂φ
where 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λ
σ = ----------- ---
3 ε
and γ is the mobility parameter which is related to ε through γ = χε2 where χ is the
mobility tuning parameter (set to 1 by default). The volume fractions of Fluid 1 and
Fluid 2 are computed as
V f, 2 = min ( max ( [ ( 1 + φ ) ⁄ 2 ], 0 ), 1 ), V f, 1 = 1 – V f, 2
where the min and max operators are used so that the volume fractions have a lower
limit of 0 and an upper limit of 1. Let ρ1 and ρ2 be the constant densities of Fluid 1
and Fluid 2, respectively. When Density averaging is set to Volume average, the density
is defined as,
ρ = ρ 1 V f, 1 + ρ 2 V f, 2
V f, 2 – 0.5
ρ = ρ 1 + ( ρ 2 – ρ 1 )H -------------------------
lρ
THEORY FOR THE LEVEL SET AND PHASE FIELD INTERFACES | 181
where H is a smooth step function and lρ is a mixing parameter defining the size of the
transition zone. When the Harmonic volume average is selected,
1
ρ = -----------------------------------------------
-
V f, 1 ⁄ ρ 1 + V f, 2 ⁄ ρ 2
Similarly, the dynamic viscosity can be defined by setting Viscosity averaging to Volume
average,
μ = V f, 1 μ 1 + μ 2 V f, 2
Heaviside function,
V f, 2 – 0.5
μ = μ 1 + ( μ 2 – μ 1 )H -------------------------
lμ
1
μ = ------------------------------------------------
V f, 1 ⁄ μ 1 + V f, 2 ⁄ μ 2
Mass average,
ρ 1 V f, 1 μ 1 + ρ 2 V f, 2 μ 2
μ = -----------------------------------------------------
-
ρ
ρ
μ = -------------------------------------------------------------
ρ 1 V f, 1 ⁄ μ 1 + ρ 2 V f, 2 ⁄ μ 2
where μ1 and μ2 are the dynamic viscosities of Fluid 1 and Fluid 2, respectively. For
inelastic non-Newtonian fluids, μ1,2 are replaced by μapp1,2 in the previous
expressions.
The mean curvature (SI unit: 1/m) can be computed by entering the following
expression:
G
κ = 2 ( 1 + φ ) ( 1 – φ ) ----
σ
Details of the theory for the phase field method are found in Ref. 2.
FORCE TERMS
The four forces on the right-hand side of Equation 4-3 are due to gravity, surface
tension, a force due to an external contribution to the free energy (using the phase field
method only), and a user-defined volume force.
F st = σδκn + δ∇ s σ
where σ is the surface tensions coefficient (SI unit: N/m), n is the unit normal to the
interface, and κ = −∇ ⋅ n is the curvature. δ (SI unit: 1/m) is a Dirac delta function
located at the interface. ∇s is the surface gradient operator
T
∇ s = ( I – nn )∇
δ = 6 ∇φ φ ( 1 – φ )
∂f- ∇φ
F st = G – -----
∂φ
where G is the chemical potential (SI unit: J/m3) defined in The Equations for the
Phase Field Method and ∂f/∂φ is a user-defined source of free energy. When Shift
surface tension force to the heaviest phase is selected the surface-tension force is added
as,
THEORY FOR THE LEVEL SET AND PHASE FIELD INTERFACES | 183
where ds,Fst is a smoothing factor. This can be used to avoid unphysical acceleration
of a light phase near a phase interface caused by the smearing of the phase interface
across a few mesh cells.
If Include surface tension gradient effects in surface tension force is selected, extra terms
are added to account for the Marangoni effect due to gradients in the surface tension
coefficient (see Ref. 6):
2
∂f- ∇φ + ------------ φ – 1)
2 2
∇φ - + (----------------------
F st = G – ----- ∇λ – ( ∇λ ⋅ ∇φ )∇φ
∂φ 2 ∂φ 4ε 2
∂f
F ext = ∇φ
∂φ
This force is added when a φ-derivative of the external free energy has been defined in
the External Free Energy section of the Fluid Properties feature.
When the Level Set or Phase Field in Fluids interface are coupled to a fluid flow
interface by means of The Two-Phase Flow, Level Set Coupling Feature or The
Two-Phase Flow, Phase Field Coupling Feature, improved conservation of the integral
of the level set or phase field variable is obtained using the nonconservative form
provided that the discretization order of the level set or phase field variable is equal to
or lower than the order of the pressure.
1 -
φ 0 = -----------------------
D ⁄ε
1 + e wi
1
φ 0 = -------------------------
-
–D ⁄ ε
1 + e wi
D wi
φ 0 = – tanh ----------
2ε
in Fluid 1 and
D wi
φ 0 = tanh ----------
2ε
THEORY FOR THE LEVEL SET AND PHASE FIELD INTERFACES | 185
in Fluid 2. The initial condition for the help variable is ψ0 = 0. These expressions are
based on the analytical solution of the steady state solution of Equation 4-5,
Equation 4-6, and Equation 4-7 for a straight, nonmoving interface.
Numerical Stabilization
Three types of stabilization methods are available for the flow (Navier–Stokes) and
interface (level set or phase field) equations. Two are consistent stabilization methods
— Streamline diffusion and Crosswind diffusion — and one is inconsistent — Isotropic
diffusion.
To display this section, click the Show More Options button ( ) and select Stabilization
from the Show More Options dialog box.
2. P. Yue, J.J. Feng, C. Liu, and J. Shen, “A Diffuse-interface Method for Simulating
Two-phase Flows of Complex Fluids”, J. Fluid Mech., vol. 515, pp. 293–317, 2004.
8. R. C. Weast, ed.,“CRC Handbook of Chemistry and Physics”, ed. 69, MIT Press,
1988.
THEORY FOR THE LEVEL SET AND PHASE FIELD INTERFACES | 187
Theory for the Three-Phase Flow,
Phase Field Interface
The Three-Phase Flow, Phase Field interface can be used to model the flow and
interaction of three different, immiscible fluids, when the exact positions of the
interfaces separating the fluids are of interest. The fluid-fluid interfaces are tracked
using a ternary phase field formulation which account for differences in the fluids’
densities and viscosities and include the effects of surface tension.
The Laminar Three-Phase Flow, Phase Field Interface theory is described in the
following sections:
∂u T 2
ρ + ρ ( u ⋅ ∇ )u = ∇ ⋅ – p I + μ ( ∇u + ∇u ) – --- μ ( ∇ ⋅ u ) I + F st + F (4-8)
∂t 3
where Fst is the surface tension force. The physics interface assumes that the density
of each phase is constant. The density may however vary between the phases. In order
to accurately handle systems where density of the phases are significantly different, as
well as systems with phases of similar density, the following fully compressible
continuity equation is solved by the interface
∂ log ρ- + ∇ ⋅ u + u ⋅ ∇ log ρ = 0
-------------- (4-9)
∂t
∂φ M0
--------i + ∇ ⋅ ( uφ i ) = ∇ ⋅ -------- ∇η i
∂t Σi
(4-10)
4Σ T 1 ∂F ∂F 3
----
η i = ----------
ε - -------- – -------- – --- εΣ j ∇ 2 φ i
Σ j ∂φ
i ∂φ j
4
j≠i
governing the phase field variable, φi, and a generalized chemical potential, ηi, of each
phase i = A, B, C. The phase field variables vary between 0 and 1 and are a measure
of the concentration of each phase. The phase field variable for phase A is one in
instances containing only this phase, and zero where there is no phase A. Since the
fluids are immiscible, variations in the phase field variable occur, and define the
interface separating two phases. At each point the phase field variables satisfy the
following constraint
φi = 1 (4-11)
i = A , B, C
The density of each phase is assumed to be constant which implies that the phase field
variable corresponds to the volume fraction of the phase in question. In order to satisfy
Equation 4-11, two sets of the equations shown in Equation 4-10 are solved, namely
those for phase A and phase B. The phase field variable, and correspondingly the mass
fraction, for fluid C is computed from Equation 4-11.
The density and viscosity of the fluid mixture used in Equation 4-3 and 4-4 are defined
as:
ρ = ρA φA + ρB φB + ρC φC
(4-12)
μ = μA φA + μB φB + μC φC
Free Energy
The free energy of the three phase system is defined as a function of the phase field
variables in the manner of:
Here the σij denotes the surface tension coefficient of the interface separating phase i
and j, and the capillary parameters Σi are defined for each phase in the manner of:
Σ A = σ AB + σ AC – σ BC
Σ B = σ AB + σ BC – σ AC (4-14)
Σ C = σ BC + σ AC – σ AB
Λ in the free energy is a function or parameter specifying the additional free bulk
energy of the system. By default Λ is zero. In this case it can be seen that the free energy
in Equation 4-13 represents the mixing energy, since only interfaces between two
phases (where two phase field variables varies between the limiting values) contributes
to the free energy.
3 = ------
1- + ------
1- + ------
1-
------ (4-15)
ΣT ΣA ΣB ΣC
When using the interface it is recommended that the parameter ε is given a value in the
same order as the elements in the regions passed by the fluid-fluid interfaces. 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 to avoid damping
the convective transport. In order to ensure that the mobility is in the correct range,
it is recommended to apply a mobility parameter such that the following holds
approximately
–2
M 0 = L c U c ε ⋅ 10 (4-16)
where Lc and Uc are the characteristic length and velocity scales of the system at hand.
SURFACE TENSION
The surface tension force applied in the momentum equations (Equation 4-3) as a
body force computed from the generalized chemical potentials:
In this section:
∂ρ- + ∇ ⋅ ( ρu ) = 0
-----
∂t
∂u
ρ ------- + ρ ( u ⋅ ∇ )u = ∇ ⋅ [ – pI + τ ] + F
∂t
where:
2
τ = 2μS – --- μ ( ∇ ⋅ u )I (4-18)
3
The dynamic viscosity μ (SI unit: Pa·s) is allowed to depend on the thermodynamic
state but not on the velocity field.
x = x ( X, Y, t ), y = y ( X, Y, t )
The original, undeformed, mesh is referred to as the material frame (or reference
frame) whilst the deformed mesh is called the spatial frame. COMSOL Multiphysics
also defines geometry and mesh frames, which are coincident with the material frame
for this physics interface.
The fluid flow equations (along with other coupled equations such as electric fields or
chemical species transport) are solved in the spatial frame in which the mesh is
perturbed. The movement of the phase boundary is therefore accounted for in these
interfaces.
FLUID-FLUID INTERFACE
The boundary conditions applied at an interface between two immiscible fluids, fluid 1
and fluid 2 (see Figure 4-2), are given by (Ref. 1):
u 1 = u 2 + ----- 1- M n
1- – ----- (4-19)
ρ f i
1 ρ2
n i ⋅ τ 2 = n i ⋅ τ 1 + f st (4-20)
Mf
u mesh = u 1 ⋅ n i – --------
- n (4-21)
ρ i
1
where u1 and u2 are the velocities of the fluids 1 and 2 respectively, umesh is the
velocity of the mesh at the interface between the two fluids, ni is the normal of the
interface (outward from the domain of fluid 1), τ1 and τ2 are the total stress tensors in
domains 1 and 2 respectively, fst is the force per unit area due to the surface tension
and Mf is the mass flux across the interface (SI unit: kg/(m2s)).
Figure 4-2: Definition of fluid 1 and fluid 2 and the interface normal.
The components of the total stress tensor, τuv, represent the uth component of the
force per unit area perpendicular to the v direction. n·τ = nv τuv (using the summation
convention) is therefore interpreted as the force per unit area acting on the boundary
- in general this is not normal to the boundary. Equation 4-20 therefore expresses the
force balance on the interface between the two fluids.
The force due to the surface tension is given by the following expression:
f st = σ ( ∇ s ⋅ n i )n i – ∇ s σ (4-22)
where ∇s is the surface gradient operator (∇s = (I − ni niT)∇ where I is the identity
matrix) and σ is the surface tension at the interface.
F n δs = ( σ + δσ ) sin ( δθ ) → σδθ
σ
F n = ----
R
The quantity ∇s·ni in the first term on the right-hand side of Equation 4-22 is related
to the mean curvature, κ, of the surface by the equation κ=−∇s·ni. In two dimensions
the mean curvature κ = −1/R so ∇s·ni = 1/R. The first term in Equation 4-22 is
therefore the normal force per unit area acting on the boundary due to the surface
tension.
F t δs = ( σ + δσ ) cos ( δθ ) – σ → ( σ + δσ ) – σ
( σ + δσ ) – σ
F t → -----------------------------
δs
T T
n i ⋅ ( ( p 1 – p 2 )I – μ 1 ( ∇u 1 – ( ∇u 1 ) ) + μ 2 ( ∇u 2 – ( ∇u 2 ) ) ) = σ ( ∇ s ⋅ n i )n i – ∇ s σ
assuming Newtonian fluids with viscosities μ1 and μ2 for fluids 1 and 2, respectively,
and that p1 and p2 are the pressures in the respective fluids adjacent to the boundary.
This equation expresses the equality of two vector quantities. It is instructive to
consider the components perpendicular and tangential to the boundary. In the
direction of the boundary normal
T T
p 1 – p 2 + n i ⋅ ( μ 2 ( ∇u 2 – ( ∇u 2 ) ) – μ 1 ( ∇u 1 – ( ∇u 1 ) ) ) ⋅ n i = σ ( ∇ s ⋅ n i )n(4-23)
i
T T
n i ⋅ ( μ 2 ( ∇u 2 – ( ∇u 2 ) ) – μ 1 ( ∇u 1 – ( ∇u 1 ) ) ) ⋅ t i = ∇ s σ (4-24)
For the case of a static interface, Equation 4-23 expresses the pressure difference across
the interface that results from its curvature. For a moving interface, the surface tension
balances the difference in the total normal stress on either side of the interface.
Equation 4-24 involves only velocity gradients and the gradient of the surface tension.
The implication of this is that surface tension gradients always drive motion; this is
known as the Marangoni effect.
FREE SURFACE
It is often the case that the viscosity of fluid 1 is significantly greater than that of fluid 2
(for example for a liquid-vapor interface). In this case, the viscosity terms in the total
stress from fluid 2 can be neglected and Equation 4-20 becomes:
n i ⋅ τ 1 = – p ext n i + f st (4-25)
The outer fluid (fluid 2) now enters the equation system only through the pressure
term and the system can be represented by a domain consisting solely of the fluid 1
domain with an expression (or constant value) for the external pressure, pext, in the
fluid 2 domain. Since the velocity in fluid 2 does not affect fluid 1, fluid 2 does not
need to be explicitly modeled and Equation 4-19 can be dropped.
Figure 4-4: Forces per unit length acting on a fluid-fluid interface at a three phase
boundary with a solid wall. The surface tension force per unit length, σ, is balanced by a
reaction force per unit length at the surface, Fn, and by the forces generated by the surface
energies of the two phases at the interface: γs1 and γs2.
In equilibrium, the surface tension forces and the normal restoring force from the
surface are in balance at a constant contact angle (θc), as shown in Figure 4-4. This
equilibrium is expressed by Young’s equation, which considers the components of the
forces in the plane of the surface:
σ cos ( θ c ) + γ s1 = γ s2 (4-26)
where σ is the surface tension force between the two fluids, γs1 is the surface energy
density on the fluid 1 — solid interface and γs2 is the surface energy density on the
fluid 2 — solid interface.
The normal force balance at the solid surface is handled by the wall boundary
condition, which automatically prevents fluid flow across the solid boundary by the
application of a constraint force. The contact angle feature applies a force on the fluid
at the interface, fwf, with magnitude:
f wf = σ ( cos ( θ c ) – cos ( θ ) )m s
where θ is the actual contact angle and ms is the binormal to the solid surface, as
defined in Figure 4-5.
Figure 4-5: Diagram showing normal and tangential vectors defined on the interface
between two fluids and a solid surface in 3D (left) and 2D (right). The following vectors
are defined: ni, the fluid-fluid interface unit normal; ns, the solid surface unit normal;
tc, the tangent to the three-phase contact line; and mi and ms, the two unit binormals,
which are defined as mi = tc×ni and ms = tc×ns, respectively.
4. W. Ren and D. Hu, “Continuum Models for the Contact Line Problem”, Phys.
Fluids, vol. 22, p. 102103, 2010.
6. R. C. Weast, ed.,“CRC Handbook of Chemistry and Physics”, ed. 69, MIT Press,
1988.
The Level Set and Phase Field in Fluids Moving Interfaces are available under the
Mathematics>Moving Interface branch ( ) when adding interfaces. See Modeling
Microfluidic Fluid Flows to help you select which interface to use.
201
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 box.
ADVANCED SETTINGS
To display this sections, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog box.
DISCRETIZATION
By default, the Level Set interface uses Linear elements. When coupling the physics
interface to a fluid flow interface by means of The Two-Phase Flow, Level Set
Coupling Feature, exact conservation of the integral of φ is obtained using the
nonconservative form provided that the discretization order of the level set variable is
equal to or lower than the order of the pressure.
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.
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 r = 0, 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.
∂φ + u ⋅ ∇φ ∇φ
= γ∇ ⋅ ε ls ∇φ – φ ( 1 – φ ) ----------
∂t ∇φ
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.
MATRIX PROPERTIES
The Porosity εp (a dimensionless number between 0 and 1) uses by default the value
From material. For User defined the default is 1.
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 check box Fluid 1 (φ = 0) or Fluid 2 (φ = 1).
• For User defined enter a value or expression for the level set variable φ.
• 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.
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.
Continuity
The Continuity condition is suitable for pairs where the boundaries match; it prescribes
that the level set variable 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 No Flow node is used as fallback unless another feature has been
selected for the boundary.
Ribbon
Physics tab with the physics interface selected:
Pairs>Continuity
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 box.
DISCRETIZATION
By default, the Phase Field in Fluids interface uses Linear elements.
Domain, Boundary, and Pair Nodes for the Phase Field in Fluids
Interface
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.
• Mobility tuning parameter χ (SI unit: m·s/kg). This parameter determines the time
scale of the Cahn–Hilliard diffusion and it thereby also governs the diffusion-related
time scale for the interface. Select User defined (default) or Calculate from velocity.
For User defined enter a value or expression for the mobility tuning parameter χ. The
default is 1 m·s/kg, which is a good starting point for most models.
For Calculate from velocity enter a value for the expected velocity at the interface U
(SI unit: m/s). χ is then computed as:
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 check box 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 (5-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.
Ribbon
Physics tab with the physics interface selected:
Pairs>Continuity
The phase field variables are defined such that they represent the volume fraction of
the respective phase. The volume fraction of the third phase not solved for, but
computed from the natural constraint that the sum of the volume fractions of all phases
is one.
The main node of the interface is the Phase Field Model feature, which adds the phase
field equations and provides an interface for defining the phase field model properties
such as surface tensions and parameters controlling the interface thickness.
When this physics interface is added, the following default nodes are also added in the
Model Builder — Mixture Properties, Wetted Wall and Initial Values. Then, from the
Physics toolbar, add other nodes that implement, for example, boundary conditions.
You can also right-click Ternary Phase Field 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 terpf.
DEPENDENT VARIABLES
This interface defines the dependent variables (fields):
If required, edit the any of the names, but dependent variables must be unique within
a model.
Domain, Boundary, and Pair Nodes for the Ternary Phase Field
Interface
The Ternary Phase Field 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 by right-clicking the interface
node to access the context menu (all users).
Mixture Properties
The Mixture Properties node adds the equations described in The Equations of the
Ternary Phase Field Method. The node defines the associated phase field parameters,
including the surface tension coefficients and parameters controlling the thickness of
the interfaces.
MODEL INPUTS
The surface tension coefficients can be defined through user inputs, variables, or by
selecting a material. For the latter option, an additional input, the temperature, may
be required to define these properties.
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,
You can also select User defined from the Temperature model input in order to manually
prescribe T
• Mobility tuning parameter M0. This parameter determines the time scale of the
Cahn–Hilliard diffusion and it thereby also governs the diffusion-related time scale
for the interface. Keep the mobility tuning parameter value large enough to
maintain a constant interface thickness but still low enough to not damp the
convective motion. A too high mobility can also lead to excessive diffusion of
droplets. By default, M0 is set to 1·10−4 m3/s, which is a good starting point for
most models.
• Additional free bulk energy Λ. When needed, add a user-defined expression for the
additional bulk energy.
SURFACE TENSION
Specify the surface tension coefficients for the three types of interfaces present.
The predefined correlations are based on the data in Ref. 3, Ref. 4, and Ref. 5.
Initial Values
The Initial Values node adds initial values for the phase field variables that can serve as
initial conditions for a transient simulation.
INITIAL VALUES
Enter initial values or expressions for Phase field variable A and the Phase field variable B
corresponding to the mass fraction of the respective phase. The value must be in the
range from 0 to 1.
Inlet
This condition should be used on boundaries for which there is a net convective flow
of the phases into the adjacent domain.
INLET
Specify phase field variables, corresponding to the volume fractions, of phase A and
phase B. The value must be in the range from 0 to 1. The volume fraction of phase C
will be evaluated such that the sum of all mass fractions equals one.
M0
φ i = φ i, 0 , n ⋅ -------- ∇η i = 0
Σi
Outlet
This condition should be used on boundaries for which there is a net convective
outflow from the domain.
M0
n ⋅ -------- ∇η i = 0
Σi
Symmetry
Use this condition on boundaries that represent a geometrical symmetry line across
which the flow of the fluid phases is zero.
M0
n ⋅ -------- ∇η i = 0
Σi
Wetted Wall
Use this node to represent a solid wall along which the contact angles between the
separating interfaces and the wall should be prescribed.
WETTED WALL
Enter values or expressions for the contact angles for the three interfaces types:
Figure 5-1: Definitions of the contact angels in the Wetted Wall feature of the Ternary
Phase Field interface.
In this section:
Figure 5-2: An example of two domains divided by an interface. In this case, one of the
domains consists of two parts. Figure 5-3 shows the corresponding level set representation.
Figure 5-3: A surface plot of the level set function corresponding to Figure 5-2.
The physics interface solves Equation 5-2 in order to move the interface with the
velocity field u:
∂φ + u ⋅ ∇φ ∇φ
= γ∇ ⋅ ε ls ∇φ – φ ( 1 – φ ) ---------- (5-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 (5-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 5-3 is not fully satisfied, switch to the
conservative form
∂φ + ∇ ⋅ ( uφ ) ∇φ
= γ∇ ⋅ ε ls ∇φ – φ ( 1 – φ ) ---------- (5-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.
When the Level Set interface is coupled to a fluid-flow interface by means of The
Two-Phase Flow, Level Set Coupling Feature, exact conservation of the integral of φ
is obtained using the nonconservative form, provided that the discretization order of
the level set variable is equal to or lower than the order of the pressure.
∂φ + u ∇φ-
---------
pore ⋅ ∇φ = γ∇ ⋅ ε ls ∇φ – φ ( 1 – φ ) ∇φ (5-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
set proportional to the maximum magnitude of the velocity field u, the equation can
be rewritten as:
∂φ ∇φ
εp + u ⋅ ∇φ = γ∇ ⋅ ε ls ∇φ – φ ( 1 – φ ) ---------- (5-6)
∂t ∇φ
This is the nonconservative form of the level set equation that is solved in the Porous
Medium feature.
∂ ε ∇φ
( φ ) + ∇ ⋅ ( uφ ) = γ∇ ⋅ ε ls ∇φ – φ ( 1 – φ ) ---------- (5-7)
∂t p ∇φ
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 (5-8)
∂t
1
φ 0 = -------------------------
-
–D ⁄ ε
1 + e wi
1 -
φ 0 = -----------------------
D ⁄ε
1 + e wi
in domains initially inside the interface. Here, inside refers to domains where φ < 0.5
and outside refers to domains where φ > 0.5.
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 = --------- (5-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 5-10 describes the evolution
of the phase field parameter:
∂φ + ( u ⋅ ∇ )φ ∂f ∂f tot
= ∇ ⋅ γ∇ tot – ∇ ⋅ (5-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 5-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λ
σ = ----------- --- (5-11)
3 ε
The PDE governing the phase field variable is the Cahn–Hilliard equation:
∂φ + u ⋅ ∇φ = ∇ ⋅ γ ∇G
(5-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 ⋅ ∇φ = ∇ ⋅ ----- ∇ψ (5-14)
∂t ε
2
2 2
ψ = – ∇ ⋅ ε ∇φ + ( φ – 1 )φ (5-15)
∇⋅u = 0 (5-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 5-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 The Two-Phase Flow, Phase Field Coupling Feature, 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
(5-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 = --------- (5-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 – φ ) ----
σ
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 immiscible fluids consists of mixing, bulk distortion, and
anchoring energy. For simple three-phase flows, only the mixing energy is retained.
and density of each phase is assumed to be constant. This implies that the phase field
variable corresponds directly to the volume fraction of the phase in question.
The free energy of the three phase system is defined as a function of the phase field
variables in the manner of:
2 2 2 2 2 2
F = σ AB φ A φ B + σ AC φ A φ C + σ BC φ B φ C +
(5-20)
2 2 2
φ A φ B φ C ( Σ A φ A + Σ B φ B + Σ C φ C ) + Λφ A φ B φ C
Here the σij denotes the surface tension coefficient of the interface separating phase i
and j, and the capillary parameters Σi are defined as
Σ i = σ ij + σ ik – σ jk (5-21)
and Λ is a function or parameter specifying the additional free bulk energy. By default
Λ is zero. In this case it can be seen that the free energy in Equation 5-20 represents
the mixing energy, since only interfaces between two phases (where two phase field
variables varies between the limiting values) contributes to the free energy.
∂φ ∂u j φ i ∂ M 0 ∂η i
--------i + ------------- = -------- -------- --------
∂t ∂x j ∂x j Σ i ∂x j
(5-22)
4Σ T 1- ∂F ∂F 3
---- ∂ ∂η i
η i = ---------- -------- – -------- – --- εΣ j -------- --------
ε Σ j ∂φ ∂φ 4 ∂x j ∂x j
i j
j≠i
In Equation 5-22 ε (SI unit: 1/m) is a parameter controlling the interface thickness,
M0 (SI unit: m3/s) is a molecular mobility parameter, and the parameter ΣT is defined
as
4. R. C. Weast, ed.,“CRC Handbook of Chemistry and Physics”, ed. 69, MIT Press,
1988.
This chapter discusses the physics interfaces found under the Fluid Flow>Porous
Media and Subsurface Flow branch ( ). See Modeling Microfluidic Fluid Flows to
help you select which physics interface to use.
In this chapter:
235
The Darcy’s Law Interface
The Darcy’s Law (dl) interface ( ), found under the Porous Media and Subsurface Flow
branch ( ) when adding a physics interface, is used to simulate fluid flow through
interstices in a porous medium. It can be used to model low-velocity flows or media
where the permeability and porosity are very small, and for which the pressure gradient
is the major driving force and the flow is mostly influenced by the frictional resistance
within the pores. Set up multiple Darcy's Law interfaces to model multiphase flows
involving more than one mobile phase. The Darcy’s Law interface can be used for
stationary and time-dependent analyses.
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 check
box Include gravity to activate the acceleration of gravity. When this check box 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 box.
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 check box 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 check box 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 check box is available if the previous check
box 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 Surface Coupling • Pervious Layer
• Flux Discontinuity • Point Mass Source
• Fracture • Precipitation
• Hydraulic Head • Pressure
• Inlet • Pressure Head
• Interior Wall • 1
• Line Mass Source • Symmetry
• Mass Flux • Thin Barrier
• 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-1 and Equation 6-2 (excluding any mass
sources).
∂ ( ε ρ ) + ∇ ⋅ ( ρu ) = Q
(6-1)
∂t p m
For a steady-state problem the first term in Equation 6-1 disappears. When Mass
Source is active Equation 6-2 is of the following form:
κ
u = – --- ( ∇p – ρg ) (6-3)
μ
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-1 and
Equation 6-2.
• Non-Darcian flow defines a nonlinear relationship using Equation 6-1 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 drop-down menu:
• From density and porosity (default), uses the formulation of Equation 6-1
Note that some options are only available in some modules. For a detailed
overview of the functionality available in each product, visit
[Link]
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.
FLUID PROPERTIES
The available options for the Fluid type are Incompressible, Compressible, Compressible,
linearized, or Ideal gas. The selection determines how the density and compressibility
of the fluid are set.
Incompressible
The default Reference density ρref uses values From material. For User defined enter
another value or expression.
Compressible, Linearized
The default Reference density ρref and the Fluid compressibility χf use 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.
For all fluid types specify the Dynamic viscosity μ (SI unit: Pa·s) uses values From
material. For User defined enter another value or expression.
Porous Matrix
This node defines the porosity and material properties of the solid matrix of the Porous
Medium or 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.
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 = 10−4 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·10−4 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.
Non-Darcian Flow
If Non-Darcian flow is selected in the parent node, select between the following options
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).
Note that some options are only available in some modules. For a detailed
overview of the functionality available in each product, visit
[Link]
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 − 1/n.
• 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.
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.
Cm ∂p κr κ
- + S e S p ------ + ∇ ⋅ ρ – -------- ( ∇p + ρ g ∇D ) = Q m
ρ ------- (6-4)
ρ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.
STORAGE MODEL
With this option, define the first term in Equation 6-4. Therefore, choose from a
drop-down menu one of the following formulations:
If From retention model is chosen, the first term of Equation 6-4 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-4 is defined
as
From liquid content enforces the first term of Equation 6-4 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-4
directly.
Note that some options are only available in some modules. For a detailed
overview of the functionality available in each product, visit
[Link]
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 drop-down menu one of the following formulations:
• From density and porosity (default), uses the formulation equivalent to Equation 6-1
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-5)
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
[Link]
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
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-1 is formulated with
respect to a storage term (analogous to Equation 4-4). Therefore, choose from a
drop-down menu 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.
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-6)
Note that some options are only available in some modules. For a detailed
overview of the functionality available in each product, visit
[Link]
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-7)
( 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
θ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.
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.
STORAGE MODEL
With this option, define the first term in Equation 6-7. Therefore, choose from a
drop-down menu one of the following formulations:
If From retention model is chosen, the first term of Equation 6-7 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-7 is defined
as
From liquid content enforces the first term of Equation 6-7 to be defined in terms of
liquid volume fraction as
∂( ρθ l,i )
------------------
∂t
• and the User defined option allows to define the storage coefficient Sp,i in
Equation 6-7 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:
with pM being the pressure within the macroscale system and pm the pressure within
the microscale system.
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.
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.
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 = 10−4 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
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 − 1/n.
• 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.
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.
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
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.
If required by a Storage model in the parent node, specify the Effective compressibility
of the microscale porous matrix. The default value is χp,m = 10−4 1/Pa.
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·10−4 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 − 1/n.
• 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
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.
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
[Link]
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-1).
∂ ( ρε ) + ∇ ⋅ ( ρu ) = Q (6-9)
m
∂t
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).
MASS SOURCE
Enter a value or expression for the Mass source Qm (SI unit: kg/(m3·s)). The default
is 0 kg/(m3·s).
u = u d + u ctrb (6-10)
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).
CONTRIBUTING VELOCITY
The default contributing velocity field uctrb is User defined, which lets you enter the
components of the contributing velocity field explicitly. If a matching velocity field is
announced by another feature, it will be available in the selection list.
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.
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
where ρ is the fluid density (SI unit: kg/m3); g denotes the acceleration of gravity
(SI unit: m/s2); and D is the elevation (SI unit: m).
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.
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 check box Include gravity is not selected in the Darcy’s Law interface
Settings, the elevation D is set equal to zero.
Select the check box Specify reference position to define a reference position for the
gravity calculation.
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.
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.
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.
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.
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.
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
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 box.
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.
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.
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
a negative value represents an outflow. D is the elevation head which is set to zero for
other than Subsurface Flow Module applications.
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:
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 box.
Symmetry
The Symmetry node describes a symmetry boundary. The following condition
implements the symmetry condition on an axis or a flow divide:
κ
n ⋅ --- ∇p = 0
μ
κ
n ⋅ --- ( ∇p + ρ g ∇D ) = 0
μ
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.
– n ⋅ ( ρu 1 – ρ u 2 ) = N 0
κ
u = – --- ∇p (6-11)
μ
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.
Outlet
The Outlet node adds a boundary condition for the outflow (or inflow) perpendicular
(normal) to the boundary. It has different options that can be used to specify inlet
condition on a boundary, as follows:
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).
ρu ⋅ ds = ρQ D . (6-12)
∂Ω
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.
Precipitation
Enter a value or expression for the Precipitation rate which then contributes to the mass
flux at the boundaries selected. If the boundary is inclined, a Slope correction can be
applied.
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.
Thin Barrier
The Thin Barrier boundary condition models interior permeable walls, membranes,
geotextiles, or perforated plates as thin permeable barriers. The Thin Barrier boundary
condition can only be applied on interior boundaries.
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.
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 box.
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 box.
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
gravitational pressure at the free surface. At a free surface, such as a spring or a seepage
face, the pressure is atmospheric. If the pressures in the model is gauged to the
atmospheric value (p = 0), the total hydraulic potential reduces to the gravitational
potential at the free surface — for example, the height of the free surface multiplied by
the fluid weight, or ρf gD. This boundary condition sets the pressure at the boundary
to zero and p = 0.
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-13)
μ ρ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 = K′/B′, 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.
When the pressure head Hp is specified instead of the pressure, the boundary condition
is the following:
n ⋅ ρK∇ ( H p + D ) = ρR b [ ( H pb – H p ) + ( D b – D ) ] (6-14)
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 ⋅ ρK∇H = ρR b [ H b – H ] (6-15)
Gravity effects are not active by default. Select the check box 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).
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)).
∂
d f ----- ( ε p ρ ) + ∇ T ⋅ ( d f ρu ) = d f Q m (6-16)
∂t
κ
u = – --- ∇Tp (6-17)
μ
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-16 and
Equation 6-17.
• Non-Darcian flow defines a nonlinear relationship using Equation 6-16 and the
pressure-velocity relationship
where the nonlinear parameter β (SI unit: 1/m) is further specified in the Fracture
Material subfeature.
STORAGE MODEL
Equation 6-16 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-16
• 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.
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-16 and Equation 6-17 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
almost identical to the boundary conditions of the Fracture Flow interface, see
Domain, Boundary, Edge, Point, and Pair Nodes for the Fracture Flow Interface in
the Subsurface Flow User’s Guide for further description. Note that Precipitation is
only available for the Fracture Flow interface.
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.
Fracture Material
This node defines the porosity and material properties of the solid matrix of the
Fracture 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.
BARRIER PROPERTIES
This section appears if the Thin conducting barrier option for the Fracture model is
chosen in the parent Fracture feature.
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 = 10−4 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.
If the Non-Darcian Flow Model is selected in the parent Fracture feature enter a value
for the Inertial resistance coefficient β.
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 check box 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
[Link] for a detailed overview.
Include Gravity
Gravity is not included by default. Select the Include gravity check box 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 check box 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
(Reynolds-Averaged Navier–Stokes). If turbulent flow 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 box. 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 in the COMSOL Multiphysics Reference Manual
• 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.
Fluid
This node defines the material properties of the fluid of the Porous Medium parent
node.
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.
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.
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
[Link]
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.
Mass Source
The Mass Source node adds a mass source (or mass sink) Qm to the right-hand side of
the continuity equation: Equation 6-28. This term accounts for mass deposit and/or
mass creation in porous domains. The physics interface assumes that the mass
exchange occurs at zero velocity.
∂ ε
( ρ ) + ∇ ⋅ ( ρu ) = Q m (6-18)
∂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).
ρ- ∂u u
---- + ( u ⋅ ∇ ) ----- =
εp ∂ t ε p
(6-19)
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).
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.
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.
Temperature
By default, the single-phase flow interfaces are set to model isothermal flow. Hence,
the Temperature is User defined and defaults to 293.15 K. If a Heat Transfer interface
is included in the component, the temperature may alternatively be selected from this
physics interface. All physics interfaces have their own tags (Name). For example, if a
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.
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
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.
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 check box 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] for a detailed overview.
Include Gravity
Gravity is not included by default. Select the Include gravity check box 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 check box 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
(Reynolds-Averaged Navier–Stokes) 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 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.
FLUID PROPERTIES
The default Fluid material uses the Domain material (the material defined for the
domain). Select another material as needed.
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.
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.
Fluid
This node defines the material properties of the fluid of the Porous Medium parent
node.
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.
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
[Link]
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.
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).
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]
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.
BOUNDARY CONDITION
The default Boundary condition for the wall is Slip velocity. Enter values or expressions
for the components of the Velocity of moving wall uw (SI unit: m/s).
• The default is User defined. Enter a value for Ls (SI unit: m). The default is 1e-7 m.
• Select Maxwell’s model to calculate it from:
2 – αv
L s = --------------- λ
αv
If you also have a license for the MEMS Module, an additional Boundary condition
option Electroosmotic velocity is available. This is described in the MEMS Module
User’s Guide.
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.
No Slip
No slip is the default boundary condition for a stationary solid wall for laminar flow
(and SST, Low Re k-ε, Algebraic yPlus, L-VEL, and Spalart–Allmaras turbulence
models). The condition prescribes u = 0; that is, the fluid at the wall is not moving.
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.
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 check box 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 check box 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).
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-20)
μ
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-21)
∂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 check box 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-21) 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
-------- ----- -------- ------
p ∂t + ρ ∂t = ε p ∂p ∂t + ρ ∂p ∂t
∂t
∂( ρε p ) ∂ε ∂p ∂p
---------------- = ρ ε p χ f + -------p- ------ = ρS p ------
∂t ∂p ∂t ∂t
Using this relation, the generalized governing equation (Equation 6-21) takes the
following form:
∂p
ρS p ------ + ∇ ⋅ ( ρu ) = Q m (6-23)
∂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]
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-25)
( 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-27)
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
Science and Technology: Water Supply, vol. 1, no. 2, pp. 65–72, 2001.
8. Yu-Shu Wu and others, “Gas Flow in Porous Media with Klinkenberg Effects,”
Transport in Porous Media, vol. 32, pp. 117–137, 1998.
In porous domains, the flow variables and fluid properties are defined at any point
inside the medium by means of averaging of the actual variables and properties over a
certain volume surrounding the point. This control volume must be small compared
to the typical macroscopic dimensions of the problem, but it must be large enough to
contain many pores and solid matrix elements.
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 ) = Q m (6-28)
∂t p
ρ- ∂u
+ ( u ⋅ ∇ ) ----- =
u
----
εp ∂ t εp
(6-29)
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) check box is selected, the term
(u · ∇)(u/εp) on the left-hand side of Equation 6-29 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.
In case of a flow with variable density, Equation 6-28 and Equation 6-29 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.
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 | 309
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-30)
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-31)
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-32)
μ 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-33)
μ 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-32 and Equation 6-33 by:
t ⋅ κt (6-34)
with t a unit vector tangent to the interface for 2D and 2D-axisymmetric cases, and for
3D cases by:
v ⋅ κv (6-35)
( I – n ⊗ n )Kn -
v = ------------------------------------------ (6-36)
( 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-37)
The same limit for the Beavers–Joseph–Saffman condition results in the No slip
condition:
( I – n ⊗ n )u ns = 0 (6-38)
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-39)
μ ns
THEORY FOR THE FREE AND POROUS MEDIA FLOW, DARCY INTERFACE | 311
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. Maths, vol. 50, 1971.
This chapter describes the physics interface available to model the flow of rarefied
gases. The physics interface is found under the Fluid Flow>Rarefied Flow
branch ( ). See Modeling Microfluidic Fluid Flows to help select the physics
interface to use.
313
T he S li p Flo w In t erface
The Slip Flow (slpf) interface ( ), found under the Rarefied Flow branch ( ) when
adding a physics interface, is used to model thermal and isothermal flows within the
slip flow regime. In the slip flow regime, the Navier-Stokes equations can be used to
model the flow of the gas, except within a thin layer of rarefied gas adjacent to the walls
(known as the Knudsen layer). The effect of the Knudsen layer on the continuum part
of the flow can be modeled by means of modified boundary conditions for the Navier
Stokes equations. Thermal effects are also important in this regime, with effects such
as thermal creep or transpiration often playing a significant role. For this reason the
Slip Flow interface includes the heat flow equations. Typically slip flow applies at
Knudsen numbers between 0.01 and 0.1.
When this physics interface is added, these default nodes are also added to the Model
Builder: Fluid, External Slip Wall, 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 Slip Flow 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 slpf.
PHYSICAL MODEL
Select the Neglect inertial term (Stokes flow) check box to model flow at very low
Reynolds numbers where the inertial term in the Navier-Stokes equations can be
neglected. When this option is checked COMSOL Multiphysics solves the linear
Stokes equations for the fluid flow. The Stokes flow or creeping flow regime frequently
If you have the Heat Transfer Module, an additional check box is available
for the modeling of heat transfer in biological tissue. See the Heat
Transfer Module User’s Guide for information.
DEPENDENT VARIABLES
This physics interface defines these dependent variables (fields):
For each of the dependent variables, the name can be changed in the corresponding
field, but the name of fields and dependent variables must be unique within a model.
ADVANCED SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options. Normally these settings do not need to be changed. The Default model
is Fluid.
Select the Use pseudo time stepping for stationary equation form check box to add
pseudo time derivatives to the equation when the Stationary equation form is used.
When selected, also choose a CFL number expression — Automatic (the default) or
Manual. Automatic calculates the local CFL number (from the Courant–Friedrichs–
Lewy condition) from a built-in expression. For Manual enter a Local CFL number
CFLloc.
By default the Enable conversions between material and spatial frames check box is
selected.
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.
Domain, Boundary, Edge, Point, and Pair Nodes for the Slip Flow
Interface
The Slip Flow Interface has these domain, boundary, edge, point, and pair nodes
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 in this section (listed in alphabetical order):
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
The Fluid node prescribes its domains to be a fluid by adding momentum and energy
transport equations.
The thermal conductivity describes the relationship between the heat flux
vector q and the temperature gradient ∇T as in q = −k∇T which is
Fourier’s law of heat conduction. Enter this quantity as power per length
and temperature.
THERMODYNAMICS, FLUID
The Fluid type defaults to Gas/Liquid.
By default the Density ρ (SI unit: kg/m3), Heat capacity at constant pressure Cp
(SI unit: J/(kg·K)), and Ratio of specific heats γ (dimensionless) take values From
material. For User defined to enter other values or expressions.
DYNAMIC VISCOSITY
The default Dynamic viscosity μ (SI unit: Pa·s) is taken From material or select User
defined.
SLIP WALL
Enter the components for the Velocity of moving wall uw.
Enter a value or expression for the Wall temperature Tw. The default is 293.15 K.
Select the Slip coefficients: Maxwell’s model (the default) or User defined.
Maxwell’s Model
For Maxwell’s Model enter values or expressions for the Tangential momentum
accommodation coefficient av. The tangential accommodation coefficients are typically
in the range of 0.85 to 1.0 and can be found in Ref. 4.
• Thermal slip coefficient σT. The defaults are 1.2 for Standard and 1.1 for Alternative
(Sharipov).
• Viscous slip coefficient σS. The defaults are 1.1 for Standard and 1 for Alternative
(Sharipov).
• Temperature jump coefficient ζT. The defaults are 2.2 for Standard and 1.95 for
Alternative (Sharipov).
Initial Values
The Initial Values node adds initial values for the velocity field, pressure, and
temperature. For the transient solver, these values define the state of the problem at
the initial time step; for the stationary solver, they serve as a starting point for the
nonlinear solver.
INITIAL VALUES
Enter values or expressions for the initial estimate the solver uses for the
Velocity field u, Pressure p, and Temperature T.
Slip Wall
Use the Slip Wall node to specify a wall with slip adjacent to a solid region in which the
heat transfer equations are solved. A wall velocity can be specified along with the slip
coefficients.
SLIP WALL
Enter the components for the Velocity of moving wall uw. Select the Slip coefficients:
Maxwell’s model (the default) or User defined. These settings are the same as for
External Slip Wall.
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options.
Symmetry
The Symmetry node applies symmetry conditions for the fluid flow and heat transfer
equations, as appropriate.
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options.
SLIP WALL
Enter the components for the Velocity of moving wall uw.
Enter a value or expression for the Wall temperature Tw. The default is 293.15 K.
Select the Slip coefficients: Maxwell’s model (the default) or User defined.
Maxwell’s Model
For Maxwell’s Model enter values or expressions for the Tangential momentum
accommodation coefficient av. The tangential accommodation coefficients are typically
in the range of 0.85 to 1.0 and can be found in Ref. 4.
• Thermal slip coefficient σT. The defaults are 1.2 for Standard and 1.1 for Alternative
(Sharipov).
• Viscous slip coefficient σS. The defaults are 1.1 for Standard and 1 for Alternative
(Sharipov).
• Temperature jump coefficient ζT. The defaults are 2.2 for Standard and 1.95 for
Alternative (Sharipov).
Continuity
The Continuity node can be added to pairs. It prescribes that the temperature field is
continuous across the pair. Continuity is only suitable for pairs where the boundaries
match.
Since it is not usual to use an assembly to represent the fluid flow domains, Continuity
is only appropriate between two domains in which Heat Transfer in Solids applies.
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options.
If you have the Heat Transfer Module, the Thin Layer node (and
subnodes) is also available. The feature and the background theory is
described in the Heat Transfer Module User’s Guide.
G 3 μ
u slip = ---- ( τn – ( ( n τ n )n ) ) + --- ---------- [ ∇ – n ( n ⋅ ∇ ) ] T g – 8
T
--- G ( n ⋅ ∇T g ) (7-1)
μ 4 ρT g 3
where uslip is the slip velocity, n is the boundary normal, τ is the viscous stress tensor,
μ is the viscosity of the gas, ρ is its density, and Tg is its temperature. The factor G
(which has dimensions of length) is given by:
2 – av
G = --------------- λ
av
where λ is the mean free path and av is the tangential momentum accommodation
coefficient (for a model in which the surface reflects some molecules diffusely and
A slightly different definition of the mean free path is used here: in terms
of Maxwell’s original parameter, l, the mean free path is λ = 2l/3. In
Maxwell’s original paper, he uses a coordinate based notation, the vector
notation is available in Ref. 2.
In Equation 7-1 the left-hand term represents the phenomena of viscous slip, whilst
the right-hand term produces thermal slip or transpiration. Maxwell was aware that the
temperature of the gas was not necessarily equal to that of the wall but formulated the
boundary condition using only the gas temperatures. When the wall temperature is
included, the following equations are obtained (Ref. 2 and Ref. 3):
λ T μ
u slip = σ s --- ( τn – ( ( n τ n )n ) ) + σ T ---------- [ ∇T w – ( n ⋅ ∇T w )n ]
μ ρT g
T w = T g – ζ T λn ⋅ ∇T g
where Tw is the wall temperature, σs is the viscous slip coefficient, σT is the thermal
slip coefficient, and ζT is the temperature jump coefficient. Within a generalized
Maxwell’s model the three coefficients σs, σT, and ζT are given by:
2–a
σ s = --------------v-
av
3
σ T = --- (7-2)
4
2 – a v 2γ κ
ζT = --------------- ------------ -----------
a v γ + 1 μC p
where κ is the thermal conductivity of the gas. The mean free path can be computed
from the gas properties using the following equation (Ref. 3):
2μ
λ = -----------
ρ c
(7-3)
8RT 1 ⁄ 2 8p 1 ⁄ 2
c = ------------ = -------
πM n πρ
consequently:
In some cases an alternative definition of the mean free path, λ′, is used (as, for
example, in Ref. 5):
2
λ' = ------- λ
π
It is possible to use this definition of the mean free path when entering user defined
values for the slip coefficients.
Also note that the formulation assumes that the ideal gas laws apply. This
assumption is implicit in the derivation of the above equations (Ref. 3)
and at the level of approximation of the equations is reasonable.
2. D.A. Lockerby, J. M. Reese, D.R. Emerson, and R.W. Barber, “Velocity Boundary
Condition at Solid Walls in Rarefied Gas Calculations”, Phys. Rev. E, vol. 70, 017303,
2004.
3. E.H. Kennard, Kinetic Theory of Gases, McGraw Hill, New York, 1938.
In this chapter:
327
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 check boxes 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]
• By default, the Convection check box is selected. Clear the check box to disable
convective transport.
• Select the Migration in electric field check box to activate transport of ionic species in
an electric field. See further the theory section Adding Transport Through
Migration.
• Porous Medium
• Unsaturated Porous Medium
• Porous Electrode Coupling
CONSISTENT STABILIZATION
To display this sections, click the Show button ( ) and select Stabilization.
• When the Crosswind diffusion check box 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 check box 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 Convective term —
Nonconservative form (the default) or Conservative form. The conservative formulation
DISCRETIZATION
To display all settings available in this section, click the Show button ( ) and select
Advanced Physics Options.
The Compute boundary fluxes check box is activated by default so that COMSOL
Multiphysics computes predefined accurate boundary flux variables. When this option
is selected, the solver computes variables storing accurate boundary fluxes from each
boundary into the adjacent domain.
If the check box 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.
• 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 check box is available if the previous check
box 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.
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.
FURTHER READING
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
adsorption, volatilization, dispersion and diffusion, migration, and the velocity field to
model convection.
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
Species Properties
Use this node to define parameters specific to each of the species. It is available when
the Migration in electric field check box 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 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.
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:
[Link]
• 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 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 box, 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.
Reactions
Use the Reactions node to account for the consumption or production of species
through chemical reactions. Define the rate expressions as required.
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 list. 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).
FURTHER READING
See the theory chapter on chemical species transport, starting with the section Mass
Balance Equation.
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 ⋅ ( – D∇c ) = 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 ⋅ ( – D∇c – 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.
or
– n ⋅ ( – D∇c – zu m Fc∇φ + uc ) = 0
Inflow
Use this node to specify all species concentrations at an inlet boundary.
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
check box 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.
n ⋅ ( – D ∇c ) = 0
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 check box 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 check box 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.
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 ⋅ ( – D∇c – zu m Fc∇φ ) = J 0
The flux prescribed, J0, can include any arbitrary user-specified expression. It can be
constant or a function of a dependent variable or independent variable. Common
examples are a flux dependent of the concentration, temperature, pressure, or the
electric potential φ.
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 ⋅ ( – D∇c + uc ) = J 0
or
– n ⋅ ( – D∇c – zu m Fc∇φ + uc ) = J 0
INWARD FLUX
Select the Species check box 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 check box 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
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.
Symmetry
The Symmetry node can be used to represent boundaries where the species
concentration is symmetric, that is, where there is no mass flux across the boundary.
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 = – D∇c – 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 check box 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 check box 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
c i, u
K i = --------
-
c i, d
Use the associated input field to prescribe the partition coefficient for each species.
Select User defined from the Relation list to set up a nonlinear relation between the up
and downside concentrations. For such relations f(ci)u=f(ci)d, where f(ci)u is the
expression enforced on the upside. Use the associated input fields to enter the upside
and downside expressions 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 check box 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.
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
Destination Selection. You can then specify the boundaries that constitute the
destination surfaces in the Destination Selection section.
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog box. This section contains settings for
specifying the type of constraint and whether to use a pointwise or weak constraint. See
Constraint Settings 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 box. For information about the
Orientation of Source section, see Orientation of Source and Destination.
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 box. For information about the
Orientation of Destination section, see Orientation of Source and Destination.
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: mol/(m·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.
SPECIES SOURCE
Enter the source strength, q· p,c , for each species (SI unit: mol/s). A positive value
results in species injection from the point into the computational domain, and a
negative value means that the species is removed from the computational domain.
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.
If the Apply equilibrium condition on inflow boundaries check box is selected, the
specified inflow concentration values in all active Inflow boundary nodes for the physics
interface are modified to comply with the equilibrium condition.
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).
Selecting Equilibrium constant defines an equilibrium condition based on the
stoichiometric coefficients, the species activities, and the law of mass action.
STOICHIOMETRIC COEFFICIENTS
Enter a value for the stoichiometric coefficientνc (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.
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 Porous Electrode Coupling node in
the Fluid Flow interface.
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.
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 and Porous Matrix subnodes respectively. The Porous Medium node supports
material properties using a Porous Material node, 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.
Fluid
Use this node to specify the mass transfer in the mobile fluid solvent filling the pores
of a porous medium. It is used as a subnode to 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
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.
For User defined, enter a value or expression for the Fluid diffusion coefficient DF,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 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).
• 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 a Unsaturated Porous Medium.
The default Porosity εp of the solid matrix is taken From material. The Porous Matrix
node supports the use of a Porous Material node, where the porosity is defined in the
manner of
εp = 1 – θs, i – θimf, i
i i
where θs,i and θimf,i are the porosities of the 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
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
check box and the Convection check box are selected in the Settings window for the
physics interface.
Select the Specify dispersion for each species individually check box 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
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, 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.
You can also select User defined from the Temperature model input in order to manually
prescribe 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.
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
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.
DIFFUSION
The settings for the diffusion of each species in the gas phase are identical to those in
the Liquid subnode.
VOLATILIZATION
Enter a value for the volatilization isotherm kG,c (dimensionless) for each species.
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:
KL c ∂c K L c Pmax
c P = c Pmax -------------------- , K P = -------P- = ---------------------------
1 + KL c ∂c ( 1 + KL c )
2
Enter a Langmuir constant kL,c (SI unit: m3/mol) and an Adsorption maximum
cp,max,c (SI unit: mol/kg).
• For Freundlich:
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 T
N
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
c S
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
cP = f ( c )
FURTHER READING
See the theory chapter in the section Mass Balance Equation for Transport of Diluted
Species in Porous Media.
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.
Species Source
In order to account for consumption or production of species in porous domains, the
Species Source node adds source terms expressions Si to the right-hand side of the
species 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 See
[Link]
FURTHER READING
More information about how to use hygroscopic swelling can be found in Hygroscopic
Swelling Coupling section in the Structural Mechanics Module User’s Guide.
More information about multiphysics coupling nodes can be found in the section The
Multiphysics Branch.
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 , (8-1)
∂t
J 0, i J 0, u, i + J 0, d, i
- = --------------------------------------
S opf, i = --------- .
dz dz
For external convection on the upside and the downside of the domain, the
out-of-plane flux is
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 check box 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 check box 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 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 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
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 (8-2)
∂t
Equation 8-2 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 (8-3)
The third term on the left side of Equation 8-2 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 8-2), 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.
There are two ways to present a mass balance where chemical species transport occurs
through diffusion and convection. These are the nonconservative and conservative
formulations of the convective term:
∂c
nonconservative: ----- + u ⋅ ∇c = ∇ ⋅ J i + R (8-4)
∂t
∂c
conservative: ----- + ∇ ⋅ ( cu ) = ∇ ⋅ J i + R (8-5)
∂t
and each is treated slightly differently by the solver algorithms. In these equations
Ji (SI unit: mol/(m2·s)) is the diffusive flux vector, R (SI unit: mol/(m3·s)) is a
production or consumption rate expression, and u (SI unit: m/s) is the solvent velocity
field. The diffusion process can be anisotropic, in which case D is a tensor.
If the conservative formulation is expanded using the chain rule, then one of the terms
from the convection part, c∇·u, would equal zero for an incompressible fluid and
would result in the nonconservative formulation above. This is in fact the default
formulation in this physics interface. To switch between the two formulations, click the
Show button ( ) and select Advanced Physics Options.
∂----c- = ∇ ⋅ J + R
i
∂t
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 (8-6)
δV
q· p,c test ( c )
is added at a point in the geometry. As can be seen from Equation 8-6, 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.
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 (8-7)
δS
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 (8-8)
∂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
–zj um, j F cj ∇φ
2
i = F (8-9)
j
Equation 8-9 is simply Ohm’s law for ionic current transport and can be simplified to
i = – κ ∇φ (8-10)
where κ is the conductivity of the supporting electrolyte. A current balance gives the
current and potential density in the cell
∇⋅i = 0
∇ ⋅ ( – κ ∇φ ) = 0 (8-11)
Equation 8-11 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 ) (8-12)
∂ θ
( c ) + ∂ ( ρc P, i ) + ∂ (θ g c G, i) + u ⋅ ∇c i =
∂t l i ∂t ∂t (8-13)
∇ ⋅ [ ( D D, i + D e, i ) ∇c i ] + R i + S i
On the left-hand side of Equation 8-13, 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 8-13 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 − εs)ρ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 = εps. The
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 8-13, 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 8-13 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 (8-14)
∂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 (8-15)
c G , ∂t ∂t
∂ t g G, i
g ∂ ci ∂ t i i ∂t
∂ ε
( c ) + ∂ ( ρc P, i ) + u ⋅ ∇c i = ∇ ⋅ [ ( D D, i + D e, i ) ∇c i ] + R i + S i (8-16)
∂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 = sεp the liquid volume fraction, and s the saturation,
a dimensionless number between 0 and 1.
Figure 8-2: 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 8-13.
When using the nonconservative formulation, which is the default, the fluid is assumed
incompressible and divergence free: ∇ ⋅ u = 0. 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 form (the default) or Conservative form. 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 8-18 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)
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 ------------------------------ (8-20)
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 8-13. 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 (8-21)
∂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 8-21. 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.
Glossary
This Glossary of Terms contains finite element modeling terms specific to the
Microfluidics Module and its applications. For mathematical terms as well as
geometry and CAD terms specific to the COMSOL Multiphysics® software and its
documentation, see the glossary in the COMSOL Multiphysics Reference Manual.
To find references in the documentation set where you can find more information
about a given term, see the index.
393
Glossary of Terms
absorption (gas) Uptake of a gas into the bulk of a liquid. Gas absorption takes place,
for example, in the liquid of a scrubber tower where an up-streaming gas is washed by
a down-going flow of a scrubber solution.
biosensor A general term for sensor devices that either detect biological substances or
use antibodies, enzymes, or other biological molecules in their operation. Biosensors
are a subcategory of chemical sensors.
Bond number A dimensionless number given by the ratio of surface tension forces to
body forces (usually gravity) for a two-phase flow. It is also known as the Eötvös
number, Eo. At high Bond numbers surface tension has a minimal effect on the flow;
at low Bond numbers, surface tension dominates. The Bond number, Bo, is given by:
2
Bo = ρgL
--------------
σ
where ρ is the density, g is the body force acceleration, L is the characteristic length,
and σ is the surface tension coefficient. The density can refer to a density difference
when considering buoyancy.
Brinkman equations A set of equations extending Darcy’s law in order to include the
transport of momentum through shear in porous media flow.
where μ is the viscosity, v is the characteristic velocity of the problem, and σ is the
surface tension coefficient.
continuum flow Fluid flow which is well described by approximating the liquid as a
continuum with the Navier-Stokes equations.
creeping flow Models the Navier-Stokes equations without the contribution of the
inertia term. This is often referred to as Stokes flow and is appropriate for use when
viscous flow is dominant, such as in very small channels or microfluidic applications.
Darcy’s Law Equation that gives the velocity vector as proportional to the pressure
gradient. Often used to describe flow in porous media.
diffusion Transport of material resulting from the random motion of molecules in the
presence of a concentration gradient.
Dukhin number A dimensionless number given by the ratio of the surface conductivity
contribution to the fluid bulk electrical conductivity contribution in electrokinetic
phenomena. The Dukhin number, Du, is given by:
σ
K-
Du = -------
B
K
where Kσ is the surface conductivity and KB is the bulk conductivity. For low Dukhin
numbers, surface conductivities can be neglected when modeling electrokinetic flows.
electrokinetics Study of the motion of charged particles under an applied electric field
in moving substances such as water.
electrolyte A solution that can carry an electric current through the motion of ions.
Eulerian frame A frame of reference with its coordinate axes fixed in space.
Fick’s laws The first law relates the concentration gradients to the diffusive flux of low
concentration solute diluted in a solvent. The second law introduces the first law into
a differential material balance for the solute.
fluid-structure interaction (FSI) When a flow affects the deformation of a solid object
and vice versa.
free molecular flow The flow of gas molecules through a geometry which is much
smaller than the mean free path (Knudsen number, Kn>10). In the free molecular flow
regime the gas molecules collide with the walls of the geometry much more frequently
than they collide with themselves.
fully developed laminar flow Laminar flow along a channel or pipe that has velocity
components only in the main direction of the flow. The velocity profile perpendicular
to the flow does not change downstream in the flow.
intrinsic volume averages The physical properties of the fluid, such as density,
viscosity, and pressure.
λ
Kn = ----
L
Knudsen layer A layer of rarefied fluid flow that occurs within a few mean free paths
of the walls in a gas flow. The continuum Navier-Stokes equations break down in this
layer.
Lagrangian frame A frame of reference with its coordinate axes fixed in a reference
configuration of a deforming material. As the material deforms, the Lagrangian frame
deforms with it.
Laplace number The Laplace number, La, (also known as the Surataman number, Su)
relates the inertial and surface tension forces to the viscous forces. It is used to describe
the breakup of liquid jets and sheets: at high Laplace and low Reynolds numbers the
Rayleigh Instability occurs, at low Laplace and high Reynolds numbers atomization
occurs. The Laplace number is given by:
La = ρσL
-----------
2
μ
where ρ is the fluid density, σ is the surface tension coefficient, L is the characteristic
length scale of the problem, and μ is the viscosity. The Laplace number is directly
related to the Ohnesorge number, Oh, through the equation La=1/Oh2.
Mach number Ratio of the convective speed, v, to the speed of sound in the medium,
a. The Mach number, Ma, is defined by the equation:
Ma = --v-
a
Marangoni number Ratio of thermal surface tension forces to viscous forces. The
Marangoni number, Mg, is given by:
dσ LΔT
Mg = -------- ------------
dT μα
where σ is the surface tension coefficient, T is the absolute temperature (ΔT is the
characteristic temperature difference), L is the characteristic length, and α is the
thermal diffusivity (α=κ/(ρcp)), where cp is the heat capacity at constant pressure, κ is
the thermal conductivity, and ρ is the density of the fluid.
microfluidics Study of the behavior of fluids at the microscale. Also refers to MEMS
fluidic devices.
migration The transport of charged species in an electrolyte due to the electric force
imposed by the electric field.
mobility The relation between the drift velocity of a molecule within a fluid and the
applied electric field.
Nernst–Planck equation Flow equation that describes the flux of an ion through
diffusion, convection, and migration in an electric field. The equation is valid for
diluted electrolytes.
Ohnesorge number A dimensionless number relating the inertial and surface tension
forces to the viscous forces. Used to describe the breakup of liquid jets and sheets: at
low Ohnesorge and Reynolds numbers the Rayleigh instability occurs; at high
Ohnesorge and Reynolds numbers, atomization occurs. The Ohnesorge number, Oh,
is given by:
μ
Oh = ---------------
ρσL
Pe = vL
-------
D
where v is the convective velocity, L is the flow length scale, and D is the diffusion
constant.
Poiseuille’s law Equation that relates the mass rate of flow in a tube as proportional to
the pressure difference per unit length and to the fourth power of the tube radius. The
law is valid for fully developed laminar flow.
Re = ρvL
----------- = vL
-------
μ ν
slip flow Fluid flow that occurs when the Knudsen number, Kn, is in the range
0.01<Kn<0.1. As a result of rarefaction effects in the Knudsen layer the no slip
boundary condition fails. The flow outside the Knudsen layer can be represented by
the continuum Navier-Stokes equations provided that an appropriate slip boundary
condition is used for the fluid flow and the correct temperature jump boundary
condition is applied at the interface.
Stern layer A layer of immobile ions and associated solvent molecules present at the
solid-liquid interface in an electric double layer (EDL).
superficial volume averages The flow velocities, which correspond to a unit volume of
the medium including both pores and matrix. They are sometimes called Darcy
velocities, defined as volume flow rates per unit cross section of the medium.
surface tension Surface tension is a property of the surface of a liquid that allows it to
resist an external force. Equivalently it can be through of as the energy per unit area of
the liquid surface. It is caused by asymmetries in the cohesive forces between molecules
at the surface of the liquid.
transitional flow Fluid flow that occurs when the Knudsen number, Kn, is in the range
0.1<Kn<10. In this regime the flow is so rarefied that continuum equations break
down completely. However collisions between the molecules are still important, so free
molecular flow is not applicable.
2
We = ρv L
-------------
σ
where ρ is the density of the fluid, v is the characteristic velocity of the flow, L is the
characteristic length scale, and σ is the surface tension coefficient.
zeta potential The potential of at the interface between the electric double layer and
a solid surface in an electrolyte.
INDEX| 403
Debye-Hückel approximation 50 external fluid interface (node) 175
dielectrophoresis (DEP) 53 external slip wall (node) 318
dimensionless numbers 33–35
F Faraday’s law 378
Dirichlet boundary condition 34
flow continuity (node) 94
documentation 24
flow rate in SCCMs 83
domain nodes
flow regimes, for rarefied flows 59
Brinkman equations 277
fluid (node) 317
Darcy’s law 238
fluid flow
free and porous media flow 287
Brinkman equations theory 306
level set 100, 204
electrothermally driven 55
phase field 210
two-phase flow moving mesh theory
slip flow 316
192
ternary phase field 216
fluid properties (node)
transport of diluted species 334
free and porous media flow 288
Dukhin number 36
incompressible potential flow 100
E edge nodes single-phase, laminar flow 73
Darcy’s law interface 238 fluid-fluid interface (node) 174
slip flow 316 flux (node)
electric double layer (EDL), electroos- transport of diluted species 344
mosis and 50 flux discontinuity (node) 346
electrode-electrolyte interface coupling Darcy’s law 264
(node) transport of diluted species 346
free and porous media flow 259 fracture flow (node) 269
transport of diluted species 354 free and porous media flow interface 285
electrohydrodynamics, definition 49 theory 309
electrokinetic flows 49 Freundlich exponent 388
electrokinetics 49 fully developed flow 83
electroosmosis 50
G general stress (boundary stress condi-
electroosmotic velocity, wall boundary
tion) 89
condition 78
geometry frames 193
electrophoresis 49, 52
Ginzburg–Landau equation 227
electrothermally driven flow 55
gravity 97
electrowetting on dielectric (EWOD) 56
H heat transfer 57
elevation 258
Heat Transfer Module 57
emailing COMSOL 26
Helmholtz-Smoluchowski equation 51
Equilibrium Reaction
Henry’s function 52
theory for 372
hydraulic head (node) 266
equilibrium reaction (node) 351
404 | I N D E X
Hygroscopic Swelling 365 Langmuir constant 388
Laplace number 37
I inflow (node) 343
leaking wall, wall boundary condition 79,
initial values (node)
294
Brinkman equations 282
level set functions, initializing 224, 229
Darcy’s law 257
level set interface 202–203
free and porous media flow 292
theory 179, 221
level set 101, 206, 212
level set model (node) 205
phase field 218
line mass source (node)
single-phase, laminar flow 76
fluid flow 96
slip flow 319
species transport 349
spf interfaces 76
line source
transport of diluted species 340
species transport 376
initializing functions 224, 229
local
inlet (node) 80, 262
CFL number 70, 277
single-phase flow 80
ternary phase field 218–219 M Mach number 36
interface normal variable 225, 230 magnetohydrodynamics 49
interior slip wall (node) 320 magnetophoresis 49, 54
interior wall (node) Marangoni number 37
incompressible potential flow 104 mass based concentrations (node) 340
spf interfaces 92 mass conservation, level set equations
interior wetted wall (node) 214 184
internet resources 24 mass flux (node) 260
intrinsic volume averages 306 mass source (node)
isotropic diffusion 34 Brinkman equations 281
Darcy’s law 255
J Joule heating 55
material frames 193
K knowledge base, COMSOL 26
mathematics, moving interfaces
Knudsen layer 60
level set 202–203
Knudsen number 16, 36, 59
phase field 209, 215
L lab-on-a-chip devices 16 theory 221, 226, 232
laminar flow interface 65 MEMS Module 293
laminar three-phase flow, phase field in- MEMS, definition 16
terface 167 mesh frames 193
laminar two-phase flow microfluidic wall conditions (node) 292
moving mesh interface 172 microfluidics
laminar two-phase flow, level set (tpf) in- definition 16
terface 150, 160 dimensionless numbers, and 33–35
INDEX| 405
modeling techniques 30 outflow (node)
stabilization techniques 34 transport of diluted species 344
mixture properties (node) 216 outlet (node) 84, 264
modeling single-phase flow 84
electrohydrodynamics 49 spf interfaces 84
microfluidics 30 ternary phase field 218
transport of chemical species and ions
P pair nodes
47
Brinkman equations 277
moving interfaces 226, 232
Darcy’s law interface 238
MPH-files 25
free and porous media flow 287
multiphase flow
level set 100, 204
moving mesh theory 192
phase field 210
multiphase flow theory 179, 221, 226, 232
slip flow 316
N Navier–Stokes equations 179 ternary phase field 216
Nernst–Einstein relation 338, 357, 361, transport of diluted species 334
378 partially saturated porous media (node)
no flow (node) 263 358
Darcy’s law 263 Peclet number 33
level set 207 periodic condition (node) 320
no flux (node) 342 transport of diluted species 347
no slip, interior wall boundary condition periodic flow condition (node) 90
92 incompressible potential flow 102
no slip, wall boundary condition 77, 293 permeability models 244, 252, 273
no viscous stress (open boundary) 88 pervious layer (node) 267
nodes, common settings 23 phase field interface 209
nonconservative formulations 184, 374 theory 179, 226, 232
normal stress, normal flow (boundary phase field model (node) 211
stress condition) 89 physics interfaces, common settings 23
numerical instability, dimensionless num- point mass source (node)
bers and 33 fluid flow 95
species transport 350
O Ohm’s law 379
point nodes
Ohnesorge number 37
Brinkman equations 277
open boundary (node)
Darcy’s law interface 238
incompressible potential flow 101
free and porous media flow 287
level set 207
slip flow 316
single-phase flow 87
transport of diluted species 334
spf interfaces 87
point source
transport of diluted species 350
406 | I N D E X
species transport 375 laminar flow 65
Polymer Flow Module 40 sliding wall 80
porous electrode coupling (node) 353 slip
free and porous media flow 259 Maxwell’s boundary condition 60
porous media and subsurface flow slip flow 60
Brinkman equations interface 274 slip flow interface 314
Darcy’s law interface 236 theory 322
free and porous media flow interface slip velocity, wall boundary condition 78
285 slip wall (node) 319
theory, Brinkman equations 306 slip, interior wall boundary condition 92
theory, free and porous media flow slip, wall boundary condition 78, 294
309 spatial frames 193
porous media transport properties stabilization techniques, dimensionless
(node) 355, 358 numbers and 34
Porous Medium (node) standard cubic centimeters per minute
Brinkman equations 278, 289 83
potential point constraint (node) standard flow rate 83
incompressible potential flow 102 standard settings 23
pressure (node) 259, 262, 264 Stern layer 51
pressure head (node) 266 Stokes equations 64
pressure point constraint (node) 94 Stokes flow 64, 173
pseudo time stepping stratified porous media 386
settings 70, 277 streamline diffusion, in fluid flow 34
superficial volume average, porous me-
R rarefied gas flow 59
dia 307
Reacting Volume 341
superficial volume averages, porous me-
reaction coefficients (node) 354
dia 382
reactions (node)
Supporting Electrolytes 378
transport of diluted species 341
Surataman number 37
retardation factor 388
surface equilibrium reaction (node) 353
Reynolds number, dimensionless num-
surface tension force variable 230
bers and 33
symmetry (node) 87, 320
S SCCM, flow rate in 83
Darcy’s law 263
selecting
incompressible potential flow 102
multiphase flow interfaces 41
spf interfaces 87
porous media flow interfaces 43
transport of diluted species 346
single-phase flow interfaces 39
T technical support, COMSOL 26
SEMI standard E12-0303 82
ternary phase field interface 215
single-phase flow interface
INDEX| 407
theory volume force (node) 76
Brinkman equations 306 Brinkman equations 282
free and porous media flow 309 free and porous media flow 291
level set 221 spf interfaces 76
phase field 226, 232
W wall (node)
slip flow 322
free and porous media flow 293
tpf interfaces 179
incompressible potential flow 101
transport of diluted species in porous
single-phase flow 77
media interface 371
Weber number 37
transport of diluted species interface
websites, COMSOL 26
370
wetted wall (boundary condition) 155
two-phase flow moving mesh 192
wetted wall (node) 213, 219
thermal creep, wall boundary condition
Y Young’s equation 55
78
thickness
fracture 368
out-of-plane 258
thin barrier (node)
level set 208
thin diffusion barrier (node) 351
Thin Impermeable Barrier 351
TMAC, microfluidic wall conditions 293
tortuosity factors 384
traction boundary conditions 88
transport of diluted species in porous
media interface 332
theory 371
transport of diluted species interface 328
theory 370
two-phase flow
moving mesh, theory 192
V variables
level set interface 225
phase field interface 230
velocity (node)
incompressible potential flow 101
viscous slip, wall boundary condition 78
volume averages 306
408 | I N D E X