- •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
- •Defining the Physics
- •Meshing
- •Modeling Strategy
- •Geometrical Complexities
- •Material Properties
- •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
- •Normal Stress
- •Inlet
- •Boundary Condition
- •Velocity
- •Pressure, No Viscous 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
|
1 |
0 = |
----------------------- |
|
1 + eDwi |
in domains initially inside the interface. Here, inside refers to domains where <0.5 and outside refers to domains where >0.5.
For the initialization to work it is crucial that there are two Initial Value features and one Initial Interface feature. One of the Initial Value feature should use Domain initially: Inside interface and the other Domain initially:
Outside interface. The Initial Interface feature should have all interior
Important
boundaries where the interface is initially present as selection. If the selection of the Initial interface feature is empty, the initialization fails.
Variables For Geometric Properties of the Interface
Geometric properties of the interface are often needed. The unit normal to the interface is given by
|
|
|
|
|
|
|
|
|
|
|
|||||
n = |
---------- |
|
|
|
|
(7-4) |
|
|
|
|
= 0,5 |
||||
The curvature is defined as |
|
|
|
|
|||
|
|
|
|
|
|
|
|
= – n |
|
= 0,5 |
(7-5) |
||||
|
|||||||
|
|
||||||
These variables are available in the physics interface as the interface normal and mean curvature.
It is only possible to compute the curvature explicitly when using
second-order or higher-order elements.
Note
Reference for the Level Set Interface
1. 1. E. Olsson and G. Kreiss, “A Conservative Level Set Method for Two Phase Flow,” J. Comput. Phys., vol. 210, pp. 225–246, 2005.
T H E O R Y F O R T H E L E V E L S E T I N T E R F A C E | 231
T h e o r y f o r t h e P h a s e F i e l d I n t e r f a c e
The Phase Field Interface theory is described in this section:
•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
About the Phase Field Method
The phase field method offers an attractive alternative to more established methods for solving multiphase flow problems. Instead of directly tracking the interface between two fluids, the interfacial layer is governed by a phase field variable, . The surface tension force is added to the Navier-Stokes equations as a body force by multiplying the chemical potential of the system by the gradient of the phase field variable.
The evolution of the phase field variable is governed by the Cahn-Hilliard equation, which is a 4th-order PDE. The Phase Field interface decomposes the Cahn-Hilliard equation into two second-order PDEs.
For the level set method, the fluid interface is simply convected with the flow field. The Cahn-Hilliard equation, on the other hand, does not only convect the fluid interface, but it also ensures that the total energy of the system diminishes correctly. The phase field method thus includes more physics than the level set method.
The free energy of a system of two immiscible fluids consists of mixing, bulk distortion, and anchoring energy. For simple two-phase flows, only the mixing energy is retained, which results in a rather simple expression for the free energy.
232 | C H A P T E R 7 : M A T H E M A T I C S , M O V I N G I N T E R F A C E B R A N C H
The Equations for the Phase Field Method
The free energy is a functional of a dimensionless phase field parameter, :
F T = |
1 |
|
2 |
|
|
|
2 |
|
f |
|
dV |
|
|
|
|||||||||
-- |
|
|
|
|
+ f T dV = |
|
|||||
|
2 |
|
|
|
|
|
|
|
|
tot |
|
where is a measure of the interfacial thickness. The following equation describes the evolution of the phase field parameter:
|
|
|
ftot |
|
ftot |
|
||
t + u |
= |
|
|
– |
|
|
(7-6) |
|
|
|
|
|
|
||||
where ftot is the total free energy density of the system (SI unit: J/m3), and u is the velocity field for the advection (SI unit: m/s). The right-hand side of Equation 7-6
strives to minimize the total free energy with a relaxation time controlled by the mobility (SI unit: m3·s/kg).
The free energy density of an isothermal mixture of two immiscible fluids is the sum of the mixing energy and elastic energy. The mixing energy assumes the Ginzburg-Landau form:
f |
|
= |
1 |
|
|
|
2 |
|
|
|
2 |
– 1 |
2 |
mix |
-- |
|
|
+ -------- |
|
|
|||||||
|
|
2 |
|
|
|
|
4 |
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
where is the dimensionless phase field variable, defined such that the volume fraction of the components of the fluid are (1+ )/2 and (1 )/2. The quantity is the mixing energy density (SI unit: N) and is a capillary width that scales with the thickness of the interface (SI unit: m). These two parameters are related to the surface tension coefficient, (SI unit: N/m), through the equation
= |
2 |
2 |
(7-7) |
---------- -- |
|||
|
3 |
|
|
The PDE governing the phase field variable is the Cahn-Hilliard equation:
|
+ u = G |
(7-8) |
t |
|
|
where G is the chemical potential (SI unit: Pa) and is the mobility (SI unit: m3·s/kg). The mobility determines the time scale of the Cahn-Hilliard diffusion and must be large enough to retain a constant interfacial thickness but small enough so that the convective terms are not overly damped. In COMSOL Multiphysics the mobility is
T H E O R Y F O R T H E P H A S E F I E L D I N T E R F A C E | 233
determined by a mobility tuning parameter that is a function of the interface thickness2. The chemical potential is:
G = |
|
– |
2 |
+ |
2 – 1 |
|
(7-9) |
|
------------2---------- |
|
|||||
|
|
|
|
|
|
|
The Cahn-Hilliard equation forces to take a value of 1 or 1 except in a very thin region on the fluid-fluid interface. The Phase Field interface breaks Equation 7-8 up into two second-order PDEs:
|
|
|
(7-10) |
|
t |
+ u = ----- |
|||
|
2 |
|
|
|
|
|
|
|
|
= – 2 + 2 – 1 |
(7-11) |
|||
Conservative and Non-Conservative Forms
If the velocity field is divergence free, use the conservative formulation:
+ u = -----t 2
Using the conservative phase field form the exact numerical conservation of the integral of is obtained. However, the non-conservative form is better suited for numerical calculations and usually converges more easily. The non-conservative form, which is the default form, only conserves the integral of the phase field function approximately, but this is sufficient for most applications.
Additional Sources of Free Energy
In some cases, the expression for the free energy may include other sources. It is possible to incorporate these by modifying Equation 7-11:
|
= |
– |
2 |
+ |
2 |
– 1 + |
2 f |
(7-12) |
|
|
|
---- |
|
||||||
|
|
|
|
|
|
|
|
|
|
234 | C H A P T E R 7 : M A T H E M A T I C S , M O V I N G I N T E R F A C E B R A N C H
