
- •Why CFD is Important for Modeling
- •How the CFD Module Helps Improve Your Modeling
- •Model Builder Options for Physics Feature Node Settings Windows
- •Where Do I Access the Documentation and Model Library?
- •Typographical Conventions
- •Quick Start Guide
- •Modeling Strategy
- •Geometrical Complexities
- •Material Properties
- •Defining the Physics
- •Meshing
- •The Choice of Solver and Solver Settings
- •Coupling to Other Physics Interfaces
- •Adding a Chemical Species Transport Interface
- •Equation
- •Discretization
- •Transport Feature
- •Migration in Electric Field
- •Reactions
- •Reactions
- •Initial Values
- •Initial Values
- •Boundary Conditions for the Transport of Concentrated Species Interface
- •Mass Fraction
- •Mass Fraction
- •Flux
- •Inflow
- •Inflow
- •No Flux
- •Outflow
- •Flux Discontinuity
- •Flux Discontinuity
- •Symmetry
- •Open Boundary
- •Physical Model
- •Transport Properties
- •Model Inputs
- •Fluid Properties
- •Diffusion
- •Migration in Electric Field
- •Diffusion
- •Model Inputs
- •Density
- •Diffusion
- •Porous Matrix Properties
- •Porous Matrix Properties
- •Initial Values
- •Initial Values
- •Domain Features for the Reacting Flow, Concentrated Species Interface
- •Boundary Conditions for the Reacting Flow, Concentrated Species Interface
- •Reacting Boundary
- •Inward Flux
- •Physical Model
- •Transport Properties
- •Fluid Properties
- •Migration in Electric Field
- •Porous Matrix Properties
- •Initial Values
- •Domain Features for the Reacting Flow, Diluted Species Interface
- •Boundary Conditions for the Reacting Flow, Diluted Species Interface
- •Pair and Point Conditions for the Reacting Flow, Diluted Species Interface
- •Multicomponent Mass Transport
- •Multicomponent Diffusion: Mixture-Average Approximation
- •Multispecies Diffusion: Fick’s Law Approximation
- •Multicomponent Thermal Diffusion
- •References for the Transport of Concentrated Species Interface
- •Domain Equations
- •Combined Boundary Conditions
- •Effective Mass Transport Parameters in Porous Media
- •Selecting the Right Interface
- •The Single-Phase Flow Interface Options
- •Laminar Flow
- •Coupling to Other Physics Interfaces
- •The Laminar Flow Interface
- •Discretization
- •The Creeping Flow Interface
- •Discretization
- •Fluid Properties
- •Fluid Properties
- •Mixing Length Limit
- •Volume Force
- •Volume Force
- •Initial Values
- •Initial Values
- •The Turbulent Flow, Spalart-Allmaras Interface
- •The Rotating Machinery, Laminar Flow Interface
- •Rotating Domain
- •Rotating Domain
- •Initial Values
- •Initial Values
- •Rotating Wall
- •Wall
- •Boundary Condition
- •Interior Wall
- •Boundary Condition
- •Inlet
- •Boundary Condition
- •Velocity
- •Pressure, No Viscous Stress
- •Normal Stress
- •Outlet
- •Boundary Condition
- •Pressure
- •Laminar Outflow
- •No Viscous Stress
- •Vacuum Pump
- •Symmetry
- •Open Boundary
- •Boundary Stress
- •Boundary Condition
- •Periodic Flow Condition
- •Flow Continuity
- •Pressure Point Constraint
- •Non-Newtonian Flow—The Power Law and the Carreau Model
- •Theory for the Pressure, No Viscous Stress Boundary Condition
- •Theory for the Laminar Inflow Condition
- •Theory for the Laminar Outflow Condition
- •Theory for the Slip Velocity Wall Boundary Condition
- •Theory for the Vacuum Pump Outlet Condition
- •Theory for the No Viscous Stress Condition
- •Theory for the Mass Flow Inlet Condition
- •Turbulence Modeling
- •Eddy Viscosity
- •Wall Functions
- •Initial Values
- •Wall Distance
- •Inlet Values for the Turbulence Length Scale and Intensity
- •Initial Values
- •The Spalart-Allmaras Turbulence Model
- •Inlet Values for the Turbulence Length Scale and Intensity
- •Pseudo Time Stepping for Turbulent Flow Models
- •References for the Single-Phase Flow, Turbulent Flow Interfaces
- •Selecting the Right Interface
- •Coupling to Other Physics Interfaces
- •Discretization
- •Fluid-Film Properties
- •Initial Values
- •Initial Values
- •Inlet
- •Outlet
- •Wall
- •Symmetry
- •Discretization
- •Initial Values
- •Initial Values
- •Fluid-Film Properties
- •Border
- •Inlet
- •Outlet
- •Conditions for Film Damping
- •The Reynolds Equation
- •Structural Loads
- •Gas Outflow Conditions
- •Rarefaction and Slip Effects
- •Geometry Orientations
- •References for the Thin-Film Flow Interfaces
- •Selecting the Right Interface
- •The Multiphase Flow Interface Options
- •The Relationship Between the Interfaces
- •Bubbly Flow
- •Coupling to Other Physics Interfaces
- •The Laminar Two-Phase Flow, Level Set Interface
- •Discretization
- •The Laminar Two-Phase Flow, Phase Field Interface
- •Domain Level Settings for the Level Set and Phase Field Interfaces
- •Fluid Properties
- •Mixing Length Limit
- •Initial Values
- •Initial Values
- •Volume Force
- •Volume Force
- •Gravity
- •Boundary Conditions for the Level Set and Phase Field Interfaces
- •Wall
- •Boundary Condition
- •Initial Interface
- •The Turbulent Flow, Two-Phase Flow, Level Set Interface
- •The Turbulent Two-Phase Flow, Phase Field Interface
- •Wall Distance Interface and the Distance Equation
- •Level Set and Phase Field Equations
- •Conservative and Non-Conservative Formulations
- •Phase Initialization
- •Numerical Stabilization
- •References for the Level Set and Phase Field Interfaces
- •Stabilization
- •Discretization
- •Level Set Model
- •Initial Values
- •Initial Values
- •Boundary Conditions for the Level Set Function
- •Inlet
- •Initial Interface
- •No Flow
- •Outlet
- •Symmetry
- •Discretization
- •Initial Values
- •Initial Values
- •Phase Field Model
- •Boundary Conditions for the Phase Field Function
- •Initial Interface
- •Inlet
- •Wetted Wall
- •Wetted Wall
- •Outlet
- •The Level Set Method
- •Conservative and Non-Conservative Form
- •Initializing the Level Set Function
- •Variables For Geometric Properties of the Interface
- •Reference for the Level Set Interface
- •About the Phase Field Method
- •The Equations for the Phase Field Method
- •Conservative and Non-Conservative Forms
- •Additional Sources of Free Energy
- •Variables and Expressions
- •Reference For the Phase Field Interface
- •The Laminar Bubbly Flow Interface
- •Reference Pressure
- •Discretization
- •The Turbulent Bubbly Flow Interface
- •Reference Pressure
- •Discretization
- •Fluid Properties
- •Slip Model
- •Initial Values
- •Initial Values
- •Volume Force
- •Volume Force
- •Gravity
- •Gravity
- •Mass Transfer
- •Mass Transfer
- •Boundary Conditions for the Bubbly Flow Interfaces
- •Wall
- •Liquid Boundary Condition
- •Gas Boundary Condition
- •Inlet
- •Liquid Boundary Condition
- •Gas Boundary Condition
- •Outlet
- •Liquid Boundary Condition
- •Gas Boundary Condition
- •Symmetry
- •Gas Boundary Conditions Equations
- •The Mixture Model, Laminar Flow Interface
- •Stabilization
- •Discretization
- •The Mixture Model, Turbulent Flow Interface
- •Stabilization
- •Mixture Properties
- •Mass Transfer
- •Mass Transfer
- •Initial Values
- •Initial Values
- •Volume Force
- •Volume Force
- •Gravity
- •Gravity
- •Boundary Conditions for the Mixture Model Interfaces
- •Wall
- •Mixture Boundary Condition
- •Dispersed Phase Boundary Condition
- •Inlet
- •Mixture Boundary Condition
- •Dispersed Phase Boundary Condition
- •Outlet
- •Mixture Boundary Condition
- •Symmetry
- •The Bubbly Flow Equations
- •Turbulence Modeling in Bubbly Flow Applications
- •References for the Bubbly Flow Interfaces
- •The Mixture Model Equations
- •Dispersed Phase Boundary Conditions Equations
- •Turbulence Modeling in Mixture Models
- •Slip Velocity Models
- •References for the Mixture Model Interfaces
- •Dispersed Phase
- •Discretization
- •Domain Conditions for the Euler-Euler Model, Laminar Flow Interface
- •Phase Properties
- •Solid Viscosity Model
- •Drag Model
- •Solid Pressure Model
- •Initial Values
- •Boundary, Point, and Pair Conditions for the Euler-Euler Model, Laminar Flow Interface
- •Wall
- •Dispersed Phase Boundary Condition
- •Inlet
- •Two-Phase Inlet Type
- •Continuous Phase
- •Dispersed Phase
- •Outlet
- •Mixture Boundary Condition
- •The Euler-Euler Model Equations
- •References for the Euler-Euler Model, Laminar Flow Interface
- •Selecting the Right Interface
- •The Porous Media Flow Interface Options
- •Coupling to Other Physics Interfaces
- •Discretization
- •Fluid and Matrix Properties
- •Mass Source
- •Mass Source
- •Initial Values
- •Initial Values
- •Boundary Conditions for the Darcy’s Law Interface
- •Pressure
- •Pressure
- •Mass Flux
- •Mass Flux
- •Inflow Boundary
- •Inflow Boundary
- •Symmetry
- •No Flow
- •Discretization
- •Fluid and Matrix Properties
- •Volume Force
- •Volume Force
- •Forchheimer Drag
- •Forchheimer Drag
- •Initial Values
- •Initial Values
- •Mass Source
- •Boundary Conditions for the Brinkman Equations Interface
- •Discretization
- •Fluid Properties
- •Porous Matrix Properties
- •Porous Matrix Properties
- •Forchheimer Drag
- •Forchheimer Drag
- •Volume Force
- •Volume Force
- •Initial Values
- •Initial Values
- •Boundary Conditions for the Free and Porous Media Flow Interface
- •Microfluidic Wall Conditions
- •Boundary Condition
- •Discretization
- •Domain, Boundary, and Pair Conditions for the Two-Phase Darcy’s Law Interface
- •Fluid and Matrix Properties
- •Initial Values
- •Initial Values
- •No Flux
- •Pressure and Saturation
- •Pressure and Saturation
- •Mass Flux
- •Inflow Boundary
- •Inflow Boundary
- •Outflow
- •Pressure
- •Darcy’s Law—Equation Formulation
- •About the Brinkman Equations
- •Brinkman Equations Theory
- •References for the Brinkman Equations Interface
- •Reference for the Free and Porous Media Flow Interface
- •Darcy’s Law—Equation Formulation
- •The High Mach Number Flow, Laminar Flow Interface
- •Surface-to-Surface Radiation
- •Discretization
- •Initial Values
- •Initial Values
- •Shared Interface Features
- •Fluid
- •Dynamic Viscosity
- •Inlet
- •Outlet
- •Consistent Inlet and Outlet Conditions
- •Pseudo Time Stepping for High Mach Number Flow Models
- •References for the High Mach Number Flow Interfaces
- •Selecting the Right Interface
- •The Non-Isothermal Flow Interface Options
- •Coupling to Other Physics Interfaces
- •The Non-Isothermal Flow, Laminar Flow Interface
- •Discretization
- •The Conjugate Heat Transfer, Laminar Flow Interface
- •The Turbulent Flow, Spalart-Allmaras Interface
- •Fluid
- •Dynamic Viscosity
- •Wall
- •Boundary Condition
- •Initial Values
- •Pressure Work
- •Viscous Heating
- •Dynamic Viscosity
- •Turbulent Non-Isothermal Flow Theory
- •References for the Non-Isothermal Flow and Conjugate Heat Transfer Interfaces
- •Selecting the Right Interface
- •The Heat Transfer Interface Options
- •Conjugate Heat Transfer, Laminar Flow
- •Conjugate Heat Transfer, Turbulent Flow
- •Coupling to Other Physics Interfaces
- •Accessing the Heat Transfer Interfaces via the Model Wizard
- •Discretization
- •Heat Transfer in Solids
- •Translational Motion
- •Translational Motion
- •Pressure Work
- •Heat Transfer in Fluids
- •Viscous Heating
- •Dynamic Viscosity
- •Heat Source
- •Heat Source
- •Initial Values
- •Initial Values
- •Boundary Conditions for the Heat Transfer Interfaces
- •Temperature
- •Temperature
- •Thermal Insulation
- •Outflow
- •Symmetry
- •Heat Flux
- •Heat Flux
- •Inflow Heat Flux
- •Inflow Heat Flux
- •Open Boundary
- •Periodic Heat Condition
- •Surface-to-Ambient Radiation
- •Boundary Heat Source
- •Boundary Heat Source
- •Heat Continuity
- •Pair Thin Thermally Resistive Layer
- •Pair Thin Thermally Resistive Layer
- •Thin Thermally Resistive Layer
- •Thin Thermally Resistive Layer
- •Line Heat Source
- •Line Heat Source
- •Point Heat Source
- •Convective Cooling
- •Out-of-Plane Convective Cooling
- •Upside Heat Flux
- •Out-of-Plane Radiation
- •Upside Parameters
- •Out-of-Plane Heat Flux
- •Domain Selection
- •Upside Inward Heat Flux
- •Change Thickness
- •Change Thickness
- •Porous Matrix
- •Heat Transfer in Fluids
- •Thermal Dispersion
- •Dispersivities
- •Heat Source
- •Equation Formulation
- •Activating Out-of-Plane Heat Transfer and Thickness

The Reacting Flow, Diluted Species Interface e () merges the functionality of the Transport of Diluted Species and the Free and Porous Media Flow physics interfaces into a multiphysics interface. In this way coupled mass and momentum transport in free and porous media can be modeled from a single physics interface, with the model coupling for the velocity field set up automatically. In addition, the effective transport coefficients in a porous matrix domain can be derived based on the corresponding values in for a non-porous domain.
These topics are briefly discussed in this section:
•Coupling to Other Physics Interfaces
•Adding a Chemical Species Transport Interface
Coupling to Other Physics Interfaces
When you are simulating applications that can be described by the material transport physics interfaces in the Chemical Species Transport branch, there is often a need to couple the material transport to other physics. Convection is often the cause of the material transport, so couplings to fluid-flow interfaces are required. The CFD Module includes physics interfaces for laminar flow and porous media flow as well as more advanced descriptions of fluid flow, such as turbulent and multiphase flow.
Moreover, most chemical reactions or other type of material processing, such as casting, either require or produce heat, which in turn affects both the reaction and other physical processes connected to the system. The CFD Module includes physics interfaces for heat transfer through conduction and convection as well as through porous media. More extensive description of heat transfer, such as surface-to-surface radiation, can be found in the Heat Transfer Module.
Finally, COMSOL Multiphysics supports simulations of electrostatics or DC-based physical phenomena, even if conductivity is nonlinear. If the electric field is AC/DC in nature, or if your system is affected by electromagnetic waves, then the AC/DC Module and RF Module include appropriate physics interfaces for such phenomena. Furthermore, some applications of electrochemical reactions, particularly in electrochemical power source applications, are better handled by the Batteries & Fuel Cells Module.
T H E M E C H A N I S M S F O R C H E M I C A L S P E C I E S T R A N S P O R T | 45

Adding a Chemical Species Transport Interface
A chemical species transport interface can be added when first creating a new model, or at any time during the modeling process.
1For a new model, select physics interfaces as the second step in the New Model window (after specifying the space dimension).
In an active model, right-click the Physics node in the Model Tree and select Add Physics ().
2Expand the Chemical Species Transport node in the list of physics interfaces and select one of the available chemical species transport interfaces.
3Click the Add Selected button (). The physics interface displays under Added to model.
4Under Dependent variables, specify the number of species (concentrations or mass fractions) and their names.
5Continue by adding more interfaces and specifying the number of species (concentrations or mass fractions) that are to be simulated in a mass transport physics interface when adding that interface. Under Dependent variables, enter the
Number of species. To add a single species, click the Add Concentration button () underneath the table or enter a value into the Number of species field. Click the Remove Concentration button (
) underneath the table if required.
The Transport of Concentrated Species interface needs to contain at least two species (the default). Also edit the strings or names directly in the table. The names must be unique for all species (and all other dependent variables) in the model.
6Click the Next button () and chose a Study type.
7In the upper-right corner of the Select Study Type page, click the Finish button ().
46 | C H A P T E R 3 : C H E M I C A L S P E C I E S T R A N S P O R T B R A N C H
T h e T r a n s p o r t o f |
C o n c e n t r a t e d |
S p e c i e s I n t e r f a c e |
|
The Transport of Concentrated Species interface (), found under the Chemical Species Transport branch (
) in the Model Wizard, has the equations, boundary conditions, and reaction terms for modeling chemical species transport in mixtures by solving for the mass fractions. It supports the simulation of transport by convection, diffusion, and migration in 1D, 2D, and 3D as well as for axisymmetric models in 1D and 2D. The interface defines the equations for the species mass fractions, including a diffusion model (Mixture-averaged or Fick’s law).
Some examples of what can be studied with this interface include:
•The evolution of chemical species transported by convection and diffusion.
•The migration in an electric field in the case of ionic species, in mixtures and solutions that cannot be deemed as being diluted.
•Concentrated solutions or gas mixtures, where the concentration of all participating species are of the same order of magnitude, and therefore their molecular and ionic interaction with each other must be considered. This implies that the diffusive transport of a single species is dependent on the mixture composition, and possibly on the temperature, the electric potential, the pressure, or any combination.
The default transport mechanism is the Convection and Diffusion node, which is dynamic and is derived from which transport mechanism is activated.
When this interface is added, these default nodes are also added to the Model Builder— Convection and Diffusion (which applies a Mixture-average diffusion model), No Flux, and
Initial Values. Right-click the main node to add other features that implement, for example, boundary conditions and reactions.
I N T E R F A C E I D E N T I F I E R
The interface identifier is a text string that can be used to reference the respective physics interface if appropriate. Such situations could occur when coupling this interface to another physics interface, or when trying to identify and use variables defined by this physics interface, which is used to reach the fields and variables in expressions, for example. It can be changed to any unique string in the Identifier field.
The default identifier (for the first interface in the model) is chcs.
T H E T R A N S P O R T O F C O N C E N T R A T E D S P E C I E S I N T E R F A C E | 47

D O M A I N S E L E C T I O N
The default setting is to include All domains in the model to define the species equations. To choose specific domains, select Manual from the Selection list.
E Q U A T I O N
The base equation for an individual species i is given in the Equations section and is:
|
|
+ Ri |
t i |
+ iu = – ji |
The displayed formulation changes depending on the active transport mechanisms and the selected diffusion model.
T R A N S P O R T M E C H A N I S M S
In this section, choose a diffusion model and additional active transport mechanisms. The interface includes the following transport mechanisms:
•Diffusion is always active. Select from different diffusion models available from the
Diffusion model list.
•Convection is active by default. To activate or deactivate convection, select or clear the Convection check box. The second term on the left-hand side of Equation 3-2 represent mass transport by convection.
•Migration of ionic species is not active by default. To activate or deactivate migration, select or clear the Migration in electric field check box. The migration term is part of the relative mass flux vector.
Select a Diffusion model—Mixture-averaged (the default) or Fick’s law.
The Mixture-averaged model is less computational expensive but also requires the Maxwell-Stefan diffusivities. The Fick’s law model is a general model to be used when the diffusion is known to be Fickian, or when molecular diffusion is not the dominating transport mechanism and a robust but low order model is wanted.
Mixture-Averaged Diffusion Model
When using the Mixture-averaged diffusion model the relative mass flux vector is
j |
|
|
D |
m |
|
|
+ |
D |
m M |
+ D |
T T |
+ |
z |
u |
|
|
||
i |
= – |
i |
i |
i |
--------- |
i |
------- |
m i |
F V |
|||||||||
|
|
|
|
i |
|
M |
|
T |
i |
i |
|
|
where the last term on the right-hand side is the migratory flux, which is added by selecting the Migration in electric field check box. The mixture-averaged diffusion coefficient Dmi is computed as
48 | C H A P T E R 3 : C H E M I C A L S P E C I E S T R A N S P O R T B R A N C H

m |
|
1 – i |
Di |
= |
--------N-----------x----k--- |
|
|
k i D-------- |
|
|
ik |
where Dik (SI unit: m2/s) are the multicomponent Maxwell-Stefan diffusivities, which are supplied as an input to the model.
Fick’s Law Diffusion Model
When using the Fick’s law diffusion model the relative mass flux vector is
j |
|
|
D |
F |
|
|
+ |
D |
F M |
+ D |
T T |
+ |
z |
u |
|
|
||
i |
= – |
i |
i |
i |
--------- |
i |
------- |
m i |
F V |
|||||||||
|
|
|
|
i |
|
M |
|
T |
i |
i |
|
|
where DFi (SI unit: m2/s) is a user defined diffusion coefficient (isotropic, diagonal, or symmetric). The last term on the right hand side is the migratory flux, which are added by selecting the Migration in electric field check box.
S P E C I E S
Select the species that this interface solves using the mass constraint in Equation 3-5 (that is, its value comes from the fact that the sum of all mass fractions must equal 1). Select the preferred species in the From mass constraint list. To minimize the impact of any numerical errors, use the species with the highest concentration. By default, the software uses the first species.
D E P E N D E N T V A R I A B L E S
Add or remove species in the model and also change the names of the dependent variables that represent the species concentrations.
Specify the Number of species. There must be at least two species. To add a single species, click the Add Concentration button () under the table. To remove a species, select it in the list and click the Remove Concentration button (
) under the table. Edit the names of the species directly in the table.
The species are dependent variables, and their names must be unique with
respect to all other dependent variables in the model.
Important
T H E T R A N S P O R T O F C O N C E N T R A T E D S P E C I E S I N T E R F A C E | 49