Coder Social home page Coder Social logo

imripy's Introduction

IMRIpy

This code allows the simulation of an Intermediate Mass Ratio Inspiral (IMRI), where a small compact object -- the secondary -- is around an orbit of a larger body -- the primary, usually a massive black hole (MBH).
The system loses energy and angular momentum due to dissipative forces and slowly inspirals. The dissipative forces include gravitation wave (GW) emission, dynamical friction with dark matter (DM), interaction with an accretion disk, or stellar diffusion in stellar cusps.

The main purpose of the code is to solve the differential equations that arise in the modeling of IMRIs. The code can track the semimajor-axis, eccentricity, periapse angle, and inclination angle of the Kepler orbit. This orbit changes over time due to different dissipative forces. The code is very modular in design such that different dissipative forces can be added easily and their effects studied in detail. Additionally, the code can explore the phase space flows of the forces, compute the GW signal and compare it to LISA sensitivity.

The code also includes a stochastic description of some of the interactions with the help of stochastic differential equations (SDEs). This can be used to calculate rates and population behavior.

Models

For most of the functionality look at the dissertation here.

This code has been used in our publications 2112.09586 and 2211.05145. See this and this file respectively for plot generation.

The code includes inspiral models from
9402014 - gravitational wave emission
1408.3534, 2204.12508, 2305.17281, 1711.09706 - DM halos + dynamical friction + accretion
1908.10241, 2107.00741, 1807.07163 - Keplerian orbits and waveforms
2002.12811,2108.04154 - Halo Feedback
2207.10086, 10.1086/324713, 10.1093/mnras/stac1294, 2205.10382 - Accretion disk profile + interactions
1508.01390 - Stellar Diffusion

Usage

See examples and dissertation folder.

Install

Clone the repository and run
pip install -e .
(the -e option allows you to continuously edit the files without recompiling, don't use if you don't need to edit the files)

If you would like to use the Stochastic module, download the torchsde fork and install it.

Citation

If you use this in your publications, please cite the two papers 2112.09586, and 2211.05145, and the ASCL entry.

License

See LICENSE File

imripy's People

Contributors

laurasagunski avatar

Stargazers

Xiao-Xiao Kou avatar Li Zhencheng avatar Robin avatar Bhooshan Uday Varsha Gadre avatar  avatar  avatar Xiao Xue avatar yanyuechuixue avatar Ali Parvizi avatar Adam Coogan avatar Bradley J. Kavanagh avatar

Watchers

Shichao Wu avatar Niklas Becker avatar

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.