Professional Documents
Culture Documents
14. 5 Release
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 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
Heat and gas release from fire mass_flow_inlet_car_fire_source Jet Fan fluid_jet_fan Fresh Air Inlet velocity_inlet_fresh_air
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 postprocessing in CFD-Post. Results files are supplied. So please jump straight to page 26 for post-processing
[Long Option] Follow all the instructions, which will demonstrate how to set
up a multi-species simulation of a car fire. Once the model is set up you can choose to wait for it to converge or replace your results with the supplied set.
Introduction
2012 ANSYS, Inc.
Setup
3
Solving
Proceed to Part 2.
Release 14.5
If doing the short version (postprocessing only) please jump to page 26 now
Introduction
2012 ANSYS, Inc.
Setup
4
Solving
Proceed to Part 2.
Release 14.5
Learning Objectives:
To understand how CFX 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 9 (Tank Flush) and Workshop 7 (Centrifugal Pump)
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 CFX Analysis System into the project schematic Rename the system to Garage (RMB on cell A1 to rename the system) Save the project to your working directory as Car_and_Garage.wbpj (File > Save As)
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
Material Specification
In the Outline tree, right-click Materials and
select Insert>Material
Set the Name to Mixture and click OK Set Option to Variable Composition Mixture For Materials List, click the icon to the right of the
drop-down list , and then click the Import Library Data icon (as shown on the upper right) Under Gas Phase Combustion hold down the <Ctrl> key as you select the following materials: CO2, H2O, N2, O2 Click OK to import them and close the Import form Now select the same Materials under the Materials List form Click OK to close the Materials List form Click OK to complete specifying the Mixture
Introduction
2012 ANSYS, Inc.
Setup
8
Solving
Proceed to Part 2.
Release 14.5
Domain Specification
Double-click Default Domain Set the Material to Mixture Set the Reference Pressure to 1 [atm]
Set the X and Y directions to 0 [m/s^2] Set the Z direction to the expression: -g
You need to click the Enter Expression icon to enter this expression Set the Buoyancy Ref. Density to 1.1989 [kg/m^3]
Introduction
2012 ANSYS, Inc.
Setup
9
Solving
Proceed to Part 2.
Release 14.5
Operating Conditions
ANSYS CFX avoids the problem of round-off error by solving for a relative pressure, i.e. a pressure relative to the Reference Pressure. For compressible fluids, the density is based on the Absolute Pressure, which is the sum of the Reference Pressure and the solved for relative pressure. The Reference Pressure should be chosen such that variations in the relative pressure are significant compared with the values in the solution field. If buoyancy is switched on, a hydrostatic component is also included , ref g (r rref ), in which ref is the Buoyancy Reference Density and rref is the Buoyancy Reference Location. Buoyancy Reference Density is set so as to avoid round-off errors. For single-phase simulations the value should be an average value anticipated for the domain.
Introduction
2012 ANSYS, Inc.
Setup
10
Solving
Proceed to Part 2.
Release 14.5
Fluid Models
Setup
11
Solving
Proceed to Part 2.
Release 14.5
Click OK
We need to account for the air movement produced by the ceiling jet fan. We have done this by adding momentum to the subdomain which is local to the jet. The advantage of this technique (over using a pair of velocity boundary conditions) is that we preserve the concentrations of combustion gases through the fan. If we had used velocity boundary conditions, we would have needed to use expressions at the intake to the jet fan and apply them to the jet fan discharge.
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
Click OK
The mixture species contains 4 components (H2O, O2, CO2, and N2). You do not need to enter a mass fraction for the constraint species, N2; its concentration is set automatically such that the sum of all mass fractions is 1.0.
Introduction
2012 ANSYS, Inc.
Setup
14
Solving
Proceed to Part 2.
Release 14.5
Set Boundary Type to Opening Set Location to pressure_outlet_all_air Click Boundary Details
Set Mass and Momentum to Opening Pres. And Dirn Set Relative Pressure to 0 [Pa] Set Heat Transfer to Opening Temperature Set Temperature to 20 [C] (as for previous BC) Set the following component Mass Fractions: Set O2 to 0.23 Set the other component mass fractions to 0
Click OK
The values for turbulence, temperature and mass fractions specified on the opening will only be used where there is inflow.
Introduction
2012 ANSYS, Inc.
Setup
15
Solving
Proceed to Part 2.
Release 14.5
Leave Boundary Type as Inlet and set Location to mass_flow_inlet_car_fire_source Click Boundary Details
Set Mass and Momentum to Mass Flow Rate Set Mass Flow Rate to 0.1 [kg s^-1] Set Heat Transfer to Static Temperature Set Static Temperature to 1200 [K] Set the following component Mass Fractions: CO2: 0.568 H2O: 0.432 O2: 0
Introduction Click OK
2012 ANSYS, Inc.
Setup
16
Solving
Proceed to Part 2.
Release 14.5
Click OK
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
Initialization
Right-click on Flow Analysis 1 in the Outline
tree and select Insert > Global Initialization
Set Temperature to Automatic with Value Set Temperature to 300 [K] Under Component Details, set O2 to
Automatic with Value
Set Mass Fraction for O2 to 0.23 Leave all other settings at their default
values
Click OK
Introduction
2012 ANSYS, Inc.
Setup
19
Solving
Proceed to Part 2.
Release 14.5
Monitor Quantities
Double-click on Output Control under Solver
in the Outline tree
Setup
20
Solving
Proceed to Part 2.
Release 14.5
Monitor Quantities
Notes on monitors: Buoyancy driven flows often show transient behavior. For this reason the residuals will often oscillate. Because of this convergence should also be judged by solution variable monitors and imbalances.
In cases of an oscillating steady-state solution, a common approach is to continue the simulation in transient mode. In many cases the residuals will reduce significantly after a few time steps.
Introduction
2012 ANSYS, Inc.
Setup
21
Solving
Proceed to Part 2.
Release 14.5
Solver Control
Double-click Solver Control Under Convergence Control, set Max.
Iterations to 250 (or use a smaller number, e.g. 50 to force the run to stop after a shorter time)
Click OK
The conservation target sets a minimum level of imbalance information for the solved quantities. In this case, the solver is aiming for 1% imbalance.
Introduction
2012 ANSYS, Inc.
Setup
22
Solving
Proceed to Part 2.
Release 14.5
Solution (Optional)
Close CFX-Pre The solution takes 30-60 minutes to
complete
Introduction
2012 ANSYS, Inc.
Setup
23
Solving
Proceed to Part 2.
Release 14.5
Introduction
2012 ANSYS, Inc.
Setup
24
Solving
Proceed to Part 2.
Release 14.5
Introduction
2012 ANSYS, Inc.
Setup
25
Solving
Proceed to Part 2.
Release 14.5
26
Release 14.5
Post-processing in CFD-POST
Part 2: Postprocessing
2012 ANSYS, Inc.
Color Images
Line Graphs
27
Reports
Summary
Release 14.5
Objectives (Postprocessing)
Learning Aims:
This workshop is designed to teach a range of skills in post-processing results files using CFD-Post. Topics to be covered include:
Creating surface groups Creating isosurfaces Creating portable (.cvf) images Creating automatic reports
- Creating line graphs - Creating expressions (CEL) - Performing integrals - 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: Postprocessing
2012 ANSYS, Inc.
Color Images
Line Graphs
28
Reports
Summary
Release 14.5
Results Preparation
If you have set up the problem manually, the results file will already be available. If you are only performing Post-processing in this workshop
Browse to the results file garage_001.res using Windows Explorer Drag garage_001.res into the Project Schematic. A new component system will appear
OR
Part 2: Postprocessing
2012 ANSYS, Inc.
Color Images
Line Graphs
29
Reports
Summary
Release 14.5
Select Locations > Surface Group and enter the name Grouped Walls
Part 2: Postprocessing
2012 ANSYS, Inc.
Color Images
Line Graphs
30
Reports
Summary
Release 14.5
Part 2: Postprocessing
2012 ANSYS, Inc.
Color Images
Line Graphs
31
Reports
Summary
Release 14.5
Part 2: Postprocessing
2012 ANSYS, Inc.
Color Images
Line Graphs
32
Reports
Summary
Release 14.5
Remember where this option is as you will be asked to use it several times on subsequent slides.
Later on we will demonstrate how to use these figures to automate report-writing.
Part 2: Postprocessing
2012 ANSYS, Inc.
Color Images
Line Graphs
33
Reports
Summary
Release 14.5
Select Location > Plane Set Name to xzplane and click OK On the Geometry tab set Method to ZX Plane Y = 9 [m] Click Apply Continued on next slide..
Part 2: Postprocessing
2012 ANSYS, Inc.
Color Images
Line Graphs
34
Reports
Summary
Release 14.5
Part 2: Postprocessing
2012 ANSYS, Inc.
Color Images
Line Graphs
35
Reports
Summary
Release 14.5
Click the Animation button in the top toolbar Select Quick Animation
Highlight xzplane Press the Play button , and watch the display. then Close. When finished, use the stop button
If required, this animation could be saved to disk in MPEG / AVI formats. The alternative to Quick Animation is Keyframe Animation. To use this you set a series of key animation frames. These might have different objects visible, be different points in a transient simulation, or use different viewing angles. The animation will progress smoothly between these states.
Part 2: Postprocessing
2012 ANSYS, Inc.
Color Images
Line Graphs
36
Reports
Summary
Release 14.5
Post-processing 3D Isosurface
First change the look of the display:
Hide the plane xzplane y un-checking it in the
Outline tree Expand Mesh Regions in the treethe top of the model tree Double-click on wall_car
Part 2: Postprocessing
2012 ANSYS, Inc.
Color Images
Line Graphs
37
Reports
Summary
Release 14.5
Post-processing 3D Isosurface
Add a 3D Isosurface representing gases
Select Location > Isosurface Keep the default name Isosurface 1 Set the Variable to CO2.Mass.Fraction and the value to
0.001 Set Color to be Constant (use the default grey colour), then click Apply Generate a new figure called Figure 3 CO2 Isosurface
Part 2: Postprocessing
2012 ANSYS, Inc.
Color Images
Line Graphs
38
Reports
Summary
Release 14.5
Post-processing Streamlines
Add 3D Streamlines to visualize flow
Hide the Isosurface created in the previous step (un-check in model tree) Click the Streamline button and keep default name (Streamline 1) On the Geometry tab
Start From: Fresh Air # of Points: 100 Under Color set Mode: Use Plot Variable Range: Local Click Apply
Part 2: Postprocessing
2012 ANSYS, Inc.
Color Images
Line Graphs
39
Reports
Summary
Release 14.5
Part 2: Postprocessing
2012 ANSYS, Inc.
Color Images
Line Graphs
40
Reports
Summary
Release 14.5
Part 2: Postprocessing
2012 ANSYS, Inc.
Color Images
Line Graphs
41
Reports
Summary
Release 14.5
Note how this file (car-streamlines.cvf) is quite small (in this case
about 170kB (but it will vary depending on zoom level), and therefore easy to email to your client or manager).
Color Images
Line Graphs
42
Reports
Summary
Release 14.5
Use left mouse button to rotate Middle mouse button (or wheel)
to zoom Right mouse button to translate Type question mark ? for a list of hotkeys
Part 2: Postprocessing
2012 ANSYS, Inc.
Color Images
Line Graphs
43
Reports
Summary
Release 14.5
Edit > Options > CFD-Post > Viewer Set Color Type to Solid Set Color to white Volume Rendering applies a variable colour and transparency to Click OK each grid cell depending on the plot variable. For applications
involving smoke movement it makes it easy to assess where the cloud is concentrated.
Part 2: Postprocessing
2012 ANSYS, Inc.
Color Images
Line Graphs
44
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 charts. It is also possible to write your own arithmetic expressions for custom post-processing.
This has created a horizontal line through the model, passing above the front of the car
Part 2: Postprocessing
2012 ANSYS, Inc.
Color Images
Line Graphs
45
Reports
Summary
Release 14.5
Post-processing Chart
Select the Chart Icon from the top toolbar Keep the default name, Chart 1 and click OK
Under General set the Display Title to
Temperature Profile Under Data Series set Location to Line 1 Under X Axis set Variable to Y Under Y Axis set Variable to Temperature Click Apply
Part 2: Postprocessing
2012 ANSYS, Inc.
Color Images
Line Graphs
46
Reports
Summary
Release 14.5
Post-processing Chart
Notes on the graph:
Notice that the peak temperature is located not above the middle of the car (y=9m) but moved some distance to the left (circa y=7m). This is a direct effect of the air movement from the jet fan To view the plot in Celsius rather than Kelvin, edit the details of Temperature on the Variables form
Part 2: Postprocessing
2012 ANSYS, Inc.
Color Images
Line Graphs
47
Reports
Summary
Release 14.5
Part 2: Postprocessing
2012 ANSYS, Inc.
Color Images
Line Graphs
48
Reports
Summary
Release 14.5
Post-processing Expressions
It is possible to write your own arithmetic functions for post-processing, making use of the data exported by the solver. The resulting expression may either return a single value (first example, below), or produce a quantity that varies spatially for use in a contour plot / line graph
3 2
Part 2: Postprocessing
2012 ANSYS, Inc.
Color Images
Line Graphs
49
Reports
Summary
Release 14.5
Post-processing Expressions
areaAve returns the areaweighted average at the location specified by the @ For a list of functions available right-click in the window and select Functions > CFD-Post
Note how Pressure appears in italics as soon as you type it. It is important to make the first letter a capital P. For a full list of available variables right-click in this window and select Variables
This is the name of the boundary that you are performing the averaging function on. For a full list of locations, right-click and select Locations Note that to compute the pressure drop we did not need to add the outlet boundary ...- areaAve(Pressure)@Air Outlet The outlet boundary was set to be a pressure outlet in CFX with a pressure of 0 Pa. This term would return a zero value try it if you like!
Part 2: Postprocessing
2012 ANSYS, Inc.
Colour Images
Line Graphs
50
Reports
Summary
Release 14.5
Post-processing Variables
Expressions can be used to define new variables
Colour Images
Line Graphs
51
Reports
Summary
Release 14.5
Post-processing Variables
Expressions cannot be plotted directly: they need to be assigned to a Variable
Click the Variables tab Right-click anywhere in the white space and select New
Enter a name CO2VolPercent From the pull-down list, select the expression
TemperatureConversion created on the last slide Click Apply
Alternatively, the expression could be entered directly into the box on the Variables form without using the Expression Editor
Part 2: Postprocessing
2012 ANSYS, Inc.
Colour Images
Line Graphs
52
Reports
Summary
Release 14.5
Post-processing Variables
The new variable can be used, for example, to colour the location xzplane
53
Release 14.5
Post-processing Reports
Below the graphic window and select
the Report Viewer tab
Name of the results file Mesh summary List of boundary conditions All the figures and charts produced during this workshop
Color Images
Line Graphs
54
Reports
Summary
Release 14.5
Color Images
Line Graphs
55
Reports
Summary
Release 14.5
If you have finished this exercise ahead of the rest of the class,
try experimenting with the Report options in the left-hand toolbar.
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: Postprocessing
2012 ANSYS, Inc.
Color Images
Line Graphs
56
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.
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: Postprocessing
2012 ANSYS, Inc.
Colour Images
Line Graphs
57
Reports
Summary
Release 14.5