GYRE: Yet another oscillation code, why we need it and how it works

Similar documents
Numerical techniques. Chapter Difference equations

Degeneracy and the mode classification of adiabatic oscillations of stars

Observed solar frequencies. Observed solar frequencies. Selected (two) topical problems in solar/stellar modelling

Asteroseismology with MESA

Supporting Online Material for

Oscillations in g-mode period spacings in red giants as a way to determine their state of evolution

The physics of red-giant oscillations

Recurrence Relations and Fast Algorithms

Equations of linear stellar oscillations

Abstract. Introduction. A. Miglio, J. Montalbán, P. Eggenberger and A. Noels

Status of solar and stellar modelling. Jørgen Christensen-Dalsgaard Stellar Astrophysics Centre Aarhus University

REPORT ON THE COROT EVOLUTION AND SEISMIC TOOLS ACTIVITY

Global parameters and evolutionary sequences

TDC on solar-like stars. A. Grigahcène, M.-A. Dupret, M. Gabriel, R. Scuflaire and R. Garrido

D. Cardini, R. Ventura, G. Catanzaro, C. Barban,T. R. Bedding, J. Christensen- Dalsgaard, J. De Ridder, S. Hekker, D.Huber, T. Kallinger,A.

Research Statement. James Bremer Department of Mathematics, University of California, Davis

The 3 dimensional Schrödinger Equation

Kasetsart University Workshop. Multigrid methods: An introduction

Dedalus: An Open-Source Spectral Magnetohydrodynamics Code

What the seismology of red giants is teaching us about stellar physics S. Deheuvels

Asteroseismology of Red Giants. Josefina Montalbán Université de Liège

Physics 221A Fall 1996 Notes 12 Orbital Angular Momentum and Spherical Harmonics

Quantum Physics III (8.06) Spring 2007 FINAL EXAMINATION Monday May 21, 9:00 am You have 3 hours.

Transport of angular momentum within stars

Seminar: Measurement of Stellar Parameters with Asteroseismology

5.7 Cramer's Rule 1. Using Determinants to Solve Systems Assumes the system of two equations in two unknowns

4 Power Series Solutions: Frobenius Method

Systems of Algebraic Equations and Systems of Differential Equations

Modeling sub-giant stars. Fernando Jorge Gutiérrez Pinheiro Centro de Astrofísica da Universidade do Porto ESO Visiting Scientist

Lecture 16: Relaxation methods

Asteroseismic Study of Red Giant ɛ Ophiuchi

Gravitational Waves from Supernova Core Collapse: What could the Signal tell us?

PAPER 58 STRUCTURE AND EVOLUTION OF STARS

Rotational Motion. Chapter 4. P. J. Grandinetti. Sep. 1, Chem P. J. Grandinetti (Chem. 4300) Rotational Motion Sep.

MESA/GYRE & gravity-mode oscillations of massive stars

Pulsars ASTR2110 Sarazin. Crab Pulsar in X-rays

Spectral Broadening Mechanisms

NUMERICAL COMPUTATION IN SCIENCE AND ENGINEERING

Spectral Broadening Mechanisms. Broadening mechanisms. Lineshape functions. Spectral lifetime broadening

4 Oscillations of stars: asteroseismology

Homework 1: BEC in a trap

Chapter 1 Error Analysis

Numerical Linear Algebra

NON-RADIAL OSCILLATIONS IN M-GIANT SEMI-REGULAR VARIABLES: STELLAR MODELS AND KEPLER OBSERVATIONS

Lecture IX. Definition 1 A non-singular Sturm 1 -Liouville 2 problem consists of a second order linear differential equation of the form.

SOLUTIONS TO SELECTED PROBLEMS FROM ASSIGNMENTS 3, 4

Asteroseismology of B stars with MESA

The Pulsation-Rotation Interaction: Greatest Hits and the B-Side

A new asteroseismic diagnostic for internal rotation in γ Doradus stars

Fourth edition. October 15, Institut for Fysik og Astronomi, Aarhus Universitet

Supplementary Materials for

ACM 106a: Lecture 1 Agenda

The Linear Oscillation Zoo Within Giant Stars: A Probe Of Their Deep Interiors

1.1 Motivation. 1.2 The H-R diagram

Stellar Pulsation and Oscillation ...

Solar-like oscillations in intermediate mass stars

Coversheet. Publication metadata

Structural Dynamics Lecture 4. Outline of Lecture 4. Multi-Degree-of-Freedom Systems. Formulation of Equations of Motions. Undamped Eigenvibrations.

2 Canonical quantization

Addition of Angular Momenta

Stellar models for a wide range of initial chemical compositions until helium burning

Ordinary Differential Equations

LECTURE NOTES ELEMENTARY NUMERICAL METHODS. Eusebius Doedel

NORMAL MODES, WAVE MOTION AND THE WAVE EQUATION. Professor G.G.Ross. Oxford University Hilary Term 2009

Math 411 Preliminaries

The Generation of Ultrashort Laser Pulses II

Evidence that x-rays are wave-like

Binary star formation

Preface. 2 Linear Equations and Eigenvalue Problem 22

arxiv: v1 [astro-ph.sr] 31 Mar 2015

Asteroseismology with MESA - Part II

H 2 -matrices with adaptive bases

Appendix C: Recapitulation of Numerical schemes

Lecture 10. Central potential

MA2501 Numerical Methods Spring 2015

4.2 Floating-Point Numbers

Algorithms for Uncertainty Quantification

PHYS 7411 Spring 2015 Computational Physics Homework 3

Supporting Online Material for

Asteroseismology of the β Cep star HD II. Seismic constraints on core overshooting, internal rotation and stellar parameters

C. Show your answer in part B agrees with your answer in part A in the limit that the constant c 0.

Physics 228 Today: Ch 41: 1-3: 3D quantum mechanics, hydrogen atom

REVIEW: The Matching Method Algorithm

Numerical Analysis: Solving Systems of Linear Equations

THE EVOLUTION OF THE F-MODE INSTABILITY

Ph.D. QUALIFYING EXAMINATION PART A. Tuesday, January 3, 2012, 1:00 5:00 P.M.

An Accurate Fourier-Spectral Solver for Variable Coefficient Elliptic Equations

Calibrating Core Overshooting in Low-Mass Stars with Kepler Data

Quantum wires, orthogonal polynomials and Diophantine approximation

James Clark For The LSC

FINITE-DIMENSIONAL LINEAR ALGEBRA

Chemistry 432 Problem Set 4 Spring 2018 Solutions

where G is Newton s gravitational constant, M is the mass internal to radius r, and Ω 0 is the

Rigid bodies - general theory

J S Parker (QUB), Martin Plummer (STFC), H W van der Hart (QUB) Version 1.0, September 29, 2015

The Euler Equation of Gas-Dynamics

(f(x) P 3 (x)) dx. (a) The Lagrange formula for the error is given by

Physics 506 Winter 2004

arxiv: v1 [astro-ph.sr] 9 Sep 2010

Physics 216 Spring The Variational Computation of the Ground State Energy of Helium

Transcription:

GYRE: Yet another oscillation code, why we need it and how it works Rich Townsend & Seth Teitler University of Wisconsin-Madison

What might one want from a new code? Improved flexibility to handle new problems oscillations with differential rotation & magnetic fields dynamic tides in binary stars Greater accuracy and robustness hands-off asteroseismic analyses integrated oscillation & stellar evolution simulations Higher performance Take advantage of multiple cores / nodes

GYRE: A new oscillation code suite Programmatic motivation: developed as part of Wave transport of angular momentum: a new spin on massive-star evolution (NSF grant #AST 0908688) Personal motivations: why does the BOOJUM code (Townsend 2005) work in cases x and y, but not in case z? I enjoy programming!

Statement of the problem Stellar oscillation is a linear two-point boundaryvalue problem (BVP): dy d = A( ) y B y B y B y( )= B y( )= The problem specifics are defined by the Jacobian matrix A and the boundary conditions B

Alternative approaches to solving BVPs Shooting Relaxation Smeyers (1966, 1967) Castor (1970)

Alternative approaches to solving BVPs Shooting Relaxation Smeyers (1966, 1967) Castor (1970) At a fundamental level, both approaches are the same!

Relaxation Replace the differential equations by finite differences on a discrete grid x = x k (k = 1,...,N): y + y + = A ( + + ) y + + y Combine the difference equations with the boundary conditions to form a large, sparse linear system for y k

Shooting via superposition Use initial-value problem (IVP) integrator to solve dy d = A( )Y, Y( )=I The fundamental solution Y relates y b back to y a : y = Y( ) y The BVP becomes a linear system for y a : B y = B Y( ) y =

Multiple shooting: the best of both worlds Apply shooting across multiple intervals of a discrete grid x = x k (k = 1,...,N): y + = Y( + ; ) y Combine with the boundary conditions to form large, sparse linear system for y k Stability is improved vs. single/double shooting Depending on how we evaluate Y k+1,k = Y(x k+1 ;x k ), accuracy is improved vs. relaxation Multiple shooting is easy to parallelize

Calculating the fundamental solution matrices Simple approach following Gabriel & Noels (1976): assume the Jacobian matrix A(x) is constant in each interval x k x x k+1 The fundamental solution matrix is then a matrix exponential: Y + ; =exp [ + ]A This approach has arbitrarily high resolution of eigenfunction oscillations However, it is only second-order accurate

Higher-order approaches using the Magnus method Magnus (1954): solutions to the IVP dy d = A( )Y, Y( )=I can be written as Y =exp{m( )} The Magnus matrix M can be expanded as an infinite series, with leading terms M( ) = A( )d A( )d, A( ) d +...

Magnus methods in GYRE Integrals in the Magnus expansion are evaluated using Gauss-Legendre quadrature Matrix exponentials are evaluated via a spectral decomposition of M: exp M = U(exp )U Three choices in GYRE: MAGNUS_GL2 2 nd order (Gabriel & Noels approach) MAGNUS_GL4 4 th order MAGNUS_GL6 6 th order

Stellar oscillation is an eigenproblem The oscillation equations appear to be overdetermined: 4 differential equations (adiabatic case) 4 boundary conditions 1 arbitrary normalization condition The BVP can only be solved at discrete values of the oscillation frequency ω appearing in the Jacobian matrix These discrete values are the eigenfrequencies; the corresponding solutions are the eigenfunctions

Castor s method Replace one of the boundary conditions with the normalization condition The BVP can then be solved for any value of the frequency ω Use the neglected boundary condition to define a discriminant function D(ω), such that D is zero when the boundary condition is satisfied The roots of D(ω) then correspond to the stellar eigenfrequencies

Ill-behaved discriminants: The downfall of Castor s method 1.0 With Cowling Approximation 0.5 D 0.0-0.5-1.0 0.1 1.0 This problem can affect any code which involves a single-point determinant (e.g., GraCo; PULSE; ADIPLS; NOSC) ω

Ill-behaved discriminants: The downfall of Castor s method 1.0 Without Cowling Approximation 0.5 D 0.0-0.5-1.0 0.1 1.0 This problem can affect any code which involves a single-point determinant (e.g., GraCo; PULSE; ADIPLS; NOSC) ω

Recognizing the problem The equations plus boundary conditions can be written as a linear, homogeneous system: S u = S = B Y ; I Y ; I Y ; I B, u = y y y

Solution of linear, homogeneous systems Any system of linear, homogeneous equations admits non-trivial solutions (u 0) when the determinant of the matrix S vanishes Hence, the determinant can be adopted as the discriminant function: ( ) =dets The determinant is a polynomial in the components of S; if these components are well behaved, then so is D

Evaluating the determinant in GYRE LU decompose the system matrix S = LU Form the determinant as the diagonal product det S = U, Wright (1994, Numer. Math. 67, 521) gives a parallel algorithm for LU decomposition, which performs well on shared-memory systems

Dealing with determinant overflow For a matrix of any substantial size, it is quite likely that the determinant will overflow or underflow your computer s floating point dynamic range Numerical Recipes in Fortran, 2nd ed., Determinant of a Matrix Solution: use extended-precision arithmetic = R,. <. Z,

Summarizing the GYRE approach GYRE uses a Magnus multiple shooting (MMS) scheme for BVPs Multiple shooting is used for robustness & performance Magnus methods are used for accuracy A determinant-based discriminant avoids the problems of Castor s method The code is parallelized with both Open MP and MPI

Old vs. new discriminants Castor (BOOJUM) Determinant (GYRE) 1.0 1.0 0.5 0.5 D 0.0 D 0.0-0.5-0.5-1.0-1.0 0.1 1.0 ω 0.1 1.0 ω Both discriminants have the same roots; but the determinant-based discriminant is well behaved

Testing convergence with the n = 0 polytrope l =0,n=0 l =2,n=2 10 0 Magnus 2 10 0 Magnus 2 10-2 Magnus 4 Magnus 6 10-2 Magnus 4 Magnus 6 10-4 10-4 δω 10-6 δω 10-6 10-8 10-8 10-10 10-10 10-12 10 100 1000 10000 N 10-12 10 100 1000 10000 N For each Magnus method, the error in the eigenfrequency has the expected scaling

Comparison against ESTA results Astrophys Space Sci (2008) 316: 231 249 DOI 10.1007/s10509-007-9717-z ORIGINAL ARTICLE Inter-comparison of the g-, f- and p-modes calculated using different oscillation codes for a given stellar model A. Moya J. Christensen-Dalsgaard S. Charpinet Y. Lebreton A. Miglio J. Montalbán M.J.P.F.G. Monteiro J. Provost I.W. Roxburgh R. Scuflaire J.C. Suárez M. Suran l =0Frequencies l =0, 2SmallSeparation 4 0 νgyre νgraco(nhz) 2 0-2 -4 Magnus 2 Magnus 4 Magnus 6 δνgyre δνgraco (nhz) -2-4 -6-8 Magnus 2 Magnus 4 Magnus 6 0 500 1000 1500 2000 2500 ν gyre (µhz) 0 500 1000 1500 2000 2500 ν gyre (µhz) In all cases, departures from ESTA results are small

g-mode inertias in a red giant model M = 2.0 M, R = 11.0 R, L = 57.8 L ; cf. Dupret et al. (2009) 1 0-1 l =0 l =1 l =2 log 10 I -2-3 -4-5 -6 30 40 50 60 70 ν (µhz)

Example eigenfunction of the red giant model l =1,n=365 l =1,n=365 1.0 0.4 0.5 0.2 ξr 0.0 rξr 10 5 0.0-0.5-0.2-1.0-0.4 0.0 0.2 0.4 0.6 0.8 1.0 r/r 0.0000 0.0002 0.0004 0.0006 0.0008 0.0010 r/r The Magnus method readily handles the highly oscillatory eigenfunctions in the stellar core

Nonadiabatic eigenfrequencies for a mid-b type star 1.0 Fully nonad 0.5 Mixed ad/nonad I(ω) 10 4 0.0-0.5-1.0 0.1 1.0 R(ω) The mixed adiabatic/nonadiabatic approach is numerically more robust, without sacrificing accuracy

Rotational splitting in the n = 0 polytrope 2 m 2 Non-perturbative; 10 spherical harmonic terms 3.5 3.0 ω 2.5 2.0 0.00 0.02 0.04 0.06 0.08 0.10 0.12 0.14 Ω Modes with = 0, 2, 4,... all appear together

Rotational splitting: Cleaning up the mess l =0, m =0 l =2, 2 m 2 3.5 3.5 3.0 3.0 ω ω 2.5 2.5 2.0 0.00 0.02 0.04 0.06 0.08 0.10 0.12 0.14 Ω l =6, 2 m 2 2.0 0.00 0.02 0.04 0.06 0.08 0.10 0.12 0.14 Ω l =8, 2 m 2 3.5 3.5 3.0 3.0 ω ω 2.5 2.5 2.0 0.00 0.02 0.04 0.06 0.08 0.10 0.12 0.14 Ω 2.0 0.00 0.02 0.04 0.06 0.08 0.10 0.12 0.14 Ω Mode tracking uses the fact that mode frequencies evolve continuously with Ω

Differential rotation: the n = 0 polytrope with core/envelope shear Fast core 2 m 2 Fast envelope 2 m 2 3.5 3.5 3.0 3.0 ω ω 2.5 2.5 2.0 0.00 0.02 0.04 0.06 0.08 0.10 0.12 0.14 0.5Ω core, Ω env 2.0 0.00 0.02 0.04 0.06 0.08 0.10 0.12 0.14 Ω core, 0.5Ω env Simple explanation: the modes are mainly trapped in the envelope

Benchmarking the parallel performance of GYRE 100 1 thread 2 threads 4 threads speedup 10 8 threads 1 1 10 100 number of cores

The future of GYRE Upcoming improvements implement post-processing (e.g., mode inertias, work functions) combine nonadiabatic & differential rotation functionality add centrifugal force, departures from sphericity A full description of the code will appear in a forthcoming paper Scheduled for open-source release mid-2013 Pre-release access on request