Académique Documents
Professionnel Documents
Culture Documents
Introduction to ANSYS
CFX
2014 ANSYS, Inc.
Release 15.0
Introduction
Introductory tutorial for CFX
Starting from existing mesh
Mesh generated in earlier tutorial during the DM / Meshing session, if available
Release 15.0
Pre-processing steps
Launch CFX-Pre from Workbench
Release 15.0
Start Workbench
Start Workbench either from the desktop icon or from
Start > All Programs > ANSYS 15.0 > Workbench 15.0
Before proceeding further
with this workshop, we will
take a look at the Workbench
interface and how a project is
constructed
Release 15.0
Design Exploration
provides tools for
optimising designs and
understanding the
parametric response.
External Connection
Systems allows integration of
external processes &
customisation
5
Release 15.0
Release 15.0
Release 15.0
Release 15.0
This will convert the mesh format to one that is compatible with ANSYS CFX
The lightning symbol will change to a green tick
Release 15.0
10
Release 15.0
Note: Change the filter on the right side of the file selection box to read Fluent
Files (*.cas,*.msh)
11
Release 15.0
Message Window
Warnings, errors and messages
appear here
12
Release 15.0
Rotate
Pan
+ CTRL
Zoom
+ SHIFT
Box Zoom
Rotate
(Hold while
tracing a box)
+ CTRL
13
Release 15.0
The Mesh is
represented in
Wireframe
format in the
Viewer
A domain named Default Domain is automatically created from all 3-D regions in the
mesh file(s)
A boundary named Default Domain Default is automatically created from all 2-D
regions for each domain
14
Release 15.0
Select Rename
15
Release 15.0
Double-click on the
domain junction
The Domain panel contains three tabs named
Basic Settings, Fluid Models and Initialization.
For more complex simulations additional tabs
may appear
16
Release 15.0
17
Release 15.0
Boundary Conditions
The next step is to create the boundary conditions. You will create a cold
inlet, a hot inlet and an outlet. The remaining faces will be set to adiabatic
walls. Currently all external 2D regions are assigned to the junction Default
boundary condition.
Each domain has an automatic default boundary condition for external
surfaces. The default boundary condition is a No Slip, Smooth, Adiabatic wall.
As you create new boundary conditions, those regions are automatically
removed from the default boundary condition.
18
Release 15.0
Click OK
19
Release 15.0
20
Release 15.0
21
Release 15.0
22
Release 15.0
The Average Static Pressure boundary condition allows pressure to float locally on the
boundary while preserving an specified average pressure. If Static Pressure had been
chosen a fixed pressure would be applied at every nodal location on the outlet
boundary
2014 ANSYS, Inc.
23
Release 15.0
24
Release 15.0
CCL at a Glance
Before proceeding you will now take a quick look at CCL (CFX Command
Language). CCL will be covered in detail in a later lecture.
CCL describes objects in a command language format. You will come
across CCL in all CFX modules. CCL allows you to perform batch
processing and scripting. You can also use it to make changes to your
set-up more quickly.
25
Release 15.0
Initialisation
Initial values must be provided for all solved variables. This gives the solver
a starting point for the solution
There are two options when setting an initial value for a variable
Automatic: This will use a previous solution if provided. Otherwise the solver will
26
Release 15.0
Solver Control
The Solver Control options set various parameters that are used by the
solver and can affect the speed of convergence and the accuracy of the
results. For this model the default settings are reasonable but will not be
suitable for all simulations
Double-click on Solver Control from the Outline tree
The solver will stop after Max. Iterations regardless of the convergence level
27
Release 15.0
28
Release 15.0
29
Release 15.0
30
Release 15.0
Solution steps
Launch CFX-Pre from Workbench
31
Release 15.0
Obtaining a solution
Close CFX-Pre
32
Release 15.0
Obtaining a solution
46 iterations are required to reduce the RMS residuals to below the target of
1.0x10-4. The pressure monitor points approach steady values
Click on the tabs to view the plots of RMS residuals for each equation and the
User Points tab to see the monitor plot.
33
Release 15.0
Obtaining a solution
It is good practice also to check the global
imbalances, i.e. the differences between
flows into and out of the domain. They
can be viewed as plot lines.
To view plots of imbalances
34
Release 15.0
Obtaining a solution
To view plots of imbalances, continued
To see the plots at the end of the run in more detail, right-click in the window and select Monitor
Properties
On the Range Settings tab set Timestep Range Mode to Most Recent & Timestep Window Size to 10
The Energy Imbalance is still decreasing. So we would need to continue the run to improve accuracy
35
Release 15.0
Post-processing Steps
Launch CFX-Pre from Workbench
36
Release 15.0
Launching CFD-Post
Double-click Results to
launch CFD-Post
The layout is similar to that
of CFX-Pre
The model is displayed in
wireframe
2014 ANSYS, Inc.
37
Release 15.0
CFD-Post Overview
Outline Window
Lists currently-defined graphics objects,
Details Window
38
Release 15.0
CFD-Post
As in CFX-Pre, in CFD-Post the Viewer toolbar
buttons allow you to manipulate the view
Shortcut
Rotate
Pan
Ctrl +
Zoom
Shift +
Box zoom
Fit to view
Rotate on screen plane
Ctrl +
39
Release 15.0
CFD-Post
You can create many different
objects in CFD-Post. The Insert menu
shows a full list but there are toolbar
shortcuts for all items
Some common object are:
Surfaces, Volumes
Vector Plots
Contour Plots
Streamline Plots
Particle Track (if Lagrangian Particle
tracking has been enabled in CFX-Pre)
40
Release 15.0
41
Release 15.0
The drop-down menu provides a list of common variables. Use the icon
to access a full list
42
Release 15.0
See what happens if you use the X, Y and Z keys with and without Shift (make
sure that you have clicked in the Viewer first)
43
Release 15.0
44
Release 15.0
45
Release 15.0
46
Release 15.0
47
Release 15.0
48
Release 15.0
49
Release 15.0
50
Release 15.0
Click Apply
direction
Their colour indicates the velocity magnitude
Velocity streamlines may be coloured using other
variables e.g. temperature
51
Release 15.0
52
Release 15.0
Enter a value of 7.5 [m s^-1] in the Value field (this is an arbitrary value)
Click Apply
The speed is > 7.5 m/s inside the isosurface and < 7.5 m/s outside. Isosurfaces in
general are useful for showing pockets of high velocity, temperature, turbulence,
etc.
Try values above and below 7.5 m/s
53
Release 15.0
Click Apply
54
Release 15.0
Optional Exercise 1
If you have sufficient time available, you could investigate the effect of changes in
the set-up on the pressure drop.
Increase the velocity on inletz to 5 [m s^-1]
Now double-click on Setup in the new system so that you can edit inletz in CFX-Pre
Run the CFX-Solver and check the User Points to see that the values have increased
55
Release 15.0
Optional Exercise 2
Change to a more viscous fluid
Open CFX-Pre and double-click on junction in the Outline tree to edit the domain
Select Glycerol C3H8O3 from Constant Property Liquids and click on OK and OK
again to set it as the Material.
56
Release 15.0
57
Release 15.0
Optional Exercise 3
If you have attended the ANSYS DesignModeler and Meshing courses
then you can see the effect of extending the outlet 16 inches further
downstream
In ANSYS DesignModeler you can
use the high-y face as the base object
for an extrusion and use the face
normal to define the direction
58
Release 15.0
59
Release 15.0
Further work
There are many ways the simulation in this workshop could be extended
Better inlet profiles
current boundary conditions (velocity inlets) assume uniform profiles
specify profiles (of velocity, turbulence, etc), or
extend the geometry so that inlets and outlets are further from junction
Mesh independence
check that results do not depend on mesh
run with the Upwind advection scheme (first order) to see how much
the solution differs
re-run simulations with finer mesh(es)
60
Release 15.0
Wrap-up
This workshop has shown the basic steps that are applied in all CFD
simulations:
Defining Material Properties
Setting Boundary Conditions and Solver settings
Running a simulation whilst monitoring quantities of interest
Postprocessing the results in CFD-Post
One of the important things to remember in your own work is, before
even starting the ANSYS software, is to think WHY you are performing
the simulation:
What information are you looking for
What do you know about the inlet conditions
61
Release 15.0