Subsurface Flow Module Users Guide
Subsurface Flow Module Users Guide
User’s Guide
Subsurface Flow Module User’s Guide
© 1998–2019 COMSOL
Protected by patents listed on www.comsol.com/patents, and U.S. Patents 7,519,518; 7,596,474;
7,623,991; 8,457,932; 8,954,302; 9,098,106; 9,146,652; 9,323,503; 9,372,673; 9,454,625; and
10,019,544. Patents pending.
This Documentation and the Programs described herein are furnished under the COMSOL Software License
Agreement (www.comsol.com/comsol-license-agreement) 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 www.comsol.com/trademarks.
Version: COMSOL 5.5
Contact Information
Visit the Contact COMSOL page at www.comsol.com/contact to submit general
inquiries, contact Technical Support, or search for an address and phone number. You can
also visit the Worldwide Sales Offices page at www.comsol.com/contact/offices for
address and contact information.
If you need to contact Support, an online request form is located at the COMSOL Access
page at www.comsol.com/support/case. Other useful links include:
Chapter 1: Introduction
CONTENTS |3
Inlet . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Outlet . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Symmetry . . . . . . . . . . . . . . . . . . . . . . . . . 50
Open Boundary . . . . . . . . . . . . . . . . . . . . . . . 51
Boundary Stress . . . . . . . . . . . . . . . . . . . . . . . 52
Periodic Flow Condition . . . . . . . . . . . . . . . . . . . . 53
Flow Continuity . . . . . . . . . . . . . . . . . . . . . . . 54
Pressure Point Constraint . . . . . . . . . . . . . . . . . . . 54
Point Mass Source . . . . . . . . . . . . . . . . . . . . . . 55
Line Mass Source . . . . . . . . . . . . . . . . . . . . . . . 55
Gravity . . . . . . . . . . . . . . . . . . . . . . . . . . 56
4 | CONTENTS
Subsurface Flow Interfaces
CONTENTS |5
Interior Wall . . . . . . . . . . . . . . . . . . . . . . . 119
Thin Barrier. . . . . . . . . . . . . . . . . . . . . . . . 119
Pressure Head . . . . . . . . . . . . . . . . . . . . . . . 120
Hydraulic Head . . . . . . . . . . . . . . . . . . . . . . 120
Atmosphere/Gauge . . . . . . . . . . . . . . . . . . . . . 120
Pervious Layer . . . . . . . . . . . . . . . . . . . . . . . 121
Well . . . . . . . . . . . . . . . . . . . . . . . . . . 122
Fracture Flow . . . . . . . . . . . . . . . . . . . . . . . 123
6 | CONTENTS
Theory for the Phase Transport Interface 144
Phase Transport in Free Flow . . . . . . . . . . . . . . . . . 144
Turbulent Mixing . . . . . . . . . . . . . . . . . . . . . . 145
Phase Transport in Porous Media . . . . . . . . . . . . . . . 145
Predefined Capillary Pressure and Relative Permeability Models . . . . 146
Porous Medium Discontinuity Boundary Condition . . . . . . . . . 147
References . . . . . . . . . . . . . . . . . . . . . . . . 148
CONTENTS |7
Theory for the Brinkman Equations Interface 168
About the Brinkman Equations . . . . . . . . . . . . . . . . 168
Brinkman Equations Theory. . . . . . . . . . . . . . . . . . 169
References for the Brinkman Equations Interface. . . . . . . . . . 170
Theory for the Free and Porous Media Flow Interface 179
Reference for the Free and Porous Media Flow Interface. . . . . . . 179
8 | CONTENTS
Mass-Based Concentrations . . . . . . . . . . . . . . . . . . 198
Reactions. . . . . . . . . . . . . . . . . . . . . . . . . 198
No Flux . . . . . . . . . . . . . . . . . . . . . . . . . 200
Inflow . . . . . . . . . . . . . . . . . . . . . . . . . . 200
Outflow . . . . . . . . . . . . . . . . . . . . . . . . . 201
Concentration . . . . . . . . . . . . . . . . . . . . . . . 201
Flux . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
Symmetry . . . . . . . . . . . . . . . . . . . . . . . . 203
Flux Discontinuity . . . . . . . . . . . . . . . . . . . . . 203
Partition Condition . . . . . . . . . . . . . . . . . . . . . 204
Periodic Condition . . . . . . . . . . . . . . . . . . . . . 205
Line Mass Source . . . . . . . . . . . . . . . . . . . . . . 205
Point Mass Source . . . . . . . . . . . . . . . . . . . . . 206
Open Boundary . . . . . . . . . . . . . . . . . . . . . . 207
Thin Diffusion Barrier . . . . . . . . . . . . . . . . . . . . 207
Thin Impermeable Barrier . . . . . . . . . . . . . . . . . . 207
Equilibrium Reaction . . . . . . . . . . . . . . . . . . . . 208
Surface Reactions . . . . . . . . . . . . . . . . . . . . . 209
Surface Equilibrium Reaction . . . . . . . . . . . . . . . . . 209
Fast Irreversible Surface Reaction . . . . . . . . . . . . . . . 209
Porous Electrode Coupling . . . . . . . . . . . . . . . . . . 210
Reaction Coefficients . . . . . . . . . . . . . . . . . . . . 210
Electrode Surface Coupling . . . . . . . . . . . . . . . . . . 211
Porous Media Transport Properties. . . . . . . . . . . . . . . 211
Adsorption . . . . . . . . . . . . . . . . . . . . . . . . 214
Partially Saturated Porous Media . . . . . . . . . . . . . . . . 215
Volatilization . . . . . . . . . . . . . . . . . . . . . . . 218
Reactive Pellet Bed . . . . . . . . . . . . . . . . . . . . . 219
Reactions (Reactive Pellet Bed) . . . . . . . . . . . . . . . . 221
Species Source. . . . . . . . . . . . . . . . . . . . . . . 222
Hygroscopic Swelling . . . . . . . . . . . . . . . . . . . . 223
Fracture . . . . . . . . . . . . . . . . . . . . . . . . . 224
CONTENTS |9
Flux . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
Fracture . . . . . . . . . . . . . . . . . . . . . . . . . 230
Inflow . . . . . . . . . . . . . . . . . . . . . . . . . . 231
No Flux . . . . . . . . . . . . . . . . . . . . . . . . . 232
Outflow . . . . . . . . . . . . . . . . . . . . . . . . . 232
Reactions. . . . . . . . . . . . . . . . . . . . . . . . . 232
Species Source. . . . . . . . . . . . . . . . . . . . . . . 233
10 | C O N T E N T S
Chapter 7: Multiphysics Interfaces and Couplings
CONTENTS | 11
12 | C O N T E N T S
1
Introduction
This guide describes the Subsurface Flow Module, an optional add-on package
that extends the COMSOL Multiphysics® modeling environment with customized
physics interfaces for modeling fluid flow below the ground level or in porous
media in general. It allows to combine this flow with other phenomena, such as
poroelasticity, heat transfer, chemistry, and electromagnetic fields.
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.
13
About the Subsurface Flow Module
In this section:
The physics interfaces, options, and functions are tailored to account for subsurface
flow and geologic process terminology. The Heat Transfer interfaces, for example,
include features to superpose a background geotherm without incorporating it as a
14 | CHAPTER 1: INTRODUCTION
boundary condition. These physics interfaces also include options to automate the
calculation of effective thermal properties for multicomponent systems.
The Fluid Flow branch represent a wide range of possibilities. The Richards’ Equation
interface describes nonlinear flow in variably saturated porous media. The options for
saturated porous media include the Darcy’s Law interface for slow flow and the
Brinkman Equations interface where shear is nonnegligible. The Laminar Flow
interface uses the Navier-Stokes equations to cover free flows and the Fracture Flow
interface is used for modeling flow in fractures.
The module also treats the transport of chemicals and their reactions with the
Chemical Species Transport branch. The Transport of Diluted Species in Porous
Media interface account for chemical transfer in solid, liquid, and gas phases for free,
saturated, and variably saturated fluid flows. The Subsurface Flow Module
Applications Libraries has a number examples linking these physics interfaces together.
The Subsurface Flow Module has a set of physics interfaces adopted for a broad
category of simulations important in earth investigations. These physics interface and
models can serve equally well as tools for research, applied investigations, and
classroom education.
The predefined physics interfaces available in this module cover three main application
areas. The Subsurface Flow Module interfaces are available in 2D, 2D axisymmetry,
and 3D. The physics interfaces for heat transfer and species transport are also available
in 1D and 1D axisymmetry. All physics interfaces are available for both stationary and
time-dependent analyses. The physics interfaces can be combined to model, for
Single-Phase Flow
16 | CHAPTER 1: INTRODUCTION
PHYSICS INTERFACE ICON TAG SPACE AVAILABLE STUDY TYPE
DIMENSION
18 | CHAPTER 1: INTRODUCTION
Subsurface Flow Module Study Availability
All the physics interfaces included with the module have the Stationary and Time
Dependent preset studies available. Custom studies are also available based on the
physics interface.
For detailed information, see Liquids and Gases Materials Database and
Materials in the COMSOL Multiphysics Reference Manual.
• In the Model Builder or Physics Builder click a node or window and then
press F1.
• On the main toolbar, click the Help ( ) button.
• From the main menu, select Help>Help.
• Press Ctrl+F1.
• From the File menu select Help>Documentation ( ).
20 | CHAPTER 1: INTRODUCTION
To open the Documentation window:
• Press Ctrl+F1.
• On the main toolbar, click the Documentation ( ) button.
• From the main menu, select Help>Documentation.
Once the Application Libraries window is opened, you can search by name or browse
under a module folder name. Click to view a summary of the model or application and
its properties, including options to open it or its associated PDF document.
To include the latest versions of model examples, from the Help menu
select ( ) Update COMSOL Application Library.
22 | CHAPTER 1: INTRODUCTION
Overview of the User’s Guide
The Subsurface Flow Module User’s Guide gets you started with modeling using
COMSOL Multiphysics. The information in this guide is specific to this module.
Instructions how to use COMSOL in general are included with the COMSOL
Multiphysics Reference Manual.
• The Porous Media and Subsurface Flow group of interfaces estimates the pressure
and velocity of fluids flowing in free systems and within the interstices of a porous
medium. Selecting the Right Fluid Flow Interface for Porous Media helps you
choose the right physics interface to use.
• The Darcy’s Law Interface is for flow in porous media that is relatively slow.
• The Two-Phase Darcy’s Law Interface to simulate two-phase slow flow through
interstices in a porous medium.
• The Phase Transport in Porous Media Interface to model the transport of multiple
immiscible phases through a porous medium.
• The Richards’ Equation Interface is for variably saturated systems.
• The Fracture Flow Interface is a special application of Darcy’s law for modeling flow
in fractures.
The Transport of Diluted Species in Porous Media Interface characterizes the fate and
transport of individual or multiple and interacting chemical species for systems
containing fluids, solids, and gases. Theory for the physics interfaces is included at the
end of the chapter.
The Transport of Diluted Species in Fractures Interface is used to model the transport
of a solute species along thin fractures. The interface takes into account diffusion,
dispersion, convection, and chemical reactions in fractures. The fractures are defined
by boundaries in 2D and 3D, and the solute species is assumed to be diluted in a
solvent. The mass transport equation solved along the fractures is the tangential
differential form of the convection-diffusion-reaction equation.
The Heat Transfer Interface models heat transfer by conduction and convection.
Surface-to-ambient radiation effects around edges and boundaries can also be
included. The physics interfaces are available in 1D, 2D, and 3D and for axisymmetric
models with cylindrical coordinates in 1D and 2D.
The Heat Transfer in Porous Media Interface lets you describe heat transferred both
with and without flowing fluids. You can define the velocity in the convective term
with any of the flow equations just mentioned or set it with an arbitrary expression.
24 | CHAPTER 1: INTRODUCTION
With convective heat transfer, the effective thermal properties also include an option
to estimate the dispersion or spreading of heat from small-scale velocity variations.
When you have the Subsurface Flow Module plus the Chemical Reaction
Engineering and/or Heat Transfer Modules, the Heat Transfer interface
also has extended features available.
The Poroelasticity Interface chapter describes the physics interface for Biot’s
poroelasticity, and combines Darcy’s law with solid mechanics to provide suitable
settings to describe the interaction between porous media and fluids.
The Multiphase Flow in Porous Media Interface combines the functionality of the
Darcy’s Law and Phase Transport in Porous Media interfaces.
The Reacting Flow in Porous Media Interface combines the Brinkman Equations and
the Transport of Diluted Species in Porous Media interfaces.
27
Where Do I Start with Subsurface
Flow Modeling?
Many of the physics interfaces have predefined equations or sets of equations adapted
to earth-science applications. These are based on the equations for momentum
transport (fluid flow), energy transport (heat transfer), and mass transport. You can
take the equations in these physics interfaces and the variables they offer and then
modify them, link them together, and couple them to physics interfaces elsewhere in
COMSOL Multiphysics.
Δx
Δz
jx
Δy
jy
jz
u t + Δt – u t
ΔxΔyΔz -------------------------- = – Δ yΔz ( j x + Δx – j x ) – ΔxΔz ( j y + Δy – j y )
Δt
– ΔxΔy ( j z + Δz – j z ) + ΔxΔyΔzF
In this equations the term on the left-hand side represents accumulation or the change
in the amount of u stored in some time period Δt. The final term on the right-hand
side represents a volume source or sink. The terms in between represent the difference
in the fluxes across the surfaces of the volume. Dividing both sides by ΔxΔyΔz gives
the equation
u t – u t – Δt ( j x + Δx – j x ) ( j y + Δy – j y ) ( j z + Δz – j z )
-------------------------
- = – -----------------------------
- – ------------------------------ – ----------------------------- + F
Δt Δx Δy Δz
Allowing the time period Δt and the volume to become infinitesimally small gives the
base equation for a large family of problems in subsurface flow:
∂-----
u-
= –∇ ⋅ j + F
∂t
This equation appears in different forms throughout this manual. If the modeled entity
u is a vector, it requires a balance for every direction in space. To find a unique solution
to this system, the proper initial conditions and boundary conditions must be specified.
This physics interface describes the movements and reactions of a single solute,
multiple solutes, and solutes that interact. The physics interface suits modeling of
transport in saturated porous media, fluids, and even solid state diffusion, where the
physics can be slow diffusion in a solid or stagnant pond, rapid transport in a fracture,
or temperature-dependent reactions in multiple phases. This physics interface also
covers leaching from pesticide applications and landfills as well as chemical partitioning
from liquid to vapor phase. It is available in all space dimensions.
Linking arbitrarily to and from other physics interfaces allows an unusually wide range
of investigation. Links provide driving forces such as velocity and electric fields plus
feedback chemical to other physics. Chemical properties and reactions can change and
be changed by temperature, pressure, electric potential, magnetic potential, and shear
rates. Temperature-dependent dissolution rates, exothermic and endothermic
reactions, phase changes, electrochemistry, and ferrofluidics fall well inside the wide
range of multiphysics processes that are straightforward to describe in a single model.
Expressions for fluid velocities can come from any flow equation in COMSOL
Multiphysics, including model results and equations you write. This means you can
enter a number or an expression to drive the solute transport without fully simulating
the flow field.
Saturated porous media flow can be modeled through either Darcy’s Law or
Brinkman's extension to Darcy's Law, depending on the size of the pores involved. If
the pore is such that viscous effects to the fluid flow can be ignored, then Darcy's Law
can be used, and flow is described exclusively by the pressure variable. If the size of the
pores is such that the fluid can impose momentum changes through shear effects, then
the Brinkman equations are to be applied. They solve for the same variables as the
Navier-Stokes equations, but include terms that consider the porosity of the media the
fluid is flowing through.
The Fracture Flow interface solves for pressure on internal (2D) boundaries within a
3D matrix and is automatically coupled to the physics describing the porous media
flow in the surrounding matrix. This approximation saves you from meshing the actual
fractures and the computational resources this entails. If a fluid happens to flow from
one medium to the other (and back) in the same model, all of the porous media physics
are automatically coupled to descriptions of free flow within the Subsurface Flow
Module.
This chapter describes the interfaces found under the Fluid Flow>Single-Phase Flow
branch ( ).
35
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.
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.
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 approximate the time-scale
tensor in time dependent problems from projections of weak expressions. This check
box is selected by default. When not selected the actual time-step is used.
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
the effect of oscillations by making the system somewhat less dominated by
convection. If possible, minimize the use of the inconsistent stabilization method
because by using it you no longer solve the original problem. 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 underresolved problems.
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
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.
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
In the COMSOL Multiphysics Reference Manual, see Table 2-4 for links to common
sections and Table 2-5 to common feature nodes. You can also search for information:
press F1 to open the Help window or Ctrl+F1 to open the Documentation window.
Fluid Properties
The Fluid Properties node adds the momentum and continuity equations solved by the
physics interface, except for volume forces, which are added by the Volume Force
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 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 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/or pressure and these
dependencies are automatically replaced by pref for weakly compressible flows and pref
and Tref for incompressible flows (as specified by the Compressibility setting at the
physics interface level). If density variations with respect to pressure are to be included
in the computations, Compressibility must be set to compressible. Any dependencies in
the density on quantities other than temperature and pressure must be consistent with
the Compressibility setting at the interface level.
Dynamic Viscosity
The Dynamic viscosity μ describes the relationship between the shear rate and the shear
stresses in a fluid. Intuitively, water and air have low viscosities, and substances often
described as thick (such as oil) have higher viscosities.
Volume Force
The Volume Force node specifies the volume force F on the right-hand side of the
momentum equation.
∂u T 2
ρ + ρ ( u ⋅ ∇ )u = ∇ ⋅ – pI + μ ( ∇u + ( ∇u ) ) – --- μ ( ∇ ⋅ u )I + F
∂t 3
If several volume-force nodes are added to the same domain, then the sum of all
contributions are added to the momentum equation.
INITIAL VALUES
Initial values or expressions should be specified for the Velocity field u and the Pressure
p.
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 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.
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.
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.
The Translational velocity setting controls the translational wall velocity, utr. The list is
per default set to Automatic from frame. The physics automatically detects if the spatial
frame moves. This can for example happen if an ALE interface is present in the model
component. If there is no movement utr = 0. If the frame moves, utr becomes equal
to the frame movement. utr is accounted for in the actual boundary condition
prescribed in the Boundary condition section.
Select Zero (Fixed wall) from Translational velocity selection list to prescribe utr = 0.
Select Manual from Translational velocity selection list in order to manually prescribe
Velocity of moving wall, utr. This can for example be used to model an oscillating wall
where the magnitude of the oscillations are very small compared to the rest of the
model. Specifying translational velocity manually does not automatically cause the
associated wall to move. An additional Moving Mesh interface needs to be added to
physically track the wall movement in the spatial reference frame.
The Sliding wall option is appropriate if the wall behaves like a conveyor belt; that is,
the surface is sliding in its 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 Default, Use pointwise constraints, Use DG constraints, or Use weak
constraints. Use mixed constraints can be selected when imposing a no slip condition
exactly.
• Apply reaction terms on can be set to Individual dependent variables (default) or All
physics (symmetric). This setting is not available when Use DG constraints is selected.
• Select Elemental (default) or Nodal under Constraint method. This setting is not
available for Use DG constraints or Use weak constraints.
Inlet
This condition should be used on boundaries for which there is a net flow into the
domain. To obtain a numerically well-posed problem, it is advisable to also consider
the Outlet conditions when specifying an Inlet condition. For example, if the pressure
is specified at the outlet, the velocity may be specified at the inlet, and vice versa.
Specifying the velocity vector at both the inlet and the outlet may cause convergence
difficulties.
BOUNDARY CONDITION
The available Boundary condition options for an inlet are Velocity, Fully developed flow,
and Pressure. After selecting a Boundary Condition from the list, a section with the same
or a similar name displays underneath. For example, if Velocity is selected, a Velocity
section, where further settings are defined, is displayed.
VELOCITY
The Normal inflow velocity is specified as u = −nU0, where n is the boundary normal
pointing out of the domain and U0 is the normal inflow speed.
The Velocity field option sets the velocity vector to u = u0. The components of the inlet
velocity vector u0 should be defined for this choice.
PRESSURE CONDITIONS
This option specifies the normal stress, which in most cases is approximately equal to
the pressure. If the reference pressure pref, defined at the physics interface level, is
• The Suppress backflow option adjusts the inlet pressure locally in order to prevent
fluid from exiting the domain through the boundary. If you clear the suppress
backflow option, the inlet boundary can become an outlet depending on the
pressure field in the rest of the domain.
• Flow direction controls in which direction the fluid enters the domain.
- For Normal flow, it prescribes zero tangential velocity component.
- For User defined, an Inflow velocity direction du (dimensionless) should be
specified. The magnitude of du does not matter, only the direction. du must
point into the domain.
The fully developed flow condition requires any volume force to be approximately
aligned with the normal of the inlet boundary.
A fully developed flow boundary cannot be adjacent to any Interior Wall feature.
CONSTRAINT SETTINGS
This section is displayed by clicking the Show button ( ) and selecting Advanced
Physics Options.
BOUNDARY CONDITION
The available Boundary condition options for an outlet are Pressure, Fully developed flow,
and Velocity.
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. If 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.
• 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 prevent fluid from entering the domain through the boundary.
VELOCITY
See the Inlet node Velocity section for the settings.
The channel can be thought of as a virtual extrusion of the outlet cross section. The
outlet boundary must hence be flat in order for the fully developed flow condition to
work properly. In 2D axisymmetric models, the outlet normal must be parallel to the
symmetry axis.
The fully developed flow condition requires any volume force to be approximately
aligned with the normal of the outlet boundary. A fully developed flow boundary
cannot be adjacent to any Interior Wall feature.
CONSTRAINT SETTINGS
This section is displayed by clicking the Show button ( ) and selecting Advanced
Physics Options.
Symmetry
The Symmetry boundary condition prescribes no penetration and vanishing shear
stresses. The boundary condition is a combination of a Dirichlet condition and a
Neumann condition:
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
CONSTRAINT SETTINGS
This section is displayed by clicking the Show button ( ) and selecting Advanced
Physics Options.
Open Boundary
The Open Boundary condition describes boundaries in contact with a large volume of
fluid. Fluid can both enter and leave the domain on boundaries with this type of
condition.
BOUNDARY CONDITIONS
The Boundary condition options for open boundaries are Normal stress and No viscous
stress.
Normal Stress
The Normal stress f0 condition implicitly imposes p ≈ f 0 .
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 CONDITION
The Boundary condition options for the boundary stress are General stress, Normal
stress, and Normal stress, normal flow.
General Stress
When General stress is selected, the components for the Stress F should be specified.
The total stress on the boundary is set equal to the given stress F:
– pI + μ ( ∇u + ( ∇u ) T ) – 2
--- μ ( ∇ ⋅ u )I n = F
3
( – pI + μ ( ∇u + ( ∇u ) T ) )n = F
This boundary condition implicitly sets a constraint on the pressure that for 2D flows is
∂u n
p = 2μ ---------- – n ⋅ F (3-1)
∂n
Normal Stress
Normal Stress is described for the Open Boundary node.
n – pI + μ ( ∇u + ( ∇u ) T ) – --- μ ( ∇ ⋅ u )I n = – f 0 ,
T 2
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
CONSTRAINT SETTINGS
This section is displayed by clicking the Show button ( ) and selecting Advanced
Physics Options.
If Normal Stress, Normal Flow is selected as the Boundary condition, then to Apply
reaction terms on all dependent variables, the All physics (symmetric) option should be
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).
PRESSURE DIFFERENCE
This section is available when Incompressible flow is selected for Compressibility under
the Physical Model section for the physics interface.
A value or expression should be specified for the Pressure difference, psrc − pdst. This
pressure difference can, for example, drive the fully developed flow in a channel.
CONSTRAINT SETTINGS
This section is displayed by clicking the Show button ( ) and selecting Advanced
Physics Options.
ORIENTATION OF SOURCE
For information about the Orientation of Source section, see Orientation of Source and
Destination in the COMSOL Multiphysics Reference Manual.
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.
A Wall subnode is added by default and it applies to the parts of the pair boundaries
where a source boundary lacks a corresponding destination boundary and vice versa.
The Wall feature can be overridden by any other boundary condition that applies to
exterior boundaries. By right-clicking the Flow Continuity node, additional Fallback
feature subnodes can be added.
The Wall fallback condition is incompatible with the Low Re wall treatment for the k-ω,
SST, and Low Reynolds number k-ε turbulence models.
PRESSURE CONSTRAINT
The relative pressure value is set by specifying the Pressure p0. Or, if the reference
pressure pref defined at the physics interface level is equal to zero, p0 represents the
absolute pressure.
CONSTRAINT SETTINGS
This section is displayed by clicking the Show button ( ) and selecting Advanced
Physics Options.
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 Batteries & Fuel
Cells 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.
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.
Line sources located on a boundary affect the adjacent computational domains. This,
for example, has the effect that a line source located on a symmetry plane has twice the
given strength.
Gravity
This feature requires at least one of the following licenses: CFD Module, Heat Transfer
Module.
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, an edit field for the Turbulent Schmidt number
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.
∂ρ
------ + ∇ ⋅ ( ρu ) = 0 (3-3)
∂t
∂u
ρ ------- + ρ ( u ⋅ ∇ )u = ∇ ⋅ [ – pI + τ ] + F (3-4)
∂t
∂T T ∂ρ ∂p
ρC p ------- + ( u ⋅ ∇ )T = – ( ∇ ⋅ q ) + τ:S – ---- ------- ------ + ( u ⋅ ∇ )p + Q (3-5)
∂t ρ ∂T p ∂t
where
1
S = --- ( ∇u + ( ∇u ) T )
2
To close the equation system, Equation 3-3 through Equation 3-5, 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
τ = 2μS – --- μ ( ∇ ⋅ u )I (3-7)
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. Examples of non-Newtonian fluids are honey, mud, blood,
liquid metals, and most polymer solutions. The Heat Transfer Module treats all fluids
as Newtonian according to Equation 3-7.Other commonly used constitutive relations
are Fourier’s law of heat conduction and the ideal gas law.
In theory, the same equations describe both laminar and turbulent flows. In practice,
however, the mesh resolution required to simulate turbulence with the Laminar Flow
interface makes such an approach impractical.
Many applications describe isothermal flows for which Equation 3-5 is decoupled from
Equation 3-3 and Equation 3-4.
2D AXISYMMETRIC FORMULATIONS
A 2D axisymmetric formulation of Equation 3-3 and Equation 3-4 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-4. 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-3 and Equation 3-4 therefore
assumes that
∂ ⁄ ∂φ = 0
uφ = 0
∂ρ
------ + ∇ ⋅ ( ρu ) = 0 (3-8)
∂t
∂u
ρ ------- + ρu ⋅ ∇u = – ∇p + ∇ ⋅ μ ( ∇u + ( ∇u ) T ) – --- μ ( ∇ ⋅ u )I + F
2
(3-9)
∂t 3
These equations are applicable for incompressible as well as for compressible flow with
density and viscosity variations.
The weakly compressible flow equations are valid for incompressible as well as
compressible flow with density variations independent of the pressure.
Provided that the densities dependency pressure is specified through model inputs, the
density is automatically evaluated at the reference pressure level.
u
Ma = -------
a
The practical Mach number limit is lower than one, however. The main reason is that
the numerical scheme (stabilization and boundary conditions) of the Laminar Flow
interface does not recognize the direction and speed of pressure waves. The fully
compressible Navier-Stokes equations do, for example, start to display very sharp
gradients already at moderate Mach numbers. But the stabilization for the single-phase
flow interface does not necessarily capture these gradients. It is impossible to give an
exact limit where the low Mach number regime ends and the moderate Mach number
regime begins, but a rule of thumb is that the Mach number effects start to appear at
Ma = 0.3. For this reason, the compressible formulation is referred to as Compressible
flow (Ma<0.3) in COMSOL Multiphysics.
Incompressible Flow
When the temperature variations in the flow are small, a single-phase fluid can often
be assumed incompressible; that is, ρ is constant or nearly constant. This is the case for
all liquids under normal conditions and also for gases at low velocities. For constant ρ,
Equation 3-8 reduces to
ρ∇ ⋅ u = 0 (3-10)
∂u T
ρ + ρ ( u ⋅ ∇ )u = ∇ ⋅ [ – pI + μ ( ∇u + ( ∇u ) ) ] + F (3-11)
∂t
ρUL
Re = ------------
μ
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.
Observe that the Reynolds number can have different meanings depending on the
length scale and velocity scale. To be able to compare two Reynolds numbers, they
must be based on equivalent length and velocity scales.
The Fluid Flow interfaces automatically calculate the local cell Reynolds number
Rec = ρ|u|h/(2μ) using the element length h for L and the magnitude of the velocity
vector u for the velocity scale U. This Reynolds number is not related to the character
of the flow field, but to the stability of the numerical discretization. The risk for
numerical oscillations in the solution increases as Rec grows. The cell Reynolds
number is a predefined quantity available for visualization and evaluation (typically it
is available as: spf.cellRe).
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 – ( K ⋅ n )n = 0
K = μ ( ∇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.
SLIDING WALL
The sliding wall option is appropriate if the wall behaves like a conveyor belt; that is,
the surface is sliding in its tangential direction. The wall does not have to actually move
in the coordinate system.
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:
The normalization makes u have the same magnitude as uw even if uw is not exactly
parallel to the wall.
CONSTRAINT SETTINGS
The wall feature uses three different techniques to constraint the velocity field:
• Use default settings. The default settings 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.
DG 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 DG constraints are used.
• Use Pointwise constraints.
• Use DG constraints.
• Use Weak constraints. Weak constraints are not available on Interior Walls.
• Use 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 DG constraints are used instead. This provides
improved accuracy and performance when working with coarse boundary layer
meshes. For more information, see Ref. 18.
INLET CONDITIONS
An inlet requires specification of the velocity components. The most robust way to do
this is to prescribe a velocity field using a Velocity condition.
∂u t
μ -------- = 0
∂n
which is what the Normal stress condition does. Vanishing tangential stress becomes a
less well-posed inlet condition as the Reynolds number increases. The Pressure
condition in the Inlet feature therefore requires a flow direction to be prescribed,
which provides a well-posed condition independent of Reynolds number.
OUTLET CONDITIONS
The most common approach is to prescribe a pressure via a normal stress condition on
the outlet. This is often accompanied by a vanishing tangential stress condition:
∂u t
μ -------- = 0
∂n
where ∂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.
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:
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
The inlet pressure, Pinl, must be solved for and the its equation is a discrete algebraic
equation (DAE) for Pinl. When, for example, the average velocity is specified, the DAE
reads
( u ⋅ n + U av )P̂ inl
where <⋅> denotes the average over the inlet. Since the equation for Pinl is a DAE (the
equation for Pinl does not contain Pinl), it must be solved coupled to Navier-Stokes
and it must be treated by a Vanka pre- and post-smoother if iterative solvers are
employed.
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 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:
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:
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 outlett
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 pre- and
post-smoother if iterative solvers are employed.
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
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-14)
3
( – pI + μ ( ∇u + ( ∇u ) T ) )n = – p 0 n (3-15)
u⋅t = 0 (3-16)
--- μ ( ∇ ⋅ u )I n = – pˆ 0 n
– pI + μ ( ∇u + ( ∇u ) T ) – 2
3
, (3-17)
( – pI + μ ( ∇u + ( ∇u ) T ) )n = – pˆ 0 n
pˆ ≤ p
0 0
Equation 3-17 effectively means that the prescribed pressure is p0 if u⋅n ≥ 0, but
smaller at locations where u⋅n < 0. This means that Equation 3-17 does not completely
prevent backflow, but the backflow is substantially reduced. Backflow is suppressed
also when external forces are acting on the fluid, provided the magnitude of these
forces are of the same order as the dynamic pressure at the outlet.
A pressure condition can also be applied at an inlet. In this case, either the normal stress
is prescribed
n – pI + μ ( ∇u + ( ∇u ) T ) – --- μ ( ∇ ⋅ u )I n = – pˆ 0
T 2
3
(3-19)
n ( – pI + μ ( ∇u + ( ∇u ) T ) )n = – pˆ 0
T
pˆ ≥ p
0 0
together with the tangential condition in Equation 3-16, or, a general flow direction
is prescribed.
--- μ ( ∇ ⋅ u )I n = – pˆ 0 ( r ⋅ n )
T – pI + μ ( ∇u + ( ∇u ) T ) – 2
ru 3 u
T ( – pI + μ ( ∇u + ( ∇u ) T ) )n = – p
ru ˆ (r ⋅ n)
0 u
(3-20)
pˆ ≥ p
0 0
du
u – ( u ⋅ r u )r u = 0, r u = -------------
du
See Inlet, Outlet, Open Boundary, and No Viscous Stress for the individual node
settings. Note that some modules have additional theory sections describing options
available with that module.
These features require at least one of the following licenses: Batteries &
Fuel Cells Module, CFD Module, Chemical Reaction Engineering
Module, Corrosion Module, Electrochemistry Module,
Electrodeposition Module, Microfluidics Module, Pipe Flow Module, or
Subsurface Flow Module.
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 = qp (3-21)
δV
q· p test ( p )
·
is added to a point in the geometry. As can be seen from Equation 3-21, 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:
kg/(m3·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 Q = q· l (3-22)
δS → 0
δS
As in the point source case, an alternative approach is to assume that mass is injected/
extracted through the surface of a small object. This results in the same mass source,
but requires that effects on the fluid resulting from the physical object volume are
neglected.
q· l test ( p )
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. The time-scale
tensor is the diagonal tensor presented in Ref. 10.
The governing equations for incompressible flow are subject to the Babuška-Brezzi
condition, which states that the shape functions (basis functions) for pressure must be
of lower order than the shape functions for velocity. If the incompressible
Navier-Stokes equations are stabilized by streamline diffusion, it is possible to use
equal-order interpolation. Hence, streamline diffusion is necessary when using
first-order elements for both velocity and pressure. This applies also if the model is
solved using geometric multigrid (either as a solver or as a preconditioner) and at least
one multigrid hierarchy level uses linear Lagrange elements.
CROSSWIND DIFFUSION
Crosswind diffusion can also be formulated for systems of equations, and when applied
to the Navier-Stokes equations it becomes a shock-capturing operator. COMSOL
Multiphysics supports the formulation in Ref. 9 with a shock-capturing viscosity of the
Hughes-Mallet type Ref. 8.
Incompressible flows do not contain shock waves, but crosswind diffusion is still useful
for introducing extra diffusion in sharp boundary layers and shear layers that otherwise
would require a very fine mesh to resolve.
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.5and 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 which 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-23)
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.3 9 ≈ 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.
• 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 COMSOL Multiphysics is 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 in COMSOL Multiphysics 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
= F t, x,
d 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”, Comp. Meth. Appl. Mech. Engrg, 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”, Comp. Meth. Appl. Mech. Engrg, 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”, Comp. Meth. Appl. Mech. Engrg, vol. 195, pp. 6011–6045,
2006.
15. B. Rivière, Discontinuous Galerkin Methods for Solving Elliptic and Parabolic
Equations, SIAM, 2008.
17. R.P. Chhabra and J.F. Richardson, Non-Newtonian Flow and Applied Rheology,
2nd ed., Elsevier, 2008.
18. Y. Bazilevs and T.J.R. Hughes, “Weak imposition of Dirichlet boundary conditions
in fluid mechanics”, Computers and Fluids, vol. 36, pp. 12–26, 2007.
• The Darcy’s Law Interface describes low-velocity flows of one or more fluids.
• The Richards’ Equation Interface governs the wetting and drying of rocks or
soils.
• The Two-Phase Darcy’s Law Interface describes two-phase fluid movement
through interstices in a porous medium. An extra equation is computed to
calculate the saturation transport.
• The Phase Transport in Porous Media Interface is used to simulate the transport
of multiple immiscible phases either in free flow or in flow through a porous
medium. The predefined multiphysics interface The Multiphase Flow in Porous
Media Interface which combines low velocity flow with phase transport of
multiple immiscible phases in a porous medium is described in Chapter
Multiphysics Interfaces and Couplings.
• The Fracture Flow Interface is a variant of Darcy’s law that defines the flow along
the interior boundaries representing fractures within a porous or solid medium.
• The Brinkman Equations Interface is for porous media high-velocity flows.
87
• The Free and Porous Media Flow Interface combines free flow adjacent to porous
domains.
• The Laminar Flow and Creeping Flow Interfaces use the Navier-Stokes equations
(in which the inertia term is neglected in case of Creeping Flow) to describe free
flows within a river or well, for example. The Laminar Flow Interface is available
with all COMSOL licenses.
With Darcy’s law and Richards’ equation, COMSOL Multiphysics solves for pressure
and has physics interfaces for pressure head and hydraulic head. Set up these equations
for single or multiple fluids. The physics interfaces can be coupled to other physics
interfaces to describe poroelasticity, convection of heat- and density-driven flows,
solute transfer, and electromagnetic forces, to name a few.
• Richards’ Equation:
- Theory for the Richards’ Equation Interface
- The Richards’ Equation Interface
• Phase Transport:
- Theory for the Phase Transport Interface
- The Phase Transport in Porous Media Interface
• Fracture Flow:
- Theory for the Fracture Flow Interface
- The Fracture Flow Interface
• Brinkman Equations:
- Theory for the Brinkman Equations Interface
- The Brinkman Equations Interface
| 89
Selecting the Right Fluid Flow
Interface for Porous Media
To model fluid flows in porous media, use either Darcy’s Law or the Brinkman
Equations interface. Darcy’s law is preferable when the major driving force for the flow
is the pressure gradient, and the momentum transfer by shear stresses within the fluid
is negligible. This is usually true in the case of low permeability in the porous medium.
The corresponding physics interfaces combine arbitrarily and link to other physics
including solute transport, heat transfer, electric potentials, magnetic potentials, and
structural deformation, to name a few. Because any expression can be entered for
coefficients like permeability or density, the equations set up in this module are
especially flexible.
Figure 4-1 illustrates typical settings where the various flow regimes apply.
unsaturated
saturated
free
transitional
Figure 4-1: Vertical cross section through ground near a river. Labels indicate flow
regimes. The triangle denotes the water table.
The Single-Phase Flow, Laminar Flow interface uses Navier-Stokes equations for flows
of liquids and gases moving freely in pipes, channels, caves, and rivers. These equations
detail fluid movements through the intricate networks of pores and cracks in porous
The Porous Media and Subsurface Flow interfaces — Darcy’s Law, Brinkman
Equation, and Richards’ Equation — circumvent detailing flow in each pore. Instead
these equations estimate flow rates by lumping the properties of the solid grains and
the spaces between them in representative volumes.
The Fluid Flow interfaces in this module can be grouped according to driving forces.
Consider Bernoulli’s equation for mechanical energy along a streamline in inviscid
fluids:
d- ------
1 2 -------
1 d d
----- u + - ------ p + ------ D = const.
ds 2g ρ f g ds ds
Here s represents a location on the streamline, u denotes the fluid velocity, ρf is the
fluid density, p refers to the fluid pressure, g represents gravity, and D is the elevation.
The Bernoulli equation states that the total mechanical energy is constant along the
fluid trajectory in a steady flow system. Moreover, the energy can shift between
velocity, pressure, and elevation along the streamline.
With the extended Laminar Flow interface and the Brinkman Equations, all the driving
forces are nonnegligible. When solved, the equations give the directional fluid
velocities and the pressure; elevation is a coordinate in the model. With Darcy’s Law
and Richards’ Equation, the momentum is so small it can be neglected. Pressure alone
drives the flow for these physics interfaces.
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
κ
u = – --- ∇p (4-1)
μ
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).
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. Visualize the hydraulic potential field by
considering the difference in both pressure and elevation potential from the start to
the end points of the flow line. According to Darcy’s law, the net flux across a face of
porous surface is
κ
u = – --- ( ∇p + ρg ) (4-2)
μ
• Note that gravity effects are only included in some modules. For a
detailed overview of the functionality available in each product visit
http://www.comsol.com/products/specifications/.
• 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.
The Darcy’s Law interface combines Darcy’s law with the continuity equation
∂ ρε
( p ) + ∇ ⋅ ( ρu ) = Q m (4-3)
∂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.
Storage Model
Inserting Darcy’s law (Equation 4-29) into the continuity equation produces the
generalized governing equation
∂ ρε κ
( p ) + ∇ ⋅ ρ – --- ( ∇p ) = Q m (4-4)
∂t μ
∂ ρε ∂ρ ∂ε p
( p ) = ε p ------ + ρ --------
∂t ∂t ∂t
Define the porosity and the density as functions of the pressure, and apply the chain
rule
Insert the definition of fluid compressibility χf = (1/ρ)(∂ρ/∂p) to the right-hand side and
rearrange to arrive at
∂( ρε p ) ∂ε p ∂p ∂p
---------------- = ρ ε p χ f + -------- ------ = ρS ------
∂t ∂p ∂t ∂t
Using this relation, the generalized governing equation (Equation 4-31) takes the
following form:
∂p κ
ρS ------ + ∇ ⋅ ρ – --- ( ∇p + ρg ∇D ) = Q m (4-5)
∂t μ
In this equation, S 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 S 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
interface implements Equation 4-5 using the Storage Model node, which explicitly
includes an option to define S as the linearized storage (SI unit: 1/Pa) using the
compressibility of fluids and porous matrix.
Note that the Storage Model node is 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
http://www.comsol.com/products/specifications/.
p
H p = ------ ; H = Hp + D (4-6)
ρg
where ρ is the fluid density, g denotes the acceleration of gravity, and D is the elevation.
When defined as vertical elevation, the horizontal gradients in D equal zero and
vertical gradients in D equal one. Choose to specify pressure, hydraulic head, or
pressure head on the boundaries of a model, either directly or as part of the pervious
• Turning off gravity effects sets the elevation D to zero, and the
hydraulic head equals the pressure head.
• This feature is only available with the Subsurface Flow Module
HYDRAULIC CONDUCTIVITY
The hydraulic conductivity represents both fluid and solid properties. If the model is
defined using the hydraulic conductivity as in:
--κ- = -------
K
μ ρg
K
u = – ------ ( ∇p + ρ g ∇D ) (4-7)
ρg
The hydraulic potential in the equation comes from the pore pressure, p, and gravity,
ρgD. COMSOL Multiphysics solves for the pressure, p. By default, g is the predefined
acceleration of gravity (a physical constant), and D is the vertical coordinate. The
choice of D has a significant impact on results and the physics involved. For example,
if D is the vertical coordinate z and if the flow is entirely horizontal within the xy-plane,
then the gradient in D vanishes and the driving force is caused by pressure gradients
alone.
d p2 ε p3
κ = ---------- ---------------------2-
180 ( 1 – ε p )
If the model is defined using the Kozeny-Carman equation, the expression for Darcy’s
velocity in Equation 4-29 changes to
d p2 ε p3
u = – ------------- ---------------------2- ( ∇p ) (4-8)
180μ ( 1 – ε p )
In case of relatively fast flow (Re > 10) or relatively high Knudsen numbers (Kn > 0.1)
Darcy’s linear relation between velocity and pressure drop is no longer valid.
Therefore, different permeability models have been introduced to capture these
effects.
The flow regime through a packed bed may be identified from the Reynolds number
of the bed. According to textbooks, for Reynolds numbers Re < 10 the flow can be
described by Kozeny-Carman equation (Darcian flow). For 10 < Re < 1000, which is
sometimes called the transitional regime, the flow is better described by the
non-Darcian Ergun equation, and for Re > 1000 Ergun’s equation can be
approximated by the Burke-Plummer equation for turbulent flows.
ERGUN
The Ergun equation is an extension of Kozeny-Carman equation to higher Reynolds
numbers (Re > 10), where Darcy’s linear relation between pressure drop and velocity
is no longer valid. In Ergun equation the linear relation between pressure drop and
velocity is augmented by a quadratic term. The pressure drop (Ref. 6) in Ergun’s
equation is given by:
Here, dp is the effective (average) particle diameter in the porous medium and εp is the
porosity. With definitions of permeability κ and parameter β (SI unit 1/m) as
d p2 ε p3
κ = ---------- ---------------------2- (4-10)
150 ( 1 – ε p )
and
1.75 ( 1 – ε p )
β = ----------- ------------------
- (4-11)
dp ε p3
we get
μ
∇p = – --- u – β ρ u u
κ
κ 2
u = – --- ---------------------------------------------------------- ∇p (4-12)
μ κ 2
1 + 1 + 4 --- βρ ∇p
μ
Using the Reynolds number Re and the friction factor fp for packed beds
dp ρ u
Re = -----------------------
( 1 – ε p )μ
dp ε p3 150
f p = ∇p ---------2- ------------------- = ---------- + 1.75 ,
ρu ( 1 – ε p ) Re
κ κ
u = – --- ----------------------------- ∇p = – --- 1 – ----------- ∇p
1 1.75
μ 1.75 μ fp
1 + ----------- Re
150
From this expression, we observe that for low Reynolds numbers Re < 1 (or
equivalently, high friction factors) the flow can be described by the linear Darcy’s Law.
μ cF
– ∇ p = --- u + ------- ρu u (4-13)
κ κ
cF
β = -------
κ
μ
– ∇ p = --- u + βρu u
κ
BURKE-PLUMMER
The Burke-Plummer equation is applicable in flow regimes with Reynolds number
Re > 1000. Here, the pressure drop is proportional to the square of the velocity:
Δp 1 – εp ) 2
1.75- (------------------
------- = ---------- - ρv (4-14)
L dp ε p3
here, L is the length of the packed bed, Δp is the pressure drop dp is the effective
(average) particle diameter in the porous medium, εp is the porosity, and v is the
velocity magnitude.
Using the same definition for the parameter β (SI unit 1/m) as in Ergun’s equation
1.75 ( 1 – ε p )
β = ----------- ------------------
-
dp ε p3
Δp- 2
------ = βρv (4-15)
L
which means that the velocity magnitude can be written in terms of the pressure
gradient as
As flow travels from areas of higher pressure to areas of lower pressure, Equation 4-9
can be more generally written as
– ∇p = βρ u u
replacing
u = v = ∇p ⁄ βρ
we get an expression for the velocity field in terms of the pressure gradient
1
u = – ---------------------- ∇p (4-16)
βρ ∇p
Note that the viscosity is not used to define the velocity as in Darcy’s law, but only the
fluid density, the porosity and particle diameter. Note also that the analytical friction
factor for Burke-Plummer equation is fp = 1.75. A small parameter is added inside the
square-root to avoid division by zero when the pressure gradient approaches zero.
KLINKENBERG
The Klinkenberg effect becomes important for gas flows in porous media where the
mean free path of the gas molecules is comparable to the pore dimensions. In this case,
molecular collisions with the pore walls occur more often than collisions between
molecules. To take this effect into account, Klinkenberg (Ref. 7) derived the following
expression for the permeability:
bK
κ = κ ∞ 1 + ------- (4-17)
p A
here, κ∞ is the permeability of the gas at high pressure and density (Knudsen number
0.001 < Kn < 0.1), bK is the Klinkenberg parameter (also called Klinkenberg slip
factor, or gas slippage factor), whose default value is set to 1 kPa according to Ref. 8,
and pA is the absolute pressure as defined in the Darcy’s Law interface (pA = p + pref).
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 et al., “Gas Flow in Porous Media with Klinkenberg Effects,” Transport
in Porous Media, vol. 32, pp. 117–137, 1998.
The main feature is the Fluid and Matrix Properties node, which provides an interface
for defining the fluid material along with the porous medium properties.
When this physics interface is added, the following default nodes are also added in the
Model Builder — Fluid and Matrix Properties, 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
This feature requires a specific license. For a detailed overview of the functionality
available in each product visit http://www.comsol.com/products/specifications/.
Enter a value for the acceleration of gravity. The default value g_const is the
predefined standard acceleration of gravity on Earth.
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 post processing 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).
Note that some features are only available with certain COMSOL products (see
http://www.comsol.com/products/specifications/).
• Atmosphere/Gauge
• Outlet
• Cross Section
• Pervious Layer
• Electrode Surface Coupling
• Point Mass Source
• Flux Discontinuity
• Precipitation
• Fracture Flow
• Pressure
• Hydraulic Head
• Pressure Head
• Inlet
• Reaction Coefficients1
• Interior Wall
• Symmetry
• Line Mass Source
• Thickness
• Mass Flux
• Thin Barrier
• No Flow
1
This node is described for the Transport of Diluted Species Interface
Note that some features are only available with certain COMSOL products (see
http://www.comsol.com/products/specifications/)!
n ⋅ ( ρ1 u1 –ρ2 u2 ) = 0
The continuity boundary condition provides continuity for the pressure and mass flux.
In addition, the following boundary conditions are 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.
∂ ( ρε ) + ∇ ⋅ ( ρu )
= Qm (4-18)
∂t
Note that D is the elevation which is only included in the Subsurface Flow Module.
Otherwise, D is zero and Equation 4-19 simplifies to:
κ
u = – --- ∇p (4-20)
μ
FLUID PROPERTIES
Select the Fluid material to use for the fluid properties. Select Domain material (the
default) to use the material defined for the domain. Select another material to use that
material’s properties for the fluid.
Density
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.
• 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.
Dynamic Viscosity
Select a Dynamic viscosity μ (SI unit: Pa·s). The default uses values From material as
defined by the Fluid material selected. For User defined the default is 0 Pa·s.
If the settings for the dynamic viscosity are unavailable, this is due to Hydraulic
conductivity being selected as the Permeability model under the Matrix Properties
section below. The hydraulic conductivity is defined using a combination of fluid and
matrix properties and replaces the need to define the dynamic viscosity. Note that this
option is only available with the Subsurface Flow Module.
MATRIX PROPERTIES
Select the material to use as porous matrix. Select Domain material from the Porous
material list (the default) to use the material defined for the porous domain. Select
another material to use that material’s properties.
Select a Permeability model to specify the capacity of the porous material to transmit
flow — Permeability to define the permeability of the porous matrix, Hydraulic
conductivity to define a combination of fluid permeability and dynamic viscosity,
Kozeny-Carman to define the permeability from the porosity and mean particle
diameter, or Non-Darcian in cases when Darcy’s linear relation between pressure drop
and velocity is no longer valid due to turbulence or inertial effects.
Note that the option to choose Hydraulic conductivity is only available for the
Subsurface Flow Module. The Non-Darcian Flow option is only available in some
modules. For a detailed overview of the functionality available in each product, visit
http://www.comsol.com/products/specifications/.
The default Permeability κ (SI unit: m2) uses the value From material, as defined by the
Porous material list. For User defined select Isotropic to define a scalar value or Diagonal,
Symmetric, or Full to define a tensor value and enter another value or expression in the
field or matrix.
For Hydraulic conductivity K (SI unit: m/s) select Isotropic to define a scalar value or
Diagonal, Symmetric, or Full to define a tensor value. The default is 2.94·10−4 m/s.
For Kozeny-Carman, enter the mean Particle diameter dp (SI unit: m), the default value
is 0.5 mm.
For Non-Darcian, choose a Non-Darcian flow model from the selection list. The available
options, depending on the modules licensed, are Forchheimer, Ergun, Burke-Plummer,
and Klinkenberg.
For Forchheimer, the default Permeability κ (SI unit: m2) uses the value From material,
as defined by the Porous material list. 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 4-10.
For Burke-Plummer, specify the mean Particle diameter dp (default value: 0.5 mm).
If Klinkenberg is selected from the list, the default Permeability κ∞ (SI unit: m2) uses
the value From material, as defined by the Porous material list. Enter the Klinkenberg
parameter bK. Its default value is 1e3 Pa. The corrected permeability κ is then
calculated using Equation 4-17.
∂ ( ρε ) + ∇ ⋅ ( ρu )
= Qm (4-21)
∂t
For The Fracture Flow Interface — which is available for the Subsurface Flow Module
and the Porous Media Flow Module — the mass source is applicable to the right-hand
side of Equation 4-24 (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).
Initial Values
The Initial Values node adds an initial value for the pressure that can serve as an initial
condition for a transient simulation or as an initial guess for a nonlinear solver.
If you have the Subsurface Flow Module licensed, you can specify the pressure either
directly or as an expression for the pressure head, Hp, or the hydraulic head, H; the
hydraulic head and the pressure head relate to the pressure p as
p
H p = ------ ; H = Hp + D
ρg
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.
This feature requires a specific license. For a detailed overview of the functionality
available in each product visit http://www.comsol.com/products/specifications/.
FLUID PROPERTIES
The settings are the same as for the Fluid and Matrix Properties node except a gas
constant type is not required.
MATRIX PROPERTIES
The settings are the same as in the Matrix Properties section under Fluid and Matrix
Properties.
STORAGE MODEL
Select a Storage S (SI unit: 1/Pa) — Linearized storage (the default) or User defined.
• For User defined, and for The Fracture Flow Interface, enter a value or expression
for Storage S (SI unit: 1/Pa) (Sf in Equation 4-24).
• For Linearized storage it uses the following linear equation to define the storage:
S = εχ f + ( 1 – ε p )χ p
This is equivalent to the Reuss average of the fluid and solid compressibilities. Enter
the value or expression for each of the following:
- Compressibility of fluid χf (SI unit: 1/Pa). The default uses values From material.
For User defined, the default is 4·10−10 1/Pa.
- Effective compressibility of matrix χp (SI unit: 1/Pa). The default is 1·10−4 1/Pa).
FRACTURE FLOW
For The Fracture Flow Interface, enter a value or expression for the Fracture thickness
df (SI unit: m). The default is 0.1 m.
This feature requires a specific license. For a detailed overview of the functionality
available in each product visit http://www.comsol.com/products/specifications/.
Poroelastic Storage
The Poroelastic Storage node adds Equation 4-19 and Equation 4-5 (excluding any
mass sources). Use it to define the fluid and porous media properties, including a
storage term to account for the Poroelasticity multiphysics coupling.
This feature requires a specific license. For a detailed overview of the functionality
available in each product visit http://www.comsol.com/products/specifications/.
FLUID PROPERTIES
The settings are the same as for the Storage Model node except a gas constant type is
not required. There is also an option to define the fluid compressibility.
Compressibility
Select the Compressibility of fluid χf (SI unit: 1/Pa). The default uses values From
material as defined by the Fluid material selected. For User defined the default is
4·10−10 1/Pa.
MATRIX PROPERTIES
The settings are the same as in the Matrix Properties section under Fluid and Matrix
Properties.
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.
This feature requires a specific license. For a detailed overview of the functionality
available in each product visit http://www.comsol.com/products/specifications/.
GRAVITY
Specify either the acceleration vector or — in case you have a Subsurface Flow Module
license — the elevation.
When Acceleration is selected from the list, enter the components of the Gravity vector
g. The default value is g_const which is the physical constant having the value
9.8066 m/s2.
When Elevation is selected from the list, specify the Elevation D (SI unit: m). Select the
check box Specify reference position to define a reference elevation.
Select the acceleration of gravity from either the Darcy’s Law interface Settings
(default), or specify a user defined value. When the check box Include gravity is not
selected in the Darcy’s Law interface Settings, the elevation D is set equal to zero.
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.
This feature requires a specific license. For a detailed overview of the functionality
available in each product visit http://www.comsol.com/products/specifications/.
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 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.
This feature requires a specific license. For a detailed overview of the functionality
available in each product visit http://www.comsol.com/products/specifications/.
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
known pressure given as a number, a distribution, or an expression involving time, t,
for example.
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.
MASS FLUX
Enter a value or expression for the Inward mass flux N0. A positive value of N0
represents an inward mass flux whereas a negative value represents an outward mass
flux. The units are based on the geometric entity: Boundaries: (SI unit: kg/(m2·s)).
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.
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.
MASS FLOW
If you select Mass flow as the inlet condition, specify the total Mass flow rate M0(SI unit:
kg/s), or the Pointwise mass flux N0(SI unit: kg/(m2·s)).
With Mass flow rate boundary condition, positive values correspond to flow into the
model domain:
– ρ ( u ⋅ n ) dS = M0
∂Ω
where M0 is a value or expression for the specified inward (or outward) Darcy flux.
Pointwise mass flux boundary condition, positive values correspond to flow into the
model domain:
κ
n ⋅ ρ --- ( ∇p + ρ g ∇D ) = N 0
μ
where N0 is a value or expression for the specified inward (or outward) Darcy flux.
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog 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.
Flux Discontinuity
Use the Flux Discontinuity node to specify a mass flux discontinuity through an interior
boundary. The condition is represented by the following equation:
– n ⋅ ( ρu 1 – ρ u 2 ) = N 0
κ
u = – --- ∇p (4-22)
μ
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.
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).
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.
This feature requires a specific license. For a detailed overview of the functionality
available in each product visit http://www.comsol.com/products/specifications/.
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
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.
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.
This feature requires a specific license. For a detailed overview of the functionality
available in each product visit http://www.comsol.com/products/specifications/.
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.
This feature requires a specific license. For a detailed overview of the functionality
available in each product visit http://www.comsol.com/products/specifications/.
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.
The Subsurface Flow Module license is required to use this boundary condition (see
http://www.comsol.com/products/specifications/).
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.
The Subsurface Flow Module license is required to use this boundary condition (see
http://www.comsol.com/products/specifications/).
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
The Subsurface Flow Module license is required to use this boundary condition (see
http://www.comsol.com/products/specifications/).
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog box.
Pervious Layer
The Subsurface Flow Module license is required to use this boundary condition (see
http://www.comsol.com/products/specifications/).
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 -------------------- + ( D b – D ) (4-23)
μ ρ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 ) ] (4-24)
Hpb is the pressure head (SI unit: m) at the edge of the layer.
n ⋅ ρK∇H = ρR b [ H b – H ] (4-25)
At a free surface, such as a water table or seepage face, the pressure is atmospheric (here
taken to be zero), so the total hydraulic potential equals gravitational potential, which
is defined on D.
Gravity effects are not active by default. Select the 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 well.
Fracture Flow
The Fracture Flow node adds fracture flow on boundaries using tangential derivatives
to define the flow along interior boundaries representing fractures within a porous
medium. It is implemented through The Fracture Flow Interface. Additional subnodes
are available from the context menu (right-click the parent node) or from the Physics
toolbar, Attributes menu.
This feature requires a specific license. For a detailed overview of the functionality
available in each product visit http://www.comsol.com/products/specifications/.
This discussion of the Richards’ Equation interface begins with the propagation of a
single liquid (oil or water). The pore space not filled with liquid contains an immobile
fluid (air) at atmospheric pressure.
unsaturated saturated
Hp 0
Figure 4-2: Fluid retention and permeability functions that vary with pressure head, as
given by Van Genuchten formulas available in the Richards’ Equation interface.
Cm ∂p κs
ρ -------- + SeS ------ + ∇ ⋅ ρ – ----- k r ( ∇p + ρ g ∇D ) = Q m (4-26)
ρg ∂t μ
where the pressure, p, is the dependent variable. In this equation, Cm represents the
specific moisture capacity, Se denotes the effective saturation, S is the storage
coefficient, κs gives the hydraulic permeability, μ is the fluid dynamic viscosity, kr
denotes the relative permeability, ρ is the fluid density, g is acceleration of gravity, D
represents the elevation, and Qm is the fluid source (positive) or sink (negative). Like
Darcy’s law, COMSOL Multiphysics solves Richards’ equation for a dependent
variable of pressure but provides features for specifying the values of the hydraulic head
or pressure head on the boundaries of a model, either directly or as part of the Pervious
Layer boundary condition. Also use the hydraulic head and the pressure head during
results evaluation.
κs
u = – ----- k r ( ∇p + ρ g ∇D )
μ
where u is the flux vector. The porous medium consists of pore space, fluids, and
solids, but only the liquids move. The equation above describes the flux as distributed
across a representative surface. To characterize the fluid velocity in the pores,
COMSOL Multiphysics also divides u by the volume liquid fraction, θs. This
interstitial, pore or average linear velocity is ua = u/θs.
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.
The analytic formulas of van Genuchten (Ref. 4) and Brooks and Corey (Ref. 5) are so
frequently used that they are synonymous with this variably saturated flow modeling.
Posed in terms of pressure head Hp = p/(ρg), the analytic expressions require data for
the saturated θs and residual θr liquid volume fractions as well as constants α, n, m,
and l, which specify a particular medium type.
The van Genuchten equations define saturation when the fluid pressure is atmospheric
(that is, Hp = 0). These equations are
1
------------------------------------
- Hp < 0
Se = [ 1 + αH n ] m
p
Hp ≥ 0
1
(4-27)
1-
----
1- m
----
αm -
------------- m m Hp < 0
Cm = 1 – m ( θ s – θ r )Se 1 – Se
Hp ≥ 0
0
1 m
-----
2
Se l 1 – 1 – Se m Hp < 0
kr =
Hp ≥ 0
1
here, the constitutive parameter m is equal to 1 − 1/n. With the Brooks and Corey
approach, an air-entry pressure distinguishes saturated (Hp > −1/α) and unsaturated
(Hp < −1/α) flow so that
1 1
H p < – ---
------------------ α
Se = αH n
p
1
– --- ≤ H p
1 α
(4-28)
–n 1 1
H p < – ---
------- ( θ – θ r ) -----------------n- α
Cm = Hp s αH p
1
– --- ≤ H p
0 α
2
--- + l + 2
1
H p < – ---
n α
k r = Se
1
– --- ≤ H p
1 α
5. R.H. Brooks and A.T. Corey, “Properties of Porous Media Affecting Fluid Flow,”
J. Irrig. Drainage Div., ASCE Proc., vol. 72 (IR2), 1966.
When this physics interface is added, these default nodes are also added to the Model
Builder — Richards’ Equation. Richards’ Equation Model (which adds the equation for the
pressure and provides an interface for defining the fluid material and its properties,
including the retention model), 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 Richards’ Equation 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
Gravity effects are active by default. Deselect the check box Include gravity to deactivate
the acceleration of gravity.
Under Acceleration of gravity, enter the value for the acceleration of gravity
(SI unit m/s2). The default value is taken from the predefined physical constant
g_const, which is the standard acceleration of gravity on earth.
DISCRETIZATION
You can choose the order of the shape functions used for the pressure variable solved
by the Richards’ Equation interface. The default shape functions are Quadratic
Lagrange.
To display all settings available in this section, click the Show button ( ) and select
Advanced Physics Options..
Domain, Boundary, Edge, Point, and Pair Nodes for the Darcy’s Law
Interface
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 Fluid
material selected. For User defined enter another value or expression. The default is
0 kg/m3.
The default Dynamic viscosity μ (SI unit: Pa·s) uses values From material based on the
Fluid material selected. For User defined enter another value or expression. The default
is 0 Pa·s.
MATRIX PROPERTIES
The default Porous material uses the Domain material (the material defined for the
domain) for the porous matrix. Select another material as needed.
Permeability Model
Select a Permeability model to specify the capacity of the porous material to transmit
flow. Select Permeability to define the permeability of the porous matrix, Hydraulic
conductivity to define a combination of fluid permeability and dynamic viscosity, or
Kozeny-Carman to define the permeability from the porosity and mean particle
diameter.
• For Permeability κs (SI unit: m2) the default uses values From material as defined by
the Porous material selected. For User defined select Isotropic to define a scalar value
or Diagonal, Symmetric, or Full to enter a tensor value.
• For Hydraulic conductivity Ks (SI unit: m/s) enter a value or expression. Select
Isotropic to define a scalar value or Diagonal, Symmetric, or Full to enter a tensor
value.
• For Kozeny-Carman, enter a value or expression for the mean particle diameter dp (SI
unit: m), the default value is 0.5 mm.
STORAGE MODEL
Select a Storage model S (SI unit: 1/Pa) — Linearized storage or User defined. For User
defined enter a Storage S (SI unit: 1/Pa) value or expression. Select Linearized storage
to use the following linear equation to define the storage:
S = θ s χ f + ( 1 – θ s )χ p
This expression is equivalent to the Reuss average of the fluid and solid
compressibilities. Enter the value or expression for these properties to define the linear
storage — Compressibility of fluid χf (SI unit: 1/Pa) and Effective compressibility of
matrix χp (SI unit: 1/Pa).
RETENTION MODEL
Select a Retention model — van Genuchten, Brooks and Corey, or User defined.
Select van Genuchten to use the retention model according to van Genuchten (see
Equation 4-27). Then enter the values for these Constitutive relation constants. The
constitutive parameter m is equal to 1 − 1/n.
Select Brooks and Corey to use the retention model according to Brooks and Corey (see
Equation 4-28). The same parameters as for the van Genuchten model also define the
Brook and Corey model: α, n, and l.
Select User defined to specify a retention model in Equation 4-26, instead of van
Genuchten (Equation 4-27) or Brooks and Corey (Equation 4-28) models:
Flownet Plot
The Flownet plot is available for 2D and 2D axisymmetric models. This plot is created
automatically when solving a model that includes a Richards’ equation interface, and
it is created by adding a Streamline plot for the velocity field and a contour plot for the
pressure.
κ
u = – --- ∇p (4-29)
μ
In this equation:
The Two-Phase Darcy’s Law interface combines Darcy’s law (Equation 4-29) with the
continuity equation for the average density ρ
∂ ρε
( p ) + ∇ ⋅ ( ρu ) = 0 (4-30)
∂t
here, εp is the porosity, defined as the fraction of the control volume that is occupied
by pores. Inserting Darcy’s law (Equation 4-29) into the continuity equation
(Equation 4-30) produces the governing equation
∂ ( ρε ) + ∇ ⋅ ρ – --κ- ∇p = 0 (4-31)
∂t p μ
In the presence of two miscible fluid phases, the average density ρ and average viscosity
μ depend on the composition of the mixture (Ref. 6). In the Two-Phase Darcy’s Law
interface these dependencies are given by
1 = s1 + s2 (4-32)
κ r1 κ r2
--1- = s 1 -------
- + s 2 -------
- (4-34)
μ μ1 μ2
here, s1 and s2 represent the saturation of each phase, ρ1 and ρ2 the densities, and κr1
and κr2 the relative permeabilities. When either of the fluids is compressible, its density
can be related to the pressure (for instance using the ideal gas law).
Capillary Pressure
Beside the continuity equation for the mixture (Equation 4-31), the Two-Phase
Darcy’s Law interface also solves the transport equation for the fluid content of one of
the phases, c1 = s1ρ1
∂ ε
( c ) + ∇ ⋅ ( c 1 u ) = ∇ ⋅ D c ∇c 1 (4-35)
∂t p 1
here, Dc (SI unit: m2/s) is the capillary diffusion coefficient, which can be directly
specified, or it can be derived from a capillary pressure expression. Normally, the fluid
content c1 will be the concentration of the wetting phase.
κ r1 ∂p c
D c = -------- κ ( s 1 – 1 ) (4-36)
μ1 ∂ s1
The capillary pressure is defined as the pressure difference between the phases, and it
can be defined as a function of saturation, pc(s1). The capillary pressure can be a user
defined expression, or it can be derived from van Genuchten (Ref. 7) or Brooks and
Corey (Ref. 8) models.
For van Genuchten model, the expression for the capillary pressure as a function of
saturation follows the curve
1 1 – m
p c = p ec -----------
- – 1 (4-37)
s 11 ⁄ m
1-
p c = p ec ----------
1⁄λ
(4-38)
s1
When capillary pressure is selected as capillary model, the relative permeabilities and
are also determined by the van Genuchten or Brooks and Corey models. For the van
Genuchten model, the relative permeabilities are given by
l vG 1 ⁄ m vG m vG 2
κ r1 = s 1 ( 1 – ( 1 – s 1 ) )
l 1 ⁄ m vG 2m vG
κ r2 = ( 1 – s 1 ) vG ( 1 – s 1 )
For the Brooks and Corey model, the relative permeabilities are given by
(3 + 2 ⁄ λ)
κ r1 = s 1
2 (1 + 2 ⁄ λ)
κ r2 = ( 1 – s 1 ) ( 1 – s 1 )
8. R.H. Brooks and A.T. Corey, “Properties of Porous Media Affecting Fluid Flow,”
J. Irrig. Drainage Div., ASCE Proc., vol. 72 (IR2), 1966.
The main feature is the Fluids and Matrix Properties node, which provides an interface
for defining the two immiscible fluids properties along with the porous medium
properties. The physics interface is available in 2D, 2D axisymmetric, and 3D.
When this physics interface is added, the following default nodes are also added in the
Model Builder — Fluids and Matrix Properties, 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 Two-Phase
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 tpdl.
PHYSICAL MODEL
Enter a Reference pressure level pref (SI unit: Pa). The default value is 1[atm].
DEPENDENT VARIABLES
The dependent variables (field variables) are the Pressure and Fluid content 1. The name
can be changed but the names of fields and dependent variables must be unique within
a component.
There are two consistent stabilization methods available — Streamline diffusion and
Crosswind diffusion. Streamline diffusion is active by default. The Residual setting applies
to both the consistent stabilization methods. Approximate residual is the default setting
and it means that derivatives of the capillary diffusion tensor components are
neglected. This setting is usually accurate enough and computationally faster. If
required, select Full residual instead.
DISCRETIZATION
You can choose the order of the shape functions used for the pressure and fluid content
variables solved by the Two-Phase Darcy’s Law interface. The default shape functions
are P2+P1 Lagrange.
To display all settings available in this section, click the Show More Options button ( )
and select Advanced Physics Options from the Show More Options dialog box.
• Domain, Boundary, and Pair Nodes for the Two-Phase Darcy’s Law
Interface
• Theory for the Two-Phase Darcy’s Law Interface
Domain, Boundary, and Pair Nodes for the Two-Phase Darcy’s Law
Interface
The Two-Phase Darcy’s Law Interface has these 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).
∂ ρε
( p ) + ∇ ⋅ ( ρu ) = 0 (4-39)
∂t
∂ c
( ε ) + ∇ ⋅ ( c 1 u ) = ∇ ⋅ D c ∇c 1 (4-40)
∂t 1 p
CAPILLARY MODEL
The list defaults to Capillary diffusion or choose Capillary pressure.
For Capillary diffusion, choose Isotropic to define a scalar or Diagonal, Symmetric, or Full
to enter a tensor, and then enter values or expressions in the Dc (SI unit: m2/s) field
or fields.
For Capillary pressure, select a Pressure model — van Genuchten (the default), Brooks
and Corey, or User defined.
• For van Genuchten, enter an Entry capillary pressure pec (SI unit: Pa), the Constitutive
relations constant mvG (dimensionless), and Constitutive relations constant IvG
(dimensionless).
• For Brooks and Corey, enter an Entry capillary pressure pec (SI unit: Pa) and the Pore
size distribution index λp (dimensionless).
• For User defined, enter a Capillary pressure pc (SI unit: Pa).
The default Density ρ1 (SI unit: kg/m3) uses values From material based on the Fluid 1
selection. For User defined enter another value or expression. The default is 0 kg/m3.
Select a Dynamic viscosity μ1 (SI unit: Pa·s). The default uses values From material as
defined by the Fluid 1 selection. For User defined enter another value or expression. The
default is 0 Pa·s.
Select the Relative permeability κr1 (a dimensionless number between 0 and 1) for
fluid 1. The default is 1.
FLUID 2 PROPERTIES
The settings to define the properties for Fluid 2 are similar as for Fluid 1.
MATRIX PROPERTIES
Select the material to use as porous matrix. Select Domain material (the default) from
the Porous material list to use the material defined for the porous domain. Select
another material to use that material’s properties.
The default Porosity εp (a dimensionless number between 0 and 1) uses the value From
material, defined by the Porous material selection. For User defined enter another value
or expression The default is 0.
The default Permeability κ (SI unit: m2) uses the value From material, as defined by the
Porous material selection. For User defined select Isotropic to define a scalar or Diagonal,
Symmetric or Full to enter a tensor and enter other values or expressions in the field or
matrix.
Initial Values
The Initial Values node adds initial values for the pressure and the saturation of fluid 1
(that is, the fraction of that fluid inside the pore space) that can serve as initial
conditions for a transient simulation or as an initial guess for a nonlinear solver.
No Flux
The No Flux node is the default boundary condition stating that there is no flow across
impervious boundaries. The mathematical formulation is:
n ⋅ ρu = 0
Also, the No Flux boundary enforces a zero gradient condition for the fluid content
across the selected boundary
n ⋅ ∇c 1 = 0
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 ⋅ ρu = N 0
Inlet
The Inlet node adds a boundary condition for the inflow (or outflow) perpendicular
(normal) to the boundary:
– n ⋅ ρu = ( s 1 ρ 1 + s 2 ρ 1 )U 0
where U0 is a specified value or expression for the inward (or outward) Darcy’s velocity.
A positive value of the velocity U0 corresponds to flow into the model domain whereas
a negative value represents an outflow.
INLET
Enter a value or expression for the Normal inflow velocity U0 (SI unit: m/s). A positive
value of U0 represents an inflow velocity, whereas a negative value represents an
outward velocity.
Outlet
The Outlet node adds a boundary condition for the outflow perpendicular (normal) to
the boundary:
– n ⋅ D c ∇c 1 = 0
where Dc is the capillary diffusion (SI unit: m2/s) and c1 = s1ρ1 is the fluid 1 content
(SI unit: kg/m3). This means that the normal gradient of fluid saturation does not
change through this boundary.
Symmetry
The Symmetry node describes a symmetry boundary where there is no tangential flow.
The following condition implements the symmetry condition on an axis or a flow
divide:
– n ⋅ ρu = 0
– n ⋅ D c ∇c 1 = 0
Interior Wall
The Interior Wall boundary condition can only be applied on interior boundaries.
Thin Barrier
The Thin Barrier boundary condition can only be applied on interior boundaries.
It is similar to the Interior Wall boundary available on interior boundaries except that
it allows pressure and concentration gradients across the boundary. The Thin Barrier
boundary condition can be used to avoid meshing thin permeable structures by
applying flux condition on interior curves and surfaces instead.
∂
( ρ s ) + ∇ ⋅ ( ρi si ui ) = Qi (4-41)
∂t i i
where ρi denotes the density (SI unit: kg/m3), si denotes the volume fraction
(dimensionless), and ui denotes the velocity vector (SI unit: m/s) of phase i. In
addition, the term Qi denotes a mass source for phase i (SI unit: kg/(m3·s)). It is
assumed that the sum of the volume fractions of the phases equals 1:
si = 1 (4-42)
i=1
This means that N − 1 phase volume fractions are independent and are possible to solve
for using Equation 4-41. The volume constraint Equation 4-42 is used to reduce the
number of dependent variables: one volume fraction, let us say of phase ic (to be
specified in the main node of the Phase Transport interface), is expressed using the
other volume fractions:
N
s i
sic = 1–
(4-43)
i = 1, i ≠ i c
The Phase Transport interface supports the inclusion of turbulent mixing via the
gradient-diffusion hypothesis. In this case it adds a diffusion term proportional to the
turbulent kinematic viscosity to the phase transport Equation 4-41, which then
becomes
∂ νT
( ρ s ) + ∇ ⋅ ( ρ i s i u i ) – ∇ ⋅ ρ i --------- ∇s i = Q i for i ≠ i c (4-44)
∂t i i Sc T
∂
( ε ρ s ) + ∇ ⋅ ( ρi ui ) = Qi (4-45)
∂t p i i
Here εp (dimensionless) is the porosity, and the vector ui should now be interpreted
as the volumetric flux of phase i (SI unit m3/(m2·s) or m/s). The volumetric fluxes
are determined using the extended Darcy’s law (Ref. 8)
κ ri
u i = – ------- κ ( ∇p i – ρ i g ) (4-46)
μi
where κ denotes the permeability (SI unit: m2) of the porous medium, g the
gravitational acceleration vector (SI unit m/s2), and μi the dynamic viscosity (SI unit:
kg/(m·s)), pi the pressure field (SI unit: Pa), and κri the relative permeability
(dimensionless) of phase i, respectively.
One phase pressure can be chosen independently, which in the Phase Transport in
Porous Media interface is chosen to be the phase pressure, p i c , of the phase computed
from the volume constraint, and the other phase pressures are defined by the following
N − 1 capillary pressure relations:
p i = p ic + p c ( s 1, …, s N ) for i ≠ i c (4-47)
i
∂ κ
( ε ρ s ) – ∇ ⋅ ρ i κ ri ----- ( ∇ ( p i c + p ci ) – ρ i g ) = Q i for i ≠ i c (4-48)
∂t p i i μi
N
s i
sic = 1–
(4-49)
i = 1, i ≠ i c
otherwise
pi = p ic – pc for i ≠ i c (4-51)
For the van Genuchten model, the expression for the capillary pressure as a function
of saturation follows the curve
1 1 – m vG
p c = p ec ------------------------
1 ⁄ m vG
– 1 (4-52)
(s )
w
where pec is the entry capillary pressure and mvG is a constitutive constant, and where
s w denotes the effective saturation of the wetting phase. The effective saturation of
each phase is defined as
N
s rj
s i = ( s i – s ri ) ⁄ 1 – (4-53)
j=1
1 -
p c = p ec --------------------
1 ⁄ λp
(4-54)
( sw )
When the van Genuchten or Brooks and Corey capillary pressure model is selected, the
relative permeabilities are also determined by these predefined models. For the van
Genuchten model, the relative permeabilities are given by
1 ⁄ m vG m vG 2
κ rsw = ( s w ) 1 – ( 1 – ( s w )
l vG
) (4-55)
l vG 1 ⁄ m vG 2m vG
κ rsn = ( s n ) ( 1 – ( 1 – s n ) ) (4-56)
where mvG and lvG are constitutive constants, and where sn denotes the volume
fraction of the nonwetting phase. For the Brooks and Corey model, the relative
permeabilities are given by
( 3 + 2 ⁄ λp )
κ rsw = ( s w ) (4-57)
2 ( 1 + 2 ⁄ λp )
κ rsn = s n ( 1 – ( 1 – s n ) ) (4-58)
l h h l
l l p ec, i if p ci ( s i ) ≤ p ec, i
pci ( si ) = for i ≠ i c (4-59)
p hc ( s hi ) if
h h
p ci ( s i ) > p ec, i
l
i
where the superscript l is used to indicate the saturation and capillary pressure on the
low permeable side of the boundary and the superscript h indicates the high permeable
The additional conditions are continuity of the fluxes for all phases and continuity of
the pressure of the phase ic computed from the volume constraint. Note that this last
condition assumes that this phase is present on both sides of the porous medium
discontinuity boundary condition. In addition this boundary condition assumes that
the phase ic computed from the volume constraint is the wetting phase and it is
necessary that the settings for the van Genuchten or Brooks and Corey capillary
pressure model match this assumption.
When the automatic settings are used for the Porous Medium Discontinuity boundary
condition and if in one or both of the adjacent domains none of the predefined
capillary pressure models is selected (van Genuchten or Brooks and Corey), the entry
capillary pressure in that domain is determined by substituting 0 for saturation of the
phase which is not computed from the volume constraint into the user defined
expression for the capillary pressure.
References
1. M.Th. van Genuchten, “A Closed-form Equation for Predicting the Hydraulic
Conductivity of Unsaturated Soils,” Soil Sci. Soc. Am. J., vol. 44, 1980.
2. R.H. Brooks and A.T. Corey, “Properties of Porous Media Affecting Fluid Flow,”
J. Irrig. Drainage Div., ASCE Proc., vol. 72 (IR2), 1966.
The main feature is the Phase and Porous Media Transport Properties node, which
provides an interface for defining the phase materials along with the transporting
porous medium flow properties.
When this physics interface is added, the following default nodes are also added in the
Model Builder — Phase and Porous Media Transport Properties, No Flux (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 the Phase Transport in Porous Media node 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 phtr.
PHASES
Select the volume fraction of the phase that this physics interface solves for using the
volume constraint in equation Equation 4-60 (that is, its value comes from the fact
s1 = 1 – si (4-60)
i=2
There are two consistent stabilization methods: Streamline diffusion and Crosswind
diffusion. 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.
GRAVITY EFFECTS
When the Include gravity check box is selected, a global Gravity feature is shown in the
interface model tree, and the gravitational force is added to the phase transport
equations in porous domains. For more information, see Gravity.
QUADRATURE SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog box.
These settings affect the numerical integration, and you do not normally need to
change them. The Use automatic quadrature settings check box is selected by default,
meaning that the settings are taken from the main equation in the interface.
The settings in this section currently only affect the integration order in the Phase and
Transport Properties and Phase and Porous Media Transport Properties domain features.
DISCRETIZATION
You can choose the order of the shape functions used for the volume fraction variables.
The default shape functions are Linear Lagrange.
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.
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.
DEPENDENT VARIABLES
Add or remove volume fractions of different phases in the model and also change the
names of the dependent variables that represent the volume fractions.
Specify the Number of phases. There must be at least two phases. To add a single phase,
click the Add volume fraction button ( ) under the table. To remove a volume
fraction, select it in the list and click the Remove volume fraction button ( ) under
the table. Edit the names of the phases directly in the table.
The main feature is the Phase and Transport Properties node, which provides an
interface for defining the phase materials along with the transporting properties.
When this physics interface is added, the following default nodes are also added in the
Model Builder — Phase and Transport Properties, No Flux (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 the Phase Transport node to select physics features from the context menu.
SETTINGS
The rest of the settings are the same as for the Phase Transport in Porous Media interface.
Domain, Boundary, Edge, and Point Nodes for the Phase Transport
and Phase Transport in Porous Media Interfaces
The Phase Transport and Phase Transport in Porous Media interfaces have the following
domain, boundary, edge, and point nodes (listed in alphabetic 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).
• Gravity • Outflow
• Initial Values • Phase and Porous Media Transport
• Interior Wall Properties
VELOCITY FIELD
Specify the velocity field for each phase that is not computed from the volume
constraint. Select the source of the Velocity field. For User defined, enter values or
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.
DENSITY
Enter the Density ρ (SI unit: kg/m3) of each phase. The default value is 1000 kg/m3.
Turbulent Mixing
This subnode is available from the context menu (right-click the Phase and Transport
Properties parent node) as well as from the Physics toolbar, Attributes menu. Use this
node to account for the turbulent mixing caused by the eddy diffusivity. An example
is when the specified velocity field corresponds to a RANS solution.
FURTHER READING
See the section About Turbulent Mixing in the CFD Module User’s Guide (this link
is available online or if you have the CFD Module documentation installed).
MODEL INPUT
Enter the absolute pressure field (SI unit: Pa) for the phase that is computed from the
volume constraint. The volumetric flux of this phase is computed using Darcy’s law,
and in many cases that pressure field will be computed for in a Darcy’s Law interface,
coupled to the Phase Transport interface using a Multiphase Flow in Porous Media
multiphysics coupling node.
CAPILLARY PRESSURE
Select a Capillary pressure model — User defined (the default), van Genuchten, or Brooks
and Corey. The latter two options are only available when there are not more than two
phases present in the model.
• For User defined, enter an expression for the Capillary pressure pc (SI unit: Pa) for
the phases that are not computed from the volume constraint. The pressure of the
corresponding phase is equal to the pressure of the phase computed from the
volume constraint (supplied in the Pressure input field) plus the capillary pressure
supplied for this phase.
• For van Genuchten, select the Wetting phase and enter an Entry capillary pressure pec
(SI unit: Pa), the Constitutive relations constant mvG (dimensionless), and
Constitutive relations constant lvG (dimensionless).
• For Brooks and Corey, select the Wetting phase and enter an Entry capillary pressure
pec (SI unit: Pa) and the Pore size distribution index λp (dimensionless).
PHASE PROPERTIES
Select the material to use for each phase. Select Domain material (the default) from the
Fluid list to use the material defined for the domain. Select another material to use that
material’s properties.
Enter the Density ρ (SI unit: kg/m3), Dynamic viscosity μ (SI unit: Pa·s) and Relative
permeability κr (a dimensionless number between 0 and 1) for each phase. The defaults
for the Density and Dynamic viscosity are From material, and User defined for the Relative
permeability. For User defined, the default values are 1000 kg/m3, 0.001 Pa·s. and s i2 ,
respectively.
The Relative permeability input fields are only available when the Capillary pressure
model is set to User defined. In the other cases (van Genuchten or Brooks and Corey) the
relative permeabilities are defined by the van Genuchten or Brooks and Corey model. For
the van Genuchten and Brooks and Corey model, specify the Residual saturation sri
(dimensionless, default value 0) for each phase.
MATRIX PROPERTIES
Select the material to use as porous matrix. Select Domain material (the default) from
the Porous material list to use the material defined for the porous domain. Select
another material to use that material’s properties.
The default Permeability κ (SI unit: m2) uses the value From material, as defined by the
Porous material selected. For User defined the default is the Isotropic scalar value of
1e-9 m2. To define a tensor value, select Diagonal, Symmetric, or Full, and enter values
or expressions in the matrix.
Gravity
The Gravity global feature is automatically added when Include gravity is selected at the
interface level in the Gravity Effects settings. It defines the gravity forces from the
Gravity vector value. Note that this feature only has an effect in porous domains.
GRAVITY
Enter the components of the Gravity vector g . The default value is g_const which is
the physical constant having the value 9.8066 m/s2.
Initial Values
The Initial Values node specifies the initial values for the volume fraction of each phase.
These serve as an initial guess for a stationary solver or as initial condition 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 in the field for the volume fraction of each phase except for
the one computed from the volume constraint.
MASS SOURCE
Add an expression for the mass source for each individual phase present, except for the
one computed from the volume constraint. The net mass source of all phases together
is assumed to be zero, which means that the mass is transferred to or from the phase
that is computed from the volume constraint.
Select the Mass transfer to other phases check box if mass is transferred from or to
phases not accounted for in the phase transport interface, for instance when mass is
released or absorbed by the solid part of the porous matrix. In this case the mass source
for the phase calculated from the volume constraint should also be specified. The net
mass transfer corresponds to the sum of the mass sources for all phases and should be
accounted for in the computation of the flow field.
No Flux
This node is the default boundary condition on exterior boundaries. It represents
boundaries where no mass flows in or out of the boundaries. Hence, the total flux is
zero.
Volume Fraction
This node adds a boundary condition for the volume fractions of the different phases.
Set the volume fractions of all phases except the one computed from the volume
constraint. This ensures that the sum of the volume fractions is equal to one.
VOLUME FRACTION
Specify the volume fraction for each phase individually. Select the check box for the
phases to specify the volume fraction, and enter a value or expression in the
corresponding field. To use another boundary condition for a specific phase, click to
clear the check box for the volume fraction of that phase.
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog box. You can find details about the
Mass Flux
The Mass Flux node can be used to specify the total mass flux of a phase across a
boundary. Set the mass flux for all phases except the one computed from the volume
constraint. This ensures that the sum of the volume fractions is equal to one.
For modeling mass flux from very thin objects add a Line Mass Source or a Point Mass
Source node.
The Line Mass Source node adds mass flow originating from a tube of infinitely small
radius. It is available for edges in 3D geometries or points in 2D and 2D axisymmetric
geometries.
The Point Mass Source node models mass flow originating from an infinitely small
sphere centered around a point. It is available for points in 3D geometries.
MASS FLUX
Specify the inward mass flux for each phase individually. Select the check box for the
phase to prescribe a mass flux and enter a value or expression for the flux in the
corresponding field. To use another boundary condition for a specific phase, click to
clear the check box for the flux of that phase. Use a positive value for an inward flux.
The units are based on the geometric entity: Boundaries: (SI unit: kg/(m2·s)), Lines (SI
unit: kg/(m·s), and Points (SI unit: kg/s)).
Outflow
Set this condition at exterior boundaries where the phases are transported out of the
model domain by fluid motion. The outward mass flux for each phase is in this case set
to the normal outward phase velocity times the phase density.
Interior Wall
The Interior Wall boundary condition can only be applied on interior boundaries.
Specify on which side of the discontinuity the lower permeable medium is located
using the settings for the of the Location of lower permeable medium.
Specify the Entry capillary pressure pec (SI unit: Pa) for all phases, except the one
computed from the volume constraint. Make sure the values correspond to the settings
for the capillary pressure model in the adjacent domain conditions.
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog box. You can find details about the
different constraint settings in the section Constraint Reaction Terms in the COMSOL
Multiphysics Reference Manual.
Continuity
The Continuity condition is suitable for pairs where the boundaries match; it prescribes
that the volume fraction for each phase is continuous across the pair.
A No Flux subnode is added by default and it applies to the parts of the pair boundaries
where a source boundary lacks a corresponding destination boundary and vice versa.
CONSTRAINT SETTINGS
To display this section, click the Show More Options button ( ) and select Advanced
Physics Options in the Show More Options dialog box. The Constraints settings can be set
to Use pointwise constraints (default) or to Use DG constraints. DG constraints should
not be used on pairs that are adjacent to a porous domain. DG constraints are
recommended on pairs adjacent to a Phase and Transport Properties feature, especially
when the mesh nodes do not match across the pair or when the mesh is sliding.
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 Use DG constraints is selected.
• Select Elemental (default) or Nodal under Constraint method. This setting is available
for Use pointwise constraints.
Ribbon
Physics tab with the physics interface selected:
Pairs>Continuity
κf
q f = – ----- d f ( ∇Tp + ρ g ∇TD ) (4-61)
μ
Here, qf is the volume flow rate per unit length in the fracture, κf is the fracture’s
permeability, μ is the fluid dynamic viscosity, df is the aperture or fracture thickness,
∇T denotes the gradient operator restricted to the fracture’s tangential plane, p is the
pressure, ρ is the fluid density, g is the acceleration of gravity, and D represents the
vertical coordinate.
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.
The variable qf gives the volume flow rate per unit length of the fracture. The mean
fluid velocity within the fracture is uf = qf/df.
κf K
----- = -------f
μ ρg
The hydraulic conductivity represents properties of both fluid and porous matrix. If
the model is defined using the hydraulic conductivity, Equation 4-61 changes to
Kf
q f = – ------ d f ( ∇Tp + ρ g ∇TD ) (4-62)
ρg
The Cubic law equation describes the permeability of the fracture from the aperture
or fracture’s thickness df and the roughness factor ff
d f2
κ f = ----------
12f f
If the model is defined using the Cubic law equation, the expression for flow rate per
unit length in the fracture in Equation 4-61 changes to
d f3
q f = – -------------- ( ∇Tp + ρ g ∇TD ) (4-63)
12μf f
Together with the material properties, Equation 4-61 above, in combination with the
continuity equation integrated over the fracture cross section, produces a single
equation for the pressure.
∂ ε
df ( ρ ) + ∇ T ⋅ ( ρq f ) = d f Q m (4-64)
∂t f
where εf is the fracture porosity, and Qm is the mass source term (SI unit: kg/(m3·s)).
The aperture or fracture thickness df can vary along the fracture and therefore appears
on both sides of the equation.
The physics interface solves for the same dependent variable as for the equation in the
porous medium, the pressure p.
STORAGE MODEL
The governing equation takes the slightly different form, compared to Equation 4-64:
∂p
ρS f d f ------ – ∇ T ⋅ ( ρq f ) = d f Q m
∂t
In contrast to the Darcy’s Law and Richards’ Equation interfaces, the storage
coefficient is always a user-defined expression in the Fracture Flow interface.
When this physics interface is added, these default nodes are also added to the Model
Builder — Fluid and Fracture Properties, No Flow (the default boundary condition), and
Initial Values. Then, from the Physics toolbar, add other nodes that implement, for
example, mass sources and conditions on edges or points. You can also right-click
Fracture 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 esff.
PHYSICAL MODEL
Enter a Reference pressure level pref (SI unit: Pa). The default value is 1[atm].
GRAVITY EFFECTS
Gravity effects are not active by default. Select the check box Include gravity to activate
the acceleration of gravity.
Under Acceleration of gravity enter the value for the acceleration of gravity g
(SI unit: m/s2). The default value is the predefined constant g_const.
DISCRETIZATION
You can choose the order of the shape functions used for the pressure variable solved
by the Fracture Flow interface. The default shape functions are Quadratic Lagrange.
To display all settings available in this section, click the Show button ( ) and select
Advanced Physics Options.
• Domain, Boundary, Edge, Point, and Pair Nodes for the Fracture Flow
Interface
• Theory for the Fracture Flow Interface
• Physical Constants in the COMSOL Multiphysics Reference Manual
Domain, Boundary, Edge, Point, and Pair Nodes for the Fracture
Flow Interface
The Fracture Flow Interface has the 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).
DOMAIN
• Fluid and Fracture Properties
• Aperture
• Initial Values
• Mass Source
• Storage Model
• Gravity
• Thickness
Storage Model and Mass Source are described for the Darcy’s Law interface
and are applied to boundaries instead of domains.
In the descriptions for these nodes, replace the Boundary Selection section
with the Edge Selection (3D) or Point Selection (2D) section when using
the Fracture Flow interface.
The following nodes are available on exterior boundaries (edges and points) and
described for The Darcy’s Law Interface:
Note that some of the boundary conditions mentioned above are only available for
certain modules. For detailed information see
http://www.comsol.com/products/specifications/.
The relevant physics interface condition at interior edges is continuity. In addition, the
following edge conditions are available on interior edges:
• Pressure
• Pervious Layer
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.
All the nodes are the same as with the Darcy’s Law interface (see Fluid
and Matrix Properties) except where indicated.
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 Fluid
material selected. For User defined enter another value or expression. The default is 0
kg/m3.
The default Dynamic viscosity μ (SI unit: Pa·s) uses values From material based on the
Fluid material selected. For User defined enter another value or expression. The default
is 0 Pa·s.
FRACTURE PROPERTIES
The default Porous material uses the Boundary material (the material defined for the
fracture domain) for the fracture. Select another material as needed.
Porosity
The default Porosity in the fracture εf (a dimensionless number between 0 and 1) uses
values From material based on the Porous material selected. For User defined enter
another value or expression. The default is 0.
Permeability Model
Select a Permeability model to specify the capacity of the porous material to transmit
flow: Permeability to define the permeability of the fracture, Hydraulic conductivity,
• For Permeability κf (SI unit: m2) the default uses values From material as defined by
the Porous material selected. For User defined select Isotropic to define a scalar value
or Diagonal, Symmetric, or Full to enter a tensor value.
• For Hydraulic conductivity K (SI unit: m/s) enter a value or expression and select
Isotropic to define a scalar value or Diagonal, Symmetric, or Full to enter a tensor
value.
• For Cubic law enter a value or expression for the Roughness factor ff.
Aperture
The default node to specify the fracture’s aperture. Enter a value or expression for the
Aperture df (SI unit: m). The default is 1 mm.
Initial Values
The Initial Values node adds an initial value for the pressure, pressure head, or hydraulic
head pressure that can serve as an initial condition for a transient simulation or as an
initial guess for a nonlinear solver.
INITIAL VALUES
• Select the Pressure (the default) button to enter a value or expression for the initial
value of the pressure p (SI unit: Pa). The default is 0 Pa.
• Select Pressure head to enter a value or expression for Hp (SI unit: m).
• Select Hydraulic head to enter a value or expression for H (SI unit: m).
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 (4-65)
∂t p
----- ∂u + ( u ⋅ ∇ ) ----
ρ u-
=
εp ∂ t ε p
(4-66)
1 T 2 –1 Q m
– ∇ p + ∇ ⋅ ----- μ ( ∇u + ( ∇u ) ) – --- μ ( ∇ ⋅ u )I – κ μ + --------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 4-66 is disabled.
The mass source, Qm, accounts for mass deposit and mass creation within the domains.
The mass exchange is assumed to occur at zero velocity.
The Forchheimer and Ergun drag options add a viscous force proportional to the
square of the fluid velocity, F = −ρβ|u|u, on the right-hand side of Equation 4-66; see
Permeability Models and Non-Darcian Flow for details.
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 main node is the Fluid and Matrix Properties feature, which adds the Brinkman
equations and provides an interface 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 — Fluid and Matrix Properties, 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, and Inconsistent Stabilization,
and Advanced Settings sections, 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.
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 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, select Compressible
flow (Ma<0.3) from the Compressibility list if there are small variations in the density,
typically dependent on the temperature (nonisothermal flow). For compressible flow
modeled with the Brinkman Equations interface, the Mach number must be below
0.3.
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).
The Use pseudo time stepping for stationary equation form option adds pseudo time
derivatives to the equation when the Stationary equation form is used in order to speed
up convergence. When selected, 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.
• 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
• Discontinuous Galerkin Formulation
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
The default Fluid material uses the Domain material. Select another material as needed.
Both the default Density ρ (SI unit: kg/m3) and Dynamic viscosity μ (SI unit: Pa·s) use
values From material based on the Fluid material selection. For User defined enter
another value or expression. In this case, the default is 0 kg/m3 for the density and
0 Pa·s for the dynamic viscosity. The dynamic viscosity describes the relationship
between the shear stresses and the shear rate in a fluid. Intuitively, water and air have
The Porosity εp (a dimensionless number between 0 and 1) uses by default the value
From material as defined by the Porous material selection. For User defined the default
is 0.
Select a Permeability model to specify the capacity of the porous material to transmit
flow — Permeability to directly enter the permeability of the porous matrix,
Kozeny-Carman to define the permeability from the porosity and mean particle
diameter, or Non-Darcian in cases when Darcy’s linear relation between pressure drop
and velocity is no longer valid due to turbulence or inertial effects. The Non-Darcian
Flow option includes different models, some of them are only available for certain
modules. For a detailed overview of the functionality available in each product, visit
http://www.comsol.com/products/specifications/.
The default Permeability κ (SI unit: m2) uses the value From material, as defined by the
Porous material list. For User defined select Isotropic to define a scalar value or Diagonal,
Symmetric, or Full to define a tensor value and enter another value or expression in the
field or matrix.
For Kozeny-Carman, enter the mean Particle diameter dp (SI unit: m), the default value
is 0.5 mm.
For Non-Darcian, choose a Non-Darcian flow model from the selection list. The available
options, depending on the modules licensed, are Forchheimer or Ergun.
For Forchheimer, the default Permeability κ (SI unit: m2) uses the value From material,
as defined by the Porous material list. 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 4-10.
∂ ( ε ρ ) + ∇ ⋅ ( ρu ) = Q
(4-67)
∂t p m
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).
Volume Force
Use the Volume Force node to specify the force F on the right-hand side of
Equation 4-66. It then acts on each fluid element in the specified domains. A common
application is to include gravity effects.
ρ- ∂u
+ ( u ⋅ ∇ ) ----- =
u
----
εp ∂ t εp
(4-68)
1 T 2 –1 Q m
–∇ p + ∇ ⋅ ----
- --
- --------
μ ( ∇u + ( ∇u ) ) – μ ( ∇ ⋅ u )I – κ μ + 2 u + F
ε p 3 εp
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.
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
Heat Transfer in Fluids interface is included in the component, the Temperature (ht)
option is available.
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
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.
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.
THEORY FOR THE FREE AND POROUS MEDIA FLOW INTERFACE | 179
The Free and Porous Media Flow
Interface
The Free and Porous Media Flow (fp) interface ( ), found under the Porous Media and
Subsurface Flow branch ( ) when adding a physics interface, is used to compute fluid
velocity and pressure fields of single-phase flow where free flow is connected to porous
media. The Free and Porous Media Flow interface is used over at least two different
domains: a free channel and a porous medium. The physics interface is well suited for
transitions between slow flow in porous media, governed by the Brinkman equations,
and fast flow in channels described by the Navier-Stokes equations. Fluids with varying
density can be included at Mach numbers below 0.3. Also the viscosity of a fluid can
vary, for example, to describe non-Newtonian fluids. The physics interface can be used
for stationary and time-dependent analyses.
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 Fluid and Matrix Properties 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 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 Compressible flow (Ma<0.3) from the Compressibility list, to account for small
Reference Temperature
Enter a Reference temperature Tref (SI unit: K). The default value is 293.15[K].
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 Interface
• Theory for the Free and Porous Media Flow Interface
Domain, Boundary, Point, and Pair Nodes for the Free and Porous
Media Flow Interface
The Free and Porous Media Flow 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).
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.
The Dynamic viscosity μ (SI unit: Pa·s) uses values From material based on the Fluid
material selection. For User defined enter another value or expression. The default is
0 Pa·s.
DOMAIN SELECTION
Choose domains from the Selection list, to solve for porous media flow governed by
the Brinkman equations. In the domains not selected, the Free and Porous Media Flow
interface solves for laminar flow governed by the Navier-Stokes (or Stokes) equations.
The Porosity εp (a dimensionless number between 0 and 1) uses by default the value
From material as defined by the Porous material selection. For User defined the default
is 0.
In this node you specify the porosity εp, whereas in other nodes the
volume fraction of solid material θp = 1 − εp is required instead. See
Porous Medium in the Heat Transfer Module User’s Guide for an
example.
Select a Permeability model to specify the capacity of the porous material to transmit
flow — Permeability to directly enter the permeability of the porous matrix,
Kozeny-Carman to define the permeability from the porosity and mean particle
diameter, or Non-Darcian in cases when Darcy’s linear relation between pressure drop
and velocity is no longer valid due to turbulence or inertial effects. The Non-Darcian
Flow option is 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 http://www.comsol.com/products/specifications/.
The default Permeability κ (SI unit: m2) uses the value From material, as defined by the
Porous material list. For User defined select Isotropic to define a scalar value or Diagonal,
Symmetric, or Full to define a tensor value and enter another value or expression in the
field or matrix.
For Kozeny-Carman, enter the mean Particle diameter dp (SI unit: m), the default value
is 0.5 mm.
For Forchheimer, the default Permeability κ (SI unit: m2) uses the value From material,
as defined by the Porous material list. 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 4-10.
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 the Porous Matrix
Properties node is active for the domain. Use it, for example, to incorporate the effects
of gravity in a model.
VOLUME FORCE
Enter the components of the 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 for the
Pressure p (SI unit: Pa). The default values are 0 m/s and 0 Pa, respectively.
Wall
The Wall node includes a set of boundary conditions describing fluid-flow conditions
at stationary, moving, and leaking walls.
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.
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.
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.
This chapter describes the physics interfaces found under the Chemical Species
Transport branch ( ). It summarizes the physics interfaces including the different
fields, material properties, and boundary conditions associated with them, and
suggests how and when to apply the conditions.
In this chapter:
187
T he T r a ns po r t of D i l u t ed Sp eci 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.
TRANSPORT MECHANISMS
Mass transport due to diffusion is always included. Use the check boxes available under
Additional transport mechanisms to control other transport mechanisms.
• 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.
• Select the Dispersion in porous media check box to activate the dispersion mechanism
in porous media. See further Dispersion in the theory chapter.
• Select the Volatilization in partially saturated porous media check box to model
volatilization in partially saturated domains. For more information see Theory for
the Transport of Diluted Species Interface.
The following features are also enabled when selecting the Mass transport in porous
media check box:
• Adsorption
• Fracture
• Partially Saturated Porous Media
• Porous Electrode Coupling
• Porous Media Transport Properties
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. It defaults to 0.1[mol/m^3)/tds.helem, where tds.helem
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 underresolved 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 checked, 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 checked. The smoothing can provide a more well-behaved flux value close to
singularities.
For details about the boundary fluxes settings, see Computing Accurate Fluxes in the
COMSOL Multiphysics Reference Manual.
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 Media Transport Properties and Partially
Saturated Porous Media 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 Media Transport Properties, 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
In the COMSOL Multiphysics Reference Manual, see Table 2-4 for links
to common sections and Table 2-5 for common feature nodes. You can
also search for information: press F1 to open the Help window or Ctrl+F1
to open the Documentation window.
Transport Properties
The settings in this node are dependent on the check boxes selected under Transport
Mechanisms on the Settings window for the Transport of Diluted Species interface. It
includes only the sections required by the activated transport mechanisms. It has all the
equations defining transport of diluted species as well as inputs for the material
properties.
When the Convection check box is selected, the Turbulent Mixing subnode is available
from the context menu as well as from the Physics toolbar, Attributes menu.
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.
Enter the Diffusion coefficient Dc for each species. This can be a scalar value for isotropic
diffusion or a tensor describing anisotropic diffusion. Select the appropriate tensor
type — Isotropic, Diagonal, Symmetric, or Full that describes the diffusion transport, and
then enter the values in the corresponding element (one value for each species).
Note that multiple species, as well as Migration in Electric fields (described below) is
only available for certain COMSOL Multiphysics add-on products. See details:
https://www.comsol.com/products/specifications/.
• Enter a value or expression for the Electric potential V, which is User defined; this
input option is always available.
• Select the electric potential solved by an AC/DC-based interface that has also been
added to the model.
• Select the electric potential defined or solved by Electrochemistry interface that has
been added to the component.
By default the Mobility is set to be calculated based on the species diffusivity and the
temperature using the Nernst-Einstein relation. For User defined, and under Mobility,
select the appropriate scalar or tensor type — Isotropic, Diagonal, Symmetric, or Full —
and type in the value of expression of the mobility um,c.
Enter the Charge number zc (dimensionless, but requires a plus or minus sign) for each
species.
The temperature (if you are using mobilities based on the Nernst-Einstein relation) is
taken from Model Inputs section.
Note that the migration in electric fields feature is only available in some COMSOL
products. See details: https://www.comsol.com/products/specifications/.
Turbulent Mixing
Use this node to account for the turbulent mixing of the chemical species caused by
the eddy diffusivity. This node should typically be used when the specified velocity field
corresponds to a RANS solution.
The subnode can added from the context menu (right-click the Transport Properties
parent node), as well as from the Physics toolbar, Attributes menu, provided that
Convection is selected as a transport mechanism.
FURTHER READING
See the section About Turbulent Mixing in the CFD Module User’s Guide (this link
is available online or if you have the CFD Module documentation installed).
DOMAIN SELECTION
If there are several types of domains with different initial values defined, it might be
necessary to remove some domains from the selection. These are then defined in an
additional Initial Values node.
INITIAL VALUES
Enter a value or expression for the initial value of the Concentration or concentrations,
ci. This also serves as a starting guess for stationary problems.
Mass-Based Concentrations
Use the Mass-Based Concentrations node to add postprocessing variables for mass-based
concentrations (SI unit: kg/m3) and mass fractions (dimensionless) for all species.
MIXTURE PROPERTIES
The default Solvent density ρsolvent is taken From material. For User defined, enter a
value or expression manually. Define the Molar mass of each species, which is needed
to calculate the mass-based concentration.
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 R (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
REACTING VOLUME
This section is only available when the Mass Transport in Porous Media property is
available and selected. See https://www.comsol.com/products/specifications/ 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 the volume of a particular
phase.
• For Total volume, the reaction expressions in mol/(m3·s) are specified per unit
volume of the model domain (multiplied by unity).
• For Pore volume, the reaction expressions in mol/(m3·s) are specified per unit
volume of total pore space. The reaction expressions will be multiplied by the
domain porosity, εp. (εp equals unity for nonporous domains.)
• For Liquid phase, the reaction expressions in mol/(m3·s) are specified per unit
volume of liquid in the pore space. The expressions will be multiplied by the liquid
volume fraction θ. (θ equals εp for Saturated Porous Media domains).
• For Gas phase, the expressions are multiplied by the gas volume fraction av = εp − θ.
av equals 0 for Saturated Porous Media domains.
FURTHER READING
See the theory chapter on chemical species transport, starting with the section Mass
Balance Equation.
– 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.
– n ⋅ ( – D∇c + uc ) = 0
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 non-trivial 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 button ( ) and select Advanced Physics Options.
You can find details about the different constraint settings in the section Constraint
Reaction Terms in the COMSOL Multiphysics Reference Manual.
FURTHER READING
See the theory chapter in the section Danckwerts Inflow Boundary Condition.
Outflow
Apply this condition at outlets boundaries where species should be transported out of
the model domain by fluid motion or by an electric field (in the case of ions). It is
assumed that convection and migration in an electric are the dominating transport
mechanisms across the boundary, and therefore that the diffusive transport can be
ignored, that is:
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
CONSTRAINT SETTINGS
To display this section, click the Show button ( ) and select Advanced Physics Options.
You can find details about the different constraint settings in the section Constraint
Reaction Terms in the COMSOL Multiphysics Reference Manual.
Flux
This node can be used to specify the species molar flux across a boundary. The flux can
for example occur due to chemical reactions or a phase change at the boundary. The
flux can also represent the transport to or from a surrounding environment currently
not included model.
– n ⋅ ( – D∇c ) = J 0
where n denotes the outward pointing normal of the boundary. When the mass
transport includes migration of ionic species, the flux is defined as:
– n ⋅ ( – 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 φ .
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
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
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.
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
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.
Partition Condition
The Partition Condition node can be used to prescribe the ratio between the
concentration of a solute species in two different 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. For a species
concentration ci, the ratio between the concentration on the up side and on the down
side of the boundary (ci,u and ci,d respectively) is defined as
c i, u
K i = ---------
c i, d
in terms of a partition coefficient Ki. The up and down side of the selected boundary
is indicated in the Graphics window. The arrows point from the down side into the up
side.
PARTITION COEFFICIENT
Select the Reverse direction check box to reverse the direction of the arrows on the
selected boundaries, and the corresponding definition of the up and down side
concentration.
Use the associated input fields to prescribe the partition coefficient Ki.
FURTHER READING
For an example of using a partition condition, see this application example:
The node can be activated on more than two boundaries, in which case the feature tries
to identify two separate surfaces that each consist of one or several connected
boundaries.
For more complex geometries, it might be necessary to add the Destination Selection
subnode, which is available from the context menu (right-click the parent node) as well
as from the Physics toolbar, Attributes menu. With this subnode, the boundaries that
constitute the source and destination surfaces can be manually specified.
FURTHER READING
For an example of using a periodic condition, see this application example:
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.
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.
Equilibrium Reaction
Use this node to model a reaction where the kinetics is assumed 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.
EQUILIBRIUM CONDITION
The list defaults to Equilibrium constant or select User defined. For either option, the
Apply equilibrium condition on inflow boundaries check box is selected by default.
For Equilibrium constant, enter an Equilibrium constant Keq (dimensionless). Also enter
a value or expression for the Unit activity concentration Ca0 (SI unit: mol/m3).
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.
FURTHER READING
For an example of using the Surface Reactions node, see this application example:
In the Transport of Concentrated Species interface, the molar sources (or sinks) are
multiplied by the species molar masses to obtain the corresponding mass sources.
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.
The flux is proportional to the current densities and the stoichiometric coefficients
according to Faraday’s law as defined by summation over the Reaction Coefficients
subnodes.
Note that if you are also modeling the momentum transport and expect a
nonnegligible total mass flux over the boundary, which is often the case for gas
diffusion electrodes, you need to also add a corresponding Electrode Surface Coupling
node in the Fluid Flow interface.
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.
MATRIX PROPERTIES
Use the Porous material list to define a material specifying the matrix properties on the
current selection. By default the Domain material is used.
Specify the Porosity, εp (dimensionless) of the porous matrix. This is by default taken
From material. Select User defined to instead enter a different value.
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
Select a Fluid material (when available and applicable).
Specify the Fluid diffusion coefficient DF,i (SI unit: m2/s). Enter a value or expression
for each of the species in the corresponding input field. The default is 1·10-9 m2/s.
Select the Effective diffusivity model: Millington and Quirk model (the default),
Bruggeman model, Tortuosity model, or User defined. For Tortuosity model, enter a value
for the tortuosity τF,i (dimensionless). The default is 1.
• Enter a value or expression for the Electric potential V, which is User defined; this
input option is always available.
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, and under
Mobility, select the appropriate scalar or tensor type — Isotropic, Diagonal, Symmetric,
or Full — and type in the value of expression of the effective mobility ume,c.
DISPERSION
This section is available when the Dispersion in porous media check box is selected on
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. The default is to use
the same dispersion tensor DD for all species.
Select an option from the Dispersion tensor list — User defined (the default) or
Dispersivity. For User defined, use it to specify the dispersion components as
user-defined constants or expressions. Select Isotropic, Diagonal, Symmetric, or Full
based on the properties of the dispersion tensor.
Select Dispersivity when Convection has been added as the transport mechanism. Specify
the dispersivities (SI unit: m) to define the dispersion tensor DD (SI unit: m2/s)
together with the velocity field u. 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.
MATRIX PROPERTIES
Use the Porous material list to define a material specifying the matrix properties on the
current selection. By default the Domain material is used.
The density of the porous media is needed when modeling adsorption to the surface
of the porous matrix. By default Density ρ is defined from the domain material.
ADSORPTION
Select a Sorption type — Langmuir (the default), 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 P K L c Pmax
c P = c Pmax -------------------- , K P = -------- = ---------------------------2-
1 + KL c ∂c ( 1 + KL c )
Enter a Langmuir constant kL,c (SI unit: m3/mol) and an Adsorption maximum
cp,max,c (SI unit: mol/kg).
• For Freundlich:
c N ∂c P cP
c P = K F -------- , K P = -------- = N ------
c ref ∂c c
Enter a Freundlich constant kF,c (SI unit: mol/kg), a Freundlich exponent NF,c
(dimensionless), and a Reference concentration cref,c (SI unit: mol/m3).
• For Toth:
and
– 1 + -------
1
∂c P N T
N
KP = -------- = c Pmax b T ( 1 + ( b T c ) T )
∂c
Enter a Toth constant bT,c (SI unit: m3/mol), a Toth exponent NT,c (dimensionless),
and an Adsorption maximum cp,max,c (SI unit: mol/kg).
• For BET (Brunauer-Emmett-Teller):
KB c0 c
c P = --------------------------------------------------------------
( c S – c ) 1 + ( K B – 1 ) -----
c
cS
and
2 2
∂c P K B c 0 c S ( ( K B – 1 )c + c S )
K 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.
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.
MATRIX PROPERTIES
Use the Porous material list to define a material specifying the matrix properties on the
current selection. By default the Domain material is used.
Specify the Porosity, εp (dimensionless) of the porous matrix. This is by default taken
From material. Select User defined to instead enter a different value.
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 θ = sεp.
For Liquid volume fraction, enter a value for θ (dimensionless) between 0 and the value
of porosity. The saturation is then computed from the porosity and the liquid volume
fraction as s = θεp.
Select a Fluid fraction time change: Fluid fraction constant in time (the default), Time
change in fluid 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).
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
Select a Liquid material from the list.
Specify the Liquid diffusion coefficient DL,c (SI unit: m2/s). Enter a value or expression
for each of the species in the corresponding input field. The default is 1·10-9 m2/s.
Select the Effective diffusivity model, liquid: Millington and Quirk model (the default),
Bruggeman model, Tortuosity model, or User defined. For Tortuosity model, enter a value
for τL,c (dimensionless). The default is 1.
When the Volatilization in partially saturated porous media check box is selected on the
Settings window for the physics interface, also define the Gas material, Gas diffusion
coefficient, and Effective diffusivity model, gas.
DISPERSION
This section is available when the Dispersion in porous media check box is selected on
the Settings window for the physics interface. The settings are the same as for Porous
Media Transport Properties.
VOLATILIZATION
This section is available when the Volatilization in partially saturated porous media check
box is selected on the Settings window for the physics interface.
Enter a value for the Volatilization kG,c (dimensionless) for each species.
Use this feature to model mass transfer at the boundary due to volatilization. The
feature can be added on boundaries of a Partially Saturated Porous Media domain. In
this case the porous media contains a liquid phase and a gas phase. 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 Partially Saturated Porous
Media domain.
BED PARAMETERS
Here you can specify the bed porosity, which is the void fraction in the packed bed
structure. Select From densities to calculate the porosity from the bed density and the
individual pellet density. Select User defined to specify the porosity directly.
Depending on the shape selection, equivalent radii or volumes and surface areas will
be required as input. If a size distribution is selected, the volume percentage of each
size is required as input.
Note that different chemical reactions can be specified for each pellet size if a
distribution is specified.
SURFACE SPECIES
In order to add surface species, click the Add button and enter the species name in the
Surface species table. Added surface species are be available inside all pellet types
defined in the Pellet Shape and Size section, but not in the bulk fluid.
For each pellet type, specify the Reactive specific surface area, Sb,reac (SI unit: 1/m),
corresponding to the surface area, per volume, available for surface reactions.
PELLET PARAMETERS
Enter a Pellet porosity εpe (dimensionless) to specify the porosity of the pellet internals.
PELLET-FLUID SURFACE
For the coupling of concentration between the pellet internals and the surrounding
fluid, two Coupling type options are available:
• Continuous concentration, assuming that all resistance to mass transfer to/from the
pellet is within the pellet and no resistance to pellet-fluid mass transfer is on the bulk
fluid side. The concentration in the fluid will thus be equal to that in the pellet pore
just at the pellet surface: cpe,i = ci. This constraint also automatically ensures flux
continuity between the internal pellet domain and the free fluid domain through
so-called reaction forces in the finite element formulation.
• Film resistance (mass flux): The flux of mass across the pellet-fluid interface into the
pellet is possibly rate determined on the bulk fluid side, by film resistance. The
resistance is expressed in terms of a film mass transfer coefficient, hDi, such that:
N i,inward = h D, i ( c i – c pe, i ) .
The Film resistance (mass flux) option computes the inward surface flux,
Ni,inward = hD,i(ci − cpe,i). hDi is the mass transfer coefficient (SI unit: m/s) and is
calculated with the default Automatic setting from a dimensionless Sherwood number
expression or with User defined mass transfer coefficients.
The Active specific surface area (SI unit: m-1) is required to couple the mass transfer
between the pellets and the bed fluid. Select either the Automatic setting that calculates
the specific surface area from the shape information given above. User defined is also
available for explicit surface area specification.
The Sherwood number expression can be computed from three available expressions:
Frössling, Rosner, and Garner and Keey. The Frössling equation is the default and
probably the most commonly used for packed spheres. All of these are based on the
dimensionless Reynolds, Re, and Schmidt, Sc, numbers, which are computed from
Density and Dynamic viscosity. Select these to be taken either From material or choose
the User defined alternative.
CONSTRAINT SETTINGS
To display this section, click the Show button ( ) and select Advanced Physics Options.
See the details about the different constraint settings in the section Constraint
Reaction Terms in the COMSOL Multiphysics Reference Manual.
FURTHER READING
Theory for the Reactive Pellet Bed in the Theory section of this manual.
DOMAIN SELECTION
From the Selection list, choose the domains on which to define rate expression or
expressions that govern source terms 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 R (SI unit: mol/(m3·s)) for species i using a value or an
expression. One reaction rate per species and pellet type can be entered.
Specify the rate expression R (SI unit: mol/(m2·s)) corresponding to the surface
reaction rate of each volumetric species i participating in the surface reaction.
Furthermore, specify the surface reaction rates for the participating surface species in
the corresponding table.
If several pellet types have been defined, one set of surface reaction rates per pellet type
can be defined.
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 menu.
HEAT SOURCE
Specify the heat source originating from the heat of reaction of the chemical reactions
inside the pellet can be specified. Both heat sources from reactions in the fluid, and
heat sources resulting from surface reactions can be defined. When using several pellet
types, heat sources for each type can be added.
The heat sources are most conveniently picked up from a Chemistry feature that
defines the reaction rate and the heat of reactions. In that case, the Rate expression can
be selected from the drop-down menu. Else it can be set to User Defined.
The defined heat source can be used by a Heat Source feature in any of the heat
transfer interfaces.
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
https://www.comsol.com/products/specifications/.
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 in the COMSOL Multiphysics Reference Manual.
FRACTURE PROPERTIES
Specify a value for the Fracture thickness dfr.
MATRIX PROPERTIES
Use the Porous material list to define a material specifying the matrix properties on the
current selection. By default the Boundary material is used.
Specify the Porosity, εp (dimensionless) of the porous matrix. This is by default taken
From material. Select User defined to instead enter a different value.
CONVECTION
Select an option from the Velocity field list to specify the convective velocity along the
fracture. For a consistent model, use a Fracture Flow 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.
The settings for the Diffusion, and Dispersion sections are the same as for
Porous Media Transport Properties.
The interface supports simulation of species transport along boundaries in 2D and 3D,
and axisymmetric components in 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 dsf.
BOUNDARY SELECTION
If model geometry includes boundaries that should not be included in the mass
transfer simulation, remove those from the selection list.
TRANSPORT MECHANISMS
Mass transport due to diffusion is always included. Use the Convection check box,
available under Additional transport mechanisms, to control whether to also include
convective transport.
• 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. It defaults to 0.1[mol/m^3)/tds.helem, where tds.helem
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 underresolved problems.
DISCRETIZATION
To display all settings available in this section, click the Show button ( ) and select
Advanced Physics Options.
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
Boundary, Edge, Point, and Pair Nodes for the Transport of Diluted
Species in Fractures Interface
The Transport of Diluted Species in Fractures Interface has the following boundary,
edge, point, and pair nodes, listed in alphabetical order, available from the Physics
ribbon toolbar (Windows users), Physics context menu (Mac or Linux users), or by
right-clicking to access the context menu (all users).
MATRIX PROPERTIES
Use the Porous material list to define a material specifying the matrix properties on the
current selection. By default the Domain material is used. The density of the porous
media is needed when modeling adsorption to the surface of the porous matrix. By
default Density ρ is set to from domain material.
ADSORPTION
Select an Adsorption isotherm — Langmuir (the default), 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 P K L c Pmax
c P = c Pmax -------------------- -------- = ---------------------------
-
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:
c N ∂c P cP
c P = K F -------- -------- = N -----
- Freundlich
c ref ∂c c
Enter a Freundlich constant kF,c (SI unit: mol/kg), a Freundlich exponent NF,c
(dimensionless), and a Reference concentration cref,c (SI unit: mol/m3).
• For Toth:
bT c
c P = c Pmax ----------------------------------------------
N 1 ⁄ NT
( 1 + ( bT c ) T )
and
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
K B c 0 c S ( ( K B – 1 )c + c S )
-----------------------------------------------------------------
-
2 2
( c – c S ) ( c S + ( K B – 1 )c )
cP = f ( c )
FURTHER READING
See the theory chapter in the section Mass Balance Equation for Transport of Diluted
Species in Porous Media.
Concentration
Use this node to specify the species concentration on a fracture boundary (applied in
points in 2D and along edges in 3D). 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
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 flux across a boundary of a porous fracture
(applied in points in 2D and along edges in 3D). The flux of species c is defined as
n ⋅ ( D e ∇c ) = N 0
INWARD FLUX
Specify the flux of each species individually. To use another boundary condition for a
specific species, click to clear the check box for the mass fraction of that species.
Fracture
Use this node to model mass transport along thin fracture surfaces situated inside
porous or solid material. The node assumes that the transport in the tangential
direction of the fracture is dominant, as a result of lower flow resistance. Note that the
fracture it self is modeled as porous.
MATRIX PROPERTIES
Use the Porous material list to define a material specifying the matrix properties on the
current selection. By default the Boundary material is used.
Specify the Porosity, εp (dimensionless) of the porous matrix. This is by default taken
From material. Select User defined to instead enter a different value.
For User defined, enter values or expressions for the velocity components in the table
shown.
The settings for the Diffusion, and Dispersion sections are the same as for Porous Media
Transport Properties.
Inflow
Use this node to specify all species concentrations at a fracture inlet. The condition is
applied in points in 2D and along edges in 3D
If you want to specify the concentration of a subset of the partaking species, this can
be done by using the Concentration node instead.
CONCENTRATION
For the concentration of each species c0,c (SI unit: mol/m3), enter a value or
expression.
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.
No Flux
This node can be used to specify that the species flux across a boundary of a porous
fracture is zero. The condition is applied in points in 2D and along edges in 3D.
Outflow
Set this condition at fracture outlets where species are transported out of the model
domain by fluid motion. The condition is applied in points in 2D and along edges in
3D. It is assumed that convection is the dominating transport mechanism across
outflow boundaries, and therefore that diffusive transport can be ignored, that is:
n ⋅ ( – D e ∇c ) = 0
Reactions
Use the Reactions node to account for the consumption or production of species
through chemical reactions in the fracture. Define the rate expressions as required.
BOUNDARY SELECTION
From the Selection list, choose the boundaries 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
of the fracture.
REACTION RATES
Add a rate expression Ri 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 menu.
• For Total volume, the reaction expressions in are specified per unit volume of the
fracture. The reaction expressions will be multiplied by the fracture thickness dfr.
• For Pore volume, the reaction expressions in mol/(m3·s) are specified per unit
volume of total pore space in the fracture. The reaction expressions will be
multiplied by the fracture thickness dfr and the fracture porosity, εp.
Species Source
In order to account for consumption or production of species in a fracture, the Species
Source node adds source terms expressions Si to the right-hand side of the species
transport equations.
BOUNDARY SELECTION
From the Selection list, choose the boundaries on which to define expressions that
govern the source term in the transport equations.
If there are several different parts of the fracture, with subsequent and different sources
occurring within them, it might be necessary to remove some boundaries from the
selection. The sources in these can then be defined using an additional Species Source
node.
SPECIES SOURCE
Add a source term Si for each of the species solved for. Enter a value or expression in
the field of the corresponding species.
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 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 https://www.comsol.com/products/specifications/
∂c i
------- + ∇ ⋅ J i + u ⋅ ∇c i = R i (5-1)
∂t
Equation 5-1 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 (5-2)
The third term on the left side of Equation 5-1 describes the convective transport due
to a velocity field u. This field can be expressed analytically or obtained from coupling
the physics interface to one that solves for fluid flow, such as Laminar Flow. Note that
all fluid flow interfaces solve for the mass averaged velocity.
On the right-hand side of the mass balance equation (Equation 5-1), 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 Modules Chemical
Engineering, Corrosion, Electrochemistry, Electrodeposition, and Batteries and Fuel
Cells
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 (5-3)
∂t
∂c
conservative: ----- + ∇ ⋅ ( cu ) = ∇ ⋅ J i + R (5-4)
∂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-
= ∇ ⋅ Ji + R
∂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
https://www.comsol.com/products/specifications/
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 = qp,c (5-5)
δV
q· p,c test ( c )
·
is added at a point in the geometry. As can be seen from Equation 5-5, 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 Ql,c = q· l,c (5-6)
δS → 0
δ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
https://www.comsol.com/products/specifications/
∂c i
+ ∇ ⋅ ( – D i ∇c i – z i u m, i F c i ∇V + c i u ) = R i (5-7)
∂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.
Di
u m, 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 electro-active 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 (5-8)
j
Equation 5-8 is simply Ohm’s law for ionic current transport and can be simplified to
i = – κ ∇φ (5-9)
where κ is the conductivity of the supporting electrolyte. A current balance gives the
current and potential density in the cell
∇⋅i = 0
∇ ⋅ ( – κ ∇φ ) = 0 (5-10)
Equation 5-10 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éclèt number — that is, systems where convection or migration dominates over
diffusion. Streamline diffusion and crosswind diffusion are of paramount importance
to obtain physically reasonable results. The Transport of Diluted Species interface
provides two crosswind diffusion options using different formulations. Observe that
crosswind diffusion makes the equation system nonlinear even if the transport
equation is linear.
CODINA
The Codina formulation is described in Ref. 1. It adds diffusion strictly in the direction
orthogonal to the streamline direction. Compared to the do Carmo and Galeão
formulation, the Codina formulation adds less diffusion but is not as efficient at
reducing over- and undershoots. It also does not work as well for anisotropic meshes.
The advantage is that the resulting nonlinear system is easier to converge and that
underresolved gradients are less smeared out.
Use the Danckwerts condition to specify inlet conditions for domains where high
reaction rates are anticipated in the vicinity to the inlet (Ref. 2).
n ⋅ ( J i + uc i ) = n ⋅ ( uc i, 0 ) (5-11)
∂ ( θc ) + ∂ ( ρc ) + ∂ (a c ) + u ⋅ ∇c =
i P, i ∂ t v G, i i
∂t ∂t (5-12)
∇ ⋅ [ ( D D, i + D e, i ) ∇c i ] + R i + S
i
On the left-hand side of Equation 5-12, the first three terms correspond to the
accumulation of species within the liquid, solid, and gas phases, while the last term
describes the convection due to the velocity field u (SI unit: m/s).
In Equation 5-12 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 θ; the matrix (drained) density, ρ = (1 − εp)ρp,
and the solid phase density ρp.
For saturated porous media, the liquid volume fraction θ is equal to the porosity εp,
but for partially saturated porous media, they are related by the saturation s as θ = sεp.
The resulting gas volume fraction is av = εp − θ = (1-s)εp.
On the right-hand side of Equation 5-12, the first term introduces the spreading of
species due to mechanical mixing resulting from the porous media (dispersion), as well
as from diffusion and volatilization to the gas phase. The dispersion tensor is denoted
DD (SI unit: m2/s) and the effective diffusion by De (SI unit: m2/s).
The last two terms on the right-hand side of Equation 5-12 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.
Adsorption
The time evolution of the adsorption, the solute transport to or from the solid phase,
is defined by assuming that the amount of solute adsorbed to the solid, cP,i, is a
function of the concentration in the fluid ci. This implies that the solute concentration
∂c P, i ∂c i ∂ε P ∂c i ∂ε P
∂ ρc = ρK P,i – ρc P, i (5-13)
( P, i ) = ρ – ρc P, i ∂ t ∂t
∂t ∂ ci ∂ 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 ∂a v ∂c i ∂a v
∂a = av + k G, i c i = a v k G, i + k G, i c i (5-14)
v c G, i ∂ ∂ ∂ ∂ t ∂t
∂t c i t t
∂ ε
( c ) + ∂ ( ρc P, i ) + u ⋅ ∇c i = ∇ ⋅ [ ( D D, i + D e, i ) ∇c i ] + R i + S i (5-15)
∂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.
u
u a = ----- Saturated
εp
u
u a = ---- Partially saturated
θ
where εp is the porosity and θ = sεp the liquid volume fraction, and s the saturation, a
dimensionless number between 0 and 1.
Figure 5-1: 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.
∂ θc ∂
( i ) + ∂ ( ρ b c P, i ) + (a v c G, i) + ∇ ⋅ uc i =
∂t ∂t ∂t (5-16)
∇ ⋅ [ ( D D, i + D e, i ) ∇c i ] + R i + S i
If the conservative formulation is expanded using the chain rule, then one of the terms
from the convection part, ci∇·u, would equal zero for an incompressible fluid and
would result in the nonconservative formulation described in Equation 5-12.
When using the nonconservative formulation, which is the default, the fluid is assumed
incompressible and divergence free: ∇ ⋅ u = 0. The nonconservative formulation
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
θ
D e = ----- D L Partially Saturated Porous Media
τL
θ av
D e = ----- D L + ------ k G D G Partially Saturated with Volatilization
τL τG
Here DF, DL, and DG are the single-phase diffusion coefficients for the species diluted
in fluid, pure liquid, and gas phases, 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
compute the tortuosity factors in partially saturated porous media according to the
Millington and Quirk model (Ref. 12):
–7 ⁄ 3 2 –7 ⁄ 3 2
τL = θ ε , τG = av ε
–5 ⁄ 2 2 –5 ⁄ 2 2
τL = θ ε , τG = av ε
–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 small.
The spreading of mass, as species 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 is small relative to the mechanical
dispersion, except at very low fluid velocities.
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. 9):
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. 10) can be used. Consider a transverse isotropic media,
where the strata are piled up in the z direction, the dispersivity tensor components are:
2 2 2
u v w
D Lxx = α 1 ------- + α 2 ------- + α 3 -------
u u u
2 2 2
v u w
D Lyy = α 1 ------- + α 2 ------- + α 3 -------
u u u
2 2 2
w u v
D Lzz = α 1 ------- + α 3 ------- + α 3 -------
u u u (5-17)
uv
D Lxy = D Lyx = ( α 1 – α 2 ) -------
u
uw
D Lxz = D Lzx = ( α 1 – α 3 ) --------
u
vw
D Lyz = D Lzy = ( α 1 – α 3 ) --------
u
In Equation 5-17 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. 9 and
Ref. 11).
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
KL c
c P = c Pmax -------------------- Langmuir
1 + KL c
c N
c P = K F -------- Freundlich
c ref
bT c (5-18)
c P = c Pmax ---------------------------------------------- Toth
N 1 ⁄ NT
( 1 + ( bT c ) T )
KB c0 c
c P = -------------------------------------------------------------- BET
( c S – c ) 1 + ( K B – 1 ) -----
c
c S
These predefined expressions are adsorption isotherms that describe the amount of
species sorbed to the solid. Defined at equilibrium, the switch between liquid and solid
phases is instantaneous.
Using a Species Source feature, arbitrary expressions can be entered to define, for
example, nonequilibrium and temperature-dependent adsorption laws, including
those set out by Fetter (Ref. 7) and Bear and Verruijt (Ref. 8).
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 smaller than the fluid velocity owing to residence
time on solids.
Reactions
Chemical reactions of all types influence species transport in porous media. Examples
include biodegradation, radioactive decay, transformation to tracked products,
temperature- and pressure-dependent functions, exothermic reactions, and
endothermic reactions. The reactions represent change in species concentration per
unit volume porous medium per time. Reaction terms are used on the right-hand side
of the governing equation to represent these processes. For reactions in a fluid phase,
multiply the expression by the fluid volume fraction θ. Similarly, solid phase reaction
expressions include the bulk density, ρb, and gas phase reactions include the gas
volume fraction, av.
ln 2
R Li = – θ --------- c i Radioactive decay — liquid
λ Li
ln 2 ∂c Pi
R Pi = – ρ b --------- ---------- c i Radioactive decay — solid
λ Pi ∂c i
∂c Gi
R Gi = – --------- a v ----------- c i Radioactive decay — gas
ln 2
λ Gi ∂c
R Lk = θζ Li c i Creation from parent c Li — liquid
∂c Pi
R Pk = ρ b ζ Pi ---------- c i Creation from sorbed parent c Pi — solid
∂c i
∂c Gi
R Gk = – ζa v ----------- c i Reaction — gas
∂c
where λ is the chemical half life, ζ is a reaction rate, and the subscripts L, P, and G
denote liquid, solid, and gas phases, respectively. In the equations, the reactions either
depend on liquid concentration ci or solid phase concentrations cPi obtained using the
sorption derivative with ci or gas phase concentration cGi depending on the gas volume
fraction, the volatilization, and the liquid concentration.
Ea ( T – TR )
ζ T = ζ R exp ------------------------------ (5-19)
R u TT R
The fluid flow in a fracture can be modeled using Darcy’s law formulated in a thin
sheet of porous medium (a fracture):
κ
u = --- ∇ t p
μ
Here u is the tangential Darcy velocity, κ is the fracture permeability, μ the fluid’s
dynamic viscosity, and ∇tp is the tangential gradient of the fluid pressure.
The equation to solve for mass transport of species ci in a thin fracture, embedded in
a porous media, is derived from Equation 5-12. The resulting equation is:
∂ρ b c P, i ∂ε p c i
d fr ------------------- + ------------- + ∇ t ⋅ ( D e, i ∇ t c i ) + u ⋅ ∇ t c i = d fr R i + d fr S i + n 0 (5-20)
∂t ∂t
Here dfr is the fracture thickness, cP, i the amount of species adsorbed to (or desorbed
from) the porous matrix (moles per unit dry weight of the solid), εp is the fracture
porosity, and De is the effective diffusivity. The first two terms on the right hand side
represent source terms from reactions, and n0 corresponds to out-of plane flux from
the adjacent porous domain.
In order to arrive at the tangential differential equation, the gradient is split into the
contributions normal and tangential to the fracture:
∇c i = ∇ n c i + ∇ t c i
∇c i = ∇ t c i
Using The Transport of Diluted Species in Fractures Interface, the transport along
fracture boundaries alone is solved for. In this case the transport in the surrounding
porous media neglected and the out-of plane flux n0 vanishes.
See Fracture for more information about the boundary feature solving
Equation 5-20. See The Transport of Diluted Species in Fractures
Interface 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. J.M. Coulson and J.F. Richardson, Chemical Engineering, vol. 2, 4th ed.,
Pergamon Press, Oxford, U.K., 1991.
4. J.M. Coulson and J.F. Richardson, Chemical Engineering, vol. 1, 4th ed.,
Pergamon Press, Oxford, U.K., 1991.
6. 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 Resourc. Res., vol. 22, no. 13, pp. 2017–2030, 1986.
10. 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.
11. J. Bear, Dynamics of Fluids in Porous Media, Elsevier Scientific Publishing, 1972.
12. R.J. Millington and J.M. Quirk, “Permeability of Porous Solids”, Trans. Faraday
Soc., vol. 57, pp. 1200–1207, 1961.
14. R.B. Bird, W.E. Stewart, and E.N. Lightfoot, Transport Phenomena, 2nd ed.,
John Wiley & Sons, Inc., 2007.
This chapter has information about the heat transfer interfaces used for modeling,
particularly in porous media. As with all other physical descriptions simulated by
COMSOL Multiphysics®, any description of heat transfer can be directly coupled
to any other physical process. This is particularly relevant for systems based on
chemical reactions and mass transfer along with fluid flow. These physics interfaces
are found under the Heat Transfer branch ( ) when adding a physics interface.
In this chapter:
257
The Mechanisms for Heat Transfer
This section includes these topics:
Heat transfer through conduction and convection (both nonisothermal flow and
conjugate heat transfer) in solid and free media is supported by physics interfaces
shipped with the basic COMSOL Multiphysics license.
If you are using this module with enhanced Heat Transfer interface features, see also
the Heat Transfer Module documentation for additional information. See Where Do
I Access the Documentation and Application Libraries?
This module also includes The Heat Transfer in Porous Media Interface. The physics
interface itself supports heat transfer in porous media where the thermal conductivity
and heat capacity are affected by the extent of porosity. As a porous media is made up
of a solid matrix filled with a fluid, heat is transported at different rates through the
two types of media. The Heat Transfer in Porous Media interface provides tools and
support for defining an appropriate matrix model.
The Heat Transfer in Fractures (htlsh) interface ( ), found in the Thin Structures
physics area under the Heat Transfer branch ( ), is used to model heat transfer by
conduction and convection in layered materials represented by boundaries. The
interface is active on all boundaries where a layered material is defined, with a Porous
Medium model active by default. All functionalities for including other boundary
contributions, such as surface-to-ambient radiation, are also available.
Heat Conduction
The Heat Transfer interface in this module provides tools for analyzing heat transfer
that is proportional to a temperature gradient, or conduction. It accounts explicitly for
the geotherm as a heat source. This physics interface provides options to calculate
thermal properties for multicomponent media. It incorporates boundary and source
options to represent transversal fluxes such as convection and radiation at adjacent
domains that you do not explicitly model.
The physics interface describes heat flow with negligible impacts of moving fluids. Just
a few targets for conduction modeling include resistive heating in cores, estimating a
surface heat flux, describing a temperature profile with depth, phase changes,
exothermic reactions, and cooling earth analyses. The physics interface provides tools
to consider radiative and convection heat transfers at boundaries so that you can focus
on the physics in the domain of interest. With the COMSOL Multiphysics
“just-type-it-in” modeling flexibility, it is straightforward to create nonlinear
expressions where, for example, thermal conductivity varies with temperature as well
as other physics.
The physics interface assumes that the model domain includes a single fluid moving
through a domain with a number of immobile constituents, including several different
solids and trapped fluids. Such is the case in many porous media.
The physics interface can also describe heat transferred with a moving fluid, which can
be a surface flow or one confined to interstices in a porous medium. Analyses can cover
thermal pollution migrating in a stream, transfer of hot oil into and up a well, steam
injection, and diurnal heating in variably saturated soil.
This physics interface easily combines with others for an unlimited number of
interesting analyses. Consider, for example, that it is straightforward to include the
impacts of temperature change on hydraulic conductivity, biodegradation and
chemical reaction rates, electric and magnetic potential fields, and rock strength.
Likewise, you can feed back results of other physics, including reactions that consume
heat, to a heat transfer model.
Phase Change
When modeling heat transfer in solids, fluids, and porous media, the properties of a
phase changing material are specified according to the apparent heat capacity
formulation. This formulation gets its name from the fact that the latent heat is
included as an additional term in the heat capacity.
With phase transitions in porous media, there is often a remaining phase that does not
participate in the phase transition. For example, water in the soil, which does not freeze
even at values far lower than 0 degrees, or water in food, which does not evaporate
completely during cooking. To consider such residual phases Immobile Fluids or
Immobile Solids can be used.
A variety of modeling techniques are discussed in the following sections of the Heat
Transfer Module User’s Guide:
In this chapter:
263
Theory for the Poroelasticity
Interface
The Poroelasticity Interface theory is described in this section:
Of the two constitutive relations governing poroelastic behavior, one relates the stress,
strain, and pore pressure:
σ = Cε – α B p f I (7-1)
Here, σ is the Cauchy stress tensor, ε is the strain tensor, αB is the Biot-Willis
coefficient, and pf is the fluid pore pressure. The elasticity matrix C must in this
formulation be measured under “drained” conditions, by measuring the strain induced
by a change in stress under constant pore pressure.
By splitting the above relation in a volumetric and a deviatoric part, it can be seen that
the deviatoric part (shear stress) is independent of the pore pressure coupling. For an
isotropic linear elastic material this means
dev ( σ ) = 2G d dev ( ε )
p m = – K d ε vol + α B p f
is the mean pressure (positive in compression) calculated from the stress tensor σ. The
trace of the strain tensor, the volumetric strain εvol, is a measurement of the porous
matrix dilation or contraction.
Note that the Poroelasticity multiphysics coupling adds the load from the
pore pressure, αB pf, to the Solid Mechanics interface. In this setting, the
stress tensor components and mean pressure are effective stress measures.
The mean pressure is available from the Solid Mechanics interface in the
variable solid.pm and the volumetric strain in the variable solid.evol.
The fluid pore pressure is available from the Darcy’s Law interface in the
dependent variable p.
In Biot’s theory (Ref. 1), the other constitutive relation relates the increment in fluid
content ζ to volumetric strain and incremental pore pressure. The fluid pore pressure
is proportional to the dilation of the porous matrix and the variation of fluid content:
p f = M ( ζ – α B ε vol ) (7-2)
Biot and Willis (Ref. 1) measured the coefficients αB and M with the unjacketed
compressibility test and derived expressions for these coefficients in terms of solid and
fluid bulk moduli (or compressibilities).
The variable M, sometimes called the Biot modulus, is the inverse of the storage
coefficient S in Darcy’s Law. It is defined through Equation 7-2 as the change in fluid
content due to pore pressure changes under constant volumetric strain:
S = ----- = ∂ζ
1
M ∂ pf ε ii
Using this definition, it is possible to measure the storage coefficient S directly in the
lab, but at least in the case of an ideal porous material it can be calculated from basic
material properties as
εp αB – εp
S = ------ + ------------------ (7-3)
Kf Ks
The parameter αB is the Biot-Willis coefficient, which relates the volume of fluid
expelled (or sucked into) a porous material element due to the volumetric change of
the same element.
∂p m Kd
αB = = 1 – -------
∂ pf ε ii
Ks
The drained bulk modulus Kd is always smaller than the solid bulk modulus Ks (a solid
block is stiffer than a porous block made of the same material), and therefore the
Biot-Willis coefficient is always bounded to ε p ≤ α B ≤ 1 .
The parameter αB does not depend on the properties of the fluid, but on the properties
of the porous matrix. A soft porous matrix has a Biot-Willis coefficient close to 1 (since
K d <<K s ), while for a stiff matrix, it is proportional to the solid volume,
K d ≈ ( 1 – ε p )K s .
Using the expression for the parameter αB, the storage coefficient S in Equation 7-3
is calculated in terms of the porosity εp, Biot-Willis coefficient αB, and the bulk moduli
of the fluid Kf and drained porous matrix Kd
εp 1 – αB
S = ------ + ( α B – ε p ) ---------------- (7-4)
Kf Kd
sFor a soft porous matrix, α B ≈ 1 , and S ≈ ε p ⁄ K f ; and for a stiff porous matrix
α B ≈ ε p , and S ≈ ε p ⁄ K f are the lower bounds for the storage S. The maximum value
2
for the storage is attained when α B = ( 1 + ε p ) ⁄ 2 , so S = ε p ⁄ K f + ( 1 – ε p ) ⁄ 4 K d .
∂ ρ
( ε ) + ∇ ⋅ ( ρf u ) = Qm (7-5)
∂t f p
κ
u = – --- ( ∇p f + ρ f g ∇D )
μ
∂ ρ ∂p f
( ε ) = ρf S
∂t f p ∂t
∂p f ∂
ρf S + ∇ ⋅ ( ρ f u ) = – ρ f α B ----- ε vol (7-6)
∂t ∂t
here, ∂εvol/∂t is the rate of change in volumetric strain of the porous matrix, ρf is the
fluid density, and αB is the Biot-Willis coefficient. The poroelastic storage term S is
calculated from Equation 7-4.
You can interpret the right-hand term as the rate of expansion of the pore space. As
∂εvol/∂t increases, the volume fraction available for the fluid also increases and thereby
gives rise to liquid sink, therefore the negative sign in the source term
Qm = −ρfαB∂εvol/∂t.
Solids Deformation
Navier’s equations for a solid in equilibrium under a purely gravitational load is
– ∇ ⋅ σ = ρ av g = ( ρ f ε p + ρ d )g (7-7)
where σ is the stress tensor, εp is the porosity, and ρav, ρf, and ρd represent average,
fluid, and drained densities. The fluid-to-structure coupling enters as an additional
volumetric term in the stress tensor as described in Equation 7-1, which, in analogy
with general External Stress, can be identified as an external pore pressure.
Equation 7-7, which describes an equilibrium state (inertial effects are neglected), also
applies to the case of a time-dependent flow model. This is a valid assumption because
the time scale of the structural response is generally many orders of magnitude faster
than the time scale of the flow. When you study the coupled process on the time scale
of the flow, you can therefore assume that the solid reaches a new equilibrium
immediately in response to a change in the flow conditions. This means that the
See The Solid Mechanics Interface in the COMSOL Multiphysics Reference Manual
for details about this physics interface and feature node settings.
The Darcy’s Law 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.
However, if physics interfaces are added one at a time, followed by the coupling
features, these modified settings are not automatically included.
For example, if single Solid Mechanics and Darcy’s Law interfaces are added, an empty
Multiphysics node appears in the model tree. You can choose from the available
coupling features but the settings in the constituent interfaces are nor modified.
Coupling features are available from the context menu (right-click the
Multiphysics node) or from the Physics toolbar, Multiphysics menu.
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 poro1.
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 poroelasticity coupling,
or select All domains as needed.
Only domains that are active in the physics interfaces selected in the Coupled
Interfaces section can be selected.
For the Biot-Willis coefficient list, the default is to take its value From material. Choose
User defined to enter a Biot-Willis coefficient αB (dimensionless) in the text field.
COUPLED INTERFACES
This section defines the physics involved in the multiphysics coupling. The Solid
mechanics and Flow in porous media 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 Poroelasticity node from a
physics interface. If the physics interface is removed from the Model Builder, for
example Darcy’s Law is deleted, then the Flow in porous media list defaults to None as
there is nothing to couple to.
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 physics
interface again from the Solid mechanics or Flow in porous media lists. This
is applicable to all multiphysics coupling nodes that would normally
default to the once present interface. See Multiphysics Modeling
Workflow in the COMSOL Multiphysics Reference Manual.
∂
( ε ρ s ) + ∇ ⋅ ( ρi ui ) = Qi (7-8)
∂t p i i
where εp (dimensionless) is the porosity, and the vector ui should be interpreted as the
volumetric flux of phase i (SI unit m3/(m2·s) or m/s). The volumetric fluxes are
determined using the extended Darcy’s law (Ref. 2)
κ ri
u i = – ------- κ ( ∇p i – ρ i g ) (7-9)
μi
where κ denotes the permeability (SI unit: m2) of the porous medium, g the
gravitational acceleration vector (SI unit m/s2), and μi the dynamic viscosity (SI unit:
kg/(m·s)), pi the pressure field (SI unit: Pa), and κri the relative permeability
(dimensionless) of phase i, respectively. The phase pressures pi are related through the
capillary pressure functions p cij :
si = 1 (7-11)
i=1
Pressure-Saturation Formulation
The algebraic relations in Equation 7-10 and Equation 7-11 allow for a reduction of
the number of dependent variables. An often used way is to eliminate N − 1 phase
pressures and one of the saturations. This results in a so-called pressure-saturation
N
s i c = 1 – s i (7-12)
i = 1, i ≠ i c
p i = p ic + p c ( s 1, …, s N ) for i ≠ i c (7-13)
ij
The equations for the volume fractions si, (i ≠ ic) are given by Equation 7-8 and
Equation 7-9. To arrive at an equation for pi, the conservation equations of all phases
are summed. This results in
N
N
∂
εp ρi si + ∇ ⋅
ρ i u i = Q tot
(7-14)
∂t
i=1 i = 1
Q tot = Qi (7-15)
i=1
The equations for the volume fractions si are solved in the Phase Transport in Porous
Media interface (see Equation 4-45 and Equation 4-46). The Equation 7-14 for the
pressure field p ic , needed as an input to the Phase Transport in Porous Media interface,
is solved for in the Darcy’s Law interface: the Multiphase Flow in Porous Media
multiphysics coupling interface replaces the equation
∂ 1
( ε ρ ) + ∇ ⋅ ( ρ ic u d ) = Q m where u d = – ------ κ ( ∇p i c – ρ ic g ) (7-16)
∂ t p ic μic
which is originally implemented in the Darcy’s Law interface, with Equation 7-14 by
adding the following terms to the left-hand side of Equation 7-16:
N
N
∂
εp ρ i s i – ε p ρ tot + ∇ ⋅
ρ i u i – ( ρ tot u d )
(7-17)
∂t
i=1 i = 1
Note that when the hydraulic conductivity of a domain is specified in the Darcy’s Law
interface (instead of the permeability), the coupled Phase and Porous Media Transport
Properties feature is supplied with a permeability that is computed using a reference
kinematic viscosity of 1.004*10-6 m2s-1 (kinematic viscosity of water at 293.15 K).
In the other direction, the multiphysics coupling node provides the averaged density
(denoted by ρtot in Equation 7-17 above) and effective viscosity to the Darcy’s Law
interface.
Mass Source
When adding a Mass Source node in the coupled Phase Transport interface, it is by
default assumed that the net mass source of all phases, Qtot, equals zero. This implies
Qic = – Qi (7-18)
i = 1, i ≠ i c
However, when mass is transfered from or to phases not accounted for in the phase
transport interface, for instance when mass is released or absorbed by the solid part of
the porous matrix, select the Mass transfer to other phases check box. In this case the
mass source for the phase calculated from the volume constraint should also be
specified, and the net total mass source Qtot is supplied as a right-hand side to the
Darcy Equation 7-14 for p ic .
Boundary Conditions
When supplying boundary conditions for the coupled Phase Transport in Porous Media
and Darcy’s Law interfaces, bear in mind that the Pressure boundary condition in the
Darcy’s Law interface affects the pressure of the phase from the volume constraint, p i c .
If the pressure of another phase needs to supplied, take into account the capillary
pressure.
If the mass flux of the phase computed from the volume constraint needs to be
prescribed at a boundary, and the total mass flux is not known a priori, it might be
necessary to compute for the total mass flux in the form of a Lagrange multiplier by
using the weak constraint formulation for the pressure boundary condition in the
Darcy’s Law interface.
References
1. J. Bear, Dynamics of Fluids in Porous Media, Elsevier Scientific Publishing, 1972.
When a predefined Multiphase Flow in Porous Media interface is added from Porous
Media and Subsurface Flow branch ( ) of the Model Wizard or Add Physics window,
Phase Transport and Darcy’s Law interfaces are added to the Model Builder. In addition,
the Multiphysics node is added, which automatically includes the Multiphase Flow in
Porous Media multiphysics coupling.
The Darcy’s Law 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.
However, if physics interfaces are added one at a time, followed by the coupling
features, these modified settings are not automatically included.
For example, if single Phase Transport and Darcy’s Law interfaces are added, an empty
Multiphysics node appears in the model tree. You can choose from the available
coupling features but the settings in the constituent interfaces are not modified.
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 mfpm1.
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 Multiphase Flow in Porous Media is added as an effect of adding a Multiphase Flow
in Porous Media interface, the selection is the same as for the participating physics
interfaces.
Only domains 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 Phase
transport and Flow in porous media 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.
It combines the Brinkman Equations, and Transport of Diluted Species in Porous Media
interfaces. The Reacting Flow, Diluted Species multiphysics coupling feature, which is
added automatically, couples the fluid flow and mass transport.
The interface can be used for stationary and time-dependent analysis in 2D, 2Daxi and
3D.
Detailed information are available in Section The Reacting Flow in Porous Media
Multiphysics Interface of the Chemical Reaction Engineering User’s Guide.
B Bernoulli’s equation 91
Biot-Willis coefficient 264, 271
boundary nodes
Brinkman equations 173
Darcy’s law interface 104
fracture flow 164
free and porous media flow 181
tpdl interface 138
transport of diluted species 194
boundary stress (node) 52
Brinkman equations 168
Brinkman equations interface 171
theory 168
Brooks and Corey retention model 126
C CFL number
settings 41, 173
common settings 18
| 281
concentration (node)
transport of diluted species 201
constitutive relations, poroelasticity 264
continuity (node) 158
convection 246
convective terms, diluted species 238
creeping flow (spf) interface 36
E edge nodes
Darcy’s law interface 104
electrode-electrolyte interface coupling (node)
free and porous media flow 113
transport of diluted species 211
elevation 112
emailing COMSOL 22
Equilibrium Reaction
theory for 236
equilibrium reaction (node) 208
282 | CHAPTER :
fracture flow theory 160
porous media and subsurface flow 129, 163
Richards’ equation theory 124
fluid properties (node)
free and porous media flow 182
single-phase, laminar flow 42
fluids and matrix properties (node) 139
flux (node) 230
transport of diluted species 202, 230
flux discontinuity (node) 203
Darcy’s law 117
transport of diluted species 203
fracture flow (node) 123
fracture flow interface 163
theory 160
free and porous matrix properties (node) 183
free and porous media flow interface 180
theory 179
Freundlich exponent 251
fully developed flow 48
| 283
intrinsic volume averages 168
284 | CHAPTER :
transport of diluted species 207
outflow (node)
transport of diluted species 201
outlet (node) 49
tpdl interface 142
P pair nodes
Brinkman equations 173
Darcy’s law interface 104
free and porous media flow 181
transport of diluted species 194
partially saturated porous media (node) 215
periodic condition (node)
transport of diluted species 205
periodic flow condition (node) 53
permeability models 108
pervious layer (node) 121
physics interfaces, common settings 18
point mass source (node)
fluid flow 55
species transport 206
point nodes
Brinkman equations 173
Darcy’s law interface 104
free and porous media flow 181
point source
species transport 239
poroelastic storage (node)
Darcy’s law 111
poroelasticity interface
theory 264
poroelasticity multiphysics interface 269
porosity in fracture 166
porous electrode coupling (node) 210
free and porous media flow 112
porous media and subsurface flow
Brinkman equations interface 171
Darcy’s law interface 102
fracture flow interface 163
| 285
free and porous media flow interface 180
Richards’ equation interface 129
theory, Brinkman equations 168
theory, free and porous media flow 179
porous media and subsurface flow theory 160
porous media transport properties (node) 211
porous media, variably saturated 124
pressure (node) 113, 116, 118
pressure and saturation (node) 141
pressure head (node) 120
pressure point constraint (node) 54
pseudo time stepping
settings 41, 173
286 | CHAPTER :
storage models 132
stratified porous media 250
superficial volume average, porous media 168
superficial volume averages, porous media 246
Supporting Electrolytes 242
surface equilibrium reaction (node) 209
symmetry (node) 50
Darcy’s law 116
transport of diluted species 203
| 287
volume fractions 132
W wall (node)
free and porous media flow 184
single-phase flow 45
websites, COMSOL 22
288 | CHAPTER :