Manual
Manual
1 CFD - An Introduction 1
1.1 What is CFD . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Problem Solving in CFD using Equations . . . . . . . . . . . . 2
1.3 Governing (Navier-Stokes) Equations of Fluid Dynamics . . . 4
1.3.1 General - Compressible and Viscous . . . . . . . . . . . 4
1.3.2 Incompressible and Viscous . . . . . . . . . . . . . . . 5
1.4 Applications of CFD . . . . . . . . . . . . . . . . . . . . . . . 5
1.5 FAQs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2 Welcome to CFDTutorTM 11
TM
2.1 Installing CFDTutor . . . . . . . . . . . . . . . . . . . . . . 15
2.2 A First Look At CFDTutor . . . . . . . . . . . . . . . . . . . 16
4 Defining Geometry 29
4.1 Points . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
4.1.1 Create Points . . . . . . . . . . . . . . . . . . . . . . . 29
4.1.2 Connect Points . . . . . . . . . . . . . . . . . . . . . . 30
4.1.3 Close Curve . . . . . . . . . . . . . . . . . . . . . . . . 30
4.1.4 Delete All Points and Clear Screen . . . . . . . . . . . 30
4.1.5 Copy Point . . . . . . . . . . . . . . . . . . . . . . . . 31
4.1.6 Move Point . . . . . . . . . . . . . . . . . . . . . . . . 31
4.2 Polylines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
i
ii CONTENTS
5 Defining Grids 39
5.1 Create Polyline Equal Arc . . . . . . . . . . . . . . . . . . . . 40
5.2 Define Type of Grid . . . . . . . . . . . . . . . . . . . . . . . 40
5.2.1 2D Grid . . . . . . . . . . . . . . . . . . . . . . . . . . 40
5.2.2 Smoothen a Grid . . . . . . . . . . . . . . . . . . . . . 41
5.3 Boundary Type . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.3.1 Inflow and Outflow . . . . . . . . . . . . . . . . . . . . 41
7 View Solution 49
A.1.6 Grid . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
A.1.7 Boundary Type . . . . . . . . . . . . . . . . . . . . . . 63
A.1.8 Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . 64
A.1.9 Visualization . . . . . . . . . . . . . . . . . . . . . . . 65
A.1.10 Help . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
A.2 Tool bar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
vii
viii LIST OF FIGURES
CFD - An Introduction
The equations governing the fluid flow problem are the continuity (con-
servation of mass), the Navier-Stokes (conservation of momentum), and the
energy equations. These equations form a system of coupled non-linear par-
tial differential equations (PDEs). Because of the non-linear terms in these
PDEs, analytical methods can yield very few solutions. In general, closed
form analytical solutions are possible only if these PDEs can be made lin-
ear, either because non-linear terms naturally drop out (e.g., fully developed
flows in ducts and flows that are inviscid and irrotational everywhere) or
because nonlinear terms are small compared to other terms so that they can
be neglected (e.g., creeping flows, small amplitude sloshing of liquid etc.). If
the non-linearities in the governing PDEs cannot be neglected, which is the
situation for most engineering flows, then numerical methods are needed to
obtain solutions.
CFD is the art of replacing the differential equation governing the Fluid
Flow, with a set of algebraic equations (the process is called discretization),
1
2 CHAPTER 1. CFD - AN INTRODUCTION
which in turn can be solved with the aid of a digital computer to get an
approximate solution. The well known discretization methods used in CFD
are Finite Difference Method (FDM), Finite Volume Method (FVM), Finite
Element Method (FEM), and Boundary Element Method (BEM).
FDM is the most commonly used method in CFD applications. Here the
domain including the boundary of the physical problem is covered by a grid
or mesh. At each of the interior grid point the original Differential Equations
are replaced by equivalent finite difference approximations. In making this
replacement, we introduce an error which is proportional to the size of the
grid. This error can be reduced by making the grid size smaller to get an
accurate solution within some specified tolerance.
crete set of equations is a problem that combines both physics and numerical
analysis; for example, it is important to maintain conservation of mass in the
discrete equations. At each node in the mesh, between 3 and 20 variables
are associated: the pressure, the three velocity components, density, temper-
ature, etc. Furthermore, capturing physically important phenomena such as
turbulence requires extremely fine meshes in parts of the physical domain.
Currently meshes with 20,000 to 2,000,000 nodes are common, leading to
systems with up to 40,000,000 unknowns.
Methods for solving large sparse systems of equations are a hot topic right
now, since that is often the most time-consuming part of the program, and
because the ability to solve them is the limiting factor in the size of problem
and complexity of the physics that can be handled. Direct methods, which
factor the matrices, require more computer storage than is permissible for
all but the smallest problems. Iterative methods use less storage but suffer
from a lack of robustness: they often fail to converge. The solution is to use
preconditioning; that is, to premultiply the linear system by some matrix
that makes it easier for the iterative method to converge.
2. Momentum
3. Energy
1.4. APPLICATIONS OF CFD 5
V2 V2
∂ ∂ ∂T
ρ e+ +∇· ρ e+ V = ρq̇ + k +
∂t 2 2 ∂x ∂x
∂ ∂T ∂ ∂T ∂(up) ∂(vp) ∂(wp)
k + k − − − +
∂y ∂y ∂z ∂z ∂x ∂y ∂z
∂(uτxx ) ∂(uτyx ) ∂(uτzx ) ∂(vτxy ) ∂(vτyy )
+ + + + +
∂x ∂y ∂z ∂x ∂y
∂(vτzy ) ∂(wτxz ) ∂(wτyz ) ∂(wτzz )
+ + + + ρf · V (1.3)
∂z ∂x ∂y ∂z
∂u ∂v ∂w
∇·V= + + =0 (1.4)
∂x ∂y ∂z
2. Momentum
∂ ∂p
ρ +∇·V u=− + µ∇2 u + ρfx (1.5a)
∂t ∂x
∂ ∂p
ρ +∇·V v =− + µ∇2 v + ρfy (1.5b)
∂t ∂y
∂ ∂p
ρ + ∇ · V w = − + µ∇2 w + ρfz (1.5c)
∂t ∂z
1.5 FAQs
• What is CFD?
Computational Fluid Dynamics (CFD) is the science of predicting fluid
flow, heat transfer, mass transfer, chemical reactions, and related phe-
nomena by solving the mathematical equations which govern these pro-
cesses using computational methods.
1.5. FAQS 7
Knowing how fluids will flow, and what will be their quantitative effects
on the solids with which they are in contact, assists:-
Welcome to CFDTutorTM
Welcome to CFDTutorTM ! You now own one of the most educative and ef-
fective Computational Fluid Dynamics (CFD) software tools available for
beginners - and you’ve just taken a big step toward learning CFD.
11
12 CHAPTER 2. WELCOME TO CFDTUTORTM
What CFDTutorTMDoes
• CFD ‘Tutor’
CFDTutorTM is a training module designed to help beginners simulate
two dimensional (2D) flows. It decreases the CFD learning curve con-
siderably, while strengthening the fundamentals of fluid dynamics.
• Simulator
CFDTutorTM can be used as a virtual laboratory wherein one can sim-
ulate a fluid flow to ‘see’ the motion of fluid inside or outside a given
shape. Flow patterns, normally referred to as streamlines, can be cre-
ated and analyzed as a function of flow parameters such as Mach num-
ber and / or Reynolds number for any given 2D shape.
• Professors
With the capability of visualizing the flow development, CFDTutorTM can
be used as a teaching aid and can potentially replace fluid mechanics
laboratories.
• Engineers
CFDTutorTM provides an excellent solution for the training of human
resources to execute complex CFD problems.
2.1. INSTALLING CFDTUTORTM 15
For the record, however, you need a Pentium III Computer with a CD
drive, running MS Windows 9x or later, if you received CFDTutorTM on CD.
If you downloaded the CFDTutorTM installer from the CFDTutorTM website, a
CD drive is unnecessary.
1. Click on Start
2. Click on Programs
3. Click on CFDTutorTM
4. Click on CFDTutorTM - 1.0
• Menu Bar
Application commands are listed in the menu bar. In Wizard, the tutor
mode, the Menu Bar is not active.
• Tool bar
Contains icons of specific application commands. In Wizard mode, the
2.2. A FIRST LOOK AT CFDTUTOR 17
Tool Bar is active. Place your pointer on top of an icon to read the
tool-tip for that icon.
• Wizard Panel
This is a specially designed panel that lists the CFD Cycle as a Step
Method. In addition to this step-by-step solving process, several solved
sample problems are given. On selecting a problem a brief description
of that problem is provided in the Panel. At the bottom of the Panel
there are three buttons - Quit, Back and Next. Selecting Quit will
exit Wizard and open the Interactive application. On selection of a
problem, for example: Backward Facing Step, click Next to start the
CFD solving process. Click Back to revert to the previous step.
• Workspace
The is the graphics area where you create entities. In Wizard mode,
this area is for viewing only.
• Status Bar
Provides feedback of the internal processes.
18 CHAPTER 2. WELCOME TO CFDTUTORTM
CFDTutor - Interactive
This is the expert mode to be used after you have undergone training in
Wizard. In Interactive, you can create any 2-D shape as also the domain in
which the flow field is to be simulated. You have to follow the steps learned in
Wizard to solve your created 2D problem. Given below is a brief description
of the Interactive Application.
• Title Bar
Includes the CFDTutor Control menu button, information about the
application (CFDTutor Version 1.0), and the Minimize/Restore/Close
buttons.
• Menu Bar
The Menu bar is directly below the Title bar and displays the menu.
Application commands are listed in the menu bar. Clicking on any of
the words reveal drop-down menus with additional commands.
The menu begins with the word File and continues with the following:
Create, Edit, Tools, Display, Grid, Boundary Type, Analysis,
Visualization, and Help.
You use the menu to give instructions to the software. Point with your
mouse to a menu option and click the left mouse button. A drop-down
menu will appear. You can now use the left and right arrow keys on
your keyboard to move left and right across the Menu bar options. You
can use the up and down arrow keys to move up and down the drop-
down menu. To select an option, highlight the item on the drop-down
menu and press Enter. You can also use your mouse - left-click to select
an option.
• Tool bar
The Tool bar is located below the Menu bar. The Tool bar provides
shortcuts to the menu commands. It contains icons of specific applica-
tion commands.
The Tool bar begins with the icon Open File and continues with the
following: Save File, Zoom In, Zoom Out, Zoom Seleted, Move
Pan, Default View, Pick an Entity, Select an Entity, Deselect
an Entity, Delete Selected, Delete All, Show All Points, Show
Boundary Points, Show Wizard, Stop Slover, and Show Solu-
20 CHAPTER 2. WELCOME TO CFDTUTORTM
tion Values.
Point with your mouse to an icon to read the tool-tip. Use your mouse
- left-click to select an icon.
• Workspace
The workspace is the area located below the Tool bar. This is the
drawing area where you create entities.
• Status Bar
The Status bar appears at the bottom of the screen. Provides feedback
of the internal processes.
Chapter 3
Wizard, the tutor lists the CFD cycle as a step-by-step process, thereby
acquainting you with the CFD solving process. Navigating Interactive - the
expert mode is briefly described here.
1. Select Problem
Select a problem from the set of problems provided in the scroll-down
21
22 CHAPTER 3. USING WIZARD AND INTERACTIVE
box and s brief description of the chosen problem appears at the bot-
tom of the panel. Click Next to move to the following step.
2. Define Geometry
You can view the diagram and the parameters of the problem selected.
You can experiment and insert new values for the parameters, however,
default values are provided to guide you. Click Next to move to the
following step.
3. Define Grid
The first step toward grid generation is selecting the type and quality
of grid.
Type of Grid as unstructured or structured.
Quality of the Grid as either Coarse, Medium or Fine.
It is at this stage that the Boundary Type is defined as Inflow and
Outflow. Click Next to move to the following step.
6. View Solution:
In this step you can monitor the solution while the solver is running.
Monitor - select any of the following options to monitor the simulation
- Velocity X, Velocity Y, Pressure, Temperature, or Mach.
Animation - select ON to record the simulation.
Finally, click on Run Solver to trigger the solver and begin the sim-
ulation.
Note: If at anytime you want to quit solving the problem while the
solver is running, click on the Stop Solver icon on the Tool bar. This
will stop the solver and will display the solution at the last display at
iteration. Once the solution has converged you have to save the solu-
tion file.
To clear the display, click on Visualization in the Menu bar and from
the drop-down menu, click on Clear Display.
24 CHAPTER 3. USING WIZARD AND INTERACTIVE
To view the converged solution in any one of the following contour plots
such as : Velocity Vector, Pressure Plot, Velocity X Plot, Velocity Y Plot,
Mach or Temperature Plot - follow the example given below:
Velocity Vector
Contour plots of mach number, pressure, temperature, etc. are often used
to present CFD data so that it can be visually interpreted easily.
Note: If you are in Interactive and would like to return to Wizard, click
on Show Wizard icon on the Tool bar.
3.2. GETTING FAMILIAR WITH CFDTUTOR INTERACTIVE 25
You have to Quit the Wizard Mode to open the Interactive Mode. Do the
following exercise which demonstrates opening CFDTutor in the Interactive
Mode.
• Menu bar
• Tool Bar
Close Interactive
To close and exit Interactive:
3. Press Enter.
Note: You can use the mouse to select options from the Menu bar and
icons from the Tool bar. Just place the pointer of your mouse over an op-
tion/icon to be selected and left-click your mouse.
You can now move on and define your own problem. In the next Chapter -
Defining Geometry, you will learn the different methods of creating geometry.
28 CHAPTER 3. USING WIZARD AND INTERACTIVE
Chapter 4
Defining Geometry
Defining the geometry for an inflow problem involves creating points or poly-
lines, connecting points with polylines; connecting polylines and closing the
curve(s). Some additional steps are required to draw the geometry for an
outflow problem namely the creation of a domain area.
4.1 Points
Points are used to specify line segment endpoints, grid centers, line and
anchor load positions, and all other data required to define the geometry of
a problem. Points are created when you select the Point command from the
Create Menu if a point does not already exist at the position where you
have clicked.
1. Choose Point from the Create menu on the Menu bar. The
cursor changes from an arrow to a cross-hair and the status bar
indicates that Point is the current mode.
2. Move the cursor to the desired position and click the left mouse
button. A small blue square appears at the point position.
29
30 CHAPTER 4. DEFINING GEOMETRY
1. Click on Create on the Menu bar and next click on Polyline from
Points.
1. Click on Edit in the Menu bar and next click on Open / Close
Curve.
1. Click on the Delete All icon on the Tool bar, or from Edit in the
Menu bar, click on Delete All.
2. Click on Yes in the dialog box: ‘CFDTutor Warning - Are You Sure?’.
4.1. POINTS 31
1. Translate
Insert the values for the X and Y axis you want the point to be trans-
lated to.
2. Scale
Insert the values for the X and Y axis you want the point to be scaled
to.
3. Rotate
Insert a value for the Angle of Rotation for the new point.
4. Mirror
Make a mirror copy of a point by either X or Y axis.
1. First you have to deselect all the points. Click on Deselect All from
the Tool bar.
3. Position the cursor over the point to be copied and click the left mouse
button.
4. Click on Tools on the Menu barand from the drop-down menu, click
on Copy.
1. Translate
Translate any point by inserting values for X and Y axis.
2. Scale
Scale a point by providing the values for X and Y axis.
3. Rotate
Rotate the angle of a selected point by providing an Angle of Rota-
tion
4. Mirror
You can mirror a point to be moved by either X or Y axis.
1. First you have to deselect all the points. Click on Deselect All from
the Tool bar.
3. Position the cursor over the point to be moved and click the left mouse
button.
4.2 Polylines
Polylines are used to specify a series of connected line segments. Polylines
are created when you select the Polyline command from the Create Menu,
if a polyline does not already exist at the position where you have clicked.
• Create Polyline
4.2. POLYLINES 33
1. Choose Polyline from the Create menu on the Menu bar. The
cursor changes from an arrow to an asterisk and the status bar
indicates that Polyline is the current mode.
2. Move the cursor to the desired position and click the left mouse
button. A small blue square appears at the polyline position.
3. Repeat Step 2 for the desired length of the polyline.
4. Click the right mouse button to finish drawing the polyline.
1. Click on Edit from the Tool bar and click on Join Curves.
1. Click on the Delete All icon on the Tool bar, or click on Edit in
the Menu bar and click on Delete All.
2. Click on Yes in the dialog box: ‘CFDTutor Warning - Are You
Sure?’.
2. Click on Pick an Entity on the Tool bar and click on the entity
to be deleted.
3. Click on Edit on the Menu bar and click on Delete Selected
4. Repeat steps 1 to 3 if there is more than one entity to be selected
and deleted.
1. Click on Edit on the Menu bar and click on Delete Last Se-
lected
2. Repeat the above-mentioned step to delete the next recently worked
on entity.
1. Click on the Delete All icon on the Tool bar, or click on Edit in
the Menu bar and next click on Delete All.
2. Click on Yes in the dialog box: ‘CFDTutorTM Warning - Are You
Sure?’.
Defining Grids
39
40 CHAPTER 5. DEFINING GRIDS
5.2.1 2D Grid
You can generate a 2D (two dimensional) unstructured grid using the 2D
Delaunay Triangulation method of triangulation. In this method most of
the triangles turn out to be equilateral in shape. Points can be clustered
according to length or area of the triangles to calculate flow details. Selecting
Length, allows you to adjust the edge ratio by length. Similarly choosing
Area, allows you to adjust the triangle ratio by area.
5.3. BOUNDARY TYPE 41
1. Click on Grid in the Menu bar, from the drop-down menu, click on
2D Unstructured.
3. Pick the 1st, Next and Last points of the edge selected as inflow.
42 CHAPTER 5. DEFINING GRIDS
2. Pick the 1st, Next and Last points on the edge selected as outflow.
This chapter discussed defining grids and boundary edges for a problem.
The next chapter discusses solver controls and flow conditions for a problem.
Chapter 6
43
44 CHAPTER 6. SOLVER CONTROLS AND FLOW CONDITIONS
• Incompressible Model
In this model, the flow equations assume that the density changes are
negligible. The terms with coefficient involving coefficient of viscosity
are not out to be zero. This model is quite realistic for simulation of
liquids.
• Steger Warming
Steger and Warming used an approach where fluxes are split based on
the signs of the Eigenvalues.
1. Click on Analysis in the Menu bar, from the drop-down menu, click
on Solver Controls.
2. In the dialog box titled: Solver Controls- there are two or more
options for each solver control:
1. Two properties constant at inlet and one at the outlet for subsonic
flow.
2. Three properties constant at inlet and none at outlet in case of
supersonic flow.
The above statements can be exemplified by the fact that a supersonic
flow in a Converging Diverging Nozzle remain unaffected from change
in value of back pressure. The properties that would be held constant
is decided by taking into account the stability of the numerical scheme.
• Enthalpy Based
The second type of BC implementation is based on enthalpy, where en-
6.2. FLOW CONDITIONS 47
thalpy and density are held constant at the inlet. This implementation
is not very stable mathematically. However, the solutions can diverge
in some cases.
Under Boundary Conditions it assumed that a flow enters and exits the
domain of interest. Normally Mach No.Inlet, Pressure Inlet, Density,
Angle of Attack of the flow as it enters the domain are specified as the
Boundary condition. In addition to the above parameters, for a flow
exiting the domain, the exit pressure or Pressure Outlet must also be
specified as the Boundary Condition.
To determine the Flow Conditions:
1. Click on Analysis in the Menu bar, from the drop-down menu, click
on Flow Conditions.
2. In the dialog box titled: Flow Conditions- default values are provided
for Initial Condition, Boundary Condition and Convergence
Criteria*. Click on OK.
*Note: You can change any of the default values provided to guide you.
You can also specify the Total Number of Iteration as well as the Display at
Iteration.
To learn how to view the converged solution, refer to the next chapter on
View Solution.
Chapter 7
View Solution
To view a saved solution, you have to first read the solution file ( saved earlier
at the iteration completed message - refer to Chapter 6 - section on Monitor
Simulation).
1. Click on Visualization in the Menu bar,from the drop-down menu,
click on Read Solution File.
2. From the pop-up window, select the previously saved file, for example
- File1 and Click on Open.
• Clear Display
Clears the display of the previous view on screen. For example, if
you were viewing a velocity vector plot and would like to view the
temperature plot for the same problem, use a clear display or else the
vector arrows will be superimposed on the visual of the temperature
plot. To clear the display:
1. Click on Visualization in the Menu bar,from the drop-down
menu, click on Clear Display.
49
50 CHAPTER 7. VIEW SOLUTION
• Velocity Vector
Velocity is a vector quantity. As such, velocity is ‘direction-aware’.
This means that velocity is speed with direction. When evaluating
the velocity of an object, you must keep track of its direction. The
direction of the velocity is speed with a direction, velocity vector is the
same as the direction in which an object is moving. It does not matter
whether the object is speeding up or slowing down, if the object is
moving rightwards, then its velocity is described as being rightwards.
If an object is moving downward, then its velocity is described as being
downward. To ‘view’ the converged solution in terms of the velocity
vector contour plot, do the following:
• Colour Plots
You have an option of viewing the CFD results through five colour plots
-Pressure, Temperature, Mach No., Velocity X, and Velocity
Y. Red ”hot” areas indicate high values and blue ”cool” areas represent
low values. The values corresponding to the different colours can be
seen in a dialog box of the selected plot.
Note: To view the solution in any of the five colour plots - you have
to first read the solution file. See View Solution.
• Pressure Plot
Red ”hot” areas indicate ”high” pressure areas and blue ”cool” areas
represent low pressure areas. To view the Pressure Plot for a saved file:
• Temperature Plot
Red ”hot” areas indicate ”high” temperature areas and blue ”cool”
areas represent low temperature areas. To view the Temperature Plot
for a saved file:
• Mach No.
Red ”hot” areas indicate ”high” Mach number and blue ”cool” areas
represent low Mach number. To view the Mach No. for a saved file:
• Velocity X Plot
To view the Velocity X Plot for a saved file:
• Velocity Y Plot
To view the Velocity Y Plot for a saved file:
This chapter explains the commands on the Menu bar and the Tool bar.
Note: If you want to open a Saved Solution File (.cgns file format),
click on the Visualization menu and select the Read Solution File
command. Select the file you want to view and click Open.
• Save
Saves files containing only geometry or girds.
53
54 APPENDIX A. CFDTUTOR, MENU BAR AND TOOL BAR
2. Select the required file from the pop-up window and double-click
on the file name or click on Open .
• Exit
Closes and exits CFDTutor Interactive application.
A.1.2 Create
Create defines the geometry for a problem. Creating geometry is always
a challenge. Create offers you four options to choose from to define your
geometry.
1. Point
3. Polyline
Plot free points using the Points option, next, join the vertices with
Polyline from Points or draw Polylines and if you would like to view the
only the points on the polyline, choose the Points from Polyline option.
• Point
A Point marks a single set of coordinates in space. Using Point you
can place markers and construct objects. You can view the coordinates
for your pointer on the top left hand corner of CFDTutor Interactive
screen.
To connect the points, choose the option Polyline from Points. This
option connects the points with a polyline, but, it will not close the
curve. Go to the Open / Close Curve option under Edit. To draw
polylines from points, follow these steps:
1. Click on Create and from the drop-down menu, click on Polyline
from Points.
3. Click OK.
A.1.3 Edit
• Open / Close Curve
Opens or closes a curve.
• Delete Selected
Deletes the selected geometry. Deselect the entities not to be deleted,
before using this command.
• Delete All
This option clears and refreshes the screen.
4. Click on Edit and from the drop-down menu click on Move Point
using Mouse. You can now move the selected point using your
mouse.
5. To fix the point, click your left mouse button.
• Move Polyline
Moves a polyline on inserting the coordinates for the new polyline lo-
cation. To execute this option, make sure that all the points on the
polyline are visible.
• Split Curve
Splits a polyline into two curves.
A.1. THE MENU BAR 59
• Stitch Curves
Use this option only if the distance between two curves is almost non-
existent (approximately .05mm).
NOTE: Both curves must follow the same direction.
1. Click on Edit and from the drop-down menu click on Stitch
Curves
• Join Curves
Joins any two curves regardless of their distance from each other.
NOTE: Both curves must follow the same direction.
1. Click on Edit and from the drop-down menu click on Join Curves
A.1.4 Tools
• Select
Selects an entity.
• Select All
Selects all the entities in the workspace.
Note: If you have used the Deselect All option, then, using the
Select All option, you can reselect all the geometry.
60 APPENDIX A. CFDTUTOR, MENU BAR AND TOOL BAR
• Deselect
Deselects a picked entity.
• Deselect All
Deselects all the entities in the workspace. Use ‘deselect all’ to select
a particular entity to work on.
• Copy
Makes a copy of a selected point polyline or entity.
• Move
Moves a selected point, polyline or an entity.
1. Move using Translate by inserting values for X and Y axis
2. Move using Scale by X and Y axis
3. Move using Rotate by providing an Angle of Rotation
4. Move using Mirror by either X or Y axis
Follow the steps given below to move a point, polyline or an entity.
1. From the Tool bar,click on Deselect All.
2. Next, once again from the Tool bar, click on Pick an Entity.
3. Position the cursor over the point, polyline or entity to be moved
and click the left mouse button.
4. Click on Tools and from the drop-down menu, click on Move.
5. Select any one option from a list of Translate, Scale, Rotate
or Mirror. Insert the required values and click OK
• Reverse Curve
Reverses the direction of a curve.
1. Click on Tools and from the drop-down menu, click on Reverse
Curve
• Summary
Provides information of the geometry created in the workspace such as
the number of - entities, points, plcs, and polygons.
62 APPENDIX A. CFDTUTOR, MENU BAR AND TOOL BAR
A.1.5 Display
• Default View
Shows the default view. It is used in conjunction with Zoom Out,
Zoom In, Zoom to Window or Pan.
1. Click on Display and from the drop-down menu, click on Default
View.
• Boundary Points
Displays the boundary points of an entity in the workspace.
1. Click on Display and from the drop-down menu, click on Bound-
ary Points.
• All Points
Displays all the points on an entity in the workspace.
1. Click on Display and from the drop-down menu, click on All
Points.
A.1.6 Grid
• 2D Unstructured
Generates a two dimensional (2D) unstructured grid for an entity by
selecting the Delaunay Triangulation by either length or area
• Smoothen a Grid
Smoothens a grid.
Note : To view if the selected edge has been defined as Inflow, click
on Boundary Type from the drop-down menu, click on Show Inlet.
The edge will be highlighted.
• Define As Outflow
Defines a boundary edge as outflow.
64 APPENDIX A. CFDTUTOR, MENU BAR AND TOOL BAR
Note : To view if the selected edge has been defined as Outflow, click on
Boundary Type from the drop-down menu, click on Show Outlet.
The edge will be highlighted.
• Show Inlet
Highlights the selected edge defined as Inflow,
• Show Outlet
Highlights the selected edge defined as Outflow,
• Reset Inlet-Outlet
Resets the edges defined as inlet and outlet.
A.1.8 Analysis
• Solver Controls
Displays the Solver controls and their options.
• Flow Condition
Displays the default values for Boundary Conditions and Initial Con-
ditions.
*Note: You can specify the Number of Iterations for the simulation
to converge, as well as the Display at Iteration.
• Run Solver
Triggers the solver and begins the simulation process.
A.1.9 Visualization
• Read Solution File
Reads the solution file of a saved saved solution.
2. From the pop-up window, select the name of the saved file and
click OK.
• Clear Display
Displays a clear visualization of the entity.
• Velocity Vector
Displays the Velocity vector plot of a saved solution.
• Pressure Plot
Displays the Pressure colour plot of a saved solution.
• Velocity X Plot
Displays the Velocity X colour plot of a saved solution.
• Velocity Y Plot
Displays the Velocity Y colour plot of a saved solution.
30*sin(u)
• Mach
Displays the Mach distribution colour plot of a saved solution.
A.2. TOOL BAR 67
• Temperature Plot
Displays the Temperature colour plot of a saved solution.
A.1.10 Help
• About CFDTutor
Provides information about CFDTutor.
• Generate Host ID
Generates a Host ID on keying in a User-name and the name of the
Institute. Send these details to the CFDTutor.
• Save File
Saves geometry files and grid files. It save an incomplete file up to the
geometry or grid stage.
• Zoom in
Magnifies the view by zooming in on an object in the workspace.
• Zoom Out
Reduces the view by zooming out on an object in the workspace.
• Zoom to Window
Magnifies a selected portion in the workspace.
• Move Pan
Moves or Pans the mouse across the workspace.
• Pick a Point
Selects or picks point/s.
• Select an Entity
Selects an entity in the workspace.
70 APPENDIX A. CFDTUTOR, MENU BAR AND TOOL BAR
2. Place pointer over the desired entity to be selected and left click
mouse.
• Deselect an Entity
Deselects an entity or entities.
• Delete Selected
Deletes selected entity or entities.
Deselect all the geometry and select only the geometry you wish to
delete.You can use this option If you have created two or more entities
and would like to delete one or more of these entities except the most
recently created one.
• Delete All
This option clears and refreshes the screen.
Note: If there is more than one entity, then Select an Entity from
the Tool bar and click on the desired entity and follow the above-
mentioned step 1.
72 APPENDIX A. CFDTUTOR, MENU BAR AND TOOL BAR
Appendix B
In this tutorial, you will learn to use CFDTutorTM to simulate a flow through a
Forward Facing Step. This problem is normally solved using a compressible
flow model for supersonic speeds. The shape and standoff distance of the
shock is of interest in this problem.
The 6 steps involved are as follows:
1. Define Geometry
2. Define Grid
6. Run Solver
7. View Solution
To begin this tutorial, you must first open CFDTutor in the Interactive
mode. Click on the word Quit, located at the bottom of the Wizard panel
as shown in figure B.1.
73
74 APPENDIX B. TUTORIAL - FORWARD FACING STEP
1. Create Points.
2. Connect Points.
3. Close Curve.
Having created the 1st point, repeat steps 1-4 five times to create the
next 5 points for a Forward Facing Step. Insert the following coordinates:
B.1. DEFINE GEOMETRY 75
2nd point x = 75 : y = 50
3rd point x = 75 : y = 5
4th point x = - 45 : y = 5
5th point x = - 45 : y = 0
6th point x = - 75 : y= - 0
2. Define as Outflow.
1. Click on Show Boundary Points icon in the Tool bar see figure B.12.
This will display only the boundary points.
2. Next, click on Pick an Entity icon in the Tool bar see figure B.13.
This will enable you to pick points to define the inflow and outflow
edges.
80 APPENDIX B. TUTORIAL - FORWARD FACING STEP
3. Pick the 1st, Next and Last points as shown in figure B.14 on the
left-hand vertical edge of the Forward Facing Step, (i.e) the edge to be
defined as Inflow.
Important : These three points must be picked along the same line
on same edge. Do not pick a corner point that maybe common to two
edges.
1. Click on Boundary Type in the Menu bar and from the drop-down
menu, click on Show Inlet as shown in figure B.16.
2. Next, click on Pick an Entity icon in the Tool bar see figure B.19.
This will enable you to pick points to define the outflow edge.
3. Next, pick the 1st, Next and Last points as shown in figure B.20 on
the right-hand vertical edge of the Forward Facing Step, (i.e) the edge
to be defined as Outflow.
4. Click on Boundary Type in the Menu bar and from the drop-down
menu, click on Define as Outflow as shown in figure B.21.
1. Click on Analysis in the Menu bar. See figure as shown in figure B.24.
3. In the dialog box titled: Solver Controls- select the following options
as shown in figure B.25 and click on OK.
B.5. DEFINE FLOW CONDITIONS AND SPECIFY CONVERGENCE CRITERIA85
3. In the dialog box titled: Flow Conditions- default values are provided
for Boundary Condition Initial Condition, and *Convergence
Criteria. Click on OK - as shown in figure B.27.
*You can specify the Total Number of Iterations and also the Display at
Iteration.
2. Monitor Simulation
1. In the pop-up window, enter the File Name as Forward Facing Step
and click on Save.
2. Visual Options
3. Close File
88 APPENDIX B. TUTORIAL - FORWARD FACING STEP
3. From the pop-up box, go to the CGNS file directory, select file - For-
ward Facing Step and Click on Open.
The effect of step on the direction of flow can be viewed from velocity
vector. Also, the color of the arrows show the value of the total velocity at
each cell as shown in figure B.31.
Pressure
As expected we find high pressure just before the step. This is because
the flow has stagnated in that region as shown in figure B.33.
Velocity X
Since the step is an obstruction in the flow, the flow tends to stagnate
just in front of the step. This stagnation or minimum value of velocity X is
shown by blue color in the plot as shown in figure B.35.
Velocity Y
The red spot in the plot signifies the region where velocity in Y direction
is maximum. In order to satisfy the mass balance, the flow moves upward in
the region near the step as shown in figure B.37.
Mach
END OF TUTORIAL
94 APPENDIX B. TUTORIAL - FORWARD FACING STEP
Appendix C
In this tutorial, you will learn to simulate a flow past a cylinder. This is a
very special problem as interesting results not usually seen by students are
obtained. In this simulation it is easy to ’see’ the separation of the flow.
The steps involved are as follows:
1. Define Geometry
2. Define Grid
6. Run Solver
7. View Solution
95
96 APPENDIX C. TUTORIAL - FLOW PAST A CYLINDER
No. of Points : 20
U min : 0
U max : 2*pi
Expression for x : 5*sin(u)
Expression for y : 5*cos(u)
To Close Curve
1. Click on Edit in the Menu bar.
Having created the 1st point, repeat steps 1-4 three times to create the
next 3 points to create the domain. Insert the following coordinates:
See figure C.8 - the direction of the curve indicated by the numbering of
the points.
To Connect Points
1. Click on Create in the Menu bar.
To Close Curve
1. Click on Edit in the Menu bar.
100 APPENDIX C. TUTORIAL - FLOW PAST A CYLINDER
2. Define as Outflow.
To define a boundary type edge as inflow or outflow, you have to pick the
boundary points along an edge. You must begin by displaying the boundary
points. This will enable you to pick points along the edges to be defined as
Inflow and Outflow. To define an edge, three points are picked along that
edge in the order of 1st, Next and Last points along the edge. After the
points are picked, you can go ahead and define that edge as either inflow or
outflow. Always define one edge at a time.
1. Click on Show Boundary Points icon in the Tool bar see figure C.18.
This will display only the boundary points.
Boundary points are highlighted as shown in figure C.19.
2. Next, click on Pick an Entity icon in the Tool bar see figure C.20.
This will enable you to pick points to define the inflow and outflow
edges.
C.3. BOUNDARY TYPE 105
3. Pick the 1st, Next and Last points as shown in figure C.21 on the
left-hand vertical edge of the domain, (i.e) the edge to be defined as
Inflow.
Important : These three points must be picked along the same line
on same edge. Do not pick a corner point that maybe common to two
edges.
1. Click on Boundary Type in the Menu bar and from the drop-down
menu, click on Show Inlet as shown in figure C.23.
2. Next, click on Pick an Entity icon in the Tool bar see figure C.26.
This will enable you to pick points to define the outflow edge.
3. Next, pick the 1st, Next and Last points as shown in figure C.27 on
the right-hand vertical edge of the domain, (i.e) the edge to be defined
as Outflow.
4. Click on Boundary Type in the Menu bar and from the drop-down
menu, click on Define as Outflow as shown in figure C.28.
1. Click on Analysis in the Menu bar. See figure as shown in figure C.31.
3. In the dialog box titled: Solver Controls- select the following options
as shown in figure C.32 and click on OK.
3. In the dialog box titled: Flow Conditions- default values are provided
for Boundary Condition, Initial Condition, and *Convergence Criteria.
Click on OK - as shown in figure C.34.
C.6. RUN SOLVER AND MONITOR SIMULATION 111
*You can specify the Total Number of Iterations and also the Display at
Iteration.
2. Visual Options
3. Close File
3. From the pop-up box, go to the CGNS file directory, select file - Cylin-
der and Click on Open.
The effect of the cylinder on the direction of flow can be viewed from
velocity vector. Also, the color of the arrows show the value of the total
velocity at each cell as shown in figure C.38.
Pressure
As expected we find high pressure just before the cylinder. This is be-
cause the flow has stagnated in that region as shown in figure C.40.
116 APPENDIX C. TUTORIAL - FLOW PAST A CYLINDER
Velocity X
Since the cylinder is an obstruction in the flow, the flow tends to stagnate
just in front of the it. This stagnation or minimum value of velocity X is
shown by blue color in the plot as shown in figure C.42.
Velocity Y
The red spot in the plot signifies the region where velocity in Y direction
is maximum. In order to satisfy the mass balance, the flow moves upward in
the region near away from the cylinder as shown in figure C.44.
Mach
Temperature
END OF TUTORIAL
Appendix D
Exercises in CFDTutor
121
122 APPENDIX D. EXERCISES IN CFDTUTOR
1. A boundary layer can be seen on the top and lower walls of the bound-
ary. Hence, grids were made very fine near the solid surfaces in order
to capture the correct boundary layer.
4. Observe a wake behind the car. The lower range of X-velocity shows a
negative value, which points toward a wake behind the car.
5. It takes more time to run viscous problem since extra calculations are
required to be done for the calculation of stresses.
D.2. EXERCISE - FLOW OVER A FORWARD FACING STEP 123
• Pressure 101300 Pa
• Angle of Attack = 0.
• Vel Y = 0 m/s
• Pressure = 101300 Pa
2. Compare the standoff distance (place from where the shock originates).
The standoff distance should be of the same order of that of step.
3. Results from CFDTutorTM can be compared with the figure shown below.
Results
1. Note that the solution matches exactly with literature.
126 APPENDIX D. EXERCISES IN CFDTUTOR
2. Compare the Outlet Mach no. = 0.15 and the Mach and Pressure
distribution in the domain, notice how pressure wave move to and fro
several times before settling down. This is a typical characteristic of a
Subsonic Flow.
Since the flow is Supersonic at the Outlet, changing any value of the Outlet
Pressure does not make any effect in the flow. In fact, Inlet values decide the
value of the Mach number. Flow at Inlet is supersonic, which means that
the Pressure Specified at the Inlet will be held constant. Po /P1 = 2.27 and
Po /P2 = 11.56 =¿ P2 /P1 = 2.27/11.56 = 0.19637 =¿ P2 = 19891 Pa.
D.3. EXERCISE - FLOW THROUGH A DIFFUSER 127
Results
1. Look out for the Outlet Mach and Outlet Pressure.
2. Observe that properties are fixed at the inlet. Convergence is very fast;
it converges in 4000 Iterations only. The signal doesn’t reflect back into
the domain, and hence convergence is faster than the Subsonic case.
128 APPENDIX D. EXERCISES IN CFDTUTOR
D.4.3 Theory
The CD nozzle comes under a quasi one-dimensional flow, where variables
such as velocity, pressure, temperature, and density are the function of Area
(and time only if the flow is unsteady).
• Area-Velocity relation
• No of iterations = 20000
Po1 is Total pressure before shock and Po2 is Total pressure after shock.
P1 and P2 static pressure at inlet and outlet respectively.
From A1 /A∗ = 1.972, the inlet Mach number is M1 = 0.31 and Po1 /P1 =
1.069.
P2 P
Po1
= PPo2 Poo2 = .7954/1.094 = 0.7270
2 1
So, P2 = Po1 *0.7270 = 80777.697 Pa
Run the problem in CFDTutorTM with above back pressure and get a shock
at A/A* = 1.5.
Note : Change the outlet pressure P2 to 11415 Pa and M1 to 0.31. The
shock wave will go entirely out of the nozzle (the flow will be fully supersonic
in the divergent section)
130 APPENDIX D. EXERCISES IN CFDTUTOR
• Case 2
5. Now change the angle of attack depending on the side set as inlet.
If inlet is toward the Left end of the duct, then angle of entry
must be Deg. If it is toward the Right end of the duct, then the
angle of entry must be 180 Deg
6. Finally, run the solver.
1. Run the problem for 10000 iteration with 0.5 Mach number with default
initial conditions.
3. Change the CFL to 0.1 and set initial velocity X to 0m/s. And run the
solver.
D.6. EXERCISE - SUDDENLY CONTRACTED FLOW 133
1. Solution converges.
2. The ‘run’ diverges after 950 iterations after we changed the initial con-
ditions. This is attributed to the numerical instability.
D.7.2 Theory
Flow around a square body, dimension 40X40, is discussed in this worksheet.
Effect of three different bounding domain on the convergence of solution is
studied here. It is very important to model appropriate domain around the
bluff body to capture essential physics involved in the case. For eg. the
domain should be long enough so that eddies can be captured. Also space
should be provided on the sides of the domain. The experiment is run on the
standard conditions with inlet Mach number of 0.1.
• Case 1
A domain with corners at (-50,50), (-50,-50), (50,-50), (50,50). Two
cases are possible :
• Case 2
A domain with corners at (-80,50), (-80,-50), (150,-50), (150, 50). Two
cases are possible :
• Case 3
A domain with corners at (-80,80), (-80,-80), (150,-80), (150,80). Run
this case with side edges tagged as walls.
D.7.4 Results
Observations :
• Case 2 : Diverges when edges are wall but converges when edges are
outflow.
D.7.5 Conclusion
We conclude that a flow over a bluff body simulation will converge only when
the appropriate space is provided on all the direction.
Index
136
INDEX 137