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

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

INTRODUCTION TO CFD ANALYSIS

FLUENT & GAMBIT

CFD Analysis - The Basic Step


Problem Identification and Preprocessing
-Define your modeling goals. -Identify the domain you will model. -Design and create the grid. Catia AutoCAD Gambit Icem-CFD . .

Solver Execution
-Set up the numerical. -Compute and monitor the solution.

CFX CFDRC COSMOS Fluent . .

Post-Processing
-Examine the results. -Consider revisions to the model.
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

INTRODUCTION TO CFD ANALYSIS

FLUENT & GAMBIT

Reading the Mesh - Components

2007/12/11

6/39

FALab

INTRODUCTION TO CFD ANALYSIS

FLUENT & GAMBIT

Defining Boundary Conditions


External faces -General ~ pressure inlet , pressure outlet -Incompressible ~ velocity inlet, outflow -Compressible ~ mass flow inlet , pressure far-field, mass flow outlet -Other ~ wall, symmetry, axis, periodic Cell Zones -Fluid -Solid -Heat exchanger Interface -wall, interior..

2007/12/11

7/39

FALab

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, instead is bridged by the wall function. HighHigh-Re turbulence models can be used.

The nearnear-wall region is resolved all the way down to the wall. The turbulence models ought to be valid throughout the nearnear-wall region.

2007/12/11

9/39

FALab

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, define as (w/)0.5. 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

INTRODUCTION TO CFD ANALYSIS

FLUENT & GAMBIT

Case12-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

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

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

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

INTRODUCTION TO CFD ANALYSIS

FLUENT & GAMBIT

Step 1Grid
Read the grid file airfoil-2D.mesh File Read Case. Check the grid. Grid Check Display the grid Display Grid.

The Entire Grid


2007/12/11 26/39 FALab

INTRODUCTION TO CFD ANALYSIS

FLUENT & GAMBIT

Step 2Models
Specify the solver settings. Define Models Solver.

NoteSeclect Green-Gauss Node Based This option uses better numerics, in particular in unstructured meshs. It also tends to predict drag more accurately.

2007/12/11

27/39

FALab

14

INTRODUCTION TO CFD ANALYSIS

FLUENT & GAMBIT

Enable the k- epsilon turbulence model. Define Models Viscous.

2007/12/11

28/39

FALab

INTRODUCTION TO CFD ANALYSIS

FLUENT & GAMBIT

Step 3Materials
Set the properties for air, the default fluid materials. Define Materials.

2007/12/11

29/39

FALab

15

INTRODUCTION TO CFD ANALYSIS

FLUENT & GAMBIT

Step 4Boundary Conditions


Define Boundary Conditions.

2007/12/11

30/39

FALab

INTRODUCTION TO CFD ANALYSIS

FLUENT & GAMBIT

1.Set the boundary conditions for velocity-inlet

NoteEnter 0.997564 and 0.069756 for the X-Y components of flow direction. NoteThe viscosity ratio should be between 1 and 10 for external flows.

2007/12/11

31/39

FALab

16

INTRODUCTION TO CFD ANALYSIS

FLUENT & GAMBIT

2.Set the boundary conditions for pressure-outlet

2007/12/11

32/39

FALab

INTRODUCTION TO CFD ANALYSIS

FLUENT & GAMBIT

Step 5Solution
Define a force monitor to print, write, and drag coefficient for the walls of the airfoil.

NoteEnter 7.28588 for X and 0.50948 for Y in the Force Vector Box.

2007/12/11

33/39

FALab

17

INTRODUCTION TO CFD ANALYSIS

FLUENT & GAMBIT

Define a force monitor to print, write, and lift coefficient for the walls of the airfoil.

NoteEnter -0.50948 for X and 7.28588 for Y in the Force Vector Box.

2007/12/11

34/39

FALab

INTRODUCTION TO CFD ANALYSIS

FLUENT & GAMBIT

Define the residual monitor to print and plot.

2007/12/11

35/39

FALab

18

INTRODUCTION TO CFD ANALYSIS

FLUENT & GAMBIT

Initialize the solution. Solver Initialize Initialize.

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. Report Reference values.

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 6Postprocessing

2007/12/11

38/39

FALab

Thanks!!

FALab

20

You might also like