You are on page 1of 26

CFX-10 Introduction

Lecture 1

28 November 2005
© 2005 ANSYS, Inc. L1-1 ANSYS, Inc. Proprietary
CFX-10 Introduction

 Main Steps in CFD Analysis


Geometry

Meshing

Physics Definition

Solver

Post-processing

28 November 2005
© 2005 ANSYS, Inc. L1-2 ANSYS, Inc. Proprietary
Main Steps in CFD Analysis

 Step 1: Geometry DesignModeler or Import from CAD


- create a solid representing the fluid flow region
 Step 2: Meshing CFX-Mesh, CFX-TurboGrid or ICEM
- create a volume mesh using the solid
 Step 3: Physics Definition CFX-Pre
- define physical models, material properties and boundary conditions
 Step 4: Solver CFX-Solver Manager
- solve equations and produce a solution
 Step 5: Post-processing CFX-Post
- analyze and visualize the solver results

28 November 2005
© 2005 ANSYS, Inc. L1-3 ANSYS, Inc. Proprietary
Step 1: Geometry

DesignModeler or CAD

28 November 2005
© 2005 ANSYS, Inc. L1-4 ANSYS, Inc. Proprietary
Geometry

 Create or Import the geometry


- Domain in which the
governing equations
will be solved and
solution obtained
- ANSYS DesignModeler
can be used to create
geometry
- Results in one or more
bodies
- Not required if the
mesh is imported from
a separate application

28 November 2005
© 2005 ANSYS, Inc. L1-5 ANSYS, Inc. Proprietary
Step 2: Meshing

CFX-Mesh, ICEM or CFX-TurboGrid

28 November 2005
© 2005 ANSYS, Inc. L1-6 ANSYS, Inc. Proprietary
Meshing

 Mesh Generation
- Process of generating finite
volumes or elements
- CFX can accept meshes with
elements that are hexahedral,
tetrahedral, prismatic (wedges),
pyramids or any combination
- Surface mesh and volume
mesh make up the mesh
- Meshes can be created in a
different session or imported
from another meshing utility

28 November 2005
© 2005 ANSYS, Inc. L1-7 ANSYS, Inc. Proprietary
Step 3: Physics Definition

CFX-Pre

28 November 2005
© 2005 ANSYS, Inc. L1-8 ANSYS, Inc. Proprietary
Import Mesh into CFX-Pre

 The mesh defines the fluid domain(s) to be


solved
 Mesh Tab imports and manages grids
 Each imported mesh is stored as a Mesh
Assembly

 Import Mesh

 Transform Mesh Assembly


 Delete Mesh Assembly
 Edit Render Options for Selected Regions
 View Mesh Statistics for Selected Regions
28 November 2005
© 2005 ANSYS, Inc. L1-9 ANSYS, Inc. Proprietary
Create Toolbar

 To define your simulation, follow the toolbar


from left to right
 Some items are optional, depending on your
simulation
 Hold the mouse over each icon to see what it
does

28 November 2005
© 2005 ANSYS, Inc. L1-10 ANSYS, Inc. Proprietary
Create Toolbar

 In the simplest cases, the following items are


required after importing the mesh

1. Domains 3. Solver Control

2. Boundary Conditions 4. Write Solve File

28 November 2005
© 2005 ANSYS, Inc. L1-11 ANSYS, Inc. Proprietary
Create Toolbar

Create a Coordinate Frame – if the default coordinate frame is not sufficient


Define the Simulation Type – steady state (default) or transient
Create a Domain – define properties of fluid, solid and/or porous domain(s)
Create a Subdomain – if you need to apply sources within a domain
Create a Source Point – if you need to apply a point source within a domain
Create a Boundary Condition – define what’s happening at the boundaries
Create a Domain Interface – for periodicity and to connect multiple domains
Define the Global Initial Conditions – initial conditions for all domains
Define the Mesh Adaption Criteria – to adapt the mesh as the solution progresses
Define the Solver Control Criteria – the parameters that control the Solver
Output Control and Monitor Points – the files the Solver outputs
Write Solver File – write a file and proceed to the Solver

28 November 2005
© 2005 ANSYS, Inc. L1-12 ANSYS, Inc. Proprietary
Domains

 Define the regions in which the equations are


solved
 Fluid, solid and porous regions
 Pick the fluid(s) or solid materials
 Select the physical models:
- Turbulence and Heat Transfer model
- Buoyancy
- Multiphase models
- Combustion and Radiation models
- Particle Tracking ……

28 November 2005
© 2005 ANSYS, Inc. L1-13 ANSYS, Inc. Proprietary
Boundary Conditions

 Boundary Conditions are needed to completely


specify (or close) the problem
 Required on all external surfaces of geometry
 Boundary values can be constants or CEL
expressions
 A Default Boundary Condition is applied to external
surfaces which have not been explicitly defined
- created automatically for each domain
 All mesh regions are available in CFX-Post, not just
Boundary Conditions

28 November 2005
© 2005 ANSYS, Inc. L1-14 ANSYS, Inc. Proprietary
Boundary Conditions

 There are 5 general types of boundary


conditions
- INLET: allow flow into the domain only
- OUTLET: allow flow out of the domain only
- OPENING: allow flow in and out of the domain
- WALL: no flow, normal velocity is zero
- SYMMETRY: flat surface specifying plane of
symmetry

28 November 2005
© 2005 ANSYS, Inc. L1-15 ANSYS, Inc. Proprietary
Solver Control

 Control of the CFX-5 Solver is undertaken by


the use of Solver Parameters, set on the
Solver Control form
- Convergence Control
> maximum number of iterations
> timescale selection
- Advection Scheme
- Convergence criteria
> MAX or RMS residual
> conservation target

28 November 2005
© 2005 ANSYS, Inc. L1-16 ANSYS, Inc. Proprietary
Write Solver File

 CFX-Pre writes out a “Definition” (.def) file to


run in the Solver
- Contains everything needed (mesh and physics)
to run the simulation.
 CFX-Pre stores mesh data in the “Geometry,
Topology and Mesh” (.gtm) file and physics in
the .cfx file
- Keep these files to re-open simulations in CFX-
Pre

28 November 2005
© 2005 ANSYS, Inc. L1-17 ANSYS, Inc. Proprietary
Step 4: Solver

CFX-Solver Manager

28 November 2005
© 2005 ANSYS, Inc. L1-18 ANSYS, Inc. Proprietary
Solver

 Solve the governing equations


- Set the flow solver options
- Iteratively solve the governing
equations as a batch process
- Obtain convergence

28 November 2005
© 2005 ANSYS, Inc. L1-19 ANSYS, Inc. Proprietary
Solver Manager

 The Solver Manager is primarily used to:


- start a new calculation, or set up multiple runs
- restart a calculation from an earlier solution
- examine the problem information
- set up parallel runs
- monitor residuals, global balances, monitor
points, expressions, etc.

28 November 2005
© 2005 ANSYS, Inc. L1-20 ANSYS, Inc. Proprietary
Step 5: Post-processing

CFX-Post

28 November 2005
© 2005 ANSYS, Inc. L1-21 ANSYS, Inc. Proprietary
CFX-Post

 Examine results, either in graphical or


numerical format

28 November 2005
© 2005 ANSYS, Inc. L1-22 ANSYS, Inc. Proprietary
CFX-Post

 Provides capability to quantify and visualize


results
 Typical Post functionality involves
- creating Locator Objects (Points, Lines, Slice
Planes, etc.)
- plotting Visualization Objects (Contours, Vectors,
etc.) on locators
- evaluating expressions on locators
- exporting data for further external analysis
 CFX-Post also includes turbomachinery
specific post-processing tools

28 November 2005
© 2005 ANSYS, Inc. L1-23 ANSYS, Inc. Proprietary
CFX-Post: Visualization

28 November 2005
© 2005 ANSYS, Inc. L1-24 ANSYS, Inc. Proprietary
Main File Types in CFX

CFX-Pre case (.cfx) &


GTM (.gtm) file CFX-Pre case (.cfx) &
CFX Results File (.res) CFX-Pre GTM (.gtm) file
CFX Definition File (.def)
Other mesh files

CFX Definition File (.def)

CFX-Solver CFX Solver Output file (.out)

CFX Results File (.res)

CFX Definition File (.def)


CFX GTM File (.gtm) CFX-Post
28 November 2005
© 2005 ANSYS, Inc. L1-25 ANSYS, Inc. Proprietary
Practical Sessions

 Practical 1: Duct Bend


A simple example to take you through the
stages of setting up and running a model
and then visualising the results

 Practical 2: Duct Bend With Vanes


Include heat transfer and turning vanes (thin
surfaces) in the above example.

28 November 2005
© 2005 ANSYS, Inc. L1-26 ANSYS, Inc. Proprietary

You might also like