towards a weno-based code for investigating rans model closures for hydrodynamic instabilities

1
PECOS Predictive Engineering and Computational Sciences TOWARDS A WENO-BASED CODE FOR INVESTIGATING RANS MODEL CLOSURES FOR HYDRODYNAMIC INSTABILITIES Rhys Ulerich 1 Oleg Schilling 2 1 University of Texas at Austin 2 Lawrence Livermore National Laboratory Background Rayleigh–Taylor, Richtmyer–Meshkov, and Kelvin–Helmholtz hydrodynamic instabilities impact applications ranging from inertial confinement fusion (ICF) to supernovae dynamics. Though the Navier–Stokes equations can exactly capture the physics, direct numerical simulation (DNS) is prohibitively expensive. Instead, the flow physics can be efficiently approximated statistically using Reynolds-averaged Navier–Stokes (RANS) models. However, these instabilities are challenging because the models must accommodate variable density, inhomogeneity, nonstationarity, and anisotropy. Additionally, the simultaneous presence of shocks and turbulence requires sophisticated numerical techniques. 1 1.2 1.4 1.6 1.8 2 2.2 0.3 0.5 0.7 0 0.125 0.25 ρ p ρ p Misalignment of ρ and p in an At = ρ h -ρ l ρ h +ρ l =1/3 configuration initiates the Rayleigh–Taylor instability via baroclinic vorticity production. Objectives To develop a nonoscillatory, shock-capturing gasdynamics code designed to simulate multi-species hydrodynamic instabilities and facilitate N -equation RANS model closure evaluation and development. To investigate the Rayleigh–Taylor instability and mixing, including comparing RANS models with self-similar solutions, measuring mixing statistics and equation budgets, and quantifying sensitivities relative to initial perturbations and model coefficient choices. High-Order Numerics and Code Numerics allow hybrid upwind/central difference shock-capturing RANS & DNS: Inviscid fluxes computed using 9 th -, 5 th , or 3 rd -order weighted essentially nonoscillatory (WENO) reconstruction [4], Roe’s approximate Riemann solver [3], and global Lax–Friedrichs flux splitting Viscous terms use 8 th ,4 th -, or 2 nd -order centered finite differences Total variation diminishing explicit Runge–Kutta time stepping Selectable orders allow isolating numerical viscosity effects New, modular Fortran 95 code designed for flexibility: Equation-agnostic driver handles all MPI and IO considerations Equation- and problem-specific modules provide relevant physics Currently supports: Single species Navier–Stokes with constant gamma, viscosity Rayleigh–Taylor and Richtmyer–Meshkov initial conditions New equations and problems easily added by implementing: Equation of state and any unique transport equations Roe-averaged eigenvectors from system’s inviscid limit Supports single or multimode initial perturbations Includes serial and parallel regression test suite Flexible restart handling and statistics output Features to simplify batch runs and parameter sweeps Reasonable scalability and performance for effort to date Doxygen-based documentation evolves with code 1 1.2 1.4 1.6 1.8 2 2.2 0.2 0.4 0.6 0.8 0 0.25 0.1 .2 15 1/480 3,2 1/240 5,4 1/240 9,8 1/240 At Δx =1/240, the (9,8) th order method fully resolves At =1/3 flow structures while lower orders do not. It requires only 30% of the (3,2) th order’s compute time to obtain a converged solution. 0.1 1 10 1 10 100 Wall time per timestep (s) Number of MPI ranks WENO3, FD2 WENO5, FD4 WENO9, FD8 Strong, parallel scaling for At =1/3 at Δx =1/480 DNS of Large-Atwood-Number, Single-Mode Rayleigh–Taylor Instability Preliminary results from single species, γ =5/3, μ = 10 -5 2D Navier–Stokes simulations of the Rayleigh–Taylor instability at several large Atwood numbers. Gravity is downward. Dirichlet boundary conditions are used at the top and bottom of the domain. The horizontal direction is periodic. At t =0 a non-diffuse interface is established at the domain midpoint. The initial velocity perturbation is -(c/40) cos (8πx) where c is the local speed of sound. 1.5 2.5 0 0.5 1 1.5 2 0 0.25 1 2 3 At 0.5 1 1.5 2 2.5 3 3.5 4 4.5 At 0.6 1 2 3 4 5 6 7 At 0.7 10 12 2 4 6 8 At 0.8 5 10 15 20 25 30 35 At 0.9 Density fields for the indicated Atwood numbers at t =1.95 s. Fields for At > 0.5 show “inviscid” flow structures suggesting the 768 points per wavelength resolution was insufficient to fully resolve dissipative effects. Prior runs at 512 points per wavelength (not shown) indicate adequate resolution for At =0.5. 0 0.1 0.2 0.3 0.4 0 0.5 1 1.5 2 bubble amplitude time At 0.5 At 0.6 At 0.7 At 0.8 At 0.9 0 0.2 0.4 0.6 0.8 1 0 0.5 1 1.5 2 spike amplitude time At 0.5 At 0.6 At 0.7 At 0.8 At 0.9 Bubble and spike amplitudes were found by thresholding the heavy-fluid mass fraction m 1 = ρ 1 (ρ-ρ 2 ) ρ(ρ 1 -ρ 2 ) [0, 1] at 0.99 and 0.01. The spike amplitudes increase smoothly with Atwood number while the bubble amplitudes remain clustered for At =0.8, 0.9. Work in Progress Implement two-component, ideal perfect gas formulation: Adds mass fraction transport equation [2] Use Sutherland’s Law for species molecular transport coefficients Implement 2-, 3-, and 4-equation Rayleigh-Taylor mixing-optimized RANS models for transport of: turbulent kinetic energy (K ) turbulent kinetic energy dissipation rate () density variance ( ρ 02 ) density variance dissipation rate ( 0 ρ ) APS DFD 2010: Comparisons of a Reynolds-Averaged Navier-Stokes Model with Self-Similar Solutions for Large Atwood Number Rayleigh–Taylor Mixing Near-Term Plans Investigate RANS closure budgets against averaged DNS fields: Add support for perturbation with prescribed energy spectra Add output of energy spectra, PDFs, and other statistics Extend work to other instabilities: Add inflow/outflow characteristic boundary conditions Study Richtmyer–Meshkov and Kelvin–Helmholtz instabilities Other related items: Improve serial code performance Hybrid WENO/finite differencing using Ducros sensor [1] Add option for implicit time-evolution Extend code to three dimensions Implement a thermodynamically consistent and fully conservative formulation [5] Add subgrid-scale models for large-eddy simulation (LES) 2.5 2.75 3 1 3 5 7 9 11 t=1 t=2 The Richtmyer–Meshkov instability generated by a Ma =1.5 shock interacting with a perturbed At =1/3, γ =7/2 interface. Density fields show a reshock event and post-reshock mixing layer growth at the indicated times. References [1] F. D UCROS, Large-eddy simulation of the shock/turbulence interaction, Journal of Computational Physics, 152 (1999), pp. 517–549. [2] D. J. H ILL , C. P ANTANO, AND D. I. P ULLIN, Large-eddy simulation and multiscale modelling of a Richtmyer–Meshkov instability with reshock, Journal of Fluid Mechanics, 557 (2006), pp. 29–61. [3] P. L. R OE, Approximate Riemann solvers, parameter vectors, and difference schemes, Journal of Computational Physics, 43 (1981), pp. 357–372. [4] C.-W. S HU, High order weighted essentially nonoscillatory schemes for convection dominated problems, SIAM Review, 51 (2009), pp. 82–126. [5] S.-P. WANG , M. H. A NDERSON , J. G. OAKLEY , M. L. C ORRADINI , AND R. B ONAZZA, A thermodynamically consistent and fully conservative treatment of contact discontinuities for compressible multicomponent flows, Journal of Computational Physics, 195 (2004), pp. 528–559. This work was performed under the auspices of the U.S. Department of Energy by Lawrence Livermore National Laboratory under Contract DE-AC52-07NA27344. This material is also based in part upon work supported by the Department of Energy National Nuclear Security Administration under Award Number DE-FC52-08NA28615. 1 [email protected], 2 [email protected] LLNL-POST-448252

Upload: rhysu

Post on 27-Jul-2015

275 views

Category:

Documents


4 download

DESCRIPTION

Rayleigh–Taylor, Richtmyer–Meshkov, and Kelvin–Helmholtzhydrodynamic instabilities impact applications ranging from inertial confinement fusion (ICF) to supernovae dynamics. Though the Navier–Stokes equations can exactly capture the physics, direct numerical simulation (DNS) is prohibitively expensive. Instead, the flow physics can be efficiently approximated statistically using Reynolds-averaged Navier–Stokes (RANS) models. However, theseinstabilities are challenging because the models must accommodate variable density, inhomogeneity, nonstationarity, and anisotropy.Additionally, the simultaneous presence of shocks and turbulence requires sophisticated numerical techniques.

TRANSCRIPT

Page 1: Towards a WENO-based code for investigating RANS model closures for hydrodynamic instabilities

PECOSPredictive Engineering and

Computational Sciences

TOWARDS A WENO-BASED CODE FOR INVESTIGATINGRANS MODEL CLOSURES FOR HYDRODYNAMIC INSTABILITIES

Rhys Ulerich1 Oleg Schilling2

1University of Texas at Austin 2Lawrence Livermore National Laboratory

Background

Rayleigh–Taylor, Richtmyer–Meshkov, and Kelvin–Helmholtzhydrodynamic instabilities impact applications ranging from inertialconfinement fusion (ICF) to supernovae dynamics. Though theNavier–Stokes equations can exactly capture the physics, directnumerical simulation (DNS) is prohibitively expensive. Instead, the flowphysics can be efficiently approximated statistically usingReynolds-averaged Navier–Stokes (RANS) models. However, theseinstabilities are challenging because the models must accommodatevariable density, inhomogeneity, nonstationarity, and anisotropy.Additionally, the simultaneous presence of shocks and turbulencerequires sophisticated numerical techniques.

1

1.2

1.4

1.6

1.8

2

2.2

0.3

0.5

0.7

0 0.125 0.25

∇ρ

∇p

∇ρ

∇p

Misalignment of ∇ρ and ∇p in anAt = ρh−ρl

ρh+ρl= 1/3 configuration

initiates the Rayleigh–Taylorinstability via baroclinic vorticityproduction.

Objectives

To develop a nonoscillatory, shock-capturing gasdynamics code designed to• simulate multi-species hydrodynamic instabilities and• facilitate N -equation RANS model closure evaluation and development.

To investigate the Rayleigh–Taylor instability and mixing, including• comparing RANS models with self-similar solutions,•measuring mixing statistics and equation budgets, and• quantifying sensitivities relative to initial perturbations and model coefficient choices.

High-Order Numerics and Code

Numerics allow hybrid upwind/central difference shock-capturing RANS & DNS:• Inviscid fluxes computed using• 9th-, 5th, or 3rd-order weighted essentially nonoscillatory (WENO) reconstruction [4],• Roe’s approximate Riemann solver [3], and• global Lax–Friedrichs flux splitting

• Viscous terms use 8th, 4th-, or 2nd-order centered finite differences• Total variation diminishing explicit Runge–Kutta time stepping• Selectable orders allow isolating numerical viscosity effects

New, modular Fortran 95 code designed for flexibility:• Equation-agnostic driver handles all MPI and IO considerations• Equation- and problem-specific modules provide relevant physics• Currently supports:• Single species Navier–Stokes with constant gamma, viscosity• Rayleigh–Taylor and Richtmyer–Meshkov initial conditions

• New equations and problems easily added by implementing:• Equation of state and any unique transport equations• Roe-averaged eigenvectors from system’s inviscid limit

• Supports single or multimode initial perturbations• Includes serial and parallel regression test suite• Flexible restart handling and statistics output• Features to simplify batch runs and parameter sweeps• Reasonable scalability and performance for effort to date• Doxygen-based documentation evolves with code

1

1.2

1.4

1.6

1.8

2

2.2

0.2

0.4

0.6

0.8

0 0.250.10.20.15

1/480

3,2

1/240

5,4

1/240

9,8

1/240

At ∆x = 1/240, the (9,8)th

order method fullyresolves At = 1/3 flowstructures while lowerorders do not. It requiresonly 30% of the (3,2)th

order’s compute time toobtain a convergedsolution.

0.1

1

10

1 10 100

Wal

l tim

e pe

r tim

este

p (s

)

Number of MPI ranks

WENO3, FD2WENO5, FD4WENO9, FD8

Strong, parallel scaling forAt = 1/3 at ∆x = 1/480

DNS of Large-Atwood-Number, Single-Mode Rayleigh–Taylor Instability

Preliminary results from single species, γ = 5/3, µ = 10−5 2D Navier–Stokes simulations of theRayleigh–Taylor instability at several large Atwood numbers.

Gravity is downward. Dirichlet boundary conditions are used at the top and bottom of the domain. Thehorizontal direction is periodic. At t = 0 a non-diffuse interface is established at the domain midpoint.The initial velocity perturbation is −(c/40) cos (8πx) where c is the local speed of sound.

1.5

2.5

0

0.5

1

1.5

2

0 0.25

1

2

3

At 0.5

1

1.5

2

2.5

3

3.5

4

4.5

At 0.6 1

2

3

4

5

6

7

At 0.7

10

12

2

4

6

8

At 0.8

5

10

15

20

25

30

35

At 0.9

Density fields for the indicated Atwood numbers at t = 1.95 s. Fields for At > 0.5 show “inviscid” flow structures suggestingthe 768 points per wavelength resolution was insufficient to fully resolve dissipative effects. Prior runs at 512 points perwavelength (not shown) indicate adequate resolution for At = 0.5.

0

0.1

0.2

0.3

0.4

0 0.5 1 1.5 2

bubb

le a

mpl

itude

time

At 0.5At 0.6At 0.7At 0.8At 0.9

0

0.2

0.4

0.6

0.8

1

0 0.5 1 1.5 2

spik

e am

plitu

de

time

At 0.5At 0.6At 0.7At 0.8At 0.9

Bubble and spike amplitudes were found by thresholding the heavy-fluid mass fraction m1 = ρ1(ρ−ρ2)ρ(ρ1−ρ2)

∈ [0, 1] at 0.99 and0.01. The spike amplitudes increase smoothly with Atwood number while the bubble amplitudes remain clustered forAt = 0.8, 0.9.

Work in Progress

Implement two-component, ideal perfect gas formulation:• Adds mass fraction transport equation [2]• Use Sutherland’s Law for species molecular transport coefficients

Implement 2-, 3-, and 4-equation Rayleigh-Taylor mixing-optimized RANS models for transport of:• turbulent kinetic energy (K)• turbulent kinetic energy dissipation rate (ε)• density variance (ρ′2)• density variance dissipation rate (ε′ρ)

APS DFD 2010: Comparisons of a Reynolds-Averaged Navier-Stokes Model with Self-SimilarSolutions for Large Atwood Number Rayleigh–Taylor Mixing

Near-Term Plans

Investigate RANS closure budgets against averaged DNS fields:• Add support for perturbation with prescribed energy spectra• Add output of energy spectra, PDFs, and other statistics

Extend work to other instabilities:• Add inflow/outflow characteristic boundary conditions• Study Richtmyer–Meshkov and Kelvin–Helmholtz instabilities

Other related items:• Improve serial code performance• Hybrid WENO/finite differencing using Ducros sensor [1]• Add option for implicit time-evolution• Extend code to three dimensions• Implement a thermodynamically consistent and fully conservative formulation [5]• Add subgrid-scale models for large-eddy simulation (LES)

2.5 2.75 3

1

3

5

7

9

11

t=1 t=2

The Richtmyer–Meshkov instability generated by a Ma = 1.5 shock interacting with a perturbed At = 1/3, γ = 7/2interface. Density fields show a reshock event and post-reshock mixing layer growth at the indicated times.

References

[1] F. DUCROS, Large-eddy simulation of the shock/turbulence interaction, Journal of ComputationalPhysics, 152 (1999), pp. 517–549.

[2] D. J. HILL, C. PANTANO, AND D. I. PULLIN, Large-eddy simulation and multiscale modelling of aRichtmyer–Meshkov instability with reshock, Journal of Fluid Mechanics, 557 (2006), pp. 29–61.

[3] P. L. ROE, Approximate Riemann solvers, parameter vectors, and difference schemes, Journal ofComputational Physics, 43 (1981), pp. 357–372.

[4] C.-W. SHU, High order weighted essentially nonoscillatory schemes for convection dominatedproblems, SIAM Review, 51 (2009), pp. 82–126.

[5] S.-P. WANG, M. H. ANDERSON, J. G. OAKLEY, M. L. CORRADINI, AND R. BONAZZA, Athermodynamically consistent and fully conservative treatment of contact discontinuities forcompressible multicomponent flows, Journal of Computational Physics, 195 (2004), pp. 528–559.

This work was performed under the auspices of the U.S. Department of Energy by Lawrence Livermore National Laboratory under Contract DE-AC52-07NA27344. Thismaterial is also based in part upon work supported by the Department of Energy National Nuclear Security Administration under Award Number DE-FC52-08NA28615.

[email protected], [email protected] LLNL-POST-448252