PDF

Micromixer
Introduction
This example studies a laminar static mixer with two parallel sets of split-reshape- recombine mixing elements. The following image shows the geometry of a single mixing element.
Figure 1: The micromixer splits the incoming fluid in the direction perpendicular to the interface separating the two fluid layers. After recombining them, the mixer stacks the two flows on top of each other, resulting in four fluid layers.
Each mixing element doubles the number of fluid layers, resulting in a fast mixing process. This technique is suited for laminar flow mixing and has small pressure losses. In this example, the mixing structure consists of two parallel sets of mixing elements, where each set is two elements long. You measure the mixing quality with the relative variance of the concentration profile, S, calculated as
where Kx is the yz-plane intersecting the mixing structure at coordinate x, and is the mean concentration.
Model Definition
Domain Equations
The fluid flow is described by the Navier–Stokes equations
where ρ denotes the density (kg/m3), u the velocity (m/s), μ denotes the viscosity (N·s/m2), and p represents the pressure (Pa). The modeled fluid is water with a viscosity of 1·103 N·s/m2 and a density of 1000 kg/m3.
The mass flux is given by diffusion and convection, and the resulting mass balance is
where D denotes the diffusion coefficient (m2/s) and c gives the concentration (mol/m3). The modeled species has a diffusion coefficient of 5 · 109 m2/s.
Boundary Conditions
At the inlet the model assumes fully developed laminar flow. It sets the velocity to a parabolic profile with a mean velocity of 0.01 m/s. At the outlet, the model sets the pressure to zero. All other boundaries have the no slip condition
The inlet concentration has a discontinuous profile where the upper half has a concentration of 27 mol/m3 and the lower half is pure water. The boundary condition is defined such that
Results
The figure below shows the final concentration profile. The concentration values in some points of the solution are slightly negative; this is due to the numerical method.
Figure 2: Following three split-reshape-recombine cycles, the outflow has eight fluid layers.
Calculating the relative variance of the concentration at the inlet and outlet, the model set up according to the instructions below reaches a mixing quality of 0.20. For perfect mixing this value would be 0, and a value of  1 means no mixing at all.
Notes About the COMSOL Implementation
The default discretization for the flow equations in the Laminar Flow interface is based on P1+P1 elements. This means that linear elements are used for both velocity and pressure. In this model, the maximum cell Reynolds number for the flow is of the order 102, which means that it is beneficial to use a P2+P1 discretization (second order for velocity and first order for pressure).
The default discretization for the concentration in the Transport of Diluted Species interface is linear. This is more robust than a higher-order discretization but requires a refinement of the mesh in order to capture the concentration gradients. This model includes mixing layers with high concentration gradients. In this case it is more computationally efficient to use quadratic elements and a coarser mesh.
Application Library path: COMSOL_Multiphysics/Fluid_Dynamics/micromixer
Modeling Instructions
From the File menu, choose New.
New
In the New window, click  Model Wizard.
Model Wizard
1
In the Model Wizard window, click  3D.
2
In the Select Physics tree, select Fluid Flow>Single-Phase Flow>Laminar Flow (spf).
3
Click Add.
4
In the Select Physics tree, select Chemical Species Transport>Transport of Diluted Species (tds).
5
Click Add.
6
Click  Study.
7
In the Select Study tree, select General Studies>Stationary.
8
Geometry 1
The model geometry is available as a parameterized geometry sequence in a separate MPH-file. If you want to create it from scratch yourself, you can follow the instructions in the Appendix — Geometry Modeling Instructions section. Otherwise, insert the geometry sequence as follows:
1
In the Model Builder window, expand the Geometry 1 node.
2
Right-click Component 1 (comp1)>Geometry 1 and choose Insert Sequence.
3
The application’s Application Library folder is shown in the Application Library path section immediately before the current section. Note that the path given there is relative to the COMSOL Application Library root, which for a standard installation on Windows is C:\\Program Files\COMSOL\COMSOL56\Multiphysics\applications.
4
In the Geometry toolbar, click  Build All.
5
Click the  Zoom Extents button in the Graphics toolbar.
Global Definitions
Parameters 1
1
In the Model Builder window, under Global Definitions click Parameters 1.
2
In the Settings window for Parameters, locate the Parameters section.
3
The normalization constant alpha applies to a quadratic inlet of the specified side length.
Definitions
Now define a smoothed step function that you will later use to impose a concentration gradient.
Step 1 (step1)
1
In the Home toolbar, click  Functions and choose Local>Step.
2
In the Settings window for Step, click to expand the Smoothing section.
3
In the Size of transition zone text field, type 1e-4.
Proceed to define global variables for the concentration variances at the outlet and inlet as well as their ratio, S_outlet, which gives a measure of the mixing quality. For this purpose, you need two nonlocal average couplings.
Average 1 (aveop1)
1
In the Definitions toolbar, click  Nonlocal Couplings and choose Average.
2
In the Settings window for Average, type aveop_inlet in the Operator name text field.
3
Locate the Source Selection section. From the Geometric entity level list, choose Boundary.
4
From the Selection list, choose Inlet.
Average 2 (aveop2)
1
In the Definitions toolbar, click  Nonlocal Couplings and choose Average.
2
In the Settings window for Average, type aveop_outlet in the Operator name text field.
3
Locate the Source Selection section. From the Geometric entity level list, choose Boundary.
4
From the Selection list, choose Outlet.
Variables 1
1
In the Definitions toolbar, click  Local Variables.
2
In the Settings window for Variables, locate the Variables section.
3
Add Material
1
In the Home toolbar, click  Add Material to open the Add Material window.
2
Go to the Add Material window.
3
In the tree, select Built-in>Water, liquid.
4
Click Add to Component in the window toolbar.
5
In the Home toolbar, click  Add Material to close the Add Material window.
Materials
Water, liquid (mat1)
By default, the first material you add applies to all domains, so you do not need to make any further material settings.
For microfluidic applications, using higher order elements is an efficient way to increase the spatial resolution.
Laminar Flow (spf)
1
In the Model Builder window, under Component 1 (comp1) click Laminar Flow (spf).
2
In the Settings window for Laminar Flow, click to expand the Discretization section.
3
From the Discretization of fluids list, choose P2+P1.
4
Click to collapse the Discretization section.
Transport of Diluted Species (tds)
1
In the Model Builder window, under Component 1 (comp1) click Transport of Diluted Species (tds).
2
In the Settings window for Transport of Diluted Species, click to expand the Discretization section.
3
From the Concentration list, choose Quadratic.
4
Click to collapse the Discretization section.
Laminar Flow (spf)
Initial Values 1
1
In the Model Builder window, under Component 1 (comp1)>Laminar Flow (spf) click Initial Values 1.
2
In the Settings window for Initial Values, locate the Initial Values section.
3
Specify the u vector as
Inlet 1
1
In the Physics toolbar, click  Boundaries and choose Inlet.
2
In the Settings window for Inlet, locate the Boundary Selection section.
3
From the Selection list, choose Inlet.
4
Locate the Velocity section. Click the Velocity field button.
5
Specify the u0 vector as
The inlet, of side a, is centered around the origin in the yz-plane; thus, the expression for ux is zero at the channel walls, as required for a fully developed laminar flow profile.
Outlet 1
1
In the Physics toolbar, click  Boundaries and choose Outlet.
2
In the Settings window for Outlet, locate the Boundary Selection section.
3
From the Selection list, choose Outlet.
4
Locate the Pressure Conditions section. Select the Normal flow check box.
Transport of Diluted Species (tds)
Initial Values 1
1
In the Model Builder window, under Component 1 (comp1)>Transport of Diluted Species (tds) click Initial Values 1.
2
In the Settings window for Initial Values, locate the Initial Values section.
3
In the c text field, type c0.
Inflow 1
1
In the Physics toolbar, click  Boundaries and choose Inflow.
2
In the Settings window for Inflow, locate the Boundary Selection section.
3
From the Selection list, choose Inlet.
4
Locate the Concentration section. In the c0,c text field, type c0*step1(-z[1/m]).
Outflow 1
1
In the Physics toolbar, click  Boundaries and choose Outflow.
2
In the Settings window for Outflow, locate the Boundary Selection section.
3
From the Selection list, choose Outlet.
Transport Properties 1
1
In the Model Builder window, click Transport Properties 1.
2
In the Settings window for Transport Properties, locate the Diffusion section.
3
In the Dc text field, type D.
Multiphysics
Reacting Flow, Diluted Species 1 (rfd1)
In the Physics toolbar, click  Multiphysics Couplings and choose Domain>Reacting Flow, Diluted Species.
Mesh 1
Modify the physics-induced meshing sequence. The fine mesh close to walls is not needed in this case, but the maximum element size must be restricted to be able to resolve concentration gradients.
Size
1
In the Model Builder window, under Component 1 (comp1) right-click Mesh 1 and choose Edit Physics-Induced Sequence.
2
In the Settings window for Size, click to expand the Element Size Parameters section.
3
In the Maximum element size text field, type 1.7e-1.
4
In the Minimum element size text field, type 7e-2.
Size 1
In the Model Builder window, right-click Size 1 and choose Disable.
Corner Refinement 1
1
In the Model Builder window, click Corner Refinement 1.
2
In the Settings window for Corner Refinement, locate the Boundary Selection section.
3
From the Selection list, choose Walls.
Boundary Layer Properties 1
1
In the Model Builder window, expand the Boundary Layers 1 node, then click Boundary Layer Properties 1.
2
In the Settings window for Boundary Layer Properties, locate the Boundary Selection section.
3
From the Selection list, choose Walls.
Study 1
Step 1: Stationary
1
In the Model Builder window, under Study 1 click Step 1: Stationary.
2
In the Settings window for Stationary, locate the Physics and Variables Selection section.
3
In the table, clear the Solve for check box for Transport of Diluted Species (tds).
Stationary 2
1
In the Study toolbar, click  Study Steps and choose Stationary>Stationary.
2
In the Settings window for Stationary, locate the Physics and Variables Selection section.
3
In the table, clear the Solve for check box for Laminar Flow (spf).
Solution 1 (sol1)
1
In the Study toolbar, click  Show Default Solver.
2
In the Settings window for Solution, click  Compute.
Results
Concentration, Streamline (tds)
1
Click the  Zoom Extents button in the Graphics toolbar.
While the first two plot groups visualize the velocity magnitude and the pressure, the third and fourth default plot groups show the concentration as streamline and surface plots.
Concentration, Surface (tds)
Compare this surface plot with that in Figure 2.
Global Evaluation 1
Finally, compute the relative concentration variance between the outlet and the inlet to get a measure of the mixing quality.
1
In the Results toolbar, click  Global Evaluation.
2
In the Settings window for Global Evaluation, click Replace Expression in the upper-right corner of the Expressions section. From the menu, choose Component 1 (comp1)>Definitions>Variables>S_outlet - Relative concentration variance, outlet.
3
Click  Evaluate.
Table
1
Go to the Table window.
The result should be close to 0.20.
Appendix — Geometry Modeling Instructions
From the File menu, choose New.
New
In the New window, click  Blank Model.
Add Component
In the Home toolbar, click  Add Component and choose 3D.
Geometry 1
1
In the Settings window for Geometry, locate the Units section.
2
From the Length unit list, choose mm.
Block 1 (blk1)
1
In the Geometry toolbar, click  Block.
2
In the Settings window for Block, locate the Size and Shape section.
3
In the Depth text field, type 1.4.
4
In the Height text field, type 1.4.
5
Locate the Position section. In the x text field, type -3.5.
6
In the y text field, type -0.7.
7
In the z text field, type -0.7.
Block 2 (blk2)
1
In the Geometry toolbar, click  Block.
2
In the Settings window for Block, locate the Size and Shape section.
3
In the Depth text field, type 1.4.
4
In the Height text field, type 1.4.
5
Locate the Position section. In the x text field, type 7.
6
In the y text field, type -0.7.
7
In the z text field, type -0.7.
8
Click  Build Selected.
9
Click the  Zoom Extents button in the Graphics toolbar.
Block 3 (blk3)
1
In the Geometry toolbar, click  Block.
2
In the Settings window for Block, locate the Size and Shape section.
3
In the Width text field, type 0.5.
4
Locate the Position section. In the x text field, type -0.5.
5
In the y text field, type -1.5.
6
In the z text field, type -0.5.
Block 4 (blk4)
1
In the Geometry toolbar, click  Block.
2
In the Settings window for Block, locate the Size and Shape section.
3
In the Width text field, type 0.5.
4
Locate the Position section. In the x text field, type 2.
5
In the y text field, type -1.5.
6
In the z text field, type -0.5.
Block 5 (blk5)
1
In the Geometry toolbar, click  Block.
2
In the Settings window for Block, locate the Size and Shape section.
3
In the Width text field, type 0.5.
4
Locate the Position section. In the x text field, type 4.5.
5
In the y text field, type -1.5.
6
In the z text field, type -0.5.
Hexahedron 1 (hex1)
1
In the Geometry toolbar, click  More Primitives and choose Hexahedron.
2
In the Settings window for Hexahedron, locate the Vertices section:
Hexahedron 2 (hex2)
1
In the Geometry toolbar, click  More Primitives and choose Hexahedron.
2
Hexahedron 3 (hex3)
1
In the Geometry toolbar, click  More Primitives and choose Hexahedron.
2
Hexahedron 4 (hex4)
1
In the Geometry toolbar, click  More Primitives and choose Hexahedron.
2
Hexahedron 5 (hex5)
1
In the Geometry toolbar, click  More Primitives and choose Hexahedron.
2
Hexahedron 6 (hex6)
1
In the Geometry toolbar, click  More Primitives and choose Hexahedron.
2
Hexahedron 7 (hex7)
1
In the Geometry toolbar, click  More Primitives and choose Hexahedron.
2
Hexahedron 8 (hex8)
1
In the Geometry toolbar, click  More Primitives and choose Hexahedron.
2
Hexahedron 9 (hex9)
1
In the Geometry toolbar, click  More Primitives and choose Hexahedron.
2
Hexahedron 10 (hex10)
1
In the Geometry toolbar, click  More Primitives and choose Hexahedron.
2
Hexahedron 11 (hex11)
1
In the Geometry toolbar, click  More Primitives and choose Hexahedron.
2
Mirror 1 (mir1)
1
In the Geometry toolbar, click  Transforms and choose Mirror.
2
Select the objects hex10, hex11, hex4, hex5, hex6, hex7, hex8, and hex9 only.
3
In the Settings window for Mirror, locate the Input section.
4
Select the Keep input objects check box.
Mirror 2 (mir2)
1
In the Geometry toolbar, click  Transforms and choose Mirror.
2
Select the objects mir1(1), mir1(2), mir1(3), mir1(4), mir1(5), mir1(6), mir1(7), and mir1(8) only.
3
In the Settings window for Mirror, locate the Point on Plane of Reflection section.
4
In the y text field, type -1.
5
Locate the Normal Vector to Plane of Reflection section. In the y text field, type 1.
6
In the z text field, type 0.
Mirror 3 (mir3)
1
In the Geometry toolbar, click  Transforms and choose Mirror.
2
Select the objects hex2 and hex3 only.
3
In the Settings window for Mirror, locate the Input section.
4
Select the Keep input objects check box.
Mirror 4 (mir4)
1
In the Geometry toolbar, click  Transforms and choose Mirror.
2
Select the objects mir3(1) and mir3(2) only.
3
In the Settings window for Mirror, locate the Normal Vector to Plane of Reflection section.
4
In the y text field, type 1.
5
In the z text field, type 0.
Mirror 5 (mir5)
1
In the Geometry toolbar, click  Transforms and choose Mirror.
2
Select the objects blk4, hex10, hex11, and mir2(2) only.
3
Select the objects blk2, blk3, blk4, blk5, hex1, hex10, hex11, hex4, hex5, hex6, hex7, hex8, hex9, mir2(1), mir2(2), mir2(3), mir2(4), mir2(5), mir2(6), mir2(7), and mir2(8) only.
4
In the Settings window for Mirror, locate the Normal Vector to Plane of Reflection section.
5
In the z text field, type 0.
6
In the y text field, type 1.
7
Locate the Input section. Select the Keep input objects check box.
8
Click  Build Selected.
Union 1 (uni1)
1
In the Geometry toolbar, click  Booleans and Partitions and choose Union.
2
Click the  Select All button in the Graphics toolbar.
3
In the Settings window for Union, locate the Union section.
4
Clear the Keep interior boundaries check box.
Form Union (fin)
1
In the Model Builder window, click Form Union (fin).
2
In the Settings window for Form Union/Assembly, click  Build Selected.
Inlet
1
In the Geometry toolbar, click  Selections and choose Explicit Selection.
2
In the Settings window for Explicit Selection, type Inlet in the Label text field.
3
Locate the Entities to Select section. From the Geometric entity level list, choose Boundary.
4
On the object fin, select Boundary 1 only.
Outlet
1
In the Geometry toolbar, click  Selections and choose Explicit Selection.
2
In the Settings window for Explicit Selection, type Outlet in the Label text field.
3
Locate the Entities to Select section. From the Geometric entity level list, choose Boundary.
4
On the object fin, select Boundary 186 only.
Walls
1
In the Geometry toolbar, click  Selections and choose Box Selection.
2
In the Settings window for Box Selection, locate the Geometric Entity Level section.
3
From the Level list, choose Boundary.
4
Locate the Box Limits section. In the x minimum text field, type -3.4.
5
In the x maximum text field, type 7.9.
6
In the Label text field, type Walls.
7
Click  Build Selected.