34
December 16th, 2016 The Shock Tube Problem ME702 Final project Luisa Capannolo

The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

December 16th, 2016

The Shock Tube Problem

ME702 Final project

Luisa Capannolo

Page 2: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

The Shock Tube problem

● Studied by Gary A. Sod in 1978● 1D problem● analytical solutions are known● used to test and validate computational fluid models

Page 3: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

x

z

y

The Shock Tube problem

● Studied by Gary A. Sod in 1978● 1D problem● analytical solutions are known● used to test and validate computational fluidmodels

p = 100 kPau = 0 m/sρ = 1.000 kg/m3

p = 10 kPau = 0 m/sρ = 0.125 kg/m3

diaphragm

Page 4: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

● Studied by Gary A. Sod in 1978● 1D problem● analytical solutions are known● used to test and validate computational fluid models

diaphragm

shock wave rarefaction wave

contact discontinuity

The Shock Tube problem

Page 5: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

Governing Equations

Conservation of mass

Conservation of momentum

Conservation of energy

Page 6: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

Governing Equations

Conservation of mass

Conservation of momentum

Conservation of energy

Assume:● inviscid flows (no viscosity)● no heat transfer

Page 7: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

diaphragm

shock wave rarefaction wave

contact discontinuity

Analytical solutions

Page 8: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

OpenFOAM 2D shock tube set-up

0.2 m

x

z

y

10 m

2 m

2

0

4

7

3

6

5

1x

z

y

Page 9: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

OpenFOAM 2D shock tube set-up

0.2 m

x

z

y

10 m

2 m

2

0

4

7

3

6

5

1x

z

y

grid refinement

Page 10: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

OpenFOAM 2D shock tube set-up

0.2 m

x

z

y

10 m

2 m

2

0

4

7

3

6

5

1x

z

y

empty walls

Page 11: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

OpenFOAM 2D shock tube set-up

0.2 m

x

z

y

10 m

2 m

x

z

y

p = 100 kPau = 0 m/sT = 348.432 K

p = 10 kPau = 0 m/sT = 278.746 K

non-uniform internal flow

Page 12: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

OpenFOAM 2D shock tube set-up

0.2 m

x

z

y

10 m

2 m

Δt = 10-6 st = 10 mssampling rate: 0.5 msresolution cases: 20x20x1

30x30x1 50x50x1 100x100x1 300x300x1 400x400x1

Page 13: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

OpenFOAM rhoCentralFoam solver

● Greenshields et al., 2010

● compressible fluids

● finite volumes method

● values are provided at the centroid of the volume cell

● cells are contiguous polyhedral volumes

● volume integrals in divergence and gradientterms are converted to surface integrals

via Gauss’s theorem

Page 14: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

Results: time evolutionline cuts along x-axis

Page 15: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

Results: time evolutionline cuts along x-axis20x20x1

pressure

temperature

speed

density

Page 16: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

Results: time evolutionline cuts along x-axis20x20x1 50x50x1

pressure

temperature

speed

density

Page 17: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

Results: time evolution100x100x1 300x300x1line cuts along x-axis

pressure

temperature

speed

density

Page 18: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

Results: resolutionline cuts along x-axis

Page 19: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

Results: resolutionline cuts along x-axis

pressure

temperature

speed

density

Page 20: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

Resultsline cuts along x-axis for 300x300x1 resolution grid

pressure

temperature

speed

density

Page 21: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

Resultsline cuts along x-axis for 300x300x1 resolution grid

pressure

temperature

speed

density

Page 22: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

Results: 2D plotsxy plane cut

Page 23: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

Results: 2D plotsxy plane cut

pressure temperature

speed density

Page 24: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

Results: 2D plotsxy plane cut

pressure temperature

speed density

shock wave

shock wave shock wave

shock wave rarefaction wave

rarefaction wave rarefaction wave

rarefaction wave

Page 25: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

Python solvers: Lax-Friedrichs (1-step)

Page 26: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

Python solvers: Lax-Friedrichs (1-step)

pressure

speed

density

Page 27: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

Python solvers: MacCormack (2-step)

pressure

speed

density

Page 28: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

OpenFOAM vs. MacCormack

pressure

speed

density

Page 29: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

Conclusions

● OpenFOAM can simulate the 2D shock tube problem

● solutions match to the analytical ones for resolution of at least 300x300

● 2D solutions are the same for the 1D case

● can extract 1D solutions to 2D and 3D case, if the diaphragm is along x only

Page 30: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

Conclusions

● OpenFOAM can simulate the 2D shock tube problem

● solutions match to the analytical ones for resolution of at least 300x300

● 2D solutions are the same for the 1D case

● can extract 1D solutions to 2D and 3D case, if the diaphragm is along x only

● MacCormack 2-step scheme also approximates well the analytical solutions, but additional artificial viscosity is needed

● MacCormack 2-step scheme has more diffusion

Page 31: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions
Page 32: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions
Page 33: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions
Page 34: The Shock Tube Problem · 2016-12-22 · Conclusions OpenFOAM can simulate the 2D shock tube problem solutions match to the analytical ones for resolution of at least 300x300 2D solutions

0.2 m

x

z

y

10 m

2 m

x

z

y

2

0

4

7

3

6

5

1x

z

y