Professional Documents
Culture Documents
Introduction to ANSYS
Fluent
2012 ANSYS, Inc.
Release 14.5
Introduction
In this workshop you will analyze the release of heat and combustion gases from a single
car with an engine fire in a ventilated parking garage. The simulation will be run steady
state assuming the fire has reached a stable developed stage.
Simulation Physics & Boundary Conditions
Mixture of N2, O2, CO2 and H20
6 m/s exhaust, 0.1 kg/s combustion gases (H2O and CO2) at 1200 K
80 N/m3 momentum source in jets
Air Outlet
pressure_outlet_all_air
Symmetry Plane
symmetry
Introduction
2012 ANSYS, Inc.
Setup
2
Solving
Proceed to Part 2.
Release 14.5
Important Note
NOTE:
This workshop has been designed to be completed in one of two ways. Please check with
your trainer on whether you are to take the short or long option.
[Short Option] This workshop can be used just to demonstrate post-processing in CFDPost. Pre-prepared results files are supplied, so please jump straight to page 35 for postprocessing.
[Long Option] Follow all the instructions, which will demonstrate how to set up a multispecies simulation of a car fire. Once the model is set up, you can choose to wait for it
to converge, or then replace your results with the supplied pre-prepared set.
Introduction
2012 ANSYS, Inc.
Setup
3
Solving
Proceed to Part 2.
Release 14.5
Introduction
2012 ANSYS, Inc.
Setup
4
Solving
Proceed to Part 2.
Release 14.5
Learning Objectives:
To understand how Fluent can be used to simulate mixtures of fluids, and
account for buoyancy effects. Note that a multi-species problem like this
assumes that the components are mixed at a molecular level (as normally
happens with gases). The alternative is a multi-phase problem where there is an
identifiable boundary between the components (either droplets / particles /
bubbles, or a free-surface). Multi-phase workshops include Workshop 2 (DPM)
and Workshop 7 (Tank Flush).
Introduction
2012 ANSYS, Inc.
Setup
5
Solving
Proceed to Part 2.
Release 14.5
Starting Workbench
Open Workbench
Start > Programs > ANSYS 14.5 > Workbench 14.5
Drag a Fluent Component System into the project schematic
Rename the system to Garage (RMB on cell A1 to rename the system)
Introduction
2012 ANSYS, Inc.
Setup
6
Solving
Proceed to Part 2.
Release 14.5
Introduction
2012 ANSYS, Inc.
Setup
7
Solving
Proceed to Part 2.
Release 14.5
Setup
8
Solving
Proceed to Part 2.
Release 14.5
Click OK.
Introduction
2012 ANSYS, Inc.
Setup
9
Solving
Proceed to Part 2.
Release 14.5
Introduction
2012 ANSYS, Inc.
Setup
10
Proceed to Part 2.
Release 14.5
Introduction
2012 ANSYS, Inc.
Setup
11
Solving
Proceed to Part 2.
Release 14.5
Introduction
2012 ANSYS, Inc.
Setup
12
Solving
Proceed to Part 2.
Release 14.5
Introduction
2012 ANSYS, Inc.
Setup
13
Solving
Proceed to Part 2.
Release 14.5
Introduction
2012 ANSYS, Inc.
Setup
14
Solving
Proceed to Part 2.
Release 14.5
Introduction
2012 ANSYS, Inc.
Setup
15
Solving
Proceed to Part 2.
Release 14.5
Setup
16
Solving
Proceed to Part 2.
Release 14.5
Introduction
2012 ANSYS, Inc.
Setup
17
Solving
Proceed to Part 2.
Release 14.5
Introduction
2012 ANSYS, Inc.
Setup
18
Solving
Proceed to Part 2.
Release 14.5
Introduction
2012 ANSYS, Inc.
Setup
19
Solving
Proceed to Part 2.
Release 14.5
Introduction
2012 ANSYS, Inc.
Setup
20
Solving
Proceed to Part 2.
Release 14.5
Introduction
2012 ANSYS, Inc.
Setup
21
Solving
Proceed to Part 2.
Release 14.5
Introduction
2012 ANSYS, Inc.
Setup
22
Solving
Proceed to Part 2.
Release 14.5
Operating Conditions
Set operating conditions
Select Operating Conditions.
Apply Specified Operating Density settings as shown.
Click OK.
Introduction
2012 ANSYS, Inc.
Setup
23
Solving
Proceed to Part 2.
Release 14.5
Operating Conditions
Notes
ANSYS Fluent avoids the problem of round-off error by subtracting the operating
pressure (generally a large pressure roughly equal to the average absolute pressure in
the flow) from the absolute pressure, and using the result (termed the gauge
pressure). The absolute pressure is simply the sum of the operating pressure and the
gauge pressure.
Operating temperature is only used when using the Boussinesq density model, so in
this case, it has no meaning.
Operating density is also a value for avoiding round-off errors. For simulations where
pressure boundary conditions are present it is important to set the value correctly
otherwise the pressure at the boundary will be incorrect and may lead to unphysical
flow conditions. Here you have to set it to the density for the conditions at the
pressure-inlet - a gas at 293.15 K with 23% O2 and 77% N2. You can initialize your flow
field with these conditions to get the value for the operating density from the postprocessor (e. g. Reports -> Volume Integral). See the Users Guide Natural Convection
and Buoyancy-Driven Flows for more details.
Introduction
2012 ANSYS, Inc.
Setup
24
Solving
Proceed to Part 2.
Release 14.5
Solution Methods
Set solution methods
Select Solution Methods from the Navigation Pane.
For Pressure-Velocity Scheme, set to Coupled.
Under Spatial Discretization set Pressure to Body Force Weighted.
The Body Force Weighted scheme is recommended for problems involving large
body forces.
Introduction
2012 ANSYS, Inc.
Setup
25
Solving
Proceed to Part 2.
Release 14.5
Solution Controls
Set solution controls
Select Solution Controls from the Navigation Pane.
Set the values shown below.
Setup
26
Solving
Proceed to Part 2.
Release 14.5
Monitors (1)
Set solution monitors
Select Monitors from the Navigation Pane.
Click Edit and set the Residual Monitors as shown below.
By default ANSYS Fluent will plot residuals to the window and print to the console. The
default setting for the convergence criterion is Absolute which means that the solver will
continue until all residuals fall below the Absolute Criteria values specified in the Equations
box. Switching the Convergence Criterion to none will cause the solver to continue until a
maximum number of iterations is reached.
Click OK.
Introduction
2012 ANSYS, Inc.
Setup
27
Solving
Proceed to Part 2.
Release 14.5
Monitors (2)
Set surface monitors
Under Surface Monitors, click Create.
It is important to ensure that solution variables have converged to sensible stable values.
Creating Surface Monitors enables solution values of interest to be monitored on specific
surfaces within the domain.
Introduction
2012 ANSYS, Inc.
Setup
28
Solving
Proceed to Part 2.
Release 14.5
Monitors (3)
Set surface monitors
There are many different types of calculations that can be performed over surfaces listed
under Report Type.
Create a second monitor for the integral of the Total Surface Heat Flux on the surface
wall_floor plotting to window 3 and printing to the console, as shown below.
Introduction
2012 ANSYS, Inc.
Setup
29
Solving
Proceed to Part 2.
Release 14.5
Monitors (3)
Notes on monitors
Buoyancy driven flows often show transient behavior. For this reason, the residuals
will often oscillate. Because of this, convergence should always be judged by solution
variable monitors and flux reports. The residuals will however give an indication of
overall convergence behavior and stability.
In cases of an oscillating steady state solution, a common approach is to continue
the simulation in transient mode. In many cases the oscillations will reduce
significantly after a few time steps.
The use of surface/volume monitors combined with residuals will provide the best
overall judge of solution convergence.
Introduction
2012 ANSYS, Inc.
Setup
30
Solving
Proceed to Part 2.
Release 14.5
Solution Initialization
Set initialization values
Select Solution Initialization and Hybrid Initialization
Hybrid Initialization performs a basic flow simulation (Laplace equation) to set up the
initial flow field. Simplified momentum and pressure equations are solved, and so the
general flow field can be quickly determined (unlike standard initialization which puts a
constant value in each grid cell). By having a more realistic starting point, less work will be
needed by the solver to converge the model.
Select More Settings, and for species settings, define the initial o2
concentration to be 0.23, then OK
Only flow and pressure equations are being solved with the Hybrid method, so we need to
set a realistic, although constant, value for species.
Introduction
2012 ANSYS, Inc.
Setup
31
Solving
Proceed to Part 2.
Release 14.5
If you want to run the simulation yourself, set the case to run for 1000 iterations in Run
Calculation, and keep an eye on the solution progress.
Alternatively, just load the results (data) file supplied with this workshop
File > Import > Data > car_and_garage_1000its.dat.gz
You can reproduce the residual graph shown below by
Monitors > Residuals > Select Residuals then Edit. Press the Plot button.
Introduction
2012 ANSYS, Inc.
Setup
32
Solving
Proceed to Part 2.
Release 14.5
Check convergence
Select Reports from the Navigation Pane and select Fluxes under Reports.
Click Setup.
In the Flux Reports panel select the Mass balance and select the inlet/outlet boundaries
(shown below) then click compute.
Note that the Net Results indicate the results are mostly, but not completely converged. It is likely that
there are some unsteady effects present that may necessitate going to a transient (time dependent)
simulation. This will be discussed in a later lecture.
Note that the energy balance can be checked in a similar way by selecting Total Heat Transfer Rate
Introduction
2012 ANSYS, Inc.
Setup
33
Solving
Proceed to Part 2.
Release 14.5
Exit
Close Fluent
ANSYS Fluent contains basic built in post-processing capabilities which can be used to
quickly assess results graphically and numerically during and after the solution.
Introduction
2012 ANSYS, Inc.
Setup
34
Solving
Proceed to Part 2.
Release 14.5
Post-Processing in CFD-Post
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
35
Reports
Summary
Release 14.5
Objectives (Post-Processing)
Learning Aims:
This workshop is designed to teach a range of skills in post-processing Fluent
results files using CFD-Post. Topics to be covered include:
Creating surface groups
- Creating line graphs
Creating isosurfaces
- Creating expressions (CEL)
Creating portable (.cvf) images
- Performing integrals
Creating automatic reports
- Volume rendering
Learning Objectives:
To understand the ways in which CFD-Post can be used both for high quality
images, as well as producing quantitative data from volume/surface integrals,
and writing custom functions.
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
36
Reports
Summary
Release 14.5
Starting CFD-Post
If you are doing the long version of this workshop:
Under Component Systems, pick Results and drag onto the desktop.
Draw a line from the Solution Cell of the Fluent system to the Results Cell (see image)
If you are doing the short (post-processing only) version of this workshop:
Start Menu > ANSYS 14.5 > Fluid Dynamics > CFD-Post 14.5
Within CFD-Post, select File > Load Results and pick the supplied file:
car_and_garage_1000its.dat.gz
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
37
Reports
Summary
Release 14.5
Select Location > Surface Group, and enter the name Walls
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
38
Reports
Summary
Release 14.5
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
39
Reports
Summary
Release 14.5
Variable: Temperature
Range: Local
Apply
Under Appearance:
Precision 1
Change Scientific
to Fixed
Apply
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
40
Reports
Summary
Release 14.5
Colour Images
Line Graphs
41
Reports
Summary
Release 14.5
Value to 9 [m]
Click Apply
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
42
Reports
Summary
Release 14.5
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
43
Reports
Summary
Release 14.5
Colour Images
Line Graphs
44
Reports
Summary
Release 14.5
Hide the plane xzplane previously created by un-ticking in the model tree
Double-click on wall_car
Make sure the details box shows (wall_car), if not you will be modifying the wrong object!
Apply
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
45
Reports
Summary
Release 14.5
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
46
Reports
Summary
Release 14.5
Post-Processing Streamlines
Add 3D streamlines to visualize flow
Hide the isosurface created in the previous step (un-tick in model tree)
# Points: 100
Range: Local
Apply
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
47
Reports
Summary
Release 14.5
Colour Images
Line Graphs
48
Reports
Summary
Release 14.5
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
49
Reports
Summary
Release 14.5
Double-click to open this file (it will take a few moments to launch the viewer application)
If you have ANSYS R14.5 installed on your machine, your computer will already have the
viewer, and will recognise this file extension. You only need to do a separate installation of
CFD-Post Viewer (from the ANSYS website) on machines that do not have Workbench
installed.
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
50
Reports
Summary
Release 14.5
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
51
Reports
Summary
Release 14.5
To make it easier to see the image, change the screen background colour to white:
OK
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
52
Reports
Summary
Release 14.5
Post-Processing Quantitative
Until now we have used CFD-Post to create colour images to help interpret the CFD results
Next we will look at some quantitative techniques for extracting numerical data (volume
integrals), and producing line graphs.
It is also possible to write your own arithmetic expressions for custom post-processing.
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
53
Reports
Summary
Release 14.5
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
54
Reports
Summary
Release 14.5
Colour Images
Line Graphs
55
Reports
Summary
Release 14.5
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
56
Reports
Summary
Release 14.5
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
57
Reports
Summary
Release 14.5
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
58
Reports
Summary
Release 14.5
Note:
Initial capitals for Temperature. It will turn to italics if correct.
Expressions must balance dimensionally.
We cannot just enter Temperature 273.15 since Temperature has a unit [K]
By dividing by 1 [K] we remove the temperature unit.
We could instead enter Temperature 273.15[K] This expression is valid, but
would return a value with units [K] which would be misleading.
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
59
Reports
Summary
Release 14.5
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
60
Reports
Summary
Release 14.5
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
61
Reports
Summary
Release 14.5
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
62
Reports
Summary
Release 14.5
Post-Processing Reports
In the options below the graphic
window, select Report Viewer
Select Refresh
Review what is shown in the report
window. You can see:
Names of the results file
Mesh summary
List of Boundary conditions
All the Figures and Charts produced
during this workshop
If you select Publish this will be written
out in html format, along with copies of all
the results images.
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
63
Reports
Summary
Release 14.5
Colour Images
Line Graphs
64
Reports
Summary
Release 14.5
You can choose which objects are visible, add your own company logo, or add lines of
text to explain the content of the report.
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
65
Reports
Summary
Release 14.5
Wrap Up
CFD-Post is a very powerful post-processing tool, and capable of producing high quality
images quickly and easily.
In this workshop we have shown how to produce contour plots, streamlines, and
isosurfaces (as seen in some other workshops for this course).
In addition you have used CFD-Post to perform volume integrals, create line graphs, and
to create your own arithmetic expressions for post-processing.
3D images can be saved to disk, and viewed in a freeware viewer. This adds much
impact to presentations, and can be run on any computer (no license needed).
CFD-Post can also automate the report generation process.
Post-processing is best learned by practice. If you have time now, try exploring the
other buttons in the interface.
Part 2: Post-Processing
2012 ANSYS, Inc.
Colour Images
Line Graphs
66
Reports
Summary
Release 14.5