Professional Documents
Culture Documents
Introduction to CFD
Introduction to CFX
1-1
Introduction To CFD
What is CFD?
Training Manual
Computational fluid dynamics (CFD) is the science of predicting fluid flow, heat and mass transfer, chemical reactions, and related phenomena by solving numerically the set of governing mathematical equations
Conservation of mass, momentum, energy, species mass, etc.
1-2
Introduction To CFD
Training Manual
Control Volume*
Unsteady
Advection
Diffusion
Generation
Continuous partial differential equations (the governing equations) are discretized into a system of linear algebraic equations that can be solved on a computer
* FLUENT control volumes are cell-centered (i.e. they correspond directly with the mesh) while CFX control volumes are node-centered
1-3
Introduction To CFD
Training Manual
Problem Identification
1. Define your modeling goals 2. Identify the domain you will model
Pre-Processing
3. 4. Geometry Mesh
5.
6.
Physics
Solver Settings
9. Update Model
Physical models, domain properties, boundary conditions, numerical schemes, convergence controls,
Solve
7. Compute solution
Post Processing
8. Examine results
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
Post-Processing
8. Examine the results 9. Consider revisions to the model
1-4
April 28, 2009 Inventory #002598
Introduction To CFD
Training Manual
What results are you looking for (i.e. pressure drop, mass flow rate), and how will they be used?
What are your modeling options?
What physical models will need to be included in your analysis (i.e. turbulence, compressibility, radiation)? What simplifying assumptions do you have to make? What simplifying assumptions can you make (i.e. symmetry, periodicity)? Do you require a unique modeling capability?
User-defined functions (written in C) in FLUENT or User FORTRAN functions in CFX
1-5
Introduction To CFD
Training Manual
L-valve Gas
Cyclone Separator
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
1-6
Introduction To CFD
Training Manual
Do you need to split the model so that boundary conditions or domains can be created?
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
1-7
Introduction To CFD
Training Manual
Can you predict regions of high gradients? Will you use adaption to add resolution? Triangle Quadrilateral
Tetrahedron
Hexahedron
A mesh divides a geometry into many elements. These are used by the CFD solver to construct control volumes
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
1-8
Introduction To CFD
Training Manual
Meshing tools designed for a specific application can streamline the process of creating a quad/hex mesh for some geometries.
E.g. TurboGrid, IcePak, AirPak
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved. April 28, 2009 Inventory #002598
1-9
Introduction To CFD
Training Manual
Hybrid meshes typically combine tri/tet elements with other elements in selected regions
For example, use wedge/prism elements to resolve boundary layers More efficient and accurate than tri/tet alone Wedge (prism) mesh Tetrahedral mesh
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
1-10
Introduction To CFD
Multizone meshes yield a good combination of accuracy, efficient calculation time and meshing effort. When the nodes do not match across the regions, a General Grid Interface (GGI) can be used.
1-11
Introduction To CFD
Non-Matching Meshes
Non matching meshes are useful for meshing complex geometries
Mesh each part then join together
Training Manual
Non-matching interface
3D Film Cooling Coolant is injected into a duct from a plenum. The plenum is meshed with tetrahedral cells while the duct is meshed with hexahedral cells
Compressor and Scroll The compressor and scroll are joined through a General Grid Interface. This serves to connect the hex and tet meshes and also allows a change in reference frame
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
1-12
Introduction To CFD
Training Manual
For complex problems solving a simplified or 2D problem will provide valuable experience with the models and solver settings for your problem in a short amount of time.
Prescribe operating conditions Prescribe boundary conditions at all boundary zones Provide initial values or a previous solution Set up solver controls Set up convergence monitors
1-13
Introduction To CFD
Training Manual
The discretized conservation equations are solved iteratively; some number of iterations is required to reach a converged solution.
Parallel processing can provide faster solutions and access to more memory (solve larger cases) Convergence is reached when:
Changes in solution variables from one iteration to the next are negligible Overall property conservation is achieved Quantities of interest (e.g. drag, pressure drop) have reach steady values
A converged and meshindependent solution on a well-posed problem will provide useful engineering results!
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
1-14
Introduction To CFD
Training Manual
Post Processing
8. Examine results
Examine results to ensure property conservation and correct physical behavior. High residuals may be attributable to only a few cells of poor quality.
ANSYS, Inc. Proprietary 2009 ANSYS, Inc. All rights reserved.
1-15
Introduction To CFD
Training Manual
Post Processing
8. Examine results
1-16