SlideShare a Scribd company logo
Modeling Stellar Explosions with
Maestro, Castro, and the BoxLib
Astrophysics Suite
Michael Zingale
(Stony Brook University)
in collaboration with
Ann Almgren, John Bell, Andy Nonaka, Weiqun Zhang (LBNL),
Chris Malone (LANL),
Adam Jacobs (MSU),
Max Katz (Nvidia/Stony Brook),
Maria Barrios Sazo, Alan Calder, Doug Swesty, Don Willcox (Stony Brook),
Stan Woosley (UCSC)
Support from DOE Office of Nuclear Physics, NSF Astronomy & Astrophysics.
Computer time via DOE INCITE @ OLCF/ORNL and NERSC/LBNL
Multiscale Challenges
● Nature is 3-d
– Convection driven by
nuclear energy release
– Fluid instabilities /
turbulence
– Localized burning /
runaway
– Rotation
● Range of lengthscales can
be enormous
● Solutions (?)
– Adaptive mesh
refinement
– Subgrid scale models
Temporal Challenges
● Many astrophysical explosions exhibit a range of relevant timescales
– Stellar evolution up to point of explosion / remnant formation ~
millions to 10s of billions of years
– Simmering convective phase ~ millenia to days/hours
– Explosion ~ seconds to hours
– Radiation transport ~ weeks to months
● No single algorithm can model a star from start to finish
Common Astrophysical Approximations
● 1-d stellar evolution codes
– Still the workhorse for understanding stellar evolution and the stages
leading up to explosion
– Parameter-rich (what does rotation, convection, or turbulence mean in
1-d?)
● Low speed hydrodynamics approximations
– Developed for atmospheric flows initially
● Compressible (magneto-)hydrodynamics
– Viscous scales are usually not resolvable
● (Multigroup) Flux limited diffusion or M1 radiation hydrodynamics
– Full multi-angle discretization of radiation can be prohibitively
expensive
The diversity of codes used in 3-d
stellar hydrodynamics is a strength
of our community
Hydrodynamic Schemes
Full Implicit Hydro Low Mach Hydro Explicit Hydro
● Can capture all
compressibility effects
● Timestep acts as filter
● Valid for all Mach #s
● Analytically filters
soundwaves from system
● Single linear implicit
equation to solve
● HSE analytically enforced
● Can capture all
compressibility effects
● Timestep is limited by
soundcrossing time
● All nearest neighbor
communication
● Requires solution of
coupled nonlinear system
● Only some
compressibility effects
retained
● Validity breaks down when
dynamic pressure becomes
large (M ~ 0.2 – 0.3)
● HSE and low Mach flows
can be challenging
● Long timescale evolution
not possible
● Implicit and low Mach can take steps at advection timescale
– Usually larger than 1/M since peak sound speed is at center, but highest
Mach number is usually at stellar surface
Grids
Spherical Cartesian Mapped
● Stars are spherical
● Outer boundary is easier
● No central coordinate
singularity
● Uniform resolution
throughout
● Can get spherical outer
boundary and Cartesian
inner boundary
● Rotation?
● Cells have varying
resolution
● Cannot model flow through
the center
● Grid effects from modeling
spheres
● Outer boundary can be
challenging
● Linear solvers can have
trouble with irregular cells
● Adaptive mesh refinement can be used with any of these grid types
● Also very nice work that is being done with spectral codes,
especially, e.g., dedalus and various anelastic codes
Low Speed Divergence Constraints
Incompressible: density of a fluid
element doesn’t change as it is
advected
Low Mach combustion: heat release in
fluid element is a source of
divergence, fluid element expands Anelastic: fluid element
adiabatically expands as it
buoyantly rises
Maestro: Low Mach Hydro
● Reformulation of compressible Euler equations
– Retain compressibility effects due to heating and stratification
– Asymptotic expansion in Mach number decomposes pressure into
thermodynamic and dynamic parts
– Hydrostatic equilibrium analytically enforced:
● Elliptic constraint on velocity field:
– ¯0 is a density-like variable
– S represents heating sources
● Self-consistent evolution of base state
● Timestep based on bulk fluid velocity, not sound speed
● Brings ideas from the atmospheric, combustion, and applied math
communities to nuclear astrophysics
Filtering Soundwaves
● Elliptic constraint =
instantaneous acoustic
equilibriation
Scaling
● Good strong scaling
behavior
● Developments in
progress:
– Tiling approach to
OpenMP
– GPUs for microphysics
Castro
● Castro is the fully compressible counterpart to Maestro
– 1-, 2-, and 3-dimensional unsplit, 2nd-order hydrodynamics
– Multigroup flux-limited diffusion radiation hydrodynamics, including
terms to O(v/c)
– Adaptive mesh refinement with subcycling in time; jumps of 2x and 4x
between levels
– Arbitrary equation of state
– General nuclear reaction networks
– Explicit thermal diffusion
– Full Poisson gravity (with isolated boundary conditions), conservative
flux formulation
– Rotation (in the co-rotating frame) in 2-d axisymmetric and 3-d
● Ability to restart from a Maestro calculation to bring it into the
compressible regime Refs:
Almgren et al. 2010
Zhang et al. 2011
Zhang et al. 2013
AMReX
● AMReX (formerly BoxLib) handles the grid management and parallel
distribution.
– C++/Fortran or pure Fortran library
● Hybrid parallelism model based on
MPI and OpenMP
– Tiling to improve manycore performance
● Efficient cell-centered and node-
centered geometric multigrid solvers
● Nightly regression test of all the codes
● Sidecar: separate processor group can
do runtime analysis while the
simulation is running
● Extensive performance and memory profiling tools built-in
● Highly portable
StarKiller
● New github organization: StarKiller-astro
– https://github.com/starkiller-astro/
– Holds common microphysics for our codes
● Collaborators at OLCF will do interfaces for other codes (including
Chimera and Flash)
● The hope is to have a community-focused repo for microphysics
● Some work on offloading to GPUs has been done, more underway
– e.g. OpenACC port of helmeos was 4x faster on GPU than OMP on
cores on titan
– OLCF did an OpenMP device offloading version
Tiling
● AMReX implements hybrid MPI +
OpenMP parallelism
● Logical tiling
– Move the OpenMP pragmas out of
the low level code and divide the
AMR blocks into 3-d tiles at a high
level
– OpenMP threads can work now on
the same AMR patch or across
patches simultaneously
– Experiments at LBNL show great
scaling on 80+ cores (see Zhang et al. 2015,
submitted)
Open Science
● Every line of code needed to rerun the simulations shown (SN Ia
convection, sub-Ch convection, WD mergers, & XRB) is in our public
github repos
– http://github.com/AMReX-Astro
– Including inputs files, analysis scripts, submission scripts, etc...
– repos: MAESTRO, Castro, BoxLib, Microphysics (common astrophysical
routines), wdmerger
– These are our actual development repos
● All output files store the git hashes of the source, the machine name,
compiler versions and flags, values of all runtime parameter, ...
– Most papers include the github hash of the repos used for simulations
– Reproducibility is part of the scientific method
● Consider making your simulation codes + infrastructure open source
– Perhaps counter-intuitively, the person who benefits the most is you,
not your “competitors”
Type Ia Supernovae
● No H; strong Si, Ca, Fe lines
● Occur in old populations
● Bright as host galaxy, L ~1043 erg s-1
● 56Ni powers the lightcurve
● Act as standard candles
● General consensus: thermonuclear explosion of a
carbon/oxygen white dwarf
– What progenitor?
SN1994D(High-ZSNSearchteam)
(David A. Hardy & PPARC)
Variations in SNe Ia
● Chandra model:
– Massive WD accretes from companion to Chandra mass; simmering of C
begins at center, burning front ignition consumes star
– Does nature make massive Wds?
– Does the burning front remain subsonic?
● Double degenerates:
– Two WDs inspiral, explosion either prompt or after (long term?) accretion
– Can we avoid the accretion induced collapse?
– Can we get an explosion that looks like a SNe Ia?
● Sub-Chandra model:
– Double detonation: ignite in He layer on surface of WD, shock converges at
center of underlying C/O WD and detonates inside out
– Can we hide the He?
– Can we make normal SNe Ia?
● What gives the variation in the peak brightness of events?
Convection Preceding Chandra Model
● Explosion in Chandra model
for SN Ia preceded by
centuries of simmering /
convection
– Sets explosion initial
conditions
● Dipole feature seen in
previous calculations better
described as a jet
– Asymmetry in radial
velocity field
● Direction changes rapidly
Radial velocity field (red = outflow; blue = inflow) in an
11523
non-rotating WD simulation.
Refs:
Zingale et al. 2009
Zingale et al. 2011
Nonaka et al. 2012
On To Explosion...
● Mach number gets large (ignition): restart
in our compressible code, Castro
– Same underlying BoxLib discretization
– Same microphysics
– Solves the fully compressible Euler
equations using an unsplit PPM method
● Basic findings:
– Off-center ignition: background turbulence
doesn't strongly affect flame propagation.
– Central ignition: convective turbulence can
push the flame off-center.
– Single-degenerate model almost always
produces an asymmetric explosion
– Single spot = small amount of burned mass
= less expansion = higher density when
DDT occurs
(Malone et al. 2014)
sub-Chandra SNe Ia Models
Sub-Chandra He Convection
● Variations for different WD and He layer masses (Adam Jacobs’s thesis)
● Cellular pattern forums
– Length scale converged with resolution
– Hot spots rise up and expand
● Potentially multiple hot spots simultaneously
● Three types of outcomes
– Localize runaway on short timescale
– Nova-like convective burning
– Quasi-equilibrium (?)
Visualization using yt
Refs:
Zingale et al. 2013
Jacobs et al. 2016
Next up: where does the
burning ignite? And can it
seed a detonation?
Mergers
● We are also working on WD mergers (Max Katz thesis)
● Focus is comparison of high-resolution grid-based simulations to
other studies to understand numerical challenges
Visualization using yt
Refs:
Katz et al. 2016
X-ray Bursts
● Thermonuclear runaway in thin
accreted H/He layer on surface of
a neutron star
● Accretion timescale ~ hours to
days
● Runaway timescale ~ seconds
● > 70 sources known, some with
10s or more individual bursts.
● Potential site for rp-process
nucleosynthesis
Strohmayer et al., 1996, ApJ, 469:L9
Outstanding XRB Questions
● How does the fuel spread over the surface?
● How does the ignition begin?
● Is the burning localized?
● Does convection modify the nucleosynthesis?
● What are the effects of rotation?
● Does convection bring ash to the surface?
These are all multi-dimensional effects
X-ray Bursts
● Current calculations:
– 512 × 512 × 768 zones
– 6 cm resolution
– 11 nuclei network
● Captures H burning
(hot CNO), 3-α, rp-
process breakout
– T increase over 109 K,
evolve for 0.02 s
● Next steps:
– Bigger domains
– Variety of initial models
Visualization using yt
Refs:
Malone et al. 2011
Malone et al. 2014
Zingale et al. 2015
We Need 3-d!
● Convection requires 3-d
● Turbulence and instabilities are only properly realized in 3-d
– We'll never resolve dissipation scale—Re ~ 1014 for some of these
systems
turbulent kinetic energy spectrum in
Maestro XRB calculations
Note that capturing turbulence
requires a minimum of 512
zones across in our experience.
If turbulence is important to
your problem, you really need
to do high resolution.
Convective Urca
● Current Maestro application: convective Urca
Slice through center of WD, shaded
according to energy generation
rate (green/magenta) with line
integral convolution of in-plane
velocities (black).
Simulation time: 10000 seconds
Community Efforts?
● Diagnostics
– Some discussion of this yesterday
● Many of us implement diagnostics (e.g. measuring extend of convective
region, entrainment rates, …)
● yt provides a natural framework to implement stellar hydro diagnostics
– Power spectrum for stratified atmospheres—is there density
weighting?
● Microphysics efforts already mentioned
● Code comparisons / benchmark problems
– We should develop some standard problems to define convective
boundary mixing, and allow for code comparisons, development,
improvement
White Paper, volume I
● An outcome we discussed
is the generation of a white
paper
● Proposal:
– Setup a git repo on github
in astro-whitepapers
org
– Create a template based
on our discussion
– Constantly pester
everyone
– Fall deadline?
● Success depends on
building on inertia from this
meeting
List of 3d stellar hydro problems from Eggleton et al.
2003 in the Djehuty code intro.
Training Students
● To grow the field, we need to train our students in the numerical
(and stellar) techniques
● It is also essential for the students who leave the field to develop
employable skills, e.g., programming, HPC, analysis, ...
● Students should get exposure to codes and learn how to implement
new ideas
● Credit should be given for development—this includes, e.g., git log /
github activity
Pyro: Hydro by Example
● A “python hydro” code designed with clarity in mind to teach students about
simulation techniques
● 2-d solvers for:
– Linear advection
– Compressible hydrodynamics
– Elliptic equations (via multigrid)
– Implicit diffusion
– Incompressible hydrodynamics
– Low Mach number atmospheric flows
– Coming soon: gray flux limited diffusion radiation hydrodynamics
● BSD-3 licensed, up on github: https://github.com/zingale/pyro2
Intro to Comp Hydro for Astro
● Current contents:
– Simulation Overview
– Classification of PDEs
– Finite Volume Grids
– Advection
– Burgers’ Equation
– Euler Equations: Theory
– Euler Equations: Numerical Methods
– Elliptic Equations and Multigrid
– Diffusion
– Multiphysics Applications
– Reacting Flows
– Planning a Simulation
– Incompressible Flow and Projection
Methods
– Low Mach Number Methods
● Freely available under a CC
license
● Code for every figure and
method shown is provided
● Contributions welcomed via
github issues and PRs
https://github.com/Open-Astrophysics-Bookshelf/numerical_exercises/
pyreaclib
● Python interface for ReacLib rates
– https://github.com/pyreaclib/
● Allows for interactive exploration of rates and collections (networks)
in Jupyter
● Outputs the full righthand side routine in:
– Python
– Cython (soon)
– Fortran (standalone with Sundials)
– Fortran for BoxLib Microphysics
Summary/Future
● Astrophysical modeling requires the cooperation of many different domain
scientists
● Chandra SNe Ia:
– single-point, off-center ignition
– convection calculations in the Chandra used for explosion
– Urca process calculations are starting
● Sub-Ch SNe Ia: variety, likely single-point…
● WD mergers: infrastructure developed to allow for accurate, high-resolution
modeling
● XRBs: well-developed convective field realized
– Working on understanding flame propagation now
● Maestro development directions: rotation, higher-order, acoustics, MHD,
rotation, ???
● Castro development: improved radiation, better coupling, GPU hydro
– Black widow pulsar systems are a new focus
● Releasing simulation codes / problem files is part of scientific reproducibility

More Related Content

Similar to Stellar hydro

Lect1(unit).ppt
Lect1(unit).pptLect1(unit).ppt
Lect1(unit).ppt
LuongTuan15
 
Turbulence - computational overview and CO2 transfer
Turbulence - computational overview and CO2 transferTurbulence - computational overview and CO2 transfer
Turbulence - computational overview and CO2 transfer
Fabio Fonseca
 
HACC: Fitting the Universe Inside a Supercomputer
HACC: Fitting the Universe Inside a SupercomputerHACC: Fitting the Universe Inside a Supercomputer
HACC: Fitting the Universe Inside a Supercomputer
inside-BigData.com
 
Improving Physical Parametrizations in Climate Models using Machine Learning
Improving Physical Parametrizations in Climate Models using Machine LearningImproving Physical Parametrizations in Climate Models using Machine Learning
Improving Physical Parametrizations in Climate Models using Machine Learning
Noah Brenowitz
 
Lab4 slides
Lab4 slidesLab4 slides
Lab4 slides
Heather Kulik
 
Nucleation and avalanches in film with labyrintine magnetic domains
Nucleation and avalanches in film with labyrintine magnetic domainsNucleation and avalanches in film with labyrintine magnetic domains
Nucleation and avalanches in film with labyrintine magnetic domains
Andrea Benassi
 
sss-2002-podladchikova1.ppt
sss-2002-podladchikova1.pptsss-2002-podladchikova1.ppt
sss-2002-podladchikova1.ppt
Orba1
 
Numerical simulation of hydrogen detonations
Numerical simulation of hydrogen detonationsNumerical simulation of hydrogen detonations
Numerical simulation of hydrogen detonations
NguyenNgocTuan11
 
Energy Harvesting-aware Design for Wireless Nanonetworks
Energy Harvesting-aware Design for Wireless NanonetworksEnergy Harvesting-aware Design for Wireless Nanonetworks
Energy Harvesting-aware Design for Wireless Nanonetworks
Michele Weigle
 
Computational Fluid Dynamics (CFD)
Computational Fluid Dynamics (CFD)Computational Fluid Dynamics (CFD)
Computational Fluid Dynamics (CFD)
Taani Saxena
 
Materials Modelling: From theory to solar cells (Lecture 1)
Materials Modelling: From theory to solar cells  (Lecture 1)Materials Modelling: From theory to solar cells  (Lecture 1)
Materials Modelling: From theory to solar cells (Lecture 1)
cdtpv
 
Gwendolyn Eadie: A New Method for Time Series Analysis in Astronomy with an A...
Gwendolyn Eadie: A New Method for Time Series Analysis in Astronomy with an A...Gwendolyn Eadie: A New Method for Time Series Analysis in Astronomy with an A...
Gwendolyn Eadie: A New Method for Time Series Analysis in Astronomy with an A...
JeremyHeyl
 
Program on Mathematical and Statistical Methods for Climate and the Earth Sys...
Program on Mathematical and Statistical Methods for Climate and the Earth Sys...Program on Mathematical and Statistical Methods for Climate and the Earth Sys...
Program on Mathematical and Statistical Methods for Climate and the Earth Sys...
The Statistical and Applied Mathematical Sciences Institute
 
Qualitative model of transport
Qualitative model of transportQualitative model of transport
Qualitative model of transport
RokhitTharshini
 
Solar prominence science with ALMA
Solar prominence science with ALMASolar prominence science with ALMA
Solar prominence science with ALMA
University of Glasgow
 
generalized_nbody_acs_2015_challacombe
generalized_nbody_acs_2015_challacombegeneralized_nbody_acs_2015_challacombe
generalized_nbody_acs_2015_challacombe
Matt Challacombe
 
Nano mos25
Nano mos25Nano mos25
The selection of guide stars for giant telescopes using Virtual Observatory t...
The selection of guide stars for giant telescopes using Virtual Observatory t...The selection of guide stars for giant telescopes using Virtual Observatory t...
The selection of guide stars for giant telescopes using Virtual Observatory t...
Hector Quintero Casanova
 
CT activity to teach electricity.pdf
CT activity to teach electricity.pdfCT activity to teach electricity.pdf
CT activity to teach electricity.pdf
AyodeleOgegbo
 
Program on Mathematical and Statistical Methods for Climate and the Earth Sys...
Program on Mathematical and Statistical Methods for Climate and the Earth Sys...Program on Mathematical and Statistical Methods for Climate and the Earth Sys...
Program on Mathematical and Statistical Methods for Climate and the Earth Sys...
The Statistical and Applied Mathematical Sciences Institute
 

Similar to Stellar hydro (20)

Lect1(unit).ppt
Lect1(unit).pptLect1(unit).ppt
Lect1(unit).ppt
 
Turbulence - computational overview and CO2 transfer
Turbulence - computational overview and CO2 transferTurbulence - computational overview and CO2 transfer
Turbulence - computational overview and CO2 transfer
 
HACC: Fitting the Universe Inside a Supercomputer
HACC: Fitting the Universe Inside a SupercomputerHACC: Fitting the Universe Inside a Supercomputer
HACC: Fitting the Universe Inside a Supercomputer
 
Improving Physical Parametrizations in Climate Models using Machine Learning
Improving Physical Parametrizations in Climate Models using Machine LearningImproving Physical Parametrizations in Climate Models using Machine Learning
Improving Physical Parametrizations in Climate Models using Machine Learning
 
Lab4 slides
Lab4 slidesLab4 slides
Lab4 slides
 
Nucleation and avalanches in film with labyrintine magnetic domains
Nucleation and avalanches in film with labyrintine magnetic domainsNucleation and avalanches in film with labyrintine magnetic domains
Nucleation and avalanches in film with labyrintine magnetic domains
 
sss-2002-podladchikova1.ppt
sss-2002-podladchikova1.pptsss-2002-podladchikova1.ppt
sss-2002-podladchikova1.ppt
 
Numerical simulation of hydrogen detonations
Numerical simulation of hydrogen detonationsNumerical simulation of hydrogen detonations
Numerical simulation of hydrogen detonations
 
Energy Harvesting-aware Design for Wireless Nanonetworks
Energy Harvesting-aware Design for Wireless NanonetworksEnergy Harvesting-aware Design for Wireless Nanonetworks
Energy Harvesting-aware Design for Wireless Nanonetworks
 
Computational Fluid Dynamics (CFD)
Computational Fluid Dynamics (CFD)Computational Fluid Dynamics (CFD)
Computational Fluid Dynamics (CFD)
 
Materials Modelling: From theory to solar cells (Lecture 1)
Materials Modelling: From theory to solar cells  (Lecture 1)Materials Modelling: From theory to solar cells  (Lecture 1)
Materials Modelling: From theory to solar cells (Lecture 1)
 
Gwendolyn Eadie: A New Method for Time Series Analysis in Astronomy with an A...
Gwendolyn Eadie: A New Method for Time Series Analysis in Astronomy with an A...Gwendolyn Eadie: A New Method for Time Series Analysis in Astronomy with an A...
Gwendolyn Eadie: A New Method for Time Series Analysis in Astronomy with an A...
 
Program on Mathematical and Statistical Methods for Climate and the Earth Sys...
Program on Mathematical and Statistical Methods for Climate and the Earth Sys...Program on Mathematical and Statistical Methods for Climate and the Earth Sys...
Program on Mathematical and Statistical Methods for Climate and the Earth Sys...
 
Qualitative model of transport
Qualitative model of transportQualitative model of transport
Qualitative model of transport
 
Solar prominence science with ALMA
Solar prominence science with ALMASolar prominence science with ALMA
Solar prominence science with ALMA
 
generalized_nbody_acs_2015_challacombe
generalized_nbody_acs_2015_challacombegeneralized_nbody_acs_2015_challacombe
generalized_nbody_acs_2015_challacombe
 
Nano mos25
Nano mos25Nano mos25
Nano mos25
 
The selection of guide stars for giant telescopes using Virtual Observatory t...
The selection of guide stars for giant telescopes using Virtual Observatory t...The selection of guide stars for giant telescopes using Virtual Observatory t...
The selection of guide stars for giant telescopes using Virtual Observatory t...
 
CT activity to teach electricity.pdf
CT activity to teach electricity.pdfCT activity to teach electricity.pdf
CT activity to teach electricity.pdf
 
Program on Mathematical and Statistical Methods for Climate and the Earth Sys...
Program on Mathematical and Statistical Methods for Climate and the Earth Sys...Program on Mathematical and Statistical Methods for Climate and the Earth Sys...
Program on Mathematical and Statistical Methods for Climate and the Earth Sys...
 

Recently uploaded

NuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyerNuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyer
pablovgd
 
Medical Orthopedic PowerPoint Templates.pptx
Medical Orthopedic PowerPoint Templates.pptxMedical Orthopedic PowerPoint Templates.pptx
Medical Orthopedic PowerPoint Templates.pptx
terusbelajar5
 
Phenomics assisted breeding in crop improvement
Phenomics assisted breeding in crop improvementPhenomics assisted breeding in crop improvement
Phenomics assisted breeding in crop improvement
IshaGoswami9
 
Shallowest Oil Discovery of Turkiye.pptx
Shallowest Oil Discovery of Turkiye.pptxShallowest Oil Discovery of Turkiye.pptx
Shallowest Oil Discovery of Turkiye.pptx
Gokturk Mehmet Dilci
 
aziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobelaziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobel
İsa Badur
 
The binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defectsThe binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defects
Sérgio Sacani
 
Randomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNERandomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNE
University of Maribor
 
THEMATIC APPERCEPTION TEST(TAT) cognitive abilities, creativity, and critic...
THEMATIC  APPERCEPTION  TEST(TAT) cognitive abilities, creativity, and critic...THEMATIC  APPERCEPTION  TEST(TAT) cognitive abilities, creativity, and critic...
THEMATIC APPERCEPTION TEST(TAT) cognitive abilities, creativity, and critic...
Abdul Wali Khan University Mardan,kP,Pakistan
 
Cytokines and their role in immune regulation.pptx
Cytokines and their role in immune regulation.pptxCytokines and their role in immune regulation.pptx
Cytokines and their role in immune regulation.pptx
Hitesh Sikarwar
 
Deep Software Variability and Frictionless Reproducibility
Deep Software Variability and Frictionless ReproducibilityDeep Software Variability and Frictionless Reproducibility
Deep Software Variability and Frictionless Reproducibility
University of Rennes, INSA Rennes, Inria/IRISA, CNRS
 
Applied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdfApplied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdf
University of Hertfordshire
 
Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...
Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...
Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...
University of Maribor
 
molar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptxmolar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptx
Anagha Prasad
 
Micronuclei test.M.sc.zoology.fisheries.
Micronuclei test.M.sc.zoology.fisheries.Micronuclei test.M.sc.zoology.fisheries.
Micronuclei test.M.sc.zoology.fisheries.
Aditi Bajpai
 
Nucleic Acid-its structural and functional complexity.
Nucleic Acid-its structural and functional complexity.Nucleic Acid-its structural and functional complexity.
Nucleic Acid-its structural and functional complexity.
Nistarini College, Purulia (W.B) India
 
What is greenhouse gasses and how many gasses are there to affect the Earth.
What is greenhouse gasses and how many gasses are there to affect the Earth.What is greenhouse gasses and how many gasses are there to affect the Earth.
What is greenhouse gasses and how many gasses are there to affect the Earth.
moosaasad1975
 
SAR of Medicinal Chemistry 1st by dk.pdf
SAR of Medicinal Chemistry 1st by dk.pdfSAR of Medicinal Chemistry 1st by dk.pdf
SAR of Medicinal Chemistry 1st by dk.pdf
KrushnaDarade1
 
ESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptxESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptx
PRIYANKA PATEL
 
20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx
Sharon Liu
 
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
yqqaatn0
 

Recently uploaded (20)

NuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyerNuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyer
 
Medical Orthopedic PowerPoint Templates.pptx
Medical Orthopedic PowerPoint Templates.pptxMedical Orthopedic PowerPoint Templates.pptx
Medical Orthopedic PowerPoint Templates.pptx
 
Phenomics assisted breeding in crop improvement
Phenomics assisted breeding in crop improvementPhenomics assisted breeding in crop improvement
Phenomics assisted breeding in crop improvement
 
Shallowest Oil Discovery of Turkiye.pptx
Shallowest Oil Discovery of Turkiye.pptxShallowest Oil Discovery of Turkiye.pptx
Shallowest Oil Discovery of Turkiye.pptx
 
aziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobelaziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobel
 
The binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defectsThe binding of cosmological structures by massless topological defects
The binding of cosmological structures by massless topological defects
 
Randomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNERandomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNE
 
THEMATIC APPERCEPTION TEST(TAT) cognitive abilities, creativity, and critic...
THEMATIC  APPERCEPTION  TEST(TAT) cognitive abilities, creativity, and critic...THEMATIC  APPERCEPTION  TEST(TAT) cognitive abilities, creativity, and critic...
THEMATIC APPERCEPTION TEST(TAT) cognitive abilities, creativity, and critic...
 
Cytokines and their role in immune regulation.pptx
Cytokines and their role in immune regulation.pptxCytokines and their role in immune regulation.pptx
Cytokines and their role in immune regulation.pptx
 
Deep Software Variability and Frictionless Reproducibility
Deep Software Variability and Frictionless ReproducibilityDeep Software Variability and Frictionless Reproducibility
Deep Software Variability and Frictionless Reproducibility
 
Applied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdfApplied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdf
 
Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...
Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...
Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...
 
molar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptxmolar-distalization in orthodontics-seminar.pptx
molar-distalization in orthodontics-seminar.pptx
 
Micronuclei test.M.sc.zoology.fisheries.
Micronuclei test.M.sc.zoology.fisheries.Micronuclei test.M.sc.zoology.fisheries.
Micronuclei test.M.sc.zoology.fisheries.
 
Nucleic Acid-its structural and functional complexity.
Nucleic Acid-its structural and functional complexity.Nucleic Acid-its structural and functional complexity.
Nucleic Acid-its structural and functional complexity.
 
What is greenhouse gasses and how many gasses are there to affect the Earth.
What is greenhouse gasses and how many gasses are there to affect the Earth.What is greenhouse gasses and how many gasses are there to affect the Earth.
What is greenhouse gasses and how many gasses are there to affect the Earth.
 
SAR of Medicinal Chemistry 1st by dk.pdf
SAR of Medicinal Chemistry 1st by dk.pdfSAR of Medicinal Chemistry 1st by dk.pdf
SAR of Medicinal Chemistry 1st by dk.pdf
 
ESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptxESR spectroscopy in liquid food and beverages.pptx
ESR spectroscopy in liquid food and beverages.pptx
 
20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx
 
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
原版制作(carleton毕业证书)卡尔顿大学毕业证硕士文凭原版一模一样
 

Stellar hydro

  • 1. Modeling Stellar Explosions with Maestro, Castro, and the BoxLib Astrophysics Suite Michael Zingale (Stony Brook University) in collaboration with Ann Almgren, John Bell, Andy Nonaka, Weiqun Zhang (LBNL), Chris Malone (LANL), Adam Jacobs (MSU), Max Katz (Nvidia/Stony Brook), Maria Barrios Sazo, Alan Calder, Doug Swesty, Don Willcox (Stony Brook), Stan Woosley (UCSC) Support from DOE Office of Nuclear Physics, NSF Astronomy & Astrophysics. Computer time via DOE INCITE @ OLCF/ORNL and NERSC/LBNL
  • 2. Multiscale Challenges ● Nature is 3-d – Convection driven by nuclear energy release – Fluid instabilities / turbulence – Localized burning / runaway – Rotation ● Range of lengthscales can be enormous ● Solutions (?) – Adaptive mesh refinement – Subgrid scale models
  • 3. Temporal Challenges ● Many astrophysical explosions exhibit a range of relevant timescales – Stellar evolution up to point of explosion / remnant formation ~ millions to 10s of billions of years – Simmering convective phase ~ millenia to days/hours – Explosion ~ seconds to hours – Radiation transport ~ weeks to months ● No single algorithm can model a star from start to finish
  • 4. Common Astrophysical Approximations ● 1-d stellar evolution codes – Still the workhorse for understanding stellar evolution and the stages leading up to explosion – Parameter-rich (what does rotation, convection, or turbulence mean in 1-d?) ● Low speed hydrodynamics approximations – Developed for atmospheric flows initially ● Compressible (magneto-)hydrodynamics – Viscous scales are usually not resolvable ● (Multigroup) Flux limited diffusion or M1 radiation hydrodynamics – Full multi-angle discretization of radiation can be prohibitively expensive
  • 5. The diversity of codes used in 3-d stellar hydrodynamics is a strength of our community
  • 6. Hydrodynamic Schemes Full Implicit Hydro Low Mach Hydro Explicit Hydro ● Can capture all compressibility effects ● Timestep acts as filter ● Valid for all Mach #s ● Analytically filters soundwaves from system ● Single linear implicit equation to solve ● HSE analytically enforced ● Can capture all compressibility effects ● Timestep is limited by soundcrossing time ● All nearest neighbor communication ● Requires solution of coupled nonlinear system ● Only some compressibility effects retained ● Validity breaks down when dynamic pressure becomes large (M ~ 0.2 – 0.3) ● HSE and low Mach flows can be challenging ● Long timescale evolution not possible ● Implicit and low Mach can take steps at advection timescale – Usually larger than 1/M since peak sound speed is at center, but highest Mach number is usually at stellar surface
  • 7. Grids Spherical Cartesian Mapped ● Stars are spherical ● Outer boundary is easier ● No central coordinate singularity ● Uniform resolution throughout ● Can get spherical outer boundary and Cartesian inner boundary ● Rotation? ● Cells have varying resolution ● Cannot model flow through the center ● Grid effects from modeling spheres ● Outer boundary can be challenging ● Linear solvers can have trouble with irregular cells ● Adaptive mesh refinement can be used with any of these grid types ● Also very nice work that is being done with spectral codes, especially, e.g., dedalus and various anelastic codes
  • 8. Low Speed Divergence Constraints Incompressible: density of a fluid element doesn’t change as it is advected Low Mach combustion: heat release in fluid element is a source of divergence, fluid element expands Anelastic: fluid element adiabatically expands as it buoyantly rises
  • 9. Maestro: Low Mach Hydro ● Reformulation of compressible Euler equations – Retain compressibility effects due to heating and stratification – Asymptotic expansion in Mach number decomposes pressure into thermodynamic and dynamic parts – Hydrostatic equilibrium analytically enforced: ● Elliptic constraint on velocity field: – ¯0 is a density-like variable – S represents heating sources ● Self-consistent evolution of base state ● Timestep based on bulk fluid velocity, not sound speed ● Brings ideas from the atmospheric, combustion, and applied math communities to nuclear astrophysics
  • 10. Filtering Soundwaves ● Elliptic constraint = instantaneous acoustic equilibriation
  • 11. Scaling ● Good strong scaling behavior ● Developments in progress: – Tiling approach to OpenMP – GPUs for microphysics
  • 12. Castro ● Castro is the fully compressible counterpart to Maestro – 1-, 2-, and 3-dimensional unsplit, 2nd-order hydrodynamics – Multigroup flux-limited diffusion radiation hydrodynamics, including terms to O(v/c) – Adaptive mesh refinement with subcycling in time; jumps of 2x and 4x between levels – Arbitrary equation of state – General nuclear reaction networks – Explicit thermal diffusion – Full Poisson gravity (with isolated boundary conditions), conservative flux formulation – Rotation (in the co-rotating frame) in 2-d axisymmetric and 3-d ● Ability to restart from a Maestro calculation to bring it into the compressible regime Refs: Almgren et al. 2010 Zhang et al. 2011 Zhang et al. 2013
  • 13. AMReX ● AMReX (formerly BoxLib) handles the grid management and parallel distribution. – C++/Fortran or pure Fortran library ● Hybrid parallelism model based on MPI and OpenMP – Tiling to improve manycore performance ● Efficient cell-centered and node- centered geometric multigrid solvers ● Nightly regression test of all the codes ● Sidecar: separate processor group can do runtime analysis while the simulation is running ● Extensive performance and memory profiling tools built-in ● Highly portable
  • 14. StarKiller ● New github organization: StarKiller-astro – https://github.com/starkiller-astro/ – Holds common microphysics for our codes ● Collaborators at OLCF will do interfaces for other codes (including Chimera and Flash) ● The hope is to have a community-focused repo for microphysics ● Some work on offloading to GPUs has been done, more underway – e.g. OpenACC port of helmeos was 4x faster on GPU than OMP on cores on titan – OLCF did an OpenMP device offloading version
  • 15. Tiling ● AMReX implements hybrid MPI + OpenMP parallelism ● Logical tiling – Move the OpenMP pragmas out of the low level code and divide the AMR blocks into 3-d tiles at a high level – OpenMP threads can work now on the same AMR patch or across patches simultaneously – Experiments at LBNL show great scaling on 80+ cores (see Zhang et al. 2015, submitted)
  • 16. Open Science ● Every line of code needed to rerun the simulations shown (SN Ia convection, sub-Ch convection, WD mergers, & XRB) is in our public github repos – http://github.com/AMReX-Astro – Including inputs files, analysis scripts, submission scripts, etc... – repos: MAESTRO, Castro, BoxLib, Microphysics (common astrophysical routines), wdmerger – These are our actual development repos ● All output files store the git hashes of the source, the machine name, compiler versions and flags, values of all runtime parameter, ... – Most papers include the github hash of the repos used for simulations – Reproducibility is part of the scientific method ● Consider making your simulation codes + infrastructure open source – Perhaps counter-intuitively, the person who benefits the most is you, not your “competitors”
  • 17. Type Ia Supernovae ● No H; strong Si, Ca, Fe lines ● Occur in old populations ● Bright as host galaxy, L ~1043 erg s-1 ● 56Ni powers the lightcurve ● Act as standard candles ● General consensus: thermonuclear explosion of a carbon/oxygen white dwarf – What progenitor? SN1994D(High-ZSNSearchteam) (David A. Hardy & PPARC)
  • 18. Variations in SNe Ia ● Chandra model: – Massive WD accretes from companion to Chandra mass; simmering of C begins at center, burning front ignition consumes star – Does nature make massive Wds? – Does the burning front remain subsonic? ● Double degenerates: – Two WDs inspiral, explosion either prompt or after (long term?) accretion – Can we avoid the accretion induced collapse? – Can we get an explosion that looks like a SNe Ia? ● Sub-Chandra model: – Double detonation: ignite in He layer on surface of WD, shock converges at center of underlying C/O WD and detonates inside out – Can we hide the He? – Can we make normal SNe Ia? ● What gives the variation in the peak brightness of events?
  • 19. Convection Preceding Chandra Model ● Explosion in Chandra model for SN Ia preceded by centuries of simmering / convection – Sets explosion initial conditions ● Dipole feature seen in previous calculations better described as a jet – Asymmetry in radial velocity field ● Direction changes rapidly Radial velocity field (red = outflow; blue = inflow) in an 11523 non-rotating WD simulation. Refs: Zingale et al. 2009 Zingale et al. 2011 Nonaka et al. 2012
  • 20. On To Explosion... ● Mach number gets large (ignition): restart in our compressible code, Castro – Same underlying BoxLib discretization – Same microphysics – Solves the fully compressible Euler equations using an unsplit PPM method ● Basic findings: – Off-center ignition: background turbulence doesn't strongly affect flame propagation. – Central ignition: convective turbulence can push the flame off-center. – Single-degenerate model almost always produces an asymmetric explosion – Single spot = small amount of burned mass = less expansion = higher density when DDT occurs (Malone et al. 2014)
  • 22. Sub-Chandra He Convection ● Variations for different WD and He layer masses (Adam Jacobs’s thesis) ● Cellular pattern forums – Length scale converged with resolution – Hot spots rise up and expand ● Potentially multiple hot spots simultaneously ● Three types of outcomes – Localize runaway on short timescale – Nova-like convective burning – Quasi-equilibrium (?) Visualization using yt Refs: Zingale et al. 2013 Jacobs et al. 2016 Next up: where does the burning ignite? And can it seed a detonation?
  • 23. Mergers ● We are also working on WD mergers (Max Katz thesis) ● Focus is comparison of high-resolution grid-based simulations to other studies to understand numerical challenges Visualization using yt Refs: Katz et al. 2016
  • 24. X-ray Bursts ● Thermonuclear runaway in thin accreted H/He layer on surface of a neutron star ● Accretion timescale ~ hours to days ● Runaway timescale ~ seconds ● > 70 sources known, some with 10s or more individual bursts. ● Potential site for rp-process nucleosynthesis Strohmayer et al., 1996, ApJ, 469:L9
  • 25. Outstanding XRB Questions ● How does the fuel spread over the surface? ● How does the ignition begin? ● Is the burning localized? ● Does convection modify the nucleosynthesis? ● What are the effects of rotation? ● Does convection bring ash to the surface? These are all multi-dimensional effects
  • 26. X-ray Bursts ● Current calculations: – 512 × 512 × 768 zones – 6 cm resolution – 11 nuclei network ● Captures H burning (hot CNO), 3-α, rp- process breakout – T increase over 109 K, evolve for 0.02 s ● Next steps: – Bigger domains – Variety of initial models Visualization using yt Refs: Malone et al. 2011 Malone et al. 2014 Zingale et al. 2015
  • 27. We Need 3-d! ● Convection requires 3-d ● Turbulence and instabilities are only properly realized in 3-d – We'll never resolve dissipation scale—Re ~ 1014 for some of these systems turbulent kinetic energy spectrum in Maestro XRB calculations Note that capturing turbulence requires a minimum of 512 zones across in our experience. If turbulence is important to your problem, you really need to do high resolution.
  • 28. Convective Urca ● Current Maestro application: convective Urca Slice through center of WD, shaded according to energy generation rate (green/magenta) with line integral convolution of in-plane velocities (black). Simulation time: 10000 seconds
  • 29. Community Efforts? ● Diagnostics – Some discussion of this yesterday ● Many of us implement diagnostics (e.g. measuring extend of convective region, entrainment rates, …) ● yt provides a natural framework to implement stellar hydro diagnostics – Power spectrum for stratified atmospheres—is there density weighting? ● Microphysics efforts already mentioned ● Code comparisons / benchmark problems – We should develop some standard problems to define convective boundary mixing, and allow for code comparisons, development, improvement
  • 30. White Paper, volume I ● An outcome we discussed is the generation of a white paper ● Proposal: – Setup a git repo on github in astro-whitepapers org – Create a template based on our discussion – Constantly pester everyone – Fall deadline? ● Success depends on building on inertia from this meeting List of 3d stellar hydro problems from Eggleton et al. 2003 in the Djehuty code intro.
  • 31. Training Students ● To grow the field, we need to train our students in the numerical (and stellar) techniques ● It is also essential for the students who leave the field to develop employable skills, e.g., programming, HPC, analysis, ... ● Students should get exposure to codes and learn how to implement new ideas ● Credit should be given for development—this includes, e.g., git log / github activity
  • 32. Pyro: Hydro by Example ● A “python hydro” code designed with clarity in mind to teach students about simulation techniques ● 2-d solvers for: – Linear advection – Compressible hydrodynamics – Elliptic equations (via multigrid) – Implicit diffusion – Incompressible hydrodynamics – Low Mach number atmospheric flows – Coming soon: gray flux limited diffusion radiation hydrodynamics ● BSD-3 licensed, up on github: https://github.com/zingale/pyro2
  • 33. Intro to Comp Hydro for Astro ● Current contents: – Simulation Overview – Classification of PDEs – Finite Volume Grids – Advection – Burgers’ Equation – Euler Equations: Theory – Euler Equations: Numerical Methods – Elliptic Equations and Multigrid – Diffusion – Multiphysics Applications – Reacting Flows – Planning a Simulation – Incompressible Flow and Projection Methods – Low Mach Number Methods ● Freely available under a CC license ● Code for every figure and method shown is provided ● Contributions welcomed via github issues and PRs https://github.com/Open-Astrophysics-Bookshelf/numerical_exercises/
  • 34. pyreaclib ● Python interface for ReacLib rates – https://github.com/pyreaclib/ ● Allows for interactive exploration of rates and collections (networks) in Jupyter ● Outputs the full righthand side routine in: – Python – Cython (soon) – Fortran (standalone with Sundials) – Fortran for BoxLib Microphysics
  • 35. Summary/Future ● Astrophysical modeling requires the cooperation of many different domain scientists ● Chandra SNe Ia: – single-point, off-center ignition – convection calculations in the Chandra used for explosion – Urca process calculations are starting ● Sub-Ch SNe Ia: variety, likely single-point… ● WD mergers: infrastructure developed to allow for accurate, high-resolution modeling ● XRBs: well-developed convective field realized – Working on understanding flame propagation now ● Maestro development directions: rotation, higher-order, acoustics, MHD, rotation, ??? ● Castro development: improved radiation, better coupling, GPU hydro – Black widow pulsar systems are a new focus ● Releasing simulation codes / problem files is part of scientific reproducibility