PyCOOL - a Cosmological Object-Oriented Lattice code written in Python
arXiv:1201.5029 · doi:10.1088/1475-7516/2012/04/038
Abstract
There are a number of different phenomena in the early universe that have to be studied numerically with lattice simulations. This paper presents a graphics processing unit (GPU) accelerated Python program called PyCOOL that solves the evolution of scalar fields in a lattice with very precise symplectic integrators. The program has been written with the intention to hit a sweet spot of speed, accuracy and user friendliness. This has been achieved by using the Python language with the PyCUDA interface to make a program that is easy to adapt to different scalar field models. In this paper we derive the symplectic dynamics that govern the evolution of the system and then present the implementation of the program in Python and PyCUDA. The functionality of the program is tested in a chaotic inflation preheating model, a single field oscillon case and in a supersymmetric curvaton model which leads to Q-ball production. We have also compared the performance of a consumer graphics card to a professional Tesla compute card in these simulations. We find that the program is not only accurate but also very fast. To further increase the usefulness of the program we have equipped it with numerous post-processing functions that provide useful information about the cosmological model. These include various spectra and statistics of the fields. The program can be additionally used to calculate the generated curvature perturbation. The program is publicly available under GNU General Public License at https://github.com/jtksai/PyCOOL . Some additional information can be found from http://www.physics.utu.fi/tiedostot/theory/particlecosmology/pycool/ .
23 pages, 12 figures; some typos corrected
References in corpus (18)
- High Performance Direct Gravitational N-body Simulations on Graphics Processing Units -- II: An implementation in CUDA
- A multiphysics and multiscale software environment for modeling astrophysical systems
- Non-Gaussianity from Preheating
- Inflaton Fragmentation and Oscillon Formation in Three Dimensions
- Non-Gaussian Spikes from Chaotic Billiards in Inflation Preheating
- Lattice calculation of non-Gaussianity from preheating
- DEFROST: A New Code for Simulating Preheating after Inflation
- The Art of Lattice and Gravity Waves from Preheating
- Generation of Coherent Structures After Cosmic Inflation
- Non-Gaussianity from massless preheating
- Parallel Algorithm for Solving Kepler's Equation on Graphics Processing Units: Application to Analysis of Doppler Exoplanet Searches
- GPU-Based Interactive Visualization of Billion Point Cosmological Simulations
- Developing and Deploying Advanced Algorithms to Novel Supercomputing Hardware
- Monte Carlo simulations on Graphics Processing Units
- GPUs for data processing in the MWA
- An exploration of CUDA and CBEA for a gravitational wave source-modelling application
- Oct-tree Method on GPU
- Supercomputing and stellar dynamics
Cited by in corpus (25)
- Nonperturbative Dynamics Of Reheating After Inflation: A Review
- The First Three Seconds: a Review of Possible Expansion Histories of the Early Universe
- The art of simulating the early Universe -- Part I
- End of inflation, oscillons and matter-antimatter asymmetry
- Lattice Simulations of Axion-U(1) Inflation
- Freeze-in from Preheating
- Inflationary Butterfly Effect: Non-perturbative Dynamics From Small-Scale Features
- On preheating in alpha-attractor models of inflation
- Cosmic bubble and domain wall instabilities III: The role of oscillons in three-dimensional bubble collisions
- Nonlinear Dynamics of the Cold Atom Analog False Vacuum
- Cosmic bubble and domain wall instabilities I: parametric amplification of linear fluctuations
- Lattice simulations of Abelian gauge fields coupled to axions during Inflation
- Unveiling the nonlinear dynamics of a rolling axion during inflation
- Lectures on Reheating after Inflation
- Lattice Simulations of Inflation
- Cosmic bubble and domain wall instabilities II: Fracturing of colliding walls
- Oscillon formation from preheating in asymmetric inflationary potentials
- A review on radiation of oscillons and oscillatons
- Enhanced Preheating after Multi-Field Inflation: On the Importance of being Special
- Present and future of CosmoLattice
- Curvaton preheating revisited
- Impact of Dark Sector Preheating on CMB Observables
- (P)reheating Effects of the Kähler Moduli Inflation I Model
- Non-Gaussianity after many-field reheating
- Simple third order operator-splitting schemes for stochastic mechanics and field theory