nils deppe - icerm.brown.edu

33
SpECTRE– towards high-order hydrodynamics and exascale numerical relativity Nils Deppe ICERM Advances and Challenges in Computational Relativity September 14, 2020 github.com/sxs-collaboration/spectre 1

Upload: others

Post on 08-Nov-2021

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Nils Deppe - icerm.brown.edu

SpECTRE– towards high-order hydrodynamics and exascalenumerical relativity

Nils Deppe

ICERM Advances and Challenges in Computational Relativity

September 14, 2020

github.com/sxs-collaboration/spectre 1

Page 2: Nils Deppe - icerm.brown.edu

Overview

1 Robust high-order finite-difference schemes

2 Discontinuous Galerkin-finite-difference hybrid method

3 Binary black hole inspiral using discontinuous Galerkin

github.com/sxs-collaboration/spectre 2

Page 3: Nils Deppe - icerm.brown.edu

Simulation Goals

• Binary black hole mergers• Binary neutron star mergers• Accretion disks• Core-collapse supernova

explosions

Hinderer et al. 2018

github.com/sxs-collaboration/spectre 3

Page 4: Nils Deppe - icerm.brown.edu

Simulation Goals

• Binary black hole mergers• Binary neutron star mergers• Accretion disks• Core-collapse supernova

explosions

Hinderer et al. 2018

github.com/sxs-collaboration/spectre 3

Page 5: Nils Deppe - icerm.brown.edu

Binary Neutron Star Simulation Goals

• Resolve =⇒ high resolution• Resolve surface of stars• Resolve tidal deformability

• Can’t wait for bigger computers

Hinderer et al. 2018

github.com/sxs-collaboration/spectre 4

Page 6: Nils Deppe - icerm.brown.edu

Binary Neutron Star Simulation Goals

• Resolve =⇒ high resolution• Resolve surface of stars• Resolve tidal deformability• Can’t wait for bigger computers

Hinderer et al. 2018

github.com/sxs-collaboration/spectre 4

Page 7: Nils Deppe - icerm.brown.edu

Wish List—Physics Perspective

• Conserve mass, . . .• Physical solutions (positive pressure, density)• Constant flow preserved• Resolve large discontinuities (& 1020)

github.com/sxs-collaboration/spectre 5

Page 8: Nils Deppe - icerm.brown.edu

Hydrodynamics: Finite Difference Methods

• Solution error ∼ 1/N2 • Cartesian grids

u(x)

x

github.com/sxs-collaboration/spectre 6

Page 9: Nils Deppe - icerm.brown.edu

Vacuum Evolutions: Spectral Methods

• Solution error ∼ exp(−N) • Curved grids

github.com/sxs-collaboration/spectre 7

Page 10: Nils Deppe - icerm.brown.edu

Current Hydrodynamics Codes

• Bad values overwritten• Some positivity preservation• 2nd order• Manual tuning

github.com/sxs-collaboration/spectre 8

Page 11: Nils Deppe - icerm.brown.edu

Wish List—Numerical Perspective

• High-order• Robust, no tuning• Spectral when possible

github.com/sxs-collaboration/spectre 9

Page 12: Nils Deppe - icerm.brown.edu

Wish List

• Conserve mass, . . .• Physical solutions (positive pressure, density)• Constant flow preserved• Resolve large discontinuities (& 1020)

• High-order• Robust, no tuning• Spectral when possible

github.com/sxs-collaboration/spectre 10

Page 13: Nils Deppe - icerm.brown.edu

Building Blocks for Finite Difference Methods

u(x)

x

github.com/sxs-collaboration/spectre 11

Page 14: Nils Deppe - icerm.brown.edu

Building Blocks: Positivity

u(x)

x

github.com/sxs-collaboration/spectre 12

Page 15: Nils Deppe - icerm.brown.edu

Building Blocks: Positivity

First order everywhere =⇒ very inaccurate

u(x)

x

github.com/sxs-collaboration/spectre 13

Page 16: Nils Deppe - icerm.brown.edu

Building Blocks: Positivity

Arbitrary minimum value =⇒ total nonsense

u(x)

x

github.com/sxs-collaboration/spectre 14

Page 17: Nils Deppe - icerm.brown.edu

Building Blocks: Unphysical Oscillations

u(x)

x

github.com/sxs-collaboration/spectre 15

Page 18: Nils Deppe - icerm.brown.edu

Building Blocks: Oscillations

Detecting oscillations:

u(x) ≈N∑i=0

ciPi(x),

github.com/sxs-collaboration/spectre 16

Page 19: Nils Deppe - icerm.brown.edu

Building Blocks: Oscillations

i = 0

i = 1

i = 2

i = 3

i = 4

i = 5

Modes

x

u(x)

Amplitude

github.com/sxs-collaboration/spectre 17

Page 20: Nils Deppe - icerm.brown.edu

Building Blocks: Oscillations

Detecting oscillations:

u(x) ≈N∑i=0

ciPi(x),

Check:

wN (cN )2∑Ni=0wi(ci)2

github.com/sxs-collaboration/spectre 18

Page 21: Nils Deppe - icerm.brown.edu

Positivity-Preserving Adaptive-Order Methods

Attempt 5th orderreconstruction

FailedPassed Attempt 3rd orderreconstruction

FailedPassed Use 1st orderreconstruction

Compute adaptivespatial derivative

Take time step

Current solutionat cell center

github.com/sxs-collaboration/spectre 19

Page 22: Nils Deppe - icerm.brown.edu

The Shu-Osher Oscillatory Shock Tube Problem

4.0 2.0 0.0 2.0 4.0x

0.2

0.4

0.6

0.8

1.0

1.2

1.4

1.6

t

log10(ρ)

0.0

1.0

2.0

3.0

4.0

5.0

6.0

1e 1

4.0 2.0 0.0 2.0 4.0x

1.0

1.5

2.0

2.5

3.0

3.5

4.0

4.5

Dens

ity

NumericalReference

github.com/sxs-collaboration/spectre 20

Page 23: Nils Deppe - icerm.brown.edu

The Shu-Osher Oscillatory Shock Tube Problem

4.0 2.0 0.0 2.0 4.0x

0.2

0.4

0.6

0.8

1.0

1.2

1.4

1.6

t

log10(ρ)

0.0

1.0

2.0

3.0

4.0

5.0

6.0

1e 1

4.0 2.0 0.0 2.0 4.0x

0.2

0.4

0.6

0.8

1.0

1.2

1.4

1.6

t

Order

1.0

2.0

3.0

4.0

5.0

6.0

7.0

8.0

9.0

github.com/sxs-collaboration/spectre 21

Page 24: Nils Deppe - icerm.brown.edu

Discontinuous Galerkin Method

• Solution error ∼ exp(−N)

• Shock capturing

−2 20

1

x

u(x)

Ωk−1 Ωk Ωk+1

github.com/sxs-collaboration/spectre 22

Page 25: Nils Deppe - icerm.brown.edu

DG-FD Hybrid Method

Check DG solution

FailedPassed

Retake time stepusing FD

Take FD time step

FailedPassed

Check if DGshould work

DG time step

github.com/sxs-collaboration/spectre 23

Page 26: Nils Deppe - icerm.brown.edu

The Shu-Osher Oscillatory Shock Tube Problem

4 2 0 2 4x

1.0

1.5

2.0

2.5

3.0

3.5

4.0

4.5

ρ

DG-P9

WCNS3-ZReference

0.5 1.0 1.5 2.0 2.5x

1.0

1.5

2.0

2.5

3.0

3.5

4.0

4.5

ρ

DG-P9

WCNS3-ZReference

github.com/sxs-collaboration/spectre 24

Page 27: Nils Deppe - icerm.brown.edu

The Cylindrical Sod Explosion

github.com/sxs-collaboration/spectre 25

Page 28: Nils Deppe - icerm.brown.edu

Wish List—Achievement Unlocked

Discontinuous Galerkin-finite-difference hybrid method

" Conserve mass, . . .

" Physical solutions (positive pressure, density)

" Constant flow preserved

" Resolve large discontinuities (& 1020)

" High-order

" Robust, no tuning

" Spectral when possible

github.com/sxs-collaboration/spectre 26

Page 29: Nils Deppe - icerm.brown.edu

Binary Black Hole Mergers

• Cosmic Explorer + Einstein Telescope• Higher χ and q• Longer waveforms• Followup simulations• Space-based detector(?)

github.com/sxs-collaboration/spectre 27

Page 30: Nils Deppe - icerm.brown.edu

Binary Black Hole Mergers – Animation

• Led by Geoffrey Lovelace (CSU Fullerton) & Prayush Kumar (Cornell)• Animation of lapse• q = 1, χ = 0

github.com/sxs-collaboration/spectre 28

Page 31: Nils Deppe - icerm.brown.edu

Missing Features

• Control system (Eamonn O’Shea (Cornell) & Mark Scheel (Caltech))• Horizon finding (Mark Scheel)• CCE with moving mesh (Jordan Moxon + Mark Scheel)• AMR (Larry Kidder (Cornell) + ND)• Local time stepping (Will Throwe (Cornell))

github.com/sxs-collaboration/spectre 29

Page 32: Nils Deppe - icerm.brown.edu

Binary Black Hole Mergers – Load Balancing

0 50 100 150 200 250 300 350Simulation Time (M )

16

17

18

19

20

21

22

23

24

Sim

ulat

ion

Rate

(M/H

r)

No LB1st Attempt2nd AttemptCharm++ "Patch"

Led by François Hébert & Jordan Moxon (Caltech)Simulations by Geoffrey Lovelace & Sierra Thomas (CSU Fullerton)

github.com/sxs-collaboration/spectre 30

Page 33: Nils Deppe - icerm.brown.edu

Recap

1 Robust high-order finite-difference schemes

2 Discontinuous Galerkin-finite-difference hybrid method

3 Binary black hole inspiral using discontinuous Galerkin

github.com/sxs-collaboration/spectre 31