Giter Site home page Giter Site logo

gautam-404 / binary-evolution Goto Github PK

View Code? Open in Web Editor NEW
3.0 0.0 1.0 16.35 MB

A binary population synthesis study to probe the millisecond pulsar interpretation of the Galactic Center gamma-ray excess

Python 100.00%
python astrophysics galactic center gamma-ray gamma-ray-excess milky-way neutron-star binary-population-synthesis

binary-evolution's Introduction

Binary Population Synthesis with BSE

Read the paper for details: Millisecond Pulsars from Accretion Induced Collapse naturally explain the Galactic Center Gamma-ray Excess

Supplementary reading:

Getting started

Using from scratch:

  • Install Python 3
  • Visit the AMUSE docs and install all the dependancies
  • Install AMUSE Framework and BSE with pip
    pip install amuse-framework
    pip install amuse-bse
    
  • Clone this repository
    git clone https://github.com/gautam-404/Binary-Evolution.git
    

Running the code

  • Run
    cd Binary-Evolution
    python main.py
    
    In case the python program throws an MPI exception (like MPI_ERR_SPAWN: could not spawn processes), explicitly use Open-MPI instead of MPICH (refer this doc) and run echo 'export OMPI_MCA_rmaps_base_oversubscribe=yes' >> ~/.zshrc. For Bash shell, replace ~/.zshrc with ~/.bashrc. Restart your terminal.

The python code will create an output folder with evolution histories of all binary systems at the path "~/OutputFiles". See /src/BPS_eval.py which contains necessary functions that produce the data to see the total gamma-ray luminosity produced by the population as a function of time.


Contact for more info.

binary-evolution's People

Contributors

gautam-404 avatar

Stargazers

 avatar  avatar

Forkers

oscar-macias

binary-evolution's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.