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/ .
arXiv comment23 pages, 12 figures; some typos corrected
References in corpus (47)
- Supersymmetric Q-balls as dark matter
- PyCUDA and PyOpenCL: A Scripting-Based Approach to GPU Run-Time Code Generation
- Particle physics models of inflation and curvaton scenarios
- Oscillons: Resonant Configurations During Bubble Collapse
- Cosmological consequences of MSSM flat directions
- Pseudo-Stable Bubbles
- Stellar-mass black holes in star clusters: implications for gravitational wave radiation
- Equation of state and Beginning of Thermalization After Preheating
- LATTICEEASY: A Program for Lattice Simulations of Scalar Fields in an Expanding Universe
- High Performance Direct Gravitational N-body Simulations on Graphics Processing Units -- II: An implementation in CUDA
- Q-ball formation in the gravity-mediated SUSY breaking scenario
- A multiphysics and multiscale software environment for modeling astrophysical systems
- Non-Gaussianity from Preheating
- Inflaton Fragmentation and Oscillon Formation in Three Dimensions
- GAMER: a GPU-Accelerated Adaptive Mesh Refinement Code for Astrophysics
- SAPPORO: A way to turn your graphics cards into a GRAPE-6
- Non-Gaussian Spikes from Chaotic Billiards in Inflation Preheating
- Numerical study of Q-ball formation in gravity mediation
- Accelerating numerical solution of Stochastic Differential Equations with CUDA
- Lattice calculation of non-Gaussianity from preheating
- New type of stable Q balls in the gauge-mediated supersymmetry breaking
- MSSM flat direction as a curvaton
- DEFROST: A New Code for Simulating Preheating after Inflation
- The Art of Lattice and Gravity Waves from Preheating
- Adaptive Mesh Fluid Simulations on GPU
- Generation of Coherent Structures After Cosmic Inflation
- PSpectRe: A Pseudo-Spectral Code for (P)reheating
- MSSM curvaton in the gauge-mediated SUSY breaking
- Non-Gaussianity from massless preheating
- Curvatons in Supersymmetric Models
- Simulations of Q-Ball Formation
- Accelerating Dust Temperature Calculations with Graphics Processing Units
- Non-Gaussianity from resonant curvaton decay
- Parallel Algorithm for Solving Kepler's Equation on Graphics Processing Units: Application to Analysis of Doppler Exoplanet Searches
- CUDAEASY - a GPU Accelerated Cosmological Lattice Program
- Calculation of HELAS amplitudes for QCD processes using graphics processing unit (GPU)
- GPU-Based Interactive Visualization of Billion Point Cosmological Simulations
- Developing and Deploying Advanced Algorithms to Novel Supercomputing Hardware
- Application of Graphics Processing Units to Search Pipeline for Gravitational Waves from Coalescing Binaries of Compact Objects
- Monte Carlo simulations on Graphics Processing Units
- An exploration of CUDA and CBEA for a gravitational wave source-modelling application
- Oct-tree Method on GPU
- GPUs for data processing in the MWA
- The Living Application: a Self-Organising System for Complex Grid Tasks
- GPU computing for 2-d spin systems: CUDA vs OpenGL
- Recent algorithm and machine developments for lattice QCD
- 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