You are on page 1of 20

# INTRODUCTION TO CFD ANASISLY

(FLUENT & GAMBIT)

Advisor ~ Prof. F. B. Hsiao Advisee ~ C. J. Bai Date ~ 2007/12/11

FLUID AERODYNAMICS LABORATORY

INTRODUCTION TO CFD ANALYSIS

FLUENT & GAMBIT

PARTⅠ

Introduction to CFD analysis
PARTⅡ Mesh Generator PARTⅢ FLUENT Setup and Solution

2007/12/11

1/39

FALab

1

INTRODUCTION TO CFD ANALYSIS

FLUENT & GAMBIT

How Does CFD Work ?


Fluent solves are based on finite volume method. - Domain is discretized onto a finite set of control volume (or cells). - General conservation (transport) equations for mass, momentum, energy, species, etc. are solved on this set of control volumes. Fluid region of pipe flow is discretized into a finite set of control volume (mesh). - Partial differential equations are discretized into a system of algebraic equations. - All algebraic equations are then solved numerically to render the solution field.

2007/12/11

2/39

FALab

INTRODUCTION TO CFD ANALYSIS

FLUENT & GAMBIT

CFD Modeling Overview
Solver

Pre-Processing  Solid Modeler  Mesh Generator

 Transport Equation -Mass -Momentum -Energy  Equations of state  Supporting physical models

 Physical Models -Turbulence -Combustion -Radiation -Multiphase -Phase Change -Moving Zones -Moving Mesh

Solver setting  Material Properties  Boundary Conditions  Initial Conditions Postprocessing

2007/12/11

3/39

FALab

2

CFX CFDRC COSMOS Fluent . -Consider revisions to the model. Post-Processing -Examine the results. -Identify the domain you will model.INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT CFD Analysis . . -Compute and monitor the solution. Catia AutoCAD Gambit Icem-CFD . . Solver Execution -Set up the numerical.The Basic Step Problem Identification and Preprocessing -Define your modeling goals. -Design and create the grid. 2007/12/11 4/39 FALab INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Design and Create the Grid Hybrid mesh for an IC engine value port 2007/12/11 5/39 FALab 3 .

outflow -Compressible ~ mass flow inlet . axis. interior…. periodic Cell Zones -Fluid -Solid -Heat exchanger Interface -wall. pressure far-field. 2007/12/11 7/39 FALab 4 ..INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Reading the Mesh . symmetry.Components 2007/12/11 6/39 FALab INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Defining Boundary Conditions External faces -General ~ pressure inlet . mass flow outlet -Other ~ wall. pressure outlet -Incompressible ~ velocity inlet.

The turbulence models ought to be valid throughout the nearnear-wall region. instead is bridged by the wall function.INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Turbulence Models Available in FLUENT Reynolds-Averaged Navier-Stokes (RANS) models One-order Equation Models -Spalart-Allmaras Two-order Equation Models -Standard k-ε -RNG k-ε -Realizable k-ε -Standard ω-ε -SST k-ω Reynolds Stress Model Increase in computational cost per iteration RANS based models 2007/12/11 8/39 FALab INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Wall Boundary Conditions -Standard k-ε -RNG k-ε -Realizable k-ε -RSM -Spalart-Allmaras -Standard ω-ε -SST k-ω The viscosityviscosity-affected region is not resolved. HighHigh-Re turbulence models can be used. The nearnear-wall region is resolved all the way down to the wall. 2007/12/11 9/39 FALab 5 .

define as (τw/ρ)0.5.INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Placement of The First Grid Point Wall function ~ y+≒ 30-300 Near-wall function ~ y+ ≒ 1 Non-dimensional distance from a wall in a turbulent boundary layer is given by y+ y+ = ρut y μ where ut is the friction velocity. The shear stress on the surface: τw 1 ρU 2 2 2007/12/11 = 0.73 RN 10/39 FALab INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT PARTⅠ Introduction to CFD analysis PARTⅡ Mesh Generator PARTⅢ FLUENT Setup and Solution 2007/12/11 11/39 FALab 6 .

INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Case1：2-D Airfoil Problem Description 9RE=1x106 9Angle of attack=4° 9Naca4412 9Chord length = 1c 2007/12/11 12/39 FALab INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Mesh command button → Mesh → Mesh edges 2007/12/11 13/39 FALab 7 .

INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Mesh command button → Mesh → Mesh edges 2007/12/11 14/39 FALab INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Mesh command button Boundary-layer → → Create boundary layer 2007/12/11 15/39 FALab 8 .

INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Mesh command button → Mesh → Mesh edges 2007/12/11 16/39 FALab INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Mesh command button → Mesh → Mesh edges 2007/12/11 17/39 FALab 9 .

INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Mesh command button → Mesh → Mesh edges 2007/12/11 18/39 FALab INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Mesh command button → Mesh → Mesh faces 2007/12/11 19/39 FALab 10 .

INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Zones command button → Specify boundary types 2007/12/11 20/39 FALab INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Zones command button → Specify boundary types 2007/12/11 21/39 FALab 11 .

INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Zones command button → Specify boundary types 2007/12/11 22/39 FALab INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Zones command button → Specify continuum types 2007/12/11 23/39 FALab 12 .

INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT File → Export → Mesh… 2007/12/11 24/39 FALab INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT PARTⅠ Introduction to CFD analysis PARTⅡ Mesh Generator PARTⅢ FLUENT Setup and Solution 2007/12/11 25/39 FALab 13 .

2007/12/11 27/39 FALab 14 .mesh File → Read → Case…. It also tends to predict drag more accurately. Note：Seclect Green-Gauss Node Based This option uses better numerics. in particular in unstructured meshs. Grid → Check Display the grid Display → Grid….INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Step 1：Grid Read the grid file airfoil-2D. Define → Models → Solver…. Check the grid. The Entire Grid 2007/12/11 26/39 FALab INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Step 2：Models Specify the solver settings.

Define → Materials…. the default fluid materials. 2007/12/11 28/39 FALab INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Step 3：Materials Set the properties for air. 2007/12/11 29/39 FALab 15 .epsilon turbulence model.INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Enable the k. Define → Models → Viscous….

INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Step 4：Boundary Conditions Define → Boundary Conditions….Set the boundary conditions for velocity-inlet Note：Enter 0.069756 for the X-Y components of flow direction. 2007/12/11 30/39 FALab INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT 1. Note：The viscosity ratio should be between 1 and 10 for external flows.997564 and 0. 2007/12/11 31/39 FALab 16 .

50948 for Y in the Force Vector Box. and drag coefficient for the walls of the airfoil.28588 for X and 0.INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT 2. Note：Enter 7. write. 2007/12/11 33/39 FALab 17 .Set the boundary conditions for pressure-outlet 2007/12/11 32/39 FALab INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Step 5：Solution Define a force monitor to print.

Note：Enter -0.50948 for X and 7.INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Define a force monitor to print. write. 2007/12/11 35/39 FALab 18 . and lift coefficient for the walls of the airfoil. 2007/12/11 34/39 FALab INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Define the residual monitor to print and plot.28588 for Y in the Force Vector Box.

2007/12/11 36/39 FALab INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Set the reference value that are used to compute the lift and drag coefficients. Solver → Initialize → Initialize…. Report → Reference values….INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Initialize the solution. 2007/12/11 37/39 FALab 19 .

INTRODUCTION TO CFD ANALYSIS FLUENT & GAMBIT Save the case and data files(airfoil-2D.cas and airfoil-2D.dat) Start the calculation by requesting 100 iterations. Step 6：Postprocessing 2007/12/11 38/39 FALab Thanks!! FALab 20 .