Giter Club home page Giter Club logo

amoeba's Introduction

Amoeba

Amoeba is a new, modular, and open source quasar modeling code designed to model intrinsic and extrinsic variability within the context of wide field surveys such as LSST. It treats both emissions and reverberations with corrections from Doppler shifting, general relativity, and ray-tracing around the central black hole. We can simulate any inclination angle, where moderate to edge-on cases can significantly deviate from the flat metric case.

Accretion disk temperature profiles have been modelled as a thin disk profile1, an irradiated disk profile2, or the disk+wind profile3. We provide a flexible temperature profile which can include contributions from lamp post heating and variable accretion flows, which smoothly converges to the thin disk temperature profile. Beyond this temperature profile, Amoeba allows for any input (effective) temperature mapping to be used to create arbitrary surface brightness / response maps. Transfer functions may be constructed from these response maps under the assumed lamppost model.

We cannot upload a magnification map sample due to size limits. This code was written to use microlensing magnification maps which are pre-calculated, where many can be found on the GERLUMPH database4.

The function "CreateMaps" within QMF is designed to generate all accretion disk maps required for making a disk object. This function relies on Sim5, a public geodesic ray-tracing code5, to calculate impact positions of observed photons on the accretion disk. Only geometrically flat disks are supported, as the position of impact is calculated rapidly at the midplane.

If you would like to run the AmoebaExamples.ipynb notebook, you will be required to change file paths and provide the disk file (creatable with QMF.CreateMaps) and magnification map.

Broad Line Region (BLR) models have been given some TLC and are added again! They may be tested using TestingBLR.ipynb. They are created by defining streamlines, similar to the disk-wind model6. Simple projections, line-of-sight velocity slices, and scattering transfer functions may be constructed now.

To make this code even more accessible, sample scripts are included to show exactly the kinds of variability involved with these accretion disks. Any scripts prefaced "Write" will create a .json file (stored in SampleJsons), and values may be adjusted either through the writing script or the .json directly.

Thank you for taking notice of my code! I would be happy to answer any questions. I can be contacted directly at [email protected]

**** Installation instructions **** First clone Amoeba onto your local machine using:

git clone https://github.com/Henry-Best-01/Amoeba.git

Make sure all dependencies are up to date, for pip users:
pip install -U numpy
pip install -U matplotlib
pip install -U scipy
pip install -U astropy
pip install -U scikit-image

Or for Conda users:
conda install numpy
conda install matplotlib
conda install scipy
conda install astropy
conda install scikit-image
conda update --all

To use Sim5 for ray tracing and the "CreateMaps" functionality, please follow Sim5 installation instructions here, including the instructions to install the python interface.

Microlensing simulations will require an external magnification map. In the example notebook please provide the directory to these maps.

Some precomputed ray tracings may be found here which contains a zipped folder of .fits files for various inclination angles and black hole spins. Providing the path to one of these ray traces in the notebook will show you how to use these files with Amoeba. Beyond this zip file, a single file is included with Amoeba.

Footnotes

  1. https://ui.adsabs.harvard.edu/abs/1973A%26A....24..337S/abstract

  2. https://ui.adsabs.harvard.edu/abs/2007MNRAS.380..669C

  3. https://ui.adsabs.harvard.edu/abs/2019MNRAS.482.2788S

  4. https://ui.adsabs.harvard.edu/abs/2014ApJS..211...16V/abstract

  5. https://ui.adsabs.harvard.edu/abs/2018ascl.soft11011B/abstract

  6. https://ui.adsabs.harvard.edu/abs/2017PASA...34...42Y

amoeba's People

Contributors

henry-best-01 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.