You are on page 1of 57

Workshop 04 Multi-Species Flow and Postprocessing

14. 5 Release

Introduction to ANSYS CFX


2012 ANSYS, Inc. December 17, 2012 1 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 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

Symmetry Plane symmetry

Introduction
2012 ANSYS, Inc.

part 1: long version


December 17, 2012

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.

part 1: long version


December 17, 2012

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.

part 1: long version


December 17, 2012

Setup
4

Solving

Proceed to Part 2.
Release 14.5

Objectives (Flow Simulation Part)


Learning Aims:
The first part of this workshop will show how to set up a multi-species problem. The domain will contain a blend of several different gases (nitrogen, oxygen, carbon dioxide, water vapour)

Other topics that will be introduced are:


Including gravitational (buoyancy) effects Setting a momentum source term to account for a jet fan

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.

part 1: long version


December 17, 2012

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.

part 1: long version


December 17, 2012

Setup
6

Solving

Proceed to Part 2.
Release 14.5

Importing the Mesh


Right-click on Mesh and select Import Mesh File
Set the mesh filter to FLUENT Files (*.cas,*.msh) Select car_and_garage.msh (workshop_input_files\WS_04_Multi-Species and
PostProcessing) and click Open

Right-click Setup and select Edit to open CFX-Pre

Introduction
2012 ANSYS, Inc.

part 1: long version


December 17, 2012

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.

part 1: long version


December 17, 2012

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 Buoyancy Model to Buoyant

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.

part 1: long version


December 17, 2012

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.

part 1: long version


December 17, 2012

Setup
10

Solving

Proceed to Part 2.
Release 14.5

On the Fluid Models tab:

Fluid Models

Set Heat Transfer to Total Energy


Kinetic energy effects will be included In the Component Models section click on N2 in the Component box and make sure the Option is set to Constraint. In a multi-component mixture, one component must be defined as a Constraint. Other settings on the form can be left as the defaults The k-epsilon turbulence model is selected by default
Turbulence modelling, as with all physics modelling, is a complex area. There are many application specific options. The k-epsilon model is a simple and robust model. The documentation provides further guidance on which models to use for specific applications.

Click OK to complete the specification of the domain


Introduction
2012 ANSYS, Inc.

part 1: long version


December 17, 2012

Setup
11

Solving

Proceed to Part 2.
Release 14.5

Forced convection modelling a Fan


Right-click Default Domain and select Insert
> Subdomain

Set Name to Fan and click OK

Set Location to fluid_jet_fan Click the Sources tab


Enable Sources, Momentum Source/Porous
Loss, then General Momentum Source Set the Y Component to -80 [kg m^-2 s^-2] Set other components to 0 [kg m^-2 s^-2]

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.

part 1: long version


December 17, 2012

Setup
12

Solving

Proceed to Part 2.
Release 14.5

Boundary Conditions (Fresh Air)


Select Insert > Boundary
Set Name to Fresh Air Leave Boundary Type as Inlet Set the Location to velocity_inlet_fresh_air Click Boundary Details (more settings on the next page)

Introduction
2012 ANSYS, Inc.

part 1: long version


December 17, 2012

Setup
13

Solving

Proceed to Part 2.
Release 14.5

Boundary Conditions (Fresh Air)


On the Boundary Details tab:
Set Mass and Momentum to Normal Speed Set Normal Speed to 0.8 [m/s] Set Heat Transfer to Static Temperature Set Static Temperature to 20 [C] Note the units for temperature Set the following component Mass Fractions: CO2: 0.0 H2O: 0.0 O2: 0.23

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.

part 1: long version


December 17, 2012

Setup
14

Solving

Proceed to Part 2.
Release 14.5

Boundary Conditions (Air Outlet)


Insert > Boundary
Set Name to Air Outlet

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.

part 1: long version


December 17, 2012

Setup
15

Solving

Proceed to Part 2.
Release 14.5

Boundary Conditions (Exhaust)


Insert > Boundary
Set Name to Exhaust. OK

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.

part 1: long version


December 17, 2012

Setup
16

Solving

Proceed to Part 2.
Release 14.5

Boundary Conditions (Walls)


Insert > Boundary
Set Name to Walls

Set Boundary Type to Wall Set Location to walls_outer, wall_floor and


wall_ceiling

Use the <Ctrl> key to select multiple


boundaries

Click Boundary Details


Set Heat Transfer to Heat Transfer Coefficient Set Heat Trans. Coeff to 5 [W m^-2 K^-1] Set Outside Temperature to 300 [K]
This boundary condition is intended to simulate the effect of a solid material between the CFD domain and the air outside the garage, for example, a concrete wall.

Click OK
Introduction
2012 ANSYS, Inc.

part 1: long version


December 17, 2012

Setup
17

Solving

Proceed to Part 2.
Release 14.5

Boundary Conditions (Symmetry)


Insert > Boundary
Set Name to Symmetry

Set Boundary Type to Symmetry Set Location to symmetry Click OK

Introduction
2012 ANSYS, Inc.

part 1: long version


December 17, 2012

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

The solver will calculate automatic values for


the remaining variables The flow is initialized without any products of combustion present

Click OK
Introduction
2012 ANSYS, Inc.

part 1: long version


December 17, 2012

Setup
19

Solving

Proceed to Part 2.
Release 14.5

Monitor Quantities
Double-click on Output Control under Solver
in the Outline tree

On the Monitor tab create a new monitor


Set Name to Average Temperature Set Option to Expression Set Expression Value to volumeAve(T)@Default
Domain

Create two new monitors in the same way:


Name: Heat Flow through Floor Expression:
The monitor points will track average areaInt(Wall Heat Flux)@REGION:wall_floor temperature in the domain, total heat flux through the floor region, and mass flow through Name: Fan Intake Mass Flow Rate the simulated fan region. Expression: The region where mass flow is monitored was massFlow()@REGION:Primitive 2D B not tagged as a Named Selection in the mesh. So the mesh region of the primitive CAD surface Click OK that represents it has to be chosen.
Introduction
2012 ANSYS, Inc.

part 1: long version


December 17, 2012

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.

part 1: long version


December 17, 2012

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)

Set Timescale Control to Physical Timescale

Set a Physical Timescale of 5 [s]


Set Residual Target to 1e-4 Enable Conservation Target

Set Value to 0.01

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.

part 1: long version


December 17, 2012

Setup
22

Solving

Proceed to Part 2.
Release 14.5

Solution (Optional)
Close CFX-Pre The solution takes 30-60 minutes to
complete

A results file is provided in this


workshop if you do not wish to solve the case. To use the provided results file, go to the next page

To solve the case manually:


Right-click Solution and select Edit When the CFX-Solver Manager opens click
Start Run Skip the next page of instructions and continue from the slide headed Monitoring the Solution

Introduction
2012 ANSYS, Inc.

part 1: long version


December 17, 2012

Setup
23

Solving

Proceed to Part 2.
Release 14.5

Using Results Provided (Optional)


To use the results file provided:
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.

In the new system, right-click Solution and


select Display Monitors

The CFX-Solver Manager window will open to


show the diagnostic info associated with the supplied results file

Introduction
2012 ANSYS, Inc.

part 1: long version


December 17, 2012

Setup
24

Solving

Proceed to Part 2.
Release 14.5

Monitoring the Solution


Click the User Points tab
The development of a fairly regular pattern in the variation of the monitor, Heat Flow Through Floor, indicates that there are some transient characteristics in the flow. This workshop has assumed that the flow can be treated as steady state but for a higher fidelity solution a transient study would be necessary.

View the Residuals


Oscillations in the RMS residuals help to affirm possible transient solution behaviour. The solution in this case terminated because the maximum number of iterations, 250, was reached and not because the solution converged to the required level.

Introduction
2012 ANSYS, Inc.

part 1: long version


December 17, 2012

Setup
25

Solving

Proceed to Part 2.
Release 14.5

Monitoring the Solution


Create a new monitor to see how closely the target imbalance of 1% was met
Click on the New Monitor icon and accept the default Name and Type Select the Plot Lines tab of the Monitor Properties window Expand IMBALANCE>Default Domain and switch on imbalances for all equations Select Range Settings, check Set Manual Scale (Linear) and set the Lower Bound to -1 and the Upper Bound to 1 The imbalances are all within the 1% target

2012 ANSYS, Inc.

December 17, 2012

26

Release 14.5

Post-processing in CFD-POST

Part 2: Postprocessing
2012 ANSYS, Inc.

Color Images

Line Graphs
27

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

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

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

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

Right-click Results and select Edit


CFD-Post will open and the results will be automatically loaded
Depending on the path chosen, you will be loading results from a complete analysis system (top right) or a component system (bottom right). To ensure Results are valid, check to see that Solution has a green tick

Part 2: Postprocessing
2012 ANSYS, Inc.

Color Images

Line Graphs
29

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

Post-processing Wall Temperature


Add a Location representing a group of surfaces (Surface Group)
This lets you group a selection of entities (in this case walls) and apply the same post-processing treatment to all items in the group.

Select Locations > Surface Group and enter the name Grouped Walls

Part 2: Postprocessing
2012 ANSYS, Inc.

Color Images

Line Graphs
30

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

Postprocessing Wall Temperature


Define Location details
The details of the new location will be displayed in the bottom left pane Select Locations, and click on Expand the Regions list and select everything beginning wall EXCEPT wall_car (CTRL click to multiple select). Click OK in the Location Selector

Part 2: Postprocessing
2012 ANSYS, Inc.

Color Images

Line Graphs
31

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

Postprocessing Wall Temperature


Click the Color tab

Set Mode to Variable Set Variable to Temperature Set Range to Local Click Apply

Modify the Legend


Double-click Default Legend
View 1 in the Outline tree On the Appearance tab: Set Precision to 1 Change Scientific to Fixed Click Apply
This option has allowed us to produce a temperature contour plot of identical colour range on a group of surfaces.

Part 2: Postprocessing
2012 ANSYS, Inc.

Color Images

Line Graphs
32

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

Postprocessing Generating a Figure

Generate a figure for use later in a report


Click the Figure icon Enter the name Figure 1 Wall Temperature OK

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

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

Post-processing Section Plane


First de-select the checkbox next to Grouped Walls in the Outline tree to turn off visibility for the object Add a location representing a section plane

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

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

Postprocessing Section Plane


On the Color tab set Mode
to Variable

Set the Variable to


Temperature

Under Render disable


Lighting

Click Apply to display Generate a new Figure and


name it Figure 2 Temperature Slice

Part 2: Postprocessing
2012 ANSYS, Inc.

Color Images

Line Graphs
35

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

Postprocessing Quick Animation


The slice through the model gives us a useful indication of what is happening in the middle of the domain. A Quick Animation will traverse this slice through the model so that we can see what is happening elsewhere.

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

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

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

Ensure that the details box shows wall_car


For Color select Constant and pick yellow () Click Apply

Part 2: Postprocessing
2012 ANSYS, Inc.

Color Images

Line Graphs
37

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

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

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

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

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

Post-processing Portable CVF Files


Not only can CFD-Post export regular image formats (jpg / png), but in addition 3D images can be saved. These images have the file extension .cvf. They can be viewed using a free CFD viewer that can be downloaded from the ANSYS website. (Go to www.ansys.com, and search for ANSYS CFD Viewer) No license is required to use the viewer. So you can install this on any computer (e.g. laptop used for presentations or ask your client/customer to download and install a copy). The 3D image can be viewed using rotate / pan / zoom functionality just as in CFD-Post, and can also be embedded in MS-Powerpoint. However the user cannot modify the image. They cannot add/remove objects from the image or alter colour ranges. This is a really powerful tool for when you come to present your project work. In many cases a 2D jpeg image cannot explain 3D flow features. However, rotating the model live in front of your audience will help convey your findings.

Part 2: Postprocessing
2012 ANSYS, Inc.

Color Images

Line Graphs
40

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

Post-processing Portable CVF Files


In CFD-Post click the camera icon For Format select CFD-Viewer State (3D) Click the folder icon to the right of the filename.
Pick the directory you are working in (remember this!) Save as filename car-streamlines.cvf Click Save in both windows

Part 2: Postprocessing
2012 ANSYS, Inc.

Color Images

Line Graphs
41

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

Post-processing Portable CVF Files


Minimise CFD Post, and use Windows Explorer to browse to the
folder used on the last slide.

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).

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 recognize this file extension. You only need to do a separate installation of ANSYS CFD Viewer (from the ANSYS website) on machines that do not have Workbench installed.
Part 2: Postprocessing
2012 ANSYS, Inc.

Color Images

Line Graphs
42

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

Post-processing Portable CVF Files


ANSYS CFD Viewer will look just
like the graphical window of CFD-Post

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

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

Postprocessing Volume Rendering


Close the standalone viewer and return to CFD-Post Hide the streamlines plot by un-checking in model view Select Insert>Volume Rendering and set Name to Gas Cloud
On the Geometry tab
set Variable to CO2.Mass Fraction keep Range as Global and click Apply

To make it easier to see the image


change the screen background colour to white:

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

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

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.

Create a Line through the model


Hide the Gas Cloud volume rendering object Location > Line and keep default name Line 1 Set Method to Two Points
from X=18 Y=3 Z=2 to X=18 Y=18 Z=2 Set Samples to 40 Click Apply

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

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

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

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

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

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

Post-processing Volume Integrals


The only source of carbon dioxide (CO2) in the model is from the car fire (the inlet just comprises oxygen and nitrogen). We will perform a volume integral to find out how much CO2 is present in the model.

Select Calculators tab Select Function Calculator



Function: volumeInt (for Volume Integral) Location: Default Domain Variable: CO2.Mass.Fraction Click Calculate The result is about 1.15 m^3 of CO2

Part 2: Postprocessing
2012 ANSYS, Inc.

Color Images

Line Graphs
48

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

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

Select the Expressions tab

Right click in the window and select New


Enter name PressureDrop then click OK Enter the following expression, then click Apply
1

ave(Pressure)@Fresh Air Note: right-click menu usage shown below

The answer is approximately 31Pa.

3 2
Part 2: Postprocessing
2012 ANSYS, Inc.

Color Images

Line Graphs
49

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

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

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

Post-processing Variables
Expressions can be used to define new variables

As a simple example, lets convert the concentration of CO2 into a percentage by


volume

Expressions > New Set Name to CO2percent Enter this expression:


100*CO2.Mass Concentration*R*Temperature/(Absolute Pressure*44.01 [kg /kmol]) Click Apply
Note: The concentration is calculated by dividing the concentration of CO2 on a mass per unit volume basis by its density according to the ideal gas equation. The molecular weight, 44.01 kg/kmol, can be found in the details of the Material called CO2

R, the universal gas constant, is available in CEL


The Absolute Pressure rather than the relative pressure is used in the calculation of density
Part 2: Postprocessing
2012 ANSYS, Inc.

Colour Images

Line Graphs
51

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

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

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

Post-processing Variables
The new variable can be used, for example, to colour the location xzplane

2012 ANSYS, Inc.

December 17, 2012

53

Release 14.5

Post-processing Reports
Below the graphic window and select
the Report Viewer tab

Select Refresh Review what is shown in the report


window. You can see:

Name of the results file Mesh summary List of boundary conditions All the figures and charts produced during this workshop

Save the project


If you select Publish the report will, by default, be written out in html format, along with copies of all the results images
Part 2: Postprocessing
2012 ANSYS, Inc.

Color Images

Line Graphs
54

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

State files and Optional Extra work


Outside Workbench: File > Save State As... to save state files as required Inside Workbench: A single state file is automatically saved with the project
The state file stores all the post-processing settings and objects you have created. If you have done the long version of this workshop, you will recall that we ran for a fixed number of iterations and wanted to examine the results to help us determine if the model had converged or not. (The residuals were stuck and further iterations would not lower the residuals). It might be necessary to revisit the model set-up, e.g. by moving to a transient scheme. A useful assessment of convergence is to see if the results of interest remain unchanged as the solver settings are enhanced. The big advantage of having this state file is that if you choose to modify the solver settings and re-run this model, you can quickly reproduce the equivalent post-processing images. Simply load the new results file and then load this state file. Likewise, it is common in project work to have run a series of models to test the different operating conditions. This technique will let you generate equivalent images so as to produce a good like-for-like comparison in your presentation / report.
Part 2: Postprocessing
2012 ANSYS, Inc.

Color Images

Line Graphs
55

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

State files and Optional Extra work


The Reports feature just demonstrated lets you customise the
format of your report.

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

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

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: Postprocessing
2012 ANSYS, Inc.

Colour Images

Line Graphs
57

Expressions and Integrals

Reports

Summary
Release 14.5

December 17, 2012

You might also like