Introduction To CFD Module
Introduction To CFD Module
Introduction To CFD Module
CFD Module
October 2014
COMSOL 5.0
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:
Support Center: www.comsol.com/support
Product Download: www.comsol.com/product-download
Product Updates: www.comsol.com/support/updates
Discussion Forum: www.comsol.com/community
Events: www.comsol.com/events
COMSOL Video Gallery: www.comsol.com/video
Support Knowledge Base: www.comsol.com/support/knowledgebase
Part number: CM021302
Contents
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Aspects of CFD Simulations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
|3
4|
Introduction
The CFD Module is used by engineers and scientists to understand, predict, and
design for fluid flow in closed and open systems. At a given cost, these types of
simulations typically lead to new and better products and improved operations of
devices and processes compared to purely empirical studies involving fluid flow.
As a part of an investigation, simulations give accurate estimates of flow patterns,
pressure losses, forces on submerged objects, temperature distributions, and
variations in fluid composition within a system.
Figure 1: Flow ribbons and velocity field magnitudes from a simulation of an Ahmed body. The simulation
yields the flow and pressure fields and calculates the drag coefficient as a benchmark for the verification
and validation of turbulence models.
Introduction
|5
The physics interfaces build on conservation laws for momentum, mass, and
energy. These laws are expressed in terms of partial differential equations, which
are solved by the module together with the specified initial and boundary
conditions. The equations are solved using stabilized finite element formulations
for fluid flow, in combination with damped Newton methods and, for
time-dependent problems, different time-dependent solver algorithms. The
results are presented in the graphics window through predefined plots relevant for
CFD, expressions of physical quantities that you can freely define, and derived
tabulated quantities (for example, average pressure on a surface or drag
coefficients) obtained from a simulation.
The workflow in the CFD Module is quite straightforward and is described by the
following steps: define the geometry, select the fluid to be modeled, select the type
of flow, define boundary and initial conditions, define the finite element mesh,
select a solver, and visualize the results. All these steps are accessed from the
COMSOL Desktop. The mesh and solver steps are usually carried out
automatically using default settings that are tuned for each specific Fluid Flow
physics interface.
The CFD Modules model library describes the Fluid Flow physics interfaces and
their different features through tutorial and benchmark examples for the different
types of flow. Here you find models of industrial equipment and devices, tutorial
models for practice, and benchmark models for verification and validation of the
Fluid Flow physics interfaces. Go to The Model Libraries Window for information
on how to access these resources.
This introduction is intended to give you an accelerated start in CFD model
building. It contains examples of the typical use of the module, a list of all the
Fluid Flow physics interfaces including a short description of each, and two
tutorial examples, Tutorial ExampleBackstep and Tutorial ExampleWater
Purification Reactor, to introduce the workflow.
6 | Introduction
|7
Figure 2: Turbulent fluid flow around a solar panel solved using the CFD Module.
In addition to the qualitative big picture view, simulations performed with the
CFD Module give accurate quantitative estimates of properties of the flow field,
such as the average flow at a given pressure difference, the drag and lift coefficients
of bodies subjected to a flow, or the air quality in a ventilated room.
In Figure 3 and Figure 4, the pressure losses are estimated for a nozzle used in
medical devices. The shear stresses and fluid forces in the nozzle system may
damage blood cells in medical equipment, and must be accounted for when
controlling the flow.
8 | Introduction
Figure 3: Pressure field and flow field in a model of a nozzle relevant for designs in medical applications.
Figure 4: Pressure difference between inlet and outlet at various average flow rates through the nozzle.
Introduction
|9
The CFD Module has a vast range of tools for evaluating quantitative results. For
example, it comes with built-in functionality for evaluating surface and volume
averages, maximum and minimum values, and derived values (functions and
expressions of the solution), as well as for generating tables and x-y plots. Derived
values such as drag and lift coefficients and other values relevant for CFD are
predefined in the module.
Qualitative studies typically form the basis for understanding, which in turn can
spark new ideas. These ideas can then lead to significant improvements to products
and processes, often in quantum leaps. Quantitative studies, on the other hand,
form the basis for optimization and control, which can also greatly improve
products and processes but usually do so through a series of many smaller steps.
10 | Introduction
| 11
Figure 5: The Model Builder including a Laminar Flow interface (left), and the Settings window for Fluid
Properties for the selected feature node (right). The Equation section in the Settings window shows the
component equations and the terms added by the Fluid Properties 1. The added terms are underlined
with a dotted line. The arrows also explain the link between the Materials node and the values for the
fluid properties.
The CFD Module includes a large number of Fluid Flow physics interfaces for
different types of flow. It also includes Chemical Species Transport physics
interfaces for reacting flows in multicomponent solutions, and physics interfaces
for heat transfer in solids, fluids, and porous media found under the Heat Transfer
branch.
Figure 6 shows the Fluid Flow interfaces as they are displayed when you add a
physics interface (see also Physics Interface Guide by Space Dimension and Study
Type for further information). A short description of the physics interfaces follows.
Figure 6: The physics interfaces for the CFD Module as shown in the Model Wizard.
| 13
equations, for incompressible and weakly compressible flows (up to Mach 0.3).
The Laminar Flow interface also allows for simulation of non-Newtonian flow.
The physics interfaces under the Turbulent Flow branch ( ) model flows at high
Reynolds numbers. These physics interfaces solve the Reynolds-averaged
Navier-Stokes (RANS) equations for the averaged velocity and pressure fields. The
turbulent flow physics interfaces provide different options for modeling the
turbulent viscosity. There are several turbulence models availabletwo algebraic
turbulence models, the Algebraic yPlus and L-VEL models, and five
transport-equation models, including a standard k- model, a k- model, an SST
(Shear Stress Transport) model, a low Reynolds number k- model and the
Spalart-Allmaras model. Similarly to the Laminar Flow interface, compressibility
(Mach < 0.3) is selected by default.
The Algebraic yPlus and L-VEL turbulence models are so-called enhanced
viscosity models. A turbulent viscosity is computed from the local distance to the
nearest wall. For this reason, the algebraic turbulence models are best suited for
internal flows, such as in electronic cooling applications. Algebraic turbulence
models are computationally economical, and more robust but, in general, less
accurate than transport-equation models. Among the transport-equation
turbulence models, the standard k- model is the most widely used since it often
is a good compromise between accuracy and computational cost (memory and
CPU time). The k- model is an alternative to the standard k- model and often
gives more accurate results, especially in recirculation regions and close to solid
walls. However, the k- model is also less robust than the standard k- model. The
SST model combines the robustness of the k- model with the accuracy of the k-
model, making it applicable to a wide variety of turbulent flows. The Low
Reynolds number k- model is more accurate than the standard k- model,
especially close to walls. The Spalart-Allmaras model is specifically designed for
aerodynamic applications, such as flow around wing profiles, but is also widely
used in other applications due to its high robustness and decent accuracy. Higher
resolution is needed in the near-wall region for the SST model, the Low Reynolds
number k- model, and the Spalart-Allmaras model. Thus, the better accuracy
provided by these models comes at a higher computational cost.
The Creeping Flow interface ( ) approximates the Navier-Stokes equations for
very low Reynolds numbers. This is often referred to as Stokes flow and is
applicable when viscous effects are dominant, such as in very small channels or
microfluidics devices.
The Rotating Machinery interfaces ( ) are applicable to fluid-flow problems
where one or more of the boundaries rotate, for example in mixers and around
propellers. The physics interfaces support incompressible and compressible
(Mach < 0.3), laminar Newtonian and non-Newtonian flow, and turbulent flow
using the standard k- model.
M ULTIPHASE F LOW
The physics interfaces under the Bubbly Flow branch ( ) model two-phase flow
where the fluids form a gas-liquid mixture, and the content of the gas is less than
10%. There is support for both laminar flow and turbulent flow using an extended
version of the k- turbulence model that accounts for bubble-induced turbulence.
For laminar flow, the physics interface supports non-Newtonian liquids. The
Bubbly Flow interfaces also allow for mass transfer between the two phases.
The physics interfaces under the Mixture Model branch ( ) are similar to the
Bubbly Flow interfaces but assume that the dispersed phase consists of solid
particles or liquid droplets. The continuous phase has to be a liquid. There is
support for both laminar flow and turbulent flow using the k- turbulence model.
The Mixture Model interfaces also allow for mass transfer between the two phases.
The Euler-Euler Model interface ( ) for two-phase flow is able to handle the
same cases as the Bubbly Flow and Mixture Model interfaces, but is not limited to
low concentrations of the dispersed phase. In addition, the Euler-Euler Model
interface can handle large differences in density between the phases, such as the
case of solid particles in air. This makes the model suitable for simulations of, for
example, fluidized beds.
The Two-Phase Flow, Level Set interface ( ) and the Two-Phase Flow, Phase
Field interface ( ) are both primarily applied to model two fluids separated by a
fluid-fluid interface. The moving interface is tracked in detail using the level-set
method and the phase-field method, respectively. Similarly to other Fluid Flow
physics interfaces, these physics interfaces support both compressible
(Mach < 0.3) and incompressible flows. They support laminar flow where one or
both fluids can be non-Newtonian. The physics interfaces also support turbulent
flow, using the standard k- turbulence model, and Stokes flow.
N ONISOTHERMAL F LOW
The Non-Isothermal Flow, Laminar Flow interface ( ) is primarily applied to
model flow at low to intermediate Reynolds numbers in environments where the
temperature and flow fields have to be coupled. A typical example is natural
convection, where thermal buoyancy forces drive the flow. This is a multiphysics
interface for which the component couplings between fluid flow and heat transfer
are set up automatically.
The Non-Isothermal Flow, Turbulent Flow interfaces ( ) solve the
Reynolds-Averaged Navier-Stokes (RANS) equations coupled to heat transfer in
fluids and in solids. There is support for all the fluid-flow turbulence models the
Algebraic yPlus model, the L-VEL model, the standard k- model, a k- model,
an SST model, a low Reynolds number k- model, and the Spalart-Allmaras
model.
The CFD Module Physics Interfaces
| 15
The Conjugate Heat Transfer interfaces ( ) are also included with the CFD
Module and are almost identical to the Non-Isothermal Flow interfaces. They only
differ in the default domain feature selected -Heat transfer in Solids instead of
Fluid.
POROUS M EDIA
AND
S UBSURFACE F LOW
R EACTING F LOW
The Laminar Flow interface ( ) under the Reacting Flow branch combines the
functionality of the Single-Phase Flow and Transport of Concentrated Species
interfaces. Mass and momentum transport in a reacting fluid can be modeled from
a single physics interface, with the couplings between the velocity field and
R EACTING F LOW
IN
POROUS M EDIA
| 17
ICON
TAG
SPACE
DIMENSION
tds
all dimensions
Transport of
Concentrated Species
tcs
all dimensions
rspf
3D, 2D, 2D
axisymmetric
Turbulent Flow, k-
rspf
3D, 2D, 2D
axisymmetric
Turbulent Flow, k-
rspf
3D, 2D, 2D
axisymmetric
rspf
3D, 2D, 2D
axisymmetric
rspf
3D, 2D, 2D
axisymmetric
Reacting Flow
Laminar Flow
Turbulent Flow
rfds
3D, 2D, 2D
axisymmetric
Transport of
Concentrated
Species
rfcs
3D, 2D, 2D
axisymmetric
spf
3D, 2D, 2D
axisymmetric
Fluid Flow
Single-Phase Flow
Laminar Flow(1)
PHYSICS INTERFACE
ICON
TAG
SPACE
DIMENSION
Turbulent Flow,
Algebraic yPlus
spf
3D, 2D, 2D
axisymmetric
Turbulent Flow,
L-VEL
spf
3D, 2D, 2D
axisymmetric
Turbulent Flow, k-
spf
3D, 2D, 2D
axisymmetric
Turbulent Flow, k-
spf
3D, 2D, 2D
axisymmetric
spf
3D, 2D, 2D
axisymmetric
spf
3D, 2D, 2D
axisymmetric
Turbulent Flow,
Spalart-Allmaras
spf
3D, 2D, 2D
axisymmetric
Creeping Flow
spf
3D, 2D, 2D
axisymmetric
Turbulent Flow
rmspf
3D, 2D
Rotating Machinery,
Turbulent Flow, k-
rmspf
3D, 2D
tffs
3D
Thin-Film Flow,
Domain
tff
2D
Thin-Film Flow,
Edge
tffs
2D and 2D
axisymmetric
Thin-Film Flow
| 19
PHYSICS INTERFACE
ICON
TAG
SPACE
DIMENSION
Laminar Bubbly
Flow
bf
3D, 2D, 2D
axisymmetric
Turbulent Bubbly
Flow
bf
3D, 2D, 2D
axisymmetric
Mixture Model,
Laminar Flow
mm
3D, 2D, 2D
axisymmetric
Mixture Model,
Turbulent Flow
mm
3D, 2D, 2D
axisymmetric
ee
3D, 2D, 2D
axisymmetric
Laminar Two-Phase
Flow, Level Set
tpf
3D, 2D, 2D
axisymmetric
Turbulent
Two-Phase Flow,
Level Set
tpf
3D, 2D, 2D
axisymmetric
Multiphase Flow
Bubbly Flow
Mixture Model
Euler-Euler Model
Euler-Euler Model,
Laminar Flow
Two-Phase Flow, Level Set
tpf
3D, 2D, 2D
axisymmetric
Turbulent
Two-Phase Flow,
Phase Field
tpf
3D, 2D, 2D
axisymmetric
PHYSICS INTERFACE
ICON
TAG
SPACE
DIMENSION
br
3D, 2D, 2D
axisymmetric
Darcys Law
dl
all dimensions
Two-Phase Darcys
Law
tpdl
3D, 2D, 2D
axisymmetric
fp
3D, 2D, 2D
axisymmetric
3D, 2D, 2D
axisymmetric
Turbulent Flow,
Algebraic yPlus
3D, 2D, 2D
axisymmetric
Turbulent Flow,
L-VEL
3D, 2D, 2D
axisymmetric
Turbulent Flow,
k-(2)
3D, 2D, 2D
axisymmetric
Turbulent Flow,
k-(2)
3D, 2D, 2D
axisymmetric
Turbulent Flow,
SST(2)
3D, 2D, 2D
axisymmetric
3D, 2D, 2D
axisymmetric
Turbulent Flow,
Spalart-Allmaras(2)
3D, 2D, 2D
axisymmetric
3D, 2D, 2D
axisymmetric
Non-Isothermal Flow
Laminar Flow2
Turbulent Flow
hmnf
| 21
PHYSICS INTERFACE
ICON
TAG
SPACE
DIMENSION
Turbulent Flow, k-
hmnf
3D, 2D, 2D
axisymmetric
Turbulent Flow,
Spalart-Allmaras
hmnf
3D, 2D, 2D
axisymmetric
Heat Transfer in
Fluids(1)
ht
all dimensions
ht
all dimensions
3D, 2D, 2D
axisymmetric
Turbulent Flow,
Algebraic yPlus
3D, 2D, 2D
axisymmetric
Turbulent Flow,
L-VEL
3D, 2D, 2D
axisymmetric
Turbulent Flow,
k-(2)
3D, 2D, 2D
axisymmetric
Turbulent Flow,
k-(2)
3D, 2D, 2D
axisymmetric
3D, 2D, 2D
axisymmetric
Turbulent Flow,
SST(2)
3D, 2D, 2D
axisymmetric
Turbulent Flow,
Spalart-Allmaras(2)
3D, 2D, 2D
axisymmetric
Heat Transfer
PHYSICS INTERFACE
ICON
TAG
SPACE
DIMENSION
Level Set
ls
all dimensions
Phase Field
pf
all dimensions
Mathematics
Moving Interface
(1) This physics interface is included with the core COMSOL package but has added
This physics interface is a predefined multiphysics coupling that automatically adds all the
physics interfaces and coupling features required.
| 23
and solution data to save space on the DVD (a few MPH-files have no
solutions for other reasons). You can open these models to study the settings
and to mesh and re-solve the models. It is also possible to download the full
versionswith meshes and solutionsof most of these models when you
update your model library. These models appear in the Model Libraries
window with the
icon. If you position the cursor at a compact model in
the Model Libraries window, a No solutions stored message appears. If a full
MPH-file is available for download, the corresponding nodes context menu
includes a Download Full Model item ( ).
To check all available Model Libraries updates, select Update COMSOL Model
Library ( ) from the File>Help menu (Windows users) or from the Help menu
(Mac and Linux users).
The rest of this guide uses two models from the model library. The Tutorial
ExampleBackstep, which starts on the next page, solves a laminar flow problem
and the Tutorial ExampleWater Purification Reactor examines a turbulent flow
problem using the Turbulent Flow, k- interface.
Tutorial ExampleBackstep
This tutorial model solves the incompressible Navier-Stokes equations in a
backstep geometry. A characteristic feature of fluid flow in geometries of this kind
is the recirculation region that forms where the flow exits the narrow inlet region.
The model demonstrates the modeling procedure for laminar flows in the CFD
Module.
Model Geometry
The model consists of a pipe connected to a block-shaped duct (see Figure 7).
Due to symmetry, it is sufficient to model one eighth of the full geometry.
Wall
Outlet
Symmetry
Wall
Inlet
Symmetry
| 25
condition at the outlet sets a constant relative pressure. Furthermore, the vertical
and inclined boundaries along the length of the geometry are symmetry
boundaries. All other boundaries are solid walls described by a no-slip boundary
condition.
Results
Figure 8 shows a combined surface and arrow plot of the flow velocity. This plot
does not reveal the recirculation region in the duct immediately beyond the inlet
pipes end. For this purpose, a streamline plot is more useful, as shown in Figure 9.
26 | Tutorial ExampleBackstep
The following instructions show how to formulate, solve, and reproduce these
plots.
M o d e l W i z a rd
The first step to build a model is to open COMSOL, then select the physics
interface and specify the type of analysis you want to doin this case, a stationary,
Laminar Flow analysis.
Note: These instructions are for the user interface on Windows but also apply,
with minor differences, to Linux and Mac.
1 To open the software, double-click the COMSOL icon on the desktop. When
the software opens, you can choose to use the Model Wizard to create a new
COMSOL model or Blank Model to create one manually. For this tutorial, click
the Model Wizard button.
The Model Wizard guides you through the first steps of setting up a model. If
COMSOL is already open, you can start the Model Wizard by selecting
New
from the File menu and then clicking Model Wizard
.
The next window lets you select the dimension of the modeling space.
Tutorial ExampleBackstep
| 27
Note: On Linux and Mac, the Model toolbar refers to the specific set of controls
near the top of the Desktop.
2 In the Settings window for Parameters locate the Parameters section. In the
table enter the following settings:
- In the Name text field, enter v0
- In the Expression text field, enter 1[cm/s]
- In the Description text field, enter Inlet velocity
Geometr y 1
You can build the backstep geometry from geometric primitives. Here, instead use
a file containing the sequence of geometry features that has been provided for
convenience.
Note: The location of the file used in this exercise varies based on your
installation. For example, if the installation is on your hard drive, the file path
might be similar to C:\Program Files\COMSOL50\models\.
1 On the Geometry toolbar choose Insert Sequence
28 | Tutorial ExampleBackstep
The geometry sequence is now inserted into your component and should look like
the geometry in Figure 7.
Mate rials
1 On the Model toolbar click Add Material
2 Go to the Add Material window. In the tree under Built-In click Water, liquid.
Add to Component.
The physical properties are now available for the CFD simulation. This also defines
the domain settings. The next step is to specify the boundary conditions.
L a m i n a r F l ow
Inlet 1
1 On the Physics toolbar click Boundaries
Tutorial ExampleBackstep
| 29
Symmetry 1
1 On the Physics toolbar click
Boundaries
and choose Symmetry
Outlet 1
1 On the Physics toolbar click
Boundaries
and choose Outlet
The sequence of nodes in the Model Builder under Laminar Flow should match
the figure. The D in the upper left corner of a node means it is a default node.
30 | Tutorial ExampleBackstep
Me sh 1
1 In the Model Builder click Mesh 1
The figure below shows the boundary layer mesh at the walls. Zoom in to the
mesh using the zoom function on the Graphics toolbar
to confirm that it
matches the figure.
Tutorial ExampleBackstep
| 31
Study 1
1 On the Model toolbar click Compute
Results
Two plots are automatically created, one slice plot for the velocity and one
pressure contour plot on the wall.
Velocity (spf)
1 In the Model Builder under Results
2 Right-click Slice 1
node.
32 | Tutorial ExampleBackstep
3D Plot Group 3
1 On the Model toolbar click Add Plot Group
3D Plot Group
.
and choose
3 In the 3D Plot Group Settings window, scroll to the Selection section, and click
the Active button next to the Selection list.
4 Select Boundary 1 only.
5 In the Settings window for Streamline locate the Coloring and Style section.
From the Line type list, choose Tube.
6 Right-click Streamline 1
Tutorial ExampleBackstep
| 33
Model Geometry
The model geometry along with some boundary conditions is shown in Figure 10.
The full reactor has a symmetry plane, which is utilized to reduce the size of the
component.
Symmetry
Outlet
Inlet
Figure 10: Model geometry. All boundaries except the inlet, outlet and symmetry plane are walls.
Here is the kinematic viscosity. The high Reynolds number clearly indicates that
the flow is turbulent and a turbulence model must be applied. In this case, you will
use the k- model. This is commonly used in industrial applications, because it is
both relatively robust and computationally inexpensive compared to more
advanced turbulence models. One major reason the k- model is inexpensive is
that it employs wall functions to describe the flow close to walls instead of
resolving the very steep gradients there. All boundaries are walls in Figure 10
except the inlet, the outlet, and the symmetry plane.
| 35
The inlet velocity is prescribed as a plug flow profile. The turbulent intensity is set
to 5 % and the turbulent length scale is specified according to Table 3-3 in
Theory for the Turbulent Flow Interfaces in the CFD Module Users Guide. A
constant pressure is prescribed on the outlet.
Results
The velocity field in the symmetry plane is shown in Figure 11. The jet from the
inlet hits the top of the first baffle, which splits the jet. One half creates a strong
recirculation zone in the first chamber. The other half continues downstream
into the reactor and gradually spreads out. The velocity magnitude decreases as
more fluid is entrained into the jet.
Figure 12 gives a more complete picture of the mixing process in the reactor. The
streamlines are colored by the velocity magnitude, and their widths are
proportional to the turbulent viscosity. Wide lines hence indicate a high degree of
mixing. The turbulence in this model is mainly produced in the shear layers
between the central jet and the recirculation zones. The mixing can be seen to be
relatively weak in the beginning of the reactor and to increase further downstream.
Figure 12: Streamlines colored by velocity. The width of the streamlines is proportional to the turbulent
viscosity.
Reference
1. http://www.comsol.com/stories/hofman_water_purification/full/
M o d e l W i z a rd
The first step to build a model is to open COMSOL, then select the physics
interface and specify the type of analysis you want to doin this case, a stationary,
Turbulent Flow, k- analysis.
1 Open COMSOL Multiphysics. On the New page click Model Wizard
Then click the 3D button
.
Tutorial ExampleWater Purification Reactor
| 37
The Model toolbar refers to the specific set of controls near the top of the
Desktop.
2 Go to the Settings window for Parameters. In the table, enter the following
settings:
- In the Name text field, enter u_in
- In the Expression text field, enter 0.1[m/s]
- In the Description text field, enter Inlet velocity
Geometr y 1
You can build the reactor geometry from geometric primitives. Here, instead use
a file containing the sequence of geometry features that has been provided for
convenience.
Note: The location of the file used in this exercise varies based on your
installation. For example, if the installation is on your hard drive, the file path
might be similar to C:\Program Files\COMSOL50\models\.
1 On the Geometry toolbar click Insert Sequence
The geometry sequence is now inserted into your component and should look like
the figure below.
Mate rials
1 On the Model toolbar click Add Material
Add to Component.
The physical properties are now available for the CFD simulation. This also defines
the domain settings. The next step is to specify the boundary conditions.
| 39
Tu r b u l e n t F l ow, k -
Inlet 1
1 On the Physics toolbar click Boundaries
Symmetry 1
1 On the Physics toolbar click Boundaries
and choose Symmetry
.
2 Select Boundary 3 only.
Outlet 1
1 On the Physics toolbar click Boundaries
and choose Outlet
.
2 Select Boundary 28 only.
The sequence of nodes in the Model Builder under
Turbulent Flow, k- should match the figure. The D in
the upper left corner of a node means it is a default node.
All boundaries not selected in Inlet 1, Symmetry 1, or
Outlet 1 now have the default wall condition.
Me sh 1
The physics-induced mesh automatically introduces a mesh that is a bit finer on
the walls than the free stream mesh. It also refines the mesh at sharp corners and
adds a boundary layer mesh.
The finer mesh on the walls is not critical in this model since most of the
turbulence is produced in the shear layers between the jet and the recirculation
zones. The boundary layer mesh can also be coarsened in order to save
computational time.
1 In the Model Builder under Component 1 click Mesh 1
2 In the Settings window for Mesh, from the Element size list, choose Coarser.
Size 1
1 Go to the Mesh toolbar and click Edit
2 Right-click Size 1
button.
| 41
Study 1
Next, solve for the flow field. This takes approximately 15 minutes on a quad-core
desktop computer.
1 On the Model toolbar click Compute
Results
Three plots are automatically created, one slice plot for the velocity, one pressure
contour plot on the walls and one boundary plot of the wall lift-off in viscous units
for the wall functions. The last one is important since it gives an indication of how
well resolved the flow is at the walls. See Theory for the Turbulent Flow
Interfaces in the CFD Module Users Guide for further details on the wall
functions.
The following steps reproduce Figure 11.
First, create a data set that corresponds to the non-wall boundaries.
Data Sets
1 On the Results toolbar click More Data Sets
Velocity (spf)
1 In the Model Builder expand the Results>Velocity (spf)
2 Right-click Slice 1
node.
.
.
4 In the Settings window for 3D Plot Group locate the Data section. From the
Data set list, choose Surface 3.
5 On the Velocity (spf) toolbar click Surface
6 In the Settings window for Surface locate the Data section. From the Data set
list, choose Surface 2, the reactor walls.
7 Locate the Coloring and Style section.
- From the Coloring list, choose Uniform.
- From the Color list, choose Gray.
Logarithmic.
- Select the Scale factor check box. In the
associated text field, type 1.4.
- In the Number of arrows text field, type
300.
- From the Color list, choose White.
| 43
3D Plot Group 4
1 On the Model toolbar click Add Plot Group
Group
.
4 In the Settings window for Streamline go to the Selection section and click the
Active button next to the Selection list.
5 Select Boundary 1 which is the inlet. The streamlines now start at this boundary.
10In the Settings window for 3D Plot Group click to expand the Title section.
- From the Title type list, choose Manual.
- In the Title text area, type Streamlines colored by velocity. Width
proportional to turbulent viscosity.
| 45