You are on page 1of 40

2D Unstructured Euler Solver

2D Unstructured Euler Solver

Prapanj Ganeshan Radhamony

Dept of Mechanical Engineering


University of Alabama at Birmingham

Advanced Computational Fluid Dynamics


2D Unstructured Euler Solver

Table of contents

1 Introduction
The Goal
Governing Equation
2 Development
Pre-Processing
Core Computations
Post processing
3 Test Cases
Expansion over convex corner
Flow over 15 degree wedge
RAE2822 Aerofoil
4 Conclusion
2D Unstructured Euler Solver
Introduction
Motivation

Inspiration

Fascination for fluid flow. The feeling of greatness in simulating


natural phenomenon. We usually see the mathematics of the
problem extablished, and then we see the colorful results. I wanted
to see the bridge between the two.
2D Unstructured Euler Solver
Introduction
The Goal

Assumptions on the Domain

Inviscid compressible flow


Euler Equation
Unstructured Grid - To learn the book keeping
2D Unstructured Euler Solver
Introduction
The Goal

Assumptions on the Domain

Inviscid compressible flow


Euler Equation
Unstructured Grid - To learn the book keeping
2D Unstructured Euler Solver
Introduction
The Goal

Assumptions on the Domain

Inviscid compressible flow


Euler Equation
Unstructured Grid - To learn the book keeping
2D Unstructured Euler Solver
Introduction
The Goal

Assumptions on the Domain

Inviscid compressible flow


Euler Equation
Unstructured Grid - To learn the book keeping
2D Unstructured Euler Solver
Introduction
The Goal

Problem to Solve

Internal and External flows


Two kinds of boundaries - Farfield and Wall
Flow regime - Subsonic to Supersonic
Steady State problems
2D Unstructured Euler Solver
Introduction
Governing Equation

Euler Equation

The PDE
∂U ∂Fx ∂Fy ∂Fz
+ + + =0
∂t ∂x ∂y ∂z

The discretized form


∆U ~ · n̂ds = 0
V + ΣF
∆t
2D Unstructured Euler Solver
Development
Pre-Processing

Grid Generation

1 Gridgen - Unstructured grid


2 Cobalt Format
3 Edge to cell information
4 Extract cells to node information
2D Unstructured Euler Solver
Development
Pre-Processing

Grid Generation

1 Gridgen - Unstructured grid


2 Cobalt Format
3 Edge to cell information
4 Extract cells to node information
2D Unstructured Euler Solver
Development
Pre-Processing

Grid Generation

1 Gridgen - Unstructured grid


2 Cobalt Format
3 Edge to cell information
4 Extract cells to node information
2D Unstructured Euler Solver
Development
Pre-Processing

Gometric Variables

1 Edge normals
2 Cell Areas
3 Direction of rotation
4 This code works only for a negative area !!
2D Unstructured Euler Solver
Development
Pre-Processing

Gometric Variables

1 Edge normals
2 Cell Areas
3 Direction of rotation
4 This code works only for a negative area !!
2D Unstructured Euler Solver
Development
Core Computations

Intercell fluxes -Roe Scheme

1
Finteface = (FL + FR − |A|(QR − QL ))
2
where

|A|(QR − QL ) = |∆F1 | + |∆F23 | + |∆F4 |


2D Unstructured Euler Solver
Development
Core Computations

Boundary Fluxes

Farfield Boundaries
The free stream values are substituted in the farfield boundary
ghost cells

Wall boundary
 

 0 

Pnx
 
Finterface =

 Pny 

0
 
2D Unstructured Euler Solver
Development
Core Computations

Time Stepping

Euler time stepping is used in this code

∆t
Uit+∆t = Uit − Ri
A
where R(i) is the Residual
2D Unstructured Euler Solver
Development
Post processing

Output Format

Tecplot format
Cell Centered Data
2D Unstructured Euler Solver
Test Cases
Expansion over convex corner

Prandtl Meyer Expansion


Flow conditions

M∞ 2.5
P∞ 12.0 psi
ρ∞ 0.94347 kg /m3
θ 15 degrees
2D Unstructured Euler Solver
Test Cases
Expansion over convex corner

Results

Expansion
grid
density
pressure
stream
2D Unstructured Euler Solver
Test Cases
Expansion over convex corner

Results

Expansion
grid
density
pressure
stream
2D Unstructured Euler Solver
Test Cases
Expansion over convex corner

Results

Expansion
grid
density
pressure
stream
2D Unstructured Euler Solver
Test Cases
Expansion over convex corner

Results

Expansion
grid
density
pressure
stream
2D Unstructured Euler Solver
Test Cases
Expansion over convex corner

Comparison of Results

. Exact Present Solver


M2 3.23 3.74
P2
P1 0.3274 0.3295
ρ2
ρ1 0.4505 0.4408
2D Unstructured Euler Solver
Test Cases
Flow over 15 degree wedge

Flow Conditions

M∞ 2.5
P∞ 14.7 psi
ρ∞ 1.2222 kg /m3
θ 15 degrees
2D Unstructured Euler Solver
Test Cases
Flow over 15 degree wedge

Results

Compression
grid
density
pressure
2D Unstructured Euler Solver
Test Cases
Flow over 15 degree wedge

Results

Compression
grid
density
pressure
2D Unstructured Euler Solver
Test Cases
Flow over 15 degree wedge

Results

Compression
grid
density
pressure
2D Unstructured Euler Solver
Test Cases
Flow over 15 degree wedge

Comparison of Results

. Exact Present Solver


Angle of oblique shock 36.9449 36.88
M2 1.87 2.12
P2
P1 2.4675 2.4682
ρ2
ρ1 1.8665 1.856502
2D Unstructured Euler Solver
Test Cases
RAE2822 Aerofoil

Subsonic flow
Flow Conditions

M∞ 0.3
P∞ 14.0 psi
α 0.0
Temperature 460 R
2D Unstructured Euler Solver
Test Cases
RAE2822 Aerofoil

Results

Subsonic
grid
density
pressure
stream
2D Unstructured Euler Solver
Test Cases
RAE2822 Aerofoil

Results

Subsonic
grid
density
pressure
stream
2D Unstructured Euler Solver
Test Cases
RAE2822 Aerofoil

Results

Subsonic
grid
density
pressure
stream
2D Unstructured Euler Solver
Test Cases
RAE2822 Aerofoil

Results

Subsonic
grid
density
pressure
stream
2D Unstructured Euler Solver
Test Cases
RAE2822 Aerofoil

Transonic flow
Flow Conditions

M∞ 0.73
P∞ 15.807 psi
α 2.31
Temperature 460.6 R
2D Unstructured Euler Solver
Test Cases
RAE2822 Aerofoil

Results

Transonic
contour
density
pressure
2D Unstructured Euler Solver
Test Cases
RAE2822 Aerofoil

Results

Transonic
contour
density
pressure
2D Unstructured Euler Solver
Test Cases
RAE2822 Aerofoil

Results

Transonic
contour
density
pressure
2D Unstructured Euler Solver
Conclusion

Future Works

Fix bugs regarding coordinates


Incorporate more boundary conditions
Run more test cases
Incorporate Roe Entropy fix
Incorporating more Schemes
Higher Order time-stepping
2D Unstructured Euler Solver
Conclusion

Acknowledgements

Shravan- Inspiration for modular code


Joseph- Helping me with the computer
Dr. Roy- For teaching us a lot

You might also like