An efficient method for solving highly oscillatory ordinary differential equations with applications to physical systems
arXiv:1906.01421 · doi:10.1103/PhysRevResearch.2.013030
Abstract
We present a novel numerical routine (oscode) with a C++ and Python interface for the efficient solution of one-dimensional, second-order, ordinary differential equations with rapidly oscillating solutions. The method is based on a Runge-Kutta-like stepping procedure that makes use of the Wentzel-Kramers-Brillouin (WKB) approximation to skip regions of integration where the characteristic frequency varies slowly. In regions where this is not the case, the method is able to switch to a made-to-measure Runge-Kutta integrator that minimises the total number of function evaluations. We demonstrate the effectiveness of the method with example solutions of the Airy equation and an equation exhibiting a burst of oscillations, discussing the error properties of the method in detail. We then show the method applied to physical systems. First, the one-dimensional, time-independent Schrödinger equation is solved as part of a shooting method to search for the energy eigenvalues for a potential with quartic anharmonicity. Then, the method is used to solve the Mukhanov-Sasaki equation describing the evolution of cosmological perturbations, and the primordial power spectrum of the perturbations is computed in different cosmological scenarios. We compare the performance of our solver in calculating a primordial power spectrum of scalar perturbations to that of BINGO, an efficient code specifically designed for such applications.
arXiv commentPhysical Review Research, accepted. 23 pages, 15 figures. The associated code is available online at https://github.com/fruzsinaagocs/oscode
References in corpus (11)
- First Year Wilkinson Microwave Anisotropy Probe (WMAP) Observations: Implications for Inflation
- Oscillations in the CMB from Axion Monodromy Inflation
- Suppressing the lower Multipoles in the CMB Anisotropies
- Bayesian Analysis of Inflation: Parameter Estimation for Single Field Models
- BINGO: A code for the efficient computation of the scalar bi-spectrum
- Closed Universes, de Sitter Space and Inflation
- Kinetic Initial Conditions for Inflation
- Primordial power spectra for curved inflating universes
- Novel quantum initial conditions for inflation
- Constraining the kinetically dominated Universe
- A case for kinetically dominated initial conditions for inflation
Cited by in corpus (13)
- Observational imprints of enhanced scalar power on small scales in ultra slow roll inflation and associated non-Gaussianities
- Analytical approximations for curved primordial power spectra
- Constraining Quantum Initial Conditions before Inflation
- Primordial power spectra from -inflation with curvature
- Quantum initial conditions for inflation and canonical invariance
- Quantum initial conditions for curved inflating universes
- Beyond the Runge-Kutta-Wentzel-Kramers-Brillouin method
- On physical optics approximation of viscous stratified shear flows
- Spectral Distortion Signatures of Step-like Inflationary Potential
- Rescuing Palindromic Universes with Improved Recombination Modelling
- Bunch-Davies initial conditions and non-perturbative inflationary dynamics in Numerical Relativity
- Stochastic Inflation in Numerical Relativity
- Finite inflation in curved space