Use of CFD in Design: A Tutorial: Sean M. Mcguffie, P.E. Michael A. Porter, P.E. Thomas T. Hirst
Use of CFD in Design: A Tutorial: Sean M. Mcguffie, P.E. Michael A. Porter, P.E. Thomas T. Hirst
Use of CFD in Design: A Tutorial: Sean M. Mcguffie, P.E. Michael A. Porter, P.E. Thomas T. Hirst
Contents
1 About the Presentation 3
1.1 About the Authors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
2 Introduction 4
2.1 What is CFD? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.2 History of CFD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.3 Why use CFD? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.4 Common Terminology and Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . 14
3 Mathematics 15
3.1 Lagrangian vs Eulerian Formulations . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.2 Navier Stokes Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.3 Overview of Solution Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
6 Introduction to Turbulence 52
6.1 What is Turbulence? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
6.2 Can CFD Handle Turbulence? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
9 Summary 107
USE OF CFD IN DESIGN 1 ABOUT THE PRESENTATION
PowerPoint presentation
PDF course manual
Selection of model files
Adapco has offered a free one (1) month trial license of their software if you desire to play with
the model files. Attendees may obtain a no-cost 30 day license to use STAR-CCM+ for partic-
ipation in this event (subject to export control compliance and end user license agreement). To
obtain your license, contact Eric Volpenhein of CD-adapco [eric.volpenhein@cd-adapco.com ; (513)
574-8333].
In the manual, PMI has included basic instruction sets for most of the software demonstrations that
will occur. These instructions are written in standard software use format. Take the Star-CCM+
Commands illustrated below:
Star-CCM+ Commands
When items are indicated within boxes similar to those above, they are commands that will be
issued during the tutorial. Thus if attendees would like to perform the same actions as shown in
the software, they may do so by following the commands within the Star-CCM+ Commands boxes.
This particular command directs the user to approach the File menu, then select a New Simulation
and click OK in Step 1. Step 2 is also using the File menu and performing the action of importing
a mesh. For sub-menus within Star-CCM+, the command box will be indented to indicate going
further within any particular menu. Most commands will involve a left click action to proceed.
When necessary right clicks or other actions are generally specified separately.
We encourage the participants to take advantage of the trial software and sample models provided;
it is only through practice modeling that you can understand the concepts presented today.
We have 3.5 hours to cover the information contained in thousands of pages of introductory texts.
As such, were going to make your head spin at the rate that information comes to you. And we
3 of 110
USE OF CFD IN DESIGN 2 INTRODUCTION
are just going to touch the surface. You wont walk out of this tutorial feeling like you can tackle
any CFD problem with zero difficulty. But, you should walk out with fuller knowledge of whats
possible, potential pitfalls and a better understanding of how complex problems can be. PMI will
be at the conference until noon on Thursday, feel free to seek us out with questions that might
occur to you following todays tutorial.
Mathematics
Example 2 - Flow Between Parallel Plates
Michael A. Porter, P.E. (mike@pm-engr.com) - Mike is the principal engineer of PMI, an ASME
fellow and a long time practitioner of numerical simulations. His participation in this tutorial is
limited to:
2 Introduction
Recent advances in computational resources have made the use of computational fluid dynamics
(CFD) to support industrial design activities more commonplace. While large and small organiza-
tions have adopted the technology, it is still considered magic by most engineers. The purpose
of this tutorial is to provide the design engineer with an understanding behind the fundamental
concepts related to successfully performing CFD analyses, and to discuss how they can be incor-
porated into design processes.
The tutorial is organized into two sessions. The first session will provide an overview of the CFD
modeling process, including:
What is CFD?
Why perform CFD?
A general outline of the Navier-Stokes equations and their solution, and
4 of 110
USE OF CFD IN DESIGN 2 INTRODUCTION
An overview of the general steps required for all CFD analyses (with mixer example)
These preliminary concepts will then be reinforced through the solution of a simple CFD model.
During the solution of the problem, the concepts of establishing solution monitors and using them
to monitor convergence will be discussed.
During the tutorial, several industrial examples will be shown to demonstrate the topics.
Numerically, several different mathematical formulations are used to solve a system of PDEs. These
include, but are not limited to:
Currently the finite volume method is the method of choice for implementation within the majority
of commercially available software packages. However, other methods have been shown to achieve
accurate results. Finite volume methods (and all numerical methods) are used to create an approx-
imation using discretizations of the problem physics [2].
CFD is useful and has become growingly popular for some of the following reasons [3]:
CFD allows numerical simulation of fluid flows, the results for which are available for study
even after the analysis is over.
CFD allows observation of flow properties without disturbing the flow itself, which is not
always possible with conventional measuring instruments.
CFD allows observation of flow properties at locations which may not be accessible to mea-
suring instruments.
CFD can be used as a qualitative tool for discarding (or narrowing down the choices between)
various designs.
5 of 110
USE OF CFD IN DESIGN 2 INTRODUCTION
Along with the development of CFD came the need to develop more complex algorithms of grid
generation, also referred to as mesh generation. Meshing technology began with simple algorithms.
As the need for more complex geometries became apparent, so did the schemes to create meshes for
them [4]. Mesh generation has evolved to include non-matching grids (i.e., cells do not align) and
can now take many forms: tetrahedral, prism-based, hexahedral, etc. While meshing technology
began with the use of the tetrahedron, as they are easier to create, research has shown that the use
of prism or hex grids should be used in viscous flow regions [4]. Grid generation has continued to
develop and now includes automeshing and mesh adaptation. Attempts have been made as much
as possible to remove the user from the mesh and allow the solution to determine mesh adaptation.
However, this goal has not been completely realized.
Today CFD is used routinely in product development for the common historical uses such as aircraft,
automobiles and turbo-machinery to newer uses such as chemical processing. Models consisting
of thousands or even millions of cells can be solved in a mere few hours, far faster than at the
beginning of the technologys development. However, CFD is not a mature technology [4]. In fact
there are still many areas under study both in academia and in industry. Examples include mesh
adaptation, solid-liquid interaction, more advanced constitutive theories, and the ever pressing issue
of flow turbulence. Today, the most engineers may not be able to pick up and create a CFD model
without any background knowledge, the technology is becoming both easier and more accessible.
As an engineer fresh out of school, I was able to convince my employer to pop for nearly $400 to
purchase an HP-35 scientific calculator. Not only would it do basic multiplication and division,
but this new piece of technology would compute square roots as well as deal with trigonometric
functions. It was totally a marvel at the time. Again, that relatively simple tool was the best tool
that we, as engineers had at the time.
In the early 1980s the personal computer hit the engineering scene and we saw another revolution
6 of 110
USE OF CFD IN DESIGN 2 INTRODUCTION
in the best tool we had progression. Later on in in that decade we saw the introduction of finite
element analysis on the personal computer. This made an analysis tool accessible to the commer-
cial engineering community that had been the nearly exclusive tool of academics and very large
company researchers. A new best in engineering analysis tools was established.
Concurrent with the development of FEA was the development of CFD. However, CFD is an inher-
ently non-linear computational process. The solution of CFD problems requires orders of magnitude
more computing horsepower than does FEA. The early CFD codes (dating back to the late 1960s)
used many simplifying assumptions to permit solution on the existing computer horsepower. It was
not until the 1990s that a practical solution of the full Navier-Stokes equations were developed.
Primarily (although not entirely) due to the computational requirements, CFD did not become a
common tool for the commercial engineering community until the last decade or so. At that, its
use in general industry is still quite limited.
All of which brings us to the question of why one would choose to use CFD?
CFD allows one to model and predict the behavior of many different physical phenomena. Like the
many uses of FEA, there are many possible uses of CFD; way too many to cover exhaustively here
today. Instead, we are going to discuss some of the most relevant issues for the PVP community.
The phenomena covered in the following sections are not ordered by any relative importance. I
suspect that you many find some of the areas relevant and others not so much. I also suspect that
each of you may see differing areas of importance depending on your circumstances.
2.3.1 Flow
Probably to first issue than comes to mind when most folks think about CFD is flow. We can all
relate to the wake that surrounds and follows a ship moving through the water. As engineers, we
are also a similar wake that surrounds an airplane as it flies. However, at sub-sonic speeds we dont
have any visual clue as to the extent of this wake. It is not surprising then, that the aerospace
industry was the lead developer of CFD. Im going to look at something quite different from an
aircraft as an example of flow. We are going to look at the inlet to a baghouse. This is a rather
mundane, but nonetheless necessary device used in many diverse industries to remove particulate
matter from a gas stream. Playing an overriding role in the behavior of the particulates is the way
that the gas flows.
Figure 2.1 shows the baghouse in question. The large rectangular section above the inverted pyra-
mid hoppers is the baghouse proper. The particle laden flow enters through the circular duct near
the horizontal center of the baghouse. Note that there is a right angle elbow less than a duct
diameter from the entrance. It doesnt take a lot of CFD experience to imagine that this might
pose some kind of problem.
7 of 110
USE OF CFD IN DESIGN 2 INTRODUCTION
If we went inside the baghouses inlet duct we would see the the accumulation shown in Figure 2.2.
What you see is particle accumulation (almost like gravel in this case) on the floor of the inlet
duct. The depth of accumulation in this case is approximately 2-3. This accumulation was causing
increased pressure drop in the system and, when it built up enough, the user would get a mini-
landslide that would literally clog the works.
8 of 110
USE OF CFD IN DESIGN 2 INTRODUCTION
How would CFD be helpful here? First, it allows us to see the flow in the area of concern.
Figure 2.3 is an iso-surface showing the 3 m/s velocity profile in the duct. Above this surface, the
velocities are higher; and below correspondingly lower. Note in particular that the low velocity
region shifts from one side of the duct to the other between the second and third hopper. The low
velocity flow allowed the particulate to drop out of the air flow before in entered the hopper, causing
the accumulation. Straightening the flow to eliminate the low velocity zones near the bottom of
the duct was the key to solving this problem.
9 of 110
USE OF CFD IN DESIGN 2 INTRODUCTION
This problem was compounded by the fact that changing the inlet duct geometry was not consid-
ered a financially feasible solution to the problem. It turned out that installing a rather unique
set of vanes in the duct did solve the problem without adding a significant amount of pressure
drop. Figure 2.4 illustrates the turning vane configuration developed with CFD for this problem.
These vanes were installed some time ago and effectively eliminated the problem with no noticeable
pressure drop increase.
As an example, we will look at a large horizontal heat exchanger, illustrated in Figure 2.5. On
the left side, we see the geometry for the inlet and exhaust headers on a three inlet and 2 outlet
piping system. On the right is illustrated a 4-inlet and 2-outlet system. The available compressive
horsepower for this proposed system was very limited, so the goal was to evaluate the pressure drop
and select the best configuration.
10 of 110
USE OF CFD IN DESIGN 2 INTRODUCTION
Using CFD, the flow through the system under actual operating conditions can be modeled. Rather
than using empirical values, it is possible to compute the actual pressure drop to the flow paths and
the interaction between the various disturbances in the path. What we found was very interesting.
Not only was neither of the proposed designs optimal, but a significant reduction in the system
pressure drop could be achieved in a way that also resulted in extended catalyst life.
Figure 2.6 illustrates the piping configuration that was arrived at using CFD. While meeting the
required pipe flexibility requirements, this design lowered the pressure drop to less than 3/4 of water
column, while providing very even distribution between the reactor inlets. More importantly, the
analysis revealed that the normal design would produce significant by-passing of the flow along the
walls of the vessel, as illustrated on the left in Figure 2.7. Changes in the inlet geometry resulted
in the much more even flow illustrated on the right in Figure 2.7.
11 of 110
USE OF CFD IN DESIGN 2 INTRODUCTION
We can see that with the original configuration there was high velocity by-pass along the outside
walls, which would result in under-use of the catalyst in the center of the bed. In the modified
reactor, this has been eliminated. Although we dont know precisely how much this has saved, we
do know that the catalyst, thus far, has exceeded its original planned life.
2.3.4 Mixing
Although the first example problem will cover some of the aspects of mixing analysis using CFD
in more detail, the short story is simple mixing can be calculated very effectively. As an example,
in the bubble column reactor, a gas is passed through a liquid bed that normally maintains a solid
catalyst in slurry form. Both mixing and heat transfer are important issues in the proper and
economical operation of these systems. A cross-section of a typical reactor is illustrated on the left
in Figure 2.8, showing the lower portion of the reactor shell and the internal heat removal tubes.
The right side of Figure 2.8 illustrates the velocity profile within the model. This data can be used
to evaluate mixing. Note three phases are included in this model, the gas, liquid and solid.
12 of 110
USE OF CFD IN DESIGN 2 INTRODUCTION
13 of 110
USE OF CFD IN DESIGN 2 INTRODUCTION
In summary, CFD is not the be-all end-all as an engineering tool, but is one of the best that we
can employ today.
14 of 110
USE OF CFD IN DESIGN 3 MATHEMATICS
D
Dt The material derivative can be defined as the operator t +v
Pa
Dynamic viscosity [ m2 ]
t Turbulent viscosity
Kinematic viscosity
Representation of a mathematical domain or control volume
Density of a material
Stress tensor
w Wall shear stress
T Deviatoric stress tensor
e Specific energy density
f Body forces per unit volume
k von Karman constant
m Mass of a material
P Pressure
q Heat vector
u Velocity parallel to the wall (when referenced with law of the wall)
u+ Dimensionless velocity, velocity parallel to the wall as a function of y
ur Shear velocity
y Distance from wall
3 Mathematics
3.1 Lagrangian vs Eulerian Formulations
In deformation analysis there are two common descriptions of how to analyze the motion of mate-
rial particles: Lagrangian and the Eulerian descriptions. Lagrangian formulations involve tracking
individual particles as a function of placement in the reference configuration and time. In this de-
scription the observer is attached to the material particle and has the ability to know this specific
material particles location throughout time. Eulerian descriptions are a function of material place-
ment in the current configuration and time. In this description, attachment to material particles is
foregone and observations are made at a point in space. Thus, in Eulerian descriptions the ability
to track individual material particles has been lost.
Due to the exotic motion of fluids, it is difficult, or impossible in some instances, to track individual
material particles. Thus fluids and gases typically use an Eulerian frame of reference. Individual
particles are not tracked; the user is aware of the necessary variables (such as velocity) in a given
region. Or in the case of the finite volume method, within the control volume. Within this document
15 of 110
USE OF CFD IN DESIGN 3 MATHEMATICS
During the tutorial, it will be shown that the Navier-Stokes equations do not come without as-
sumptions. Assumptions about the equations of state governing thermodynamic relations as well as
assumptions in the heat vector can affect the solution. The Navier-Stokes equations for Newtonian
fluids also make assumptions for the stress tensor, which then further requires the knowledge of ma-
terial constants. Thus, the direct solution of the continuity equation (resulting from conservation
of mass), balance of momenta, and conservation of energy are complete when given a constitutive
theory and a necessary equation of state. However, these equations are often simplified on a case
by case basis to ease in the solution.
In the absence of mass sources and sinks, the mass in the control volume is conserved; hence,
the rate of change of mass within the control volume must be zero [6].
Z
Dm D
= d = 0 (3.2)
Dt Dt
This equation must hold for any arbitrary control volume. This can only occur if the integrand is
equal to zero. Thus this can be simplified to;
+ (v) = 0 (3.4)
t
(3.4) is called the continuity equation (in an Eulerian description) and is representative of the
conservation of mass [6]. This applies to both compressible and incompressible fluids. A description
16 of 110
USE OF CFD IN DESIGN 3 MATHEMATICS
If we assume that the fluid is incompressible, then density is constant throughout the computational
domain. Thus, it has neither dependence on time nor space and (3.4) can be reduced to[6]:
v=0 (3.6)
This form of the momentum equation is helpful in deriving the conservation of energy equation [6].
However, (3.7) can be presented in several different forms depending on the necessary criteria.
17 of 110
USE OF CFD IN DESIGN 3 MATHEMATICS
= pI + T (3.10)
Substituting this definition of the stress tensor into the momentum equation in (3.7) we obtain:
Dv
= p + T + f (3.11)
Dt
where p is a scalar quantity, being the static-fluid pressure. (3.11) is the general form of the Navier-
Stokes equation. However, this model is incomplete without an equation of state and an energy
equation (if the fluid is considered incompressible), and a constitutive theory for the deviatoric
stress tensor.
u
(3.12)
y
This assumption is common for fluids such as water, oil, gasoline, and air. The relationship is
continued by a linear relationship to the dynamic viscosity of a fluid. Values of the dynamic
viscosity depend both on the temperature of the fluid and the fluid itself.
u
= (3.13)
y
For an incompressible Newtonian fluid we can make the following assumptions:
Density is constant, and we can apply the continuity equation v = 0 shown in (3.6).
The fluid is isotropic (i.e., material properties are the same regardless of orientation).
The stress tensor is linear in the strain rates and is related through viscosity as shown in
(3.13). This leads to the following for the deviatoric stress tensor T expressed in Einstein
tensor notation [5] [7]:
ui uj
Tij = + (3.14)
xj xi
If we replace the deviatoric stress tensor in the general Navier-Stokes equation in (3.11) with the
deviatoric stress tensor in (3.14), the equation becomes:
Dv
= p + ( v) + 2 v + f
(3.15)
Dt
18 of 110
USE OF CFD IN DESIGN 3 MATHEMATICS
However, from continuity (3.6) we know that v = 0; therefore, we are left with:
Dv
= p + 2 v + f (3.16)
Dt
If we expand the material derivative with respect to velocity, we are left with the common form of
the incompressible Navier-Stokes equations. In (3.17) the different terms are labeled with respect
to their physical meaning.
Inertia (per volume)
z }| { Divergence of stress
v z }|
2
{
t | {z
+ v v} = p + v + |{z}
| {z } | {z }
f . (3.17)
|{z} Convective Pressure Viscosity Other
Unsteady acceleration gradient body
acceleration forces
It should be noted that despite the rather short form of (3.17), this is a representation of three
distinct non-linear PDEs (for 3D Cartesian coordinates). Many assumptions must be made to
obtain an incompressible fluid, and simplifications have been made. Even in their reduced form,
the incompressible fluids case is still not trivial to solve. (3.17) can be expressed in many different
coordinate systems. The most common is in Cartesian form. This system is shown below in (3.18)
[5].
2
u 2u 2u
u u u u p
+u +v +w = + + 2 + 2 + gx
t x y z x x2 y z
2
v 2v
2
v v v v p v
+u +v +w = + + + + gy (3.18)
t x y z y x2 y 2 z 2
2
w 2w 2w
w w w w p
+u +v +w = + + + + gz
t x y z z x2 y 2 z 2
Along with the continuity equation in (3.6), the three equations in (3.18) create a complete math-
ematical system governing incompressible flow. The solution of these equations is not trivial nor
obvious. While the incompressible cases can be reduced to more specific cases that can be solved
analytically (see Section 5), it is evident that a generalized solution method is needed to solve
complex flow profiles. For CFD this method is called the finite volume method. This method as
well as other solution methods are outlined in Section 3.3.
=0 (3.19)
x
To solve the PDE (3.19), we must have an approximation of the first derivative of . This can be
done through Taylor series expansion about a grid point xi by:
19 of 110
USE OF CFD IN DESIGN 3 MATHEMATICS
x2 2
(x) = (xi ) + x + + ... (3.20)
x i 2 x2 i
By neglecting terms higher than first order in (3.20) we can solve for the first derivative of :
(xi + x) (xi )
= + O(x) (3.21)
x x
where O(x) is an indication of the truncation error. The same procedure can be applied to derive
more accurate derivatives as well as higher order derivations if (3.19) had called for them. There
are also three different schemes to take the Taylor series expansion: forward difference method,
central difference method, and backward difference method. The equation shown in (3.21) employs
a forward difference routine.
A finite difference approximation then provides an algebraic system at each grid point node (re-
gardless of space dimension) [2]. This equation can be linear or non-linear depending on the PDE
being solved. For the example shown in (3.19), only linear terms would be necessary. This system
of equations can be written in matrix form as
A = Q (3.22)
The equation (3.22) can then be solved for the unknowns in to obtain a solution for the PDE
(3.19). This is done through application of known boundary conditions and employing a matrix
solving scheme to obtain a solution.
An important advantage to the FD method is its simplicity [4]; however, the finite difference method
has its disadvantages. The FD method cannot be directly applied to curvilinear coordinates [4];
instead, the equations must be converted to a Cartesian coordinate system. Today the FD method
is only very rarely used for industrial applications.
The mathematics behind the finite element method can be summarized by several steps [9]:
1. Discretization
2. Local or Elemental Approximation
3. Integral Forms and Algebraic Systems: Elemental Equations
4. Assembly of Elemental Solutions
5. Computation of the Solution
6. Post-Processing
20 of 110
USE OF CFD IN DESIGN 3 MATHEMATICS
There are also various methods of approximation based on integral forms or the integral form of
the variation of the residual functional. Each one of these forms creates a different method which
fits into the computational framework of the finite element method. These include [9]:
1. Galerkin Method
2. Petrov Galerkin Method
3. Weighted Residual Method
4. Galerkin Method with Weak Form
5. Least Squares Method
There are too many details associated with the finite element method for its full presentation within
this tutorial. However, there are numerous published works with regards to the subject. These can
be be found with applications to fluid dynamics in references [8] and [9].
1. Cell-centered scheme - flow quantities are stored at the center of each cell.
2. Cell-vertex scheme - flow quantities are stored at the grid point of the cells.
The finite volume method is carried out directly in physical space, i.e., there is no change of co-
ordinate systems nor use of a jacobian of transformation. This can be both advantageous and
disadvantageous, depending upon the situation.
Lets consider the incompressible continuity equation as a representation of how the FVM works.
From (3.6) we know
v =0 (3.23)
represents the continuity equation of an incompressible flow. Converting (3.23) into an integral
form over a control volume Z
v dV = 0 (3.24)
Vi
Now we have obtained a boundary integral describing the continuity of an arbitrary control volume
Vi . To proceed further the finite volume method approximations of this surface integral would be
required on a cell-by-cell basis. This is done by using suitable quadrature formulae [2], which is
outside the scope of this tutorial and will not be shown. Approximations are introduced for volume
integrals as well, these would occur in equations other than (3.25) as well. As a result, a system
of algebraic equations is obtained for each control volume, in which the centroids to its neighbors
also appear [2].
21 of 110
USE OF CFD IN DESIGN 4 THE CFD MODELING PROCESS
Unlike other methods, the FVM can accommodate any type of grid shape. The grid defines only
the bounds of each control volume and thus, controls how the system of equations is derived for
each problem. The allowance of any grid shape allows the FVM to easily accommodate complex
geometries [2]. The allowance of arbitrary grid shapes also allows for rapid discretization of the
computational domain using automeshing techniques. These reasons among others is why the finite
volume method has become so popular in the CFD industry today.
22 of 110
USE OF CFD IN DESIGN 4 THE CFD MODELING PROCESS
The mixer has a 6 ID and is flooded with 3 of fluid (to the top of the model displayed). As can
be seen from the image the mixer is a paddle type with three blades, and has a swept diameter of
50. The blades rotate at 50 rpm. There are three fluid inlets, two water inlets and one carbon
tetrachloride inlet. The inlet piping has a 3.75 ID. The water enters with a flow rate of 1,355.31
gpm and the carbon tetrachloride enters with a flow rate of 225.88 gpm.
The primary purpose of the analysis is to estimate the mixing efficiency. We will be using some
advanced models for this analysis. For now, do not concern yourself too much with implementation
of the CFD physics; instead, follow the workflow required to complete the analysis.
For our problem, at a minimum we should calculate the mixers Reynolds number, the expected
concentrations at the outlet and the inlet velocities.
23 of 110
USE OF CFD IN DESIGN 4 THE CFD MODELING PROCESS
Where:
Simple inspection indicates that for a perfectly mixed tank the concentration of water at the outlet
should be 75%.
To determine the inlet velocities, first we must calculate the inlet area 11.04 in2 (7.126 x 10-3 m2 ).
Next convert the flow rates to the proper units (this is performed on a per inlet basis for the water).
Relevant flow features: All major flow features should be included for the analysis. This
includes large geometric features such as steps or flow obstructions.
Features that dont affect the flow under consideration: Typically, small flow features will
not be included, especially for initial analyses. Examples of this would be rivet heads for an
aerodynamic analysis or spray nozzles that may be replaced by injector features.
24 of 110
USE OF CFD IN DESIGN 4 THE CFD MODELING PROCESS
In CFD a fluid volume must be created. This volume typically will fill the void bounded by the
geometry domains. Typically, the initial computational volume will be created in a CAD package
and transferred for construction of the computational grid. The representations will require unique
surfaces for each boundary condition that will be applied to the model. Individual steps involved
in creating the volumes will be software specific.
For the paddle mixer below, the computational volume should include the volume of fluid within
the vessel, the mixing blades and the drive shaft. The volume should not include any small features
nuts and bolts, etc. Depending on the mixing energy under consideration, the volume may need to
include gas space above the mixer to track the free surface. For the initial analysis we will assume
that the free surface can be adequately represented by a slip-wall boundary condition.
In this case the mixer geometry was supplied in an as-built configuration that included mounting
brackets, detailed hub geometry and fasteners. As the first step, these model components should
be simplified or removed, as shown below.
For simplification, the impeller hub was modified by removing all mounting details and fasteners,
leaving a cylindrical volume with which the impellers intersect. The brackets and bolts associated
with the side baffles were removed from the model. As the baffles are sheet metal, their thickness
will not be included in the final model. Instead they will be represented by 2-dimensional baffle
boundary conditions. Some CFD packages offer the capability in the pre-processor to collapse thin
wall structures into planar surfaces that intersect the volume. We will assume that this function-
ality is not available.
25 of 110
USE OF CFD IN DESIGN 4 THE CFD MODELING PROCESS
Next we will core out the shaft, hub, and impeller geometry.
Figure 4.4: Computational Volume with Shaft, Hub and Impeller Removed
For this problem we are not concerned with flow details near the model inlets and outlet. Further,
we are unconcerned with the velocity distribution as the fluids enter the vessel. These simplifying
assumptions allow us to split the external surfaces to provide boundaries that we can act on in the
26 of 110
USE OF CFD IN DESIGN 4 THE CFD MODELING PROCESS
CFD software.
Figure 4.5: Computational Volume Split to Provide Inlet and Outlet Boundary Surfaces
To allow the creation of the 2D baffles the initial computational volume will be split into four
volumes. This will consist of a central core surrounded by three 120 wedges. Internal interface
boundary conditions will be applied between the central core and each wedge. Baffle interface
boundary conditions will then be applied between each wedge.
27 of 110
USE OF CFD IN DESIGN 4 THE CFD MODELING PROCESS
Structured grids have regular connectivity characterized with quadrilaterals in 2D and hexa-
hedra in 3D. The regular connectivity of the mesh allows minimization of the storage arrays
required for solution.
Unstructured grids do not display regular connectivity. This allows for the use of a wider
variety of element shapes including, tetrahedral, wedges, and polyhedral cells.
Hybrid grids contain portions of structured grids and unstructured grids. This allows for
minimization of storage requirements for areas of the computational volume that can be
meshed with a structured grid, while allowing the inclusion of complex geometric features in
the computational volume.
Generally, with most current commercial CFD solvers, conformal grids are not required. Some
academic-level solvers require structured grids, while most commercial-level solvers allow unstruc-
tured and hybrid grid topologies. Most commercial solvers also allow for the use of tetrahedral,
polyhedral and trimmed cell mesh topologies, as described below:
28 of 110
USE OF CFD IN DESIGN 4 THE CFD MODELING PROCESS
to the solution advantages and the ability to generate conformal interfaces using automeshers.
It should be noted that creating significantly biased mesh topologies, as is sometimes required
to minimize model size, can require extensive user interaction.
Trimmed Trimmed cell topologies are primarily constructed from a core hexahedral grid
that is then trimmed in the local boundary surface region to represent the models geometry.
Trimmed grids offer the advantage of consisting of a predominately hexahedral mesh with
minimal cell skewness and the ability to align the mesh with user-specified coordinate systems.
Gambit
Pro-Star
Hypermesh
Gridgen
For a more exhaustive list of available grid generation packages, including open source and com-
mercial packages (with descriptions), see [12].
As shown throughout this tutorial, the selection of mesh topology can significantly affect the cal-
culated results. For this reason, generation of appropriate computational grids is considered an art
form that relies on past experience and the analysts understanding of the flow physics with careful
solution tracking to ensure a proper final solution. In other words, there is no general governing
set of rules for the creation of computational grids.
For the mixer example we will create an auto-mesh generated trimmed cell mesh. We will employ
near wall prism layers, with the default values and select a mesh size of 0.5. Note that this mesh
29 of 110
USE OF CFD IN DESIGN 4 THE CFD MODELING PROCESS
size was chosen for model size, not based on the physics of the problem. In subsequent steps we
will refine the mesh based on the solution. The initial model contains 590,588 computational cells,
as shown below.
For the mixer under consideration, we will need to include the following physics:
30 of 110
USE OF CFD IN DESIGN 4 THE CFD MODELING PROCESS
31 of 110
USE OF CFD IN DESIGN 4 THE CFD MODELING PROCESS
It should be noted that the boundary condition inputs listed above are the minimums that must
be defined. In most cases additional inputs will be required based on the physics models that are
selected for the solution (turbulence, energy, etc.). It should also be noted that most commercial
CFD packages allow the specification of boundary conditions that vary with spatial coordinate.
This can be accomplished through either table data or through mathematical formulations.
Additional sources of boundary conditions are interface sets. Interface sets are a method of connect-
ing one computational volume to another, or to interface two boundaries on the same computational
volume with periodic or repeating boundary conditions.
Interfaces between computational volumes with the same computational physics can have the fol-
lowing properties:
Internal - Internal interfaces transfer solution variables from one volume to another without
modification.
Baffle - Baffle interfaces behave as a 2-dimesional wall.
Fan - Fan interfaces allow specification of velocity, flow rate or pressure jump based on input
fan curve information.
Fully Developed - Fully developed interfaces allow the specification of either mass flow or
pressure jump across the interface.
Porous Baffle - Porous baffles allow flow between volumes with an associated pressure loss
based on velocity.
Contact interfaces are used to connect computational volumes with dissimilar computational physics
models. Contact interfaces allow the specification of a thermal resistance (to model contact resis-
tances) and the specification of heat fluxes at the interface.
32 of 110
USE OF CFD IN DESIGN 4 THE CFD MODELING PROCESS
It is generally good practice to create contour plots to validate that the initial conditions have
been applied correctly to the model. For almost all analyses, a minimum of velocity and pressure
contour plots should be created. Depending on the selected model physics, additional plots may
be warranted. Each detailed example in this tutorial contains a discussion related to the selection
of initial conditions for the model.
We do not know, a priori, what the velocity distributions are within the mixer. It is known that
there will be swirl in the flow, but the exact magnitude and distribution of this swirl is not known.
In this case it is likely better to initialize the flow with a zero velocity and allow the software to
determine the distribution. It is expected for this case that variations in the pressure distribu-
tions within the mixer will be minimal and that the majority of the variance will be based on flow
velocity. For this reason, a zero pressure distribution through the mixer is appropriate. As the
purpose of this analysis is to determine the mixers efficiency, it is good practice to initialize the so-
lution in an unmixed case. For this case we will assign a 100% water mass fraction within the vessel.
We will set these conditions in the physics continuum, initial conditions section. Before initializa-
tion, we will establish two contour plots to verify the proper application of the initial conditions:
Velocity
Water mass fraction
33 of 110
USE OF CFD IN DESIGN 4 THE CFD MODELING PROCESS
4.8 Solve
As the Navier-Stokes equations are nonlinear, solving them requires an iterative solution method-
ology. At a minimum, all CFD solvers will provide feedback through solution residuals. Residuals
measure the change in a flow variable - continuity, momentum, energy, turbulence, etc. - per iter-
ation. It is industry standard that the residuals should decrease by at least 3 orders of magnitude
during solution.
CFD solvers provide a direct control for the solution implemented using-relaxation factors. Relax-
ation factors control the factor of the difference between the current and previous steps solution
values. These can be applied to determine the current solution value. Reducing these factors results
in a decrease in the update rate and can be helpful if the solution is undergoing oscillatory behavior.
34 of 110
USE OF CFD IN DESIGN 4 THE CFD MODELING PROCESS
Increasing the factors on a well behaved model can decrease the total number of iterations required
to achieve convergence. Generally, large modifications to the solution under-relaxation factors are
considered to be expert use of the software.
Two additional monitors will first be created to track solution convergence for the mixer:
We will allow the solution to proceed for 50 iterations, then check the wall shear plot to ensure
proper application of the boundary conditions. It should be noted that the solution should be al-
lowed to proceed for several iterations before boundary condition checks are performed; depending
on the initial and boundary conditions selected for the model, misleading feedback may occur in
a few iterations. Figure 4.11 shows that the wall motion boundary conditions were applied correctly.
35 of 110
USE OF CFD IN DESIGN 4 THE CFD MODELING PROCESS
Residuals
10
Continuity
XMomentum
1 YMomentum
ZMomentum
TKE
0.1 TDR
CCl4
Residual
0.01
0.001
0.0001
1e005
0 500 1000 1500 2000 2500 3000 3500 4000 4500 5000
Iteration
After the rotation of the mixer blades has been verified, we allow the solution to proceed until little
to no change in the solution residuals is evident.
As can be seen from the residual plot Figure 4.12, for the most part the residuals are invariant. Also
evident from the plot is that the residuals for turbulent dissipation rate and CCl4 concentration
have not reduced by an order of magnitude. For additional solution feedback, we also inspect the
outlet mass fraction plot Figure 4.13.
36 of 110
USE OF CFD IN DESIGN 4 THE CFD MODELING PROCESS
0.7
Outlet Mass Fraction of H2 0
0.69
0.68
0.67
0.66
0.65
0 500 1000 1500 2000 2500 3000 3500 4000 4500 5000
Iteration
The outlet mass fraction plot indicates that there is little to no change in calculated mass fraction
per iteration. As convergence difficulties were encountered with the turbulence model, the grid
may need refinement in the near wall area. To accomplish this we create two cylindrical volume
source terms in the inner domain, one encompassing the paddles and one encompassing the shaft,
as shown in Figure 4.14.
37 of 110
USE OF CFD IN DESIGN 4 THE CFD MODELING PROCESS
Controls are established to cause the automesher to use a smaller base grid size and to add addi-
tional boundary layer prisms to the model. The new model contains 2,223,578 computational cells,
as shown in Figure 4.15.
The solution is reconverged and the residuals and outlet mass fraction are evaluated, as shown in
Figure 4.16 and Figure 4.17.
38 of 110
USE OF CFD IN DESIGN 4 THE CFD MODELING PROCESS
Residuals
10
Continuity
X-Momentum
1
Y-Momentum
Z-Momentum
0.1 TKE
TDR
Residual
CCl4
0.01
0.001
0.0001
1e005
0 1000 2000 3000 4000 5000 6000 7000 8000
Iteration
0.70
Outlet Mass Fraction of H2 0
0.69
0.68
0.67
0.66
0.65
0 1000 2000 3000 4000 5000 6000 7000 8000
Iteration
39 of 110
USE OF CFD IN DESIGN 5 EXAMPLE 2: FLOW BETWEEN PARALLEL PLATES
Inspection of the residual plot indicates that turbulent dissipation has not been reduced by 3 orders
of magnitude. Inspection of the outlet mass fraction indicates that the calculated mass fraction
was not significantly affected by the mesh refinement step. In this case, if a designer was comparing
variants, the solution has probably reached an acceptable level of convergence. It should be noted
that other variants should be analyzed using the same methodology. If the results of the analysis
were going to be used for quantitative evaluation of the mixers performance without physical
testing, further model refinements would be warranted.
u
y
h
x umax
One of the simplest textbook cases for fluid dynamics is the flow between parallel plates. This is
a simplified case of Couette flow in which neither the top nor bottom plate is moving. Consider
the two infinite parallel plates shown in Figure 5.1. In this case all fluid particles are moving in
the x direction fully parallel to the plates,( i.e., there is no flow in the y direction). Through the
reduction of the Navier-Stokes equations (derivation not shown), the velocity profile is [5]:
1 p
u= (y 2 h2 ) (5.1)
2 x
Where:
= dynamic viscosity
40 of 110
USE OF CFD IN DESIGN 5 EXAMPLE 2: FLOW BETWEEN PARALLEL PLATES
p
x = pressure gradient in the x direction
h = the height defined in Figure 5.1
y = the y location defined in Figure 5.1
Thus it can also be shown that the maximum velocity of the flow occurs in the geometric center
(y = 0) labeled as umax . umax can be shown to be:
h2 p
umax = (5.2)
2 x
For the sake of modeling the problem, assume that we are given the following values:
While these are infinite plates, they will be modeled with a length of 5 m
Pa p
The pressure drop between the left and right is 1 m ( x = 1 Pma )
We must also check the validity of our model assumptions. The laminar model for parallel plates
is only valid for laminar flow, thus if our selected values place the problem in the turbulent region,
then the solution will not be valid. For the parallel plates problem, the flow will be laminar if the
Reynolds number is less than 1400 [5]. We can calculate the Reynolds number of our flow (specific
to the parallel plates case) as:
2h3 p
Re = = 662.81 (5.3)
32 x
Thus the Reynolds number is less than 1400 and the model case is valid for laminar flow. If we use
(5.2) we can calculate the maximum velocity in the plates to be:
(0.01)2 m
umax = (1) = 0.0499 (5.4)
2(1.002 E 3) s
41 of 110
USE OF CFD IN DESIGN 5 EXAMPLE 2: FLOW BETWEEN PARALLEL PLATES
0.02 m
5m
For the initial study we will start with a mesh with 150 cells, shown in Figure 5.4a. As the study
progresses we will implement the more refined grids to determine their effect on the calculated
velocity profiles. During the presentation we will now switch to Star-CCM+ to import the first
grid for the analysis. The commands associated with the grid import are shown below.
Star-CCM+ Commands
42 of 110
USE OF CFD IN DESIGN 5 EXAMPLE 2: FLOW BETWEEN PARALLEL PLATES
time; thus, a steady-state solver can be used. Because the velocities we are anticipating are also
low, we can decouple the relationship between velocity and pressure and use a segregated flow
solver. This will lower the solution time. As we are dealing with incompressible flow, the density
within the volume is can be assumed constant. As shown through the calculation of the Reynolds
number in (5.3), the flow is laminar, thus turbulence models do not need to be implemented. The
properties of the fluid must also be defined. These were given within the problem statement in
the previous section. The commands associated with selecting the appropriate physics models are
shown below.
Star-CCM+ Commands
1. Continua
Physics 1 (Right Click)
Select Models
Steady
Liquid
Segregated Flow
Constant Density
Laminar
Close
Models
Liguid
H20
Density
kg
Constant: Set to 998.2 m3
Dynamic Viscosity
Constant: Set to 0.001002 P a s
43 of 110
USE OF CFD IN DESIGN 5 EXAMPLE 2: FLOW BETWEEN PARALLEL PLATES
Star-CCM+ Commands
1. Regions
fluid 2D
Boundaries
outlet pressureoutlet (Double Click)
Type: Change to Pressure Outlet
inlet pressureinlet (Double Click)
Type: Change to Pressure Outlet
Physics Values
Pressure
Constant: Change to 5 Pa
It is also necessary to set up ways to monitor the development of the solution. This is done in Star-
CCM+ through the creation of Scenes. Similar actions can be taken in other software packages.
The Scenes allow the analyst to visualize the solution during each iteration until convergence is
achieved. X-Y plots, contour plots, and other visual interpretations can also provide the analyst
with useful feedback about the solution in the current iteration. This information combined with
information on solution residuals can help produce a better solution.
44 of 110
USE OF CFD IN DESIGN 5 EXAMPLE 2: FLOW BETWEEN PARALLEL PLATES
Star-CCM+ Commands
45 of 110
USE OF CFD IN DESIGN 5 EXAMPLE 2: FLOW BETWEEN PARALLEL PLATES
5.7 Solve
To solve this problem we will approach the solution in four manners:
First, solve the problem set up with Mesh A and without any initial conditions. After achieving a
converged solution for the problem the static pressure and velocity profile shown in Figure 5.4.
(a) Pressure
(b) Velocity
Star-CCM+ Commands
1. Solution Run
Now, well rerun the problem with a pressure distribution defined for an initial condition. It is a
safe assumption to say that the pressure varies linearly between both ends. A function (or a field
function in Star CCM+) can be defined to represent this pressure variation. After performing
another solution, the model converges to the same solution obtained in Figure 5.4.
46 of 110
USE OF CFD IN DESIGN 5 EXAMPLE 2: FLOW BETWEEN PARALLEL PLATES
Star-CCM+ Commands
1. Tools
Field Functions (Right Click) New
User Field Function 1 (Right Click)
Rename: initial pressure
initial pressure
Definition: 5-1*$Position 0
Function Name: initial pressure
2. Continua
Physics 1
Initial Condition
Pressure (Double Click)
Method: Field Function
Field Function Scalar initial pressure
If the model converges to the same solution with and without the pressure function, whats the
point of adding an initial condition? Since this is such a small computational model it has saved
very little time. However, if we view a graph of minimum and maximum pressure within the model
throughout iterations, the reasoning for introducing a proper initial condition is clear. By observing
Figure 5.5 and Figure 5.6 on page 48 the difference between introducing an initial condition and not
introducing one is astounding. In Figure 5.5 the minimum and maximum pressures vary by orders
of magnitude during solution. Since CFD is an iterative method, this can occur. However, after
nearly 80 iterations, the solution has returned and is converging towards the true solution values.
In contrast, in Figure 5.6 the pressure traces demonstrate a solution close to the true solution; thus
a converged solution is achieved with fewer iterations.
This is a small model and the additional 80 iterations represents a negligible amount of computa-
tion time. In a larger model, however, this may not always be the case. The computational effort
could increase by orders of magnitude especially if the initial conditions are not a proper estimate
of the solution.
Further, notice that the maximum velocity in Figure 5.4 is 0.051300 m s . This is greater than the
m
theoretical maximum velocity given by (5.4) of 0.499 s . In this case, while a converged solution
is indicated through the solution monitors, the model has not predicted the correct maximum ve-
locity. Closer inspection of the velocities at the outlet (as shown in Figure 5.7) indicates that the
solution is not a parabola but rather a triangle. This is likely caused by a lack of grid resolution
through the thickness.
Now we will use the more refined grids in an attempt to experience grid convergence. For the
first attempt at convergence, swap Mesh A with Mesh B for a higher grid resolution. As shown in
47 of 110
USE OF CFD IN DESIGN 5 EXAMPLE 2: FLOW BETWEEN PARALLEL PLATES
-5,000
Pressure [Pa]
-10,000
-15,000
-20,000
Max Pressure
Min Pressure
-25,000
0 10 20 30 40 50 60 70 80
Iteration
3
2.5
2
1.5
1 Max Pressure
Min Pressure
0.5
0
0 10 20 30 40 50 60 70 80
Iteration
Figure 5.3, Mesh B has an order of magnitude more elements than Mesh A. To refine the mesh in
the solution, we now only need to import the new gird and swap the new grid for the existing grid.
48 of 110
USE OF CFD IN DESIGN 5 EXAMPLE 2: FLOW BETWEEN PARALLEL PLATES
Due to the nonlinear iterative solution process, as well as the methods used to store the solutions
variables, a restart analysis can be performed on the refined model. This is uniquely different
than the processes associated with most FE solution methods. As the solution has been previously
converged to values approaching the theoretical solution, the number of iterations required to re-
converge the solution with the refined grid will be low. This is because the new solutions initial
conditions already approach the theoretical solution. The commands below demonstrate how the
new grid is imported and swapped for the original grid.
Star-CCM+ Commands
It should be noted that after the solution is restarted, the residuals will rise. This is due to the
fact that large changes in the flow variables can occur during the initial iterations due to the re-
fined grids ability to better capture the details in the flow. It is expected that the magnitude of
the residuals will begin to decrease after several iterations, indicating that convergence is restart-
ing. After the solution has converged with the refined grid, if the solution between one grid and
a more refined grid is the same (or within an acceptable error), then the solution is said to be
grid-independent. Grid independence or another grid convergence criterion is standard practice for
almost all academic and industry problems. The solution that we receive for velocity at the end of
the parallel plates is seen in Figure 5.8.
When Figure 5.7 and Figure 5.8 are compared, it can be stated that the solution has not yet
achieved grid independence. The solution has in fact changed with respect to grid density, which is
undesirable. We can repeat this same process for another grid with higher density. We will replace
Mesh B with Mesh C, as demonstrated below.
49 of 110
USE OF CFD IN DESIGN 5 EXAMPLE 2: FLOW BETWEEN PARALLEL PLATES
Star-CCM+ Commands
After this process is complete and the solution is re-converged, the velocity profile seen in Figure 5.9
is predicted. The contours from the plot indicate that the solution has begun to take on the
parabolic shape associated with the theoretical solution. If the process was repeated with a new grid,
incorporating double the element density, the velocity profiles would indicate that the calculated
solution is approaching grid independence. However, it should be noted that the maximum velocity
is 0.047012 m m
s , which remains different from the theoretical value of 0.499 s . The reason for this
difference will be discussed in the next section.
50 of 110
USE OF CFD IN DESIGN 5 EXAMPLE 2: FLOW BETWEEN PARALLEL PLATES
5.8 Results
Through the use of proper initial conditions we have demonstrated that the speed of the solution
can be enhanced. The effects of grid sensitivity were also investigated and shown. Figure 5.7,
Figure 5.8, and Figure 5.9 graphically show the rate of mesh convergence in the velocity profile. If
another mesh were created at a higher density than Mesh C, it would also be apparent that the
solution is approaching grid independence. However, comparison to the theoretical solution can be
better seen in Figure 5.10. Here it is shown that as we continue to refine the grid, the velocity
profile better matches the theoretical shape.
0.004
Location Y [m]
0.002
0.002
0.004
0.006
0.008
0.01
0 0.01 0.02 0.03 0.04 0.05 0.06
Velocity i [ m
s]
When refinements in the grid density are implemented the shape of the solution better approaches
theoretical velocity profile, the maximum velocity decreases from the theoretical value, as shown
in shown in Figure 5.10. While this is the case, it is by coincidence that the lower mesh density is
closer to theoretical as this is not a grid-converged solution for Mesh A and Mesh B in Figure 5.10.
In this case, either an initial problem assumption was invalid, or CFD is not capable of producing
the theoretical solution.
Recall that the theoretical solution is for an infinitely long domain, which was originally modeled
using a 5 m length. While, in an engineering sense, 5 m is much greater than the 0.02 m height,
it was demonstrated in Figure 5.10 that we have not converged to the theoretical solution. This
is due to our domain approximation. By increasing the length of the computational domain, it
51 of 110
USE OF CFD IN DESIGN 6 INTRODUCTION TO TURBULENCE
is demonstrated in Figure 5.11 that the maximum velocity approaches the theoretical solution as
the domain length approaches infinity. In Figure 5.11 all domains were constructed using the same
discretization density of 5,000 elements per meter. If the computational domain could be modeled
as infinite, it is expected that the velocity profiles would be identical to theoretical. In this case,
the selection of an improper computational domain significantly affected the fidelity of the solution.
Figure 5.11 demonstrates that with a 1 m domain length maximum velocity is 0.033193 ms or an
error greater than 30%. With this knowledge is should be obvious that the proper selection of
computational domains is critical to achieving accurate results.
0.048
0.046
Maximum Velocity [umax ]
0.044
0.042
0.04
0.038
0.036
6 Introduction to Turbulence
6.1 What is Turbulence?
Start with a dictionary definition: The haphazard secondary motion caused by eddies within a
moving fluid.
Synonyms:
Agitated
Tumultuous
52 of 110
USE OF CFD IN DESIGN 6 INTRODUCTION TO TURBULENCE
Violent
Disordered
Using engineering terminology, turbulence is the spatial and time-varying components of a flow
field. Visually, it is often seen as eddies or vortices in the flow field. Turbulence exists in scales
ranging from molecular to atmospheric motions, as shown below.
(a) Vortex Structures Behind Passenger Aircraft (b) Atmospheric Turbulence on the
Sun
Irregular
Diffuse
Rotational
Dissipative
Chaotic
Cascading energies
Integral
Taylor microscales
53 of 110
USE OF CFD IN DESIGN 6 INTRODUCTION TO TURBULENCE
Kolmogorov scales
Given the time and spatial variation of flow fields caused by turbulence it can be stated that tur-
bulent flows are not deterministic, rather they must be studied using statistical methods. Further,
by definition, the solution of a time-dependent, nonlinear equation set is dependent on the ini-
tial conditions and the time-dependent boundary conditions (i.e., the solution can display chaotic
behavior).
Implementing these modified equations in a CFD solver is then simple. All you have to do is
construct a model with enough grid points so that the spacing is less than the Kolmogorov length
scale. The number of points required to resolve this is proportional to the Reynolds number raised
to the 2.25 power, in all three Euclidean directions.
N 3 Re9/4 (6.2)
This massive grid then has to be analyzed with a time-step small enough that a fluid particle moves
less than the grid spacing for a time-step:
u0 t
C= <1 (6.3)
h
The analysis must then go through enough steps that all length scales (through the largest) are
resolved in the flow field, usually 10 - 100 times the time scales of interest. Note that this very
easily becomes millions of steps. While youre performing this analysis, every boundary condition
must be exactly matched in time and space. Note that for data analysis you will need to output
flow quantities of interest at each time-step for statistical analysis. This type of analysis is known
as direct numerical simulation (DNS). Do this perfectly and you can exactly match laboratory
experiments.
Do we do this?
Yes, CFD analyses have been performed that exactly match laboratory experiments. In most cases
it was thought that the CFD analysis had not replicated the experiment. Further review however
demonstrated that experimental error and uncertainty was responsible for most of the difference.
Given the ability to extract any flow data from any point in the CFD domain, this methodology
has become an invaluable tool in turbulence-related research. The computational costs of this
methodology are currently too great to justify applying this methodology to engineering problems.
54 of 110
USE OF CFD IN DESIGN 6 INTRODUCTION TO TURBULENCE
Transport of kinetic energy due to pressure fluctuations, turbulence and viscous stresses
Rate of production of turbulent kinetic energy from the mean flow
Rate of dissipation of turbulent kinetic energy due to viscous stresses, also referred to as the
Reynolds stresses
We now need to develop a method to predict the Reynolds stress. To this end, in 1887 Boussinesq
introduced the concept of eddy viscosity.
0 0 Ui Uj 2
ui uj = t + kij (6.7)
xj xj 3
In this case we need to predict t and k. There are a variety of methods to predict these variables,
including one equation, two equation and Reynolds stress transport models. Below is a brief
description of each model type.
55 of 110
USE OF CFD IN DESIGN 6 INTRODUCTION TO TURBULENCE
One equation models - One equation turbulence models solve one turbulent transport equa-
tion, typically for turbulent kinetic energy. One equation models are typically used for aero-
dynamic calculations, and are most suitable where the flow remains attached to the surface
and any separation present is mild.
Two equation models - Two equation models are the most common types of turbulence
models. The models operate by solving for two transported variables. Most of the models
separate into two distinct categories:
k models - k models solve for the turbulent kinetic energy (k) and the turbulent
dissipation rate ().
k models - k models solve for the turbulent kinetic energy (k) and the specific
dissipation rate ().
For the two equation models, the first term represents the turbulent energy contained
in the flow and second term considers the scale (time or length) associated with the
turbulence.
Reynolds stress models - Reynolds stress models solve a system of 7 equations to calculate all
Reynolds stresses. Only 6 stresses need to be solved for since the stress matrix is symmetric,
and a seventh equation is solved to determine the specific dissipation. The model is known
as a second-order closure model. While the Reynolds stresses are modeled, the model does
not perform well for wall-bounded turbulent flows. This is because [15]:
Ad hoc wall reflection terms are required in most pressure-strain models to mask deficient
predictions for the logarithmic region of the boundary layer.
Near-wall models typically that depend on the unit normal to the wall must be in-
troduced. This makes it virtually impossible to systematically integrate second-order
closures in complex geometry.
56 of 110
USE OF CFD IN DESIGN 6 INTRODUCTION TO TURBULENCE
And: r
w
ur = (6.10)
And:
u
u+ = (6.11)
ur
Further, in implementation the model is modified to account for the velocity profile in the viscous
sublayer, y + <= 5. In this region u+ is taken as y + . The figure below shows the velocity profiles
inherent with the Law of the Wall modeling method. As can be seen from the figure, neither the
viscous sublayer or logarithmic approximations fully capture the transition velocity profile in the
region 5 < y + < 30.
Other mean flow quantities such a temperature, production of turbulent kinetic energy and/or
species concentration can then be predicted, based on this assumed velocity profile. How some of
these quantities are calculated are dependent on the turbulence model selection. It should be noted
that when the Law of the Wall is explicitly used in the solution (i.e., there is minimal to no attempt
at near wall velocity profile resolution) these assumed profiles, and their associated quantities, will
influence the calculated wall values.
Depending on the near wall mesh resolution, in practice there are typically three methods used for
implementation of the Law of the Wall:
High-y + - The high y + model assumes that the centroid of the near wall cell lies in the
logarithmic region (y + > 30).
Low-y + - The low y+ model assumes that the mesh is resolved to the viscous sublayer. In
this case, wall laws are not used. While theoretically this occurs at y + < 5, in practice the
mesh normal to the wall should be resolved enough to produce solution y + values less than
1.
57 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
All-y + - The all y + model attempts to mimic the behavior of both the high and low y +
models to allow for relatively coarse grids with flows that stagnate, or have a greatly reduced
friction velocity. Additionally, most of these models contain a functional blending treatment
to better represent the velocity between the viscous sublayer and the logarithmic regions.
Given:
A multi-piece ferrule assembly is used to provide thermal protection at the entrance to a Waste
Heat Boiler (WHB). The ferrule assembly consists of two ceramic pieces, the ferrule and a hex
head refractory brick. Between the ferrule and the tube, additional thermal protection is provided
by Kaowool fiber wrap (paper). The front face of the tubesheet is protected with a 1 layer of
Kaowool fiber board (board). Ferrule geometry has been created for this example based on typical
dimensions seen in industry. The ferrule assembly is shown in Figure 7.1. The WHB is a kettle
type boiler constructed of carbon steel with an operating pressure of 600 psig.
1'-0"
1
3" 1" 12"
1 1 1
52 " 22" 12"
20
45
1 FERRULE
2 KAOWOOL PAPER
3 BOARD
4 HEX REFRACTORY
4 3 5 2 1 6
5 TUBESHEET
6 TUBE
58 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
Further, the properties of the refractory, paper and board are available from vendor material data
sheets.
5
Thermal Conductivity
3.5
3
Data
Data Fit
2.5
400 500 600 700 800 900 1000 1100 1200 1300 1400
Temperature [K]
59 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
0.25
y = 1.4828E-07x2 - 1.3560-04x + 1.0099E-01
R2 =9.9962E-0
0.2
0.15
0.1
Data
Data Fit
0.05
400 600 800 1000 1200 1400 1600 1800
Temperature [K]
Finally, the thermal properties for the steel are available from ASME BPVC Section II, Part D
[18].
60 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
R2 = 0.9992
55
50
45
40
35
30 Data
Data Fit
25
200 300 400 500 600 700 800 900 1000 1100
Temperature [K]
Find:
As shown in PVP2011-57625 [19], PVP2009-78073 [20] and PVP2005-71143 [21], severe problems
and short-term failures can be caused in WHBs due to high metal temperatures; and/or the peak
heat flux through the steel. Metal temperatures greater than 600 F will lead to a phenomenon
referred to as sulfidation, which causes corrosion on the tubes and loss of mechanical integrity. At
extreme temperatures and fluxes, the water on the outside of the tubes ceases to leave the surfaces
in jets and columns and instead forms a film over the heating surface. In this situation, referred to
as departure from nucleate boiling (DNB), the film coefficient on the exterior surface of the tube
instantly decreases by more than an order of magnitude, resulting in a rapid rise in tube metal
temperature. In the most extreme circumstances, the metal temperature can exceed the short-term
creep temperature limit and the tube can undergo catastrophic failure, usually resulting in buckling
rupture.
For these reasons, CFD analyses are typically used to categorize the magnitude of the peak flux and
associated temperatures in these assemblies. The use of the information from a series of analyses
based on typical operational process conditions can aid in establishing process limits to avoid boiler
damage.
61 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
- density
J 1 kg J
R - Specific gas constant (8314.4621 Kkmol 30 kmol = 277.1487 kgK )
T - temperature
13.131 kg
s m3
q = kg
= 0.12265 (7.4)
210 0.5098 m3
s
Given the tubes pitch, the model inlet velocity can be determined:
q
V = (7.5)
A
Where:
V L
Re = (7.7)
Where:
62 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
Or: s
J m
c= 1.4 277.1487 1644.26 K = 798.7 (7.10)
kg K s
We can now calculate the flow Mach number:
V 81.8 ms
M= = = 0.102 (7.11)
c 798.7 ms
The flow Mach number is significantly below 0.3 so velocity compressibility effects will be negligible.
While it is expected that the gas will undergo a significant change in density throughout the boiler
due to the gas change in temperature, in the small region near the inlet we will treat the gas as
incompressible. Steps will need to be taken to verify this assumption after solution.
Gas
Ferrule
Refractory
Board
Kaowool
Tubesheet
Tube
For the purpose of this tutorial, an axisymmetric model will be used. The use of an axisymmetric
model will reduce computation time. In an axisymmetric model all of the model components will
be represented with 2-dimensional grids and the geometry for the solid components can be directly
extracted from the 3D geometry. Surface geometry must be constructed for the gas space.
Constructing the gas volume requires consideration of the expected flow regimes. Assume that
a constant velocity inlet boundary condition will be used for the model. From a review of the
63 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
geometry it is expected that the constant inlet velocity will contract to enter the ferrule. To mini-
mize errors introduced by the constant velocity requires creation of a volume in front of the ferrule
entrance to allow the software to calculate the flow paths. For the initial models we will use a 3
long volume. This distance may need to be modified in subsequent models.
Further review of the model indicates that a recirculation zone downstream from the step at the
ferrules termination should be expected. As no boundary conditions exist that will successfully
capture the details of recirculation across a model boundary, the gas volume should be extended
downstream from this location. Once again a relatively arbitrary distance of 1 was selected for the
initial model. Tthis distance may need to be modified based on the results of the initial analysis.
Incorporating these assumptions produces the initial gas volume seen in Figure 7.5.
In this case additional work needs to be done to define surfaces that will be incorporated into inter-
face sets before the computational grid is developed. To accomplish this, each component will be
surveyed to determine other components that it interfaces with, and the interface location. While
the final model will be 2-dimensional, for the purposes of clarity, all of the following figures were
developed by creating a 30 sector model from the full 3D geometry.
The tube will have four interface locations and an additional two boundary condition locations:
64 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
TUBE TO GAS
TUBE TO KAOWOOL
TUBE TO
BOARD
TUBE TO TUBESHEET
END
The tubesheet will have two interface locations and two boundary condition locations:
Tubesheet to tube (interface)
Tubesheet to board (interface)
Tubesheet exterior (boundary condition)
Tubesheet to shell side water (boundary condition)
EXTERIOR
TUBESHEET TO WATER
TUBESHEET TO BOARD
TUBESHEET TO TUBE
The board will have four interface locations and one boundary condition location:
Board to tubesheet (interface)
Board to tube (interface)
Board to kaowool (interface)
Board to refractory (interface)
65 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
EXTERIOR
BOARD TO TUBESHEET
BOARD TO REFRACTORY
BOARD TO TUBE
BOARD TO KAOWOOL
The refractory will have 4 interface locations and one boundary condition location:
EXTERIOR
REFRACTORY TO BOARD
REFRACTORY TO GAS
REFRACTORY TO FERRULE
REFRACTORY TO KAOWOOL
66 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
KAOWOOL TO FERRULE
KAOWOOL TO FERRULE
KAOWOOL TO REFRACTORY
KAOWOOL TO BOARD
KAOWOOL TO TUBE
KAOWOOL TO GAS
67 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
FERRULE TO GAS
FERRULE TO REFRACTORY
FERRULE TO KAOWOOL
FERRULE TO KAOWOOL
The gas volume will have four interface and three boundary condition locations:
68 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
GAS TO KAOWOOL
INLET
GAS TO FERRULE
AXIS
GAS TO REFRACTORY
GAS TO FERRULE
GAS TO TUBE
OUTLET
69 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
Each of the solid continua requires input of the density, specific heat and thermal conductivity. As
this is a steady-state analysis, the density and specific heat will be defined as constants at nominal
values.
kg J
Material Density m3
Specific Heat kgK
The thermal conductivities for the materials were applied based on the material curve fits above.
(Note: Due to the iterative solution process used during the CFD solution, non-linear properties
are easily incorporated into CFD models.)
70 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
The refractory continuum is assigned to the refractory and ferrule computational volumes. The
steel continuum is assigned to the tube and tubesheet computational volumes. The remaining con-
tinua are assigned to their logical volumes.
The flow in this case is at a low Mach number (M < 0.3), without compressibility effects the
Segregated solution method is the proper choice for the initial analysis. For this analysis we will
select the default models for the gas continuum, which are as follows:
Space - Axisymmetric
Time - Steady
Material - Gas
Equation of State - Constant density
Turbulent - RANS, Realizable k , Two-layer all y+ Wall Treatment
Segregated Fluid Temperature
The gas material properties are defined using the information above. The gas physics continuum
is assigned to the gas computational volume.
First we will assume that the intensity can be calculated based on fully developed pipe flow. Note
in critical analyses some measure of the turbulence level in the thermal reactor would need to be
established. In this case the turbulence intensity at the core and the associated length scales are:
1
I = 0.16ReD 8
1
I = 0.16 39, 606 8 = 0.0426 (7.12)
l = 0.07dh
l = 0.20300
For this problem we will assign a pressure outlet at the model outlet. The use of a pressure outlet
will allow us to control the pressure in the computational domain. If, after the first analysis, we
invalidate the compressibility assumption, having established pressure control will allow an easier
transition to an ideal gas model for the gas Equation of State. In this case we will assign a con-
stant back pressure equal to the nominal system operational pressure (19 psig). Next, the axis of
symmetry should be assigned as an Axis boundary condition and the outer edge of the gas should
be changed to a symmetry boundary condition.
For the water side we know that the bulk temperature is 486 F [23]. In this case we will assign
a film coefficient of 1,409 BTU/hr-ft2 F (8,000 W/m-K), which is in the general range for film
boiling coefficients [24]. The selection of the water side film coefficient should not affect the results
significantly, as a coefficient this high represents almost no thermal resistance in the heat trans-
fer system. We change the thermal specification for the boundaries tube-to-shell-side water and
tubesheet-to-shell-side water from adiabatic (default) to convection, then assign the film coefficient
71 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
For the other boundaries within the model (Tube end, Tubesheet exterior, Board exterior and Re-
fractory exterior), the default thermal specification (adiabatic) is acceptable for this model.
Finally, all of the interfaces discussed in Select the Computational Volume should be assigned.
Star-CCM+ should automatically define the proper interface types since we have already assigned
the proper physics continua to each computational volume. For this class of problem, all interface
sets should be assigned as contact interfaces. There will be 13 interface pairs.
For the solid physics continua, the only initial condition applied is the temperature. From reviewing
the assembly geometry we can assume that the refractory material will be near the gas temperature,
the steel will be near the water temperature and the board and kaowool will be somewhere in-
between. Therefore, based on a cursory inspection we can assign the following values to the physics
continua:
Refractory 2,300 F
Steel 500 F
Board and Kaowool 1,400 F
A model Mesh1 real ke where the steps discussed to this point have been applied has been provided
as Mesh1 real ke.sim.
7.7 Solve
7.7.1 Section 1
This section will review establishing meaningful solution monitors and the use of the monitors dur-
ing the solution process to ensure converged results.
Prior to beginning, the solution monitors should be created to allow review of the solutions progress.
At a minimum, scenes should be created to allow visualization of the velocity and temperature
distributions throughout the assembly. Also monitors should be established to track the parameters
of interest (temperature and heat flux) as the solution progresses. Since we are only interested
in the peak metal temperature, we can establish a per iteration monitor of the maximum steel
temperature. To better track the heat flux we are interested in the fluxs spatial distribution at
the gas interface to the tube. To monitor this data an X-Y plot of the flux will be created at this
72 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
location. Finally, as turbulence is included in the model we are interested in the Wall y+ value.
Therefore, we will create the following scenes:
Once the plots are established we will perform 350 iterations on the problem. Below are the
commands to complete these tasks in Star-CCM+
73 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
Star-CCM+ Commands
Velocity
Displayers Scalar 1 Scalar Field Velocity: Mag-
nitude
Scalar 1 Smooth Filled
Temperature
Displayers Scalar 1 Scalar Field Temperature
Units F
6. Reports (Collapse)
7. Plots Max Metal Temp Monitor Plots (Double Click)
8. Plots (Right Click) New Plots X-Y
XY Plots 1 (Right Click) Rename Wall Heat Flux
Parts fluid main gas 2D Select Interface set
wall fluid 2 tube [In-place 10]
Y-Types Y Type 1 Scalar Boundary Heat Flux
9. Collapse Wall Heat Flux
10. Select Wall Heat Flux Ctrl-C
11. Plots (Right Click) Paste
Copy of Wall Heat Flux (Right Click) Wall y+
Y Types Y Type 1 Scalar Wall y+
12. Wall y+ (Collapse) Right Click and Open
13. Save
14. Switch to Scene Temperature
15. Initialize the Problem
16. Verify temperature profile is the same as Figure 7.15
74 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
Star-CCM+ Commands
At the conclusion of 350 iterations all residuals have decreased by 3 orders of magnitude and it
appears that the peak value of metal temperature has stabilized. This can be seen in Figure 7.16.
It can be stated that for the mesh and boundary conditions used in this example, the value of
maximum metal temperature has converged. As a secondary measure of convergence, monitor the
X-Y plot of heat flux for an additional 150 iterations.
Star-CCM+ Commands
During the additional 150 iterations, some slight movement in the tail of the plot (near the outlet)
is evident, but there is no bulk change in the shape or values near the peak flux location. It can
now be stated that for the mesh and boundary conditions used in this example, the wall heat flux
has converged.
Am I Done?
75 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
550
545
540
535
530
525
520
515
0 50 100 150 200 250 300 350 400 450 500
Iteration
NO!
7.7.2 Section 2
In this section the basic assumptions used during the initial model development will be validated.
At this point in the solution, none of the assumptions used in constructing the model have been
validated. As a first check, the adequacy of the near-wall mesh resolution for selected the turbulence
model should be verified. In this case the maximum value of Wall y+ is approximately 25. Two-
Layer K-Epsilon models will produce the least inaccuracies for intermediate meshes (1 < y + < 30).
Therefore, the turbulence treatment meets the criteria for the model.
Next the incompressible assumption should be validated. To perform this task, create a surface-
based monitor for the gas outlet that records average temperature. In this case the outlet tem-
perature is 2,229 F (1,494 K) indicating that there would be an approximately 9% change in gas
density. Remember to perform this calculation using absolute temperatures. As the gas cools down
it will become denser resulting in lower velocities than those predicted in the CFD model. The
decrease in velocity should decrease the predicted heat flux near the cold end, away from the area
of interest. For this reason the assumption can be taken as valid in this case.
76 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
Star-CCM+ Commands
Finally, validate the selected domain extents. For now, use visual cues to determine whether the
domain is adequate. First, inspect the velocity profiles near the inlet.
Figure 7.17: Velocity Profiles Near Ferrule Entrance, Mesh 1, Realizable k Two-Layer Turbulence
Inspection of the calculated velocity profiles near the inlet shows that the rapid change in velocities,
from a bulk 8 m m
s to a peak 101 s does not begin near the defined velocity inlet. In this case the
selection of domain extents near the inlet is adequate.
77 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
Figure 7.18: Velocity Profiles Near Ferrule Exit, Mesh 1, Realizable k Two-Layer Turbulence
Inspection of the calculated velocity profiles near the outlet shows that there remains a wide dis-
tribution in velocities. In this case the flow is still expanding into the tube after being accelerated
through the ferrule. Of importance in the velocity profiles is that the expected recirculation region
downstream from the ferrule does occur. Additionally, this recirculation region terminates several
diameters upstream from the outlet boundary condition. Finally, during solution no outlet recircu-
lation messages were received. For this model the selection of the domain extents near the outlet is
adequate. For a production level analysis, further analysis would likely be required to bound any
influence on the domain extents on the calculated results.
78 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
Star-CCM+ Commands
2. Run
3. Go to Solver Iteration Elapsed Time Plot Eyeball elapsed
time
Star-CCM+ Commands
As the solution progresses awave travels through the heat flux plot (this is also apparent on other
plots). At the conclusion of 490 iterations, the solution residuals have not lowered by 3 orders of
magnitude and the peak metal temperature has not stabilized. Consequently, an additional 250
iterations must be run. At the conclusion of 250 additional iterations the peak heat flux and
maximum metal temperature plots have stabilized and the residuals have been reduced by three
orders of magnitude. Querying the solution values defined above provides the following results:
Maximum metal temperature 543.4 F
Maximum Wall y+ value near tube 31.6
79 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
W
Peak heat flux on tube wall 228,220 m2
Average solver time per iteration* - 0.24 s
The peak metal temperature has increased by 13 F, or using 486 F as the background temperature,
by approximately 30%. The peak heat flux has increased by 32%. Furthermore, inspection of the
shape of the heat flux curves shows:
200000
W
m2
150000
Peak Heat Flux
100000
50000
Mesh 1 Realizable k-
Mesh 1 Standard k-
0
0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6
Distance Along Exposed Tube [m]
Figure 7.19: Comparison of Fluxes Predicted with Realizable and Standard k Models, Mesh 1
As can be seen from the figure the shape and value near the peak heat flux location is entirely
different depending on the selection of the turbulence model. Downstream from the peak flux
location, the calculated fluxes are almost identical. In this case no engineering decision can be
made with any certainty regarding the peak flux or metal temperature. Based on the Wall y+
values calculated from the previous analyses, a third Two-Layer All y+ turbulence model should
be implemented to provide more insight into the calculated results. In this case we will move from
the k models to k models. Specifically, we will use the most basic k model, the Wilcox
Standard k model [25].
Plotting the heat flux along the exposed tube face provides:
80 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
200000
W
m2
150000
Peak Heat Flux
100000
50000
Mesh 1 Realizable k-
Mesh 1 Standard k-
Mesh 1 k-Omega
0
0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6
Distance Along Exposed Tube [m]
Figure 7.20: Comparison of Fluxes Predicted with Realizable and Standard k Models and
Wilcox k Model
Obviously, there is no convergence in the peak value of heat flux or in its distribution near the peak
flux location.
Uh Oh!
7.7.3 Section 3
In this section the effect of grid refinement on the predicted temperatures and fluxes will be explored.
At this point, with unconverged - or grid dependent - results, most analysts will resort to grid
refinement. In this case the most basic refinement step will be taken, the fluid grid will be divided
at mid-points resulting in four times as many cells. In this case the grids for the solid elements will
not be divided. As the divided grid started as a conformal mesh, when it is divided the interfaces
will maintain 100% face matching. The divided grid (Mesh 2) contains 63,749 cells. The figures
below show the divided grid.
81 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
Using the techniques described in Example 2, the gas grid is swapped and the solution is recon-
verged. The following quantities can be queried from the converged model.
82 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
200000
W
m2
150000
Peak Heat Flux
100000
Figure 7.23: Comparison of Previous Fluxes with Flux Predicted Using Realizable k Model,
Grid 2
The shape of this flux curve provides no further insight into what may be the correct flux value.
Re-run this mesh with the Standard k Two Layer All y+ and Wilcox k Two Layer All y+.
83 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
200000
W
m2
150000
Peak Heat Flux
100000
Mesh 1 Realizable k-
Mesh 1 Standard k-
50000 Mesh 1 kOmega
Mesh 2 Realizable
Mesh 2 Standard k-
Mesh 2 kOmega
0
0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6
Distance Along Exposed Tube [m]
Figure 7.24: Comparison of Fluxes Predicted with Three Turbulence Models and Two Mesh Topolo-
gies
The flux values predicted from this analysis still do not provide clear insight into the maximum
heat flux value that can be expected. Furthermore, as shown in, Table 7.2 there still has been no
convergence in the peak metal temperature.
Refine the grid by mid-point splitting the elements again and re-run. The refined grid (Mesh 3)
contains 236,649 computational cells and is shown in the figures below.
84 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
The solution of the Mesh 3 grid topology with the Standard k Two-Layer All y+ model displayed
interesting behavior. As shown in the figure below, the residuals have been reduced by 3 orders of
magnitude, which would be an indication that the solution has converged.
85 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
Residuals
Energy
1 Continuity
XMomentum
YMomentum
TKE
0.01 TDR
Residual
0.0001
1e006
1e008
0 500 1000 1500 2000 2500 3000 3500 4000
Iteration
The wall heat flux along the tube demonstrates suspicious behavior at this stage of the solution.
As can be seen in the figure below, there are regions on the flux plot where the derivative is large*.
* As a sidenote from the analyst, rarely in nature will one see very rapid changes in the state of a
variable.
86 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
300,000
250,000
W
200,000
m2
Flux
150,000
100,000
50,000
0
0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6
Distance from Ferrule Termination [m]
In this case, an analyst who was not vigilant in reviewing results might rely only on the state of
the solution residuals. He or she could have output solution variables from reports, contour plots
and other analysis information without the knowledge that the solution was inaccurate.
87 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
250,000
200,000
W
m2
150,000
Flux
100,000
Mesh 1 Realizable k- Mesh 2 k-Omega
Mesh 1 Standard k- Mesh 3 Realizable k-
50,000 Mesh 1 k-Omega Mesh 3 Standard k-
Mesh 2 Realizable k- Mesh 3 k-Omega
Mesh 2 Standard k- Mesh 3 V2F
0
0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6
Distance from Ferrule Termination [m]
Once again, no convergence trends are evident in the results. During the solution a new trend in
the distribution of Wall y+ values at the tube interface was discovered, as shown in Figure 7.30.
0
0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6
Distance from Ferrule Termination [m]
Figure 7.30: Comparison of Wall y+ Values by Mesh Density and Wall Law
88 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
As you can see from the figure, only at the near wall densities present in the Mesh 3 grid topology
was the boundary layer resolved enough to capture a stagnation point occurring downstream from
the recirculation introduced by the ferrules termination.
As can be seen from Table 7.3, there remains a wide variance in both the peak metal temperature
and peak recorded flux.
As can be seen from the table, gross refinement of the model has come at a significant expense due to
the increased number of iterations required to converge the model and the additional computational
expense per iteration. No greater resolution to the engineering quantities of interest has occurred.
89 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
7.7.4 Section 4
In this section we will compare the results for a properly developed computational grid to the results
from the previous sections.
It should be apparent by now that the solution for this problem is dependent on both the selected
grid density and the choice of a turbulence model, i.e., which wall laws are implemented. When
this type of model response is evidenced, it is good practice to reduce the models dependence
on the selection of wall treatment. This is accomplished by reducing the distance to the first cell
centroid next to the wall by constructing layers of elements in the near wall region. This results in
better capture of the boundary layer, rather than relying on wall law approximations to describe
the near wall velocity field. Generally, the near wall mesh should be able to support low y+ wall
formulations (y+ < 1).
Inspection of the velocity results from the previous analyses indicates that there are two areas in
the model where mesh refinement should be employed to capture high strain gradients, near the
ferrules inlet bevel and in the recirculation zone.
90 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
The location for mesh refinement near the ferrule chamfer is obvious. The results of the previous
analyses can be used to determine how far downstream from the ferrule termination the mesh should
be refined to capture the recirculating flows. Recall from the Section 3 results that a stagnation
point became evident from the Wall y+ plot for the Mesh 3 grid topology.
Wall y +
4
3.5
2.5
Wall y +
1.5
0.5
0
0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6
Position [m]
Inspection of this plot shows that the stagnation point occurs approximately 0.13 m (5) down-
stream from the ferrules termination. Additionally, a line-probe can be applied to the model.
91 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
This probe can then be used to query the axial velocity at this location to determine the limits of
recirculation.
Star-CCM+ Commands
Open Plot
Axial Velocity
25
20
15
Velocity [m/s]
10
10
15
0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6
Position [m]
From this plot it is evident that the recirculation also occurs less than 0.13 m (5) downstream from
the ferrules termination. In this case if the grid is refined for 6 downstream from the ferrules
92 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
A new grid was developed that incorporated mesh biasing towards the two relevant flow features
and near wall refinement to allow the use of low y+ wall models. The new grid contained 38,459
computational cells and is shown in the figures below.
Figure 7.35: CFD Developed Grid near Ferrule Entrance, First Refinement Level
Figure 7.36: CFD Developed Grid near Ferrule Exit, First Refinement Level
Additionally, while the initial grid was under development two additional grids, with greater bound-
ary layer densities, were created. The difference in boundary layer density is shown in the figures
below.
93 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
94 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
We will first run the Grid 1 topology with the Realizable k model to allow a direct comparison to
the results calculated in the previous section. Figure 7.40, Figure 7.41, Figure 7.42 and Figure 7.43
show comparisons of the velocity profiles calculated during Section 3 to the velocities calculated
with the CFD developed grid.
95 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
Figure 7.40: Peak Velocities Occurring Near Ferrules Inlet, Mesh 3 Topology
Figure 7.41: Peak Velocities Occurring Near Ferrule Entrance, CFD Grid 1 Topology
96 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
97 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
An inspection of the velocities calculated for each model shows relatively good agreement, with
the general shape of the velocity distributions remaining constant and only slight changes in the
velocity magnitudes. The flux distributions between models were then compared.
200,000
180,000
160,000
140,000
W
m2
120,000
Flux
100,000
80,000
60,000
40,000 Mesh 3
CFD Grid 1
20,000
0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6 0.65
Distance from Ferrule Termination [m]
Figure 7.44: Comparison of Fluxes with Over-Refined Model and CFD Developed Grid
The Wall y+ values for the model can then be queried. As can be seen from the figure below, the
y+ values are less than 1, indicating that a low y+ wall law is appropriate.
98 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
0.4
0.35
0.3
Wall y+
0.25
0.2
0.15
0.1
0.05
Real y+
0
0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6
Distance from Ferrule Termination [m]
Due to the presence of the flow stagnation point, the standard, non-modifiedk models will not
be considered, leaving the following options:
AKN k Low-Re
V2F k
k- Wilcox
k- Menter
99 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
250,000
200,000
W
m2
150,000
Flux
100,000
CFD Grid 1
Grid 1 AKN
50,000 Grid 1 V2F
k-omega Wilcox
k-omega SST Mentor
0
0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6
Distance from Ferrule Termination [m]
In this case, two of the low y+ models, AKN and V2F, have predicted much higher fluxes than
any models used to this point. This peak flux value is greater than all values previously predicted
values, with the exception of the values predicted with the Standard k All y+ model, which
was considered an anomaly.
In this case we will then run the selected turbulence models with the refined grids.
100 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
250,000
200,000
W
m2
150,000
Flux
100,000
50,000 Grid 1
Grid 2
Grid 3
0
0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6
Distance from Ferrule Termination [m]
250,000
200,000
W
m2
150,000
Flux
100,000
50,000 Grid 1
Grid 2
Grid 3
0
0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6
Distance from Ferrule Termination [m]
101 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
200,000
150,000
W
m2
Flux
100,000
50,000
Grid 1
Grid 2
Grid 3
0
0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6
Distance from Ferrule Termination [m]
200,000
150,000
W
m2
Flux
100,000
50,000
Grid 1
Grid 2
Grid 3
0
0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6
Distance from Ferrule Termination [m]
102 of 110
USE OF CFD IN DESIGN 7 EXAMPLE 3: WASTE HEAT BOILER FERRULE
It can be stated that grid independence has been established for all of the turbulence model sets.
Below is a comparison of the results.
250,000
200,000
W
m2
150,000
Flux
100,000
V2F
50,000 AKN
Wilcox
SST Mentor
0
0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6
Distance from Ferrule Termination [m]
Obviously the predicted flux values are converging closer to a final value, with a likely peak flux
between 225,000 W/m2 and 275,000 W/m2 . While there is still a 20% spread in the estimated flux
value, it should be noted that the values predicted using true CFD methodology are all greater than
the values predicted using standard mesh refinement techniques in Section 2, with the exception of
the value predicted using the Standard k model. In this case it can be stated that an analyst
who used the methodology in Section 2 while arriving at the Standard k peak flux was lucky
instead of good.
103 of 110
USE OF CFD IN DESIGN 8 ADVANCED TOPICS
Given these results, interpretation of the data may be possible depending on the purpose. For design
comparison analyses qualitative data comparisons could be performed. If enough historical data
was available, including occurrences of failures, data from several analyses, performed using the
same methodologies could be used to establish operational limits. If no historical data is available,
the maximum predicted flux values could be used, or a more rigorous modeling methodology may
be warranted.
8 Advanced Topics
DES and LES turbulence modeling
Porous media
Including radiation in the energy calculation
Multi-component flows, including:
Multi-species
Volume of fluid
Lagrangian methods, and
Reacting flows
Transient Analyses
To demonstrate the use of DES, the axisymmetric model developed for the ferrule analysis was
modified to a 3-dimensional periodic model. A transient analysis was then performed for a suffi-
cient period of time to reach a quasi-steady-state solution. This required 139,000 time-steps, or 2.8
million iterations.
Figure 8.1 and Figure 8.2 show the vorticity and temperatures from a single step during the analysis.
As can be seen from the figures, the calculated flow field is no longer regular as calculated during
a RANS analysis. During the tutorial, an animation will be used to demonstrate the time-history
nature of the flow field.
104 of 110
USE OF CFD IN DESIGN 8 ADVANCED TOPICS
105 of 110
USE OF CFD IN DESIGN 8 ADVANCED TOPICS
The model inputs (parameters) used to modify the momentum source terms are typically derived
from either empirical relations (Ergun, etc...), or through physical testing values. PVP2008-61621
describes modifications to basic by region turbulence modeling on a packed bed that allow the
prediction of bed bypass due to the reduction in packing fraction at the near-wall location.
8.3 Radiation
In many cases, at temperatures relevant for PVP, radiation becomes a fundamental mode of heat
transfer. Commercial CFD solvers allow the inclusion of radiation through two methods, surface-
to-surface and participating media.
Surface-to-surface methods assume that all of the model surfaces surrounding the fluid domain are
opaque. In this case ray tracing methods are used at the start of the solution to determine the
view factors between boundary cell faces on the model. During solution, the temperature difference
between cell faces is coupled with the standard Stefan-Boltzman law to determine the transferred
radiative energy. The iterative solution of the energy equation then allows for determination of the
final temperatures, with radiation included.
Participating media models also perform ray tracing to determine the view factors between cells;
although, due to the inclusion of participating media, the ray tracing is performed on an iteration-
by-iteration basis. This results in increased computational requirements for the solution of this
model.
Both methods typically allow the consideration of multi-band and gray thermal models.
Multi-Component
106 of 110
USE OF CFD IN DESIGN 9 SUMMARY
Volume-of-fluid
Lagrangian
Multi-Component
Multi-component models are used to simulate miscible mixtures of either fluids or gases. In stan-
dard implementations the mixture components must all belong to the same phase. The model
calculates local composite fluid properties based on the concentration of each species within the
computational cell. Modifications to the model allow reaction modeling between species defined in
the model.
Volume-of-Fluid
The volume of fluid (VOF) model is used to simulate immiscible mixtures of fluids and/or gases.
The VOF model resolves the interfaces between the phases through numerical techniques. A re-
quirement of the model is that if it is used to resolve small structures in the flow, such as bubbles,
the grid density must be such that each small flow feature is captured by at least three cells. Some
uses of the VOF model include weir and open channel flow, tank sloshing and boiling simulations.
Two animations demonstrating VOF flow are included with the course materials.
Lagrangian
The Lagrangian phase model is used to model dispersed phases, such as droplets, bubbles or parti-
cles, within a continuum. The model operates by tracking parcels of the secondary phase. Typically
parcels do not model individual particles within the flow; instead, they represent a statistical quan-
tity (mass) of the phase. Additional models allow for the consideration of volatilization, reactions,
film boiling particle break-up and coalescence.
Transient Analyses
Transient analyses can vary from LES/DES/DNS analyses of detailed flow phenomena with small
enough time-steps to capture convective flows on a cell-by-cell basis to long-term analyses per-
formed using RANS methods to eliminate the need to capture convective terms on a cell-by-cell
basis. Boundary conditions can be varied using tabular data or functions on a time dependent basis.
9 Summary
The following statements can be made based on the information presented in the tutorial:
CFD analyses require considerable forethought if correct answers are to be obtained from
the analysis,
Grid topology requirements for a given problem are based on past experience with similar
flow fields, and
107 of 110
USE OF CFD IN DESIGN 9 SUMMARY
Intimate knowledge is required as to how selected models operate, including their requirements
and limitations
In short, properly modeling phenomena with CFD requires KNOWLEDGE and VIGILANCE.
108 of 110
USE OF CFD IN DESIGN REFERENCES
References
[1] Collins English Dictionary - Complete and Unabridged 10th Edition. Apr 2012.
[2] Ferziger, Joel H. and Peric, M. . Computational Methods for Fluid Dynamics. Springer, Berlin,
1999.
[4] Blazek, J. Computational Fluid Dynamics: Principles and Applications. Elsevier, Amsterdam,
2001.
[5] Bruce R. Munson, Donald F. Young and T.H. Okiishi. Fundamentals of Fluid Mechanics.
Wiley, New York,NY, 1994.
[7] Bachelor, G.K. An Introduction to Fluid Dynamics. Cambridge University Press, Cambridge,
1967.
[8] Reddy, J.N. . The Finite Element Method in Heat Transfer and Fluid Dynamics. C.R.C Press,
1994.
[9] Surana, K.S. and Reddy, J.N. Mathematics of Computations and the Finite Element Method
for Boundary Value Problems. (Manuscript Currently in Publication) 2012.
[11] Peric, Milovan and Ferguson, Stephen. The Advantage of Polyhedral Meshes. http://www.
plmmarketplace.com/upload/Temp/The_Advantage_of_polyhedral.pdf, April 2012.
[15] Speziale, C.G.,. A Review of Reynolds Stress Models for Turbulent Shear Flows.
[16] Harbison-Walker Refractories. Insulating Castables for Oil Refineries and Chemical Plants.
Product / Application Update.
[19] McGuffie, S., Porter, M., Martens, D., Demskie, M. Combining CFD Derived Information and
Thermodynamic Analyses to Investigate Waste Heat Boiler Characteristics. PVP2011-57265.
[20] Porter, M., Martens, D.,McGuffie, S., Wheeler, J. A Means of Avoiding Sulfur Recovery
Reaction Furnace Fired Tube Boiler Failures. PVP2009-78073.
109 of 110
USE OF CFD IN DESIGN REFERENCES
[21] Porter, M., Martens, D., McGuffie, S., Duffy, T. Computational Fluid Dynamics Investigation
of a High Temperature Waste Heat Exchanger Tube Sheet Assembly. PVP2005-71143.
[23] Lindeburg, Michael R. . Mechanical Engineering Reference Manual for the PE Exam. Profes-
sional Publications, Belmont, CA, 2001.
[24] Hodge, B.K. Analysis and Design of Energy Systems, Second Edition. 1990.
[25] Wilcox, D.C. Turbulence Modeling for CFD, Second Edition. DCW Industries, Inc, 1998.
110 of 110