Vous êtes sur la page 1sur 17

Korea Aerospace University

High-speed Propulsion and Combustion Control Laboratory

Adv. Fortran Lecture

1D-Euler Solver

Made by Jongchan Kim, 2016, Aug. 9

hpc.kau.ac.kr

Advanced Fortran Lecture


1. 1D-Euler Solver
1D Euler Solver CFD
3D
Viscous Flow Solver

2. Cluster Usage
Program compile and run on Cluster

3. Parallel Methods (MPI)


,

GPU ?

Korea Aerospace University

High-speed Propulsion and Combustion Control Lab.

1D-Euler Equation
The Euler equation for 1D flow

u 0
t x
u
( u 2 p) 0
t x
E
( u ( E p / )) 0
t
x

where

Ideal Gas

E e u 2
h e p/

H h u 2 2 E p /

p RT
R C p Cv

p ( 1) e
Korea Aerospace University

Cp
Cv

High-speed Propulsion and Combustion Control Lab.

1D-Euler Equation
The Euler equation for 1D flow

u 0
t x
u
( u 2 p) 0
t x
E
( u ( E p / )) 0
t
x

p
x
0
t

u(E p / )
E

Q F

0
t x

Q u ,
E

Korea Aerospace University

F u 2 p
u(E p / )

High-speed Propulsion and Combustion Control Lab.

FVM (Finite Volume Method)


FVM is based on integral conservation law

The integral conservation law is enforced for small control


volumes defined by the computational mesh

Q
F
V t dV V x dV 0

F
QdV

dV 0

V
V
t
x
1
Vi

Vi

QdV Qi

Ref)) FVM by Eymard, Robert


Newton-Cotes quadrature rules for intervals

Korea Aerospace University

High-speed Propulsion and Combustion Control Lab.

Gauss Divergence Theorem


Gauss Divergence Theorem

( u )dV

F
dV
x

u ndS

In 3D

F G H
V x y z

dV V W dV


W ndS

1
Vi

Sf

nface

W Fi Gj Hk
Korea Aerospace University

High-speed Propulsion and Combustion Control Lab.

Computing Gradient
Gradients in Cartesian Grids
d E C E C


xe
dx e xE xC

e w
d

dx C xe xw

E C
2

C W

xC

E W
2xC

Green-Gauss Gradient
C

1
VC

Korea Aerospace University

Sf

nface

High-speed Propulsion and Combustion Control Lab.

Grids
What is Cartesian Grid ??

Structured grid
Cartesian grid : unit squares or unit cubes
Rectilinear grid : rectangles, scaled
Curvilinear grid

Cartesian grid

Unstructured grid
Rectilinear grid
Curvilinear
Multi-block grid
https://en.wikipedia.org/wiki/Regular_grid
https://en.wikipedia.org/wiki/Unstructured_grid

Korea Aerospace University

Curvilinear grid
High-speed Propulsion and Combustion Control Lab.

1D-Euler Equation

F
QdV

dV 0

V
V
t
x

i-1

i
i-1/2

1
Qi
t
Vi

nface

i+1
i+1/2

Sf 0
Uniform volume and surface area
Area Change?? (Nozzle Flow)
Think~~~!!

Korea Aerospace University

High-speed Propulsion and Combustion Control Lab.

1D-Euler Solver

1
Qi
t
Vi

Sf 0

nface

Qi ( Fi 1/2 Fi 1/2 ) 0
t

Uniform volume and surface area

BC node

BC node

i-1

i
i-1/2

Korea Aerospace University

i+1
i+1/2
High-speed Propulsion and Combustion Control Lab.

1D-Euler Solver

START

Init_solver

Flow chart and subroutines

Real Time Loop

timestep

solver

Pseudo Time Loop

Iter_tot update

residual

plot

store

END

Korea Aerospace University

High-speed Propulsion and Combustion Control Lab.

1D-Euler Solver
Spatial integration

How to calculate F1+1/2

Fi n1/2 F (( f L )in1/2 , ( f R )in1/2 )

Central Scheme
Upwind Scheme
WENO, ENO, MUSCL
AUSM
Reconstruction

Korea Aerospace University

High-speed Propulsion and Combustion Control Lab.

1D-Euler Solver
Time evolution
Explicit Scheme
Runge-Kutta

Implicit Scheme

Korea Aerospace University

High-speed Propulsion and Combustion Control Lab.

1D-Euler Solver
CFL

Korea Aerospace University

High-speed Propulsion and Combustion Control Lab.

1D-Euler Solver
Residual

Korea Aerospace University

High-speed Propulsion and Combustion Control Lab.

Thank You !

Korea Aerospace University

High-speed Propulsion and Combustion Control Lab.

1D-NS Solver
Fluid properties transport (viscosity diffusivity)
Air

Korea Aerospace University

High-speed Propulsion and Combustion Control Lab.

Vous aimerez peut-être aussi