All Projects → jan-rybizki → Chempy

jan-rybizki / Chempy

Licence: MIT license
Start with the Chempy tutorial

Programming Languages

Jupyter Notebook
11667 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Chempy

Exoplanet
Fast & scalable MCMC for all your exoplanet needs!
Stars: ✭ 122 (+480.95%)
Mutual labels:  astronomy, mcmc
phyml
PhyML -- Phylogenetic estimation using (Maximum) Likelihood
Stars: ✭ 125 (+495.24%)
Mutual labels:  mcmc
rust-fitsio
FFI wrapper around cfitsio in Rust
Stars: ✭ 17 (-19.05%)
Mutual labels:  astronomy
mcmc
A C++ library of Markov Chain Monte Carlo (MCMC) methods
Stars: ✭ 108 (+414.29%)
Mutual labels:  mcmc
ccd-reduction-and-photometry-guide
Read the CCD guide here:
Stars: ✭ 55 (+161.9%)
Mutual labels:  astronomy
gamma-astro-data-formats
Data formats for gamma-ray astronomy
Stars: ✭ 24 (+14.29%)
Mutual labels:  astronomy
TART
Transient Array Radio Telescope
Stars: ✭ 20 (-4.76%)
Mutual labels:  astronomy
QLFits
The macOS quicklook plugin for FITS files.
Stars: ✭ 44 (+109.52%)
Mutual labels:  astronomy
UnitfulAstro.jl
An extension of Unitful.jl for astronomers.
Stars: ✭ 18 (-14.29%)
Mutual labels:  astronomy
l2hmc-qcd
Application of the L2HMC algorithm to simulations in lattice QCD.
Stars: ✭ 33 (+57.14%)
Mutual labels:  mcmc
TreeCorr
Code for efficiently computing 2-point and 3-point correlation functions. For documentation, go to
Stars: ✭ 85 (+304.76%)
Mutual labels:  astronomy
unity-excavator
Physical simulations on Unity
Stars: ✭ 20 (-4.76%)
Mutual labels:  astronomy
pysynphot
Synthetic Photometry.
Stars: ✭ 21 (+0%)
Mutual labels:  astronomy
P4J
Periodic time series analysis tools based on information theory
Stars: ✭ 42 (+100%)
Mutual labels:  astronomy
Comet
A complete VOEvent transport system
Stars: ✭ 20 (-4.76%)
Mutual labels:  astronomy
BAS
BAS R package https://merliseclyde.github.io/BAS/
Stars: ✭ 36 (+71.43%)
Mutual labels:  mcmc
bayesian-stats-with-R
Material for a workshop on Bayesian stats with R
Stars: ✭ 55 (+161.9%)
Mutual labels:  mcmc
heyoka
C++ library for ODE integration via Taylor's method and LLVM
Stars: ✭ 151 (+619.05%)
Mutual labels:  astronomy
ldtk
Python toolkit for calculating stellar limb darkening profiles and model-specific coefficients using the stellar atmosphere spectrum library by Husser et al. (2013). Described in Parviainen & Aigrain, MNRAS 453, 3821–3826 (2015).
Stars: ✭ 26 (+23.81%)
Mutual labels:  astronomy
kaggle-plasticc
Solution to Kaggle's PLAsTiCC Astronomical Classification Competition
Stars: ✭ 50 (+138.1%)
Mutual labels:  astronomy

Chempy

Flexible one-zone open-box chemical evolution modeling. Abundance fitting and stellar feedback calculation

Recent Developments

Oliver Philcox, in 2019 produced another Chempy paper focusing on multi-star inference.

Oliver Philcox, during his 2017 summer internship at MPIA coded a NeuralNet add-on of Chempy (together with a very nice jupyter tutorial), which is orders of magnitudes faster than the original version and used it to score different yield-tables from the literature which lead to this publication. He also included many more CC-SN yieldsets.

Kirsten Blancato in this paper used single zone models per star and got varying IMF high mass slopes across the chemical abundance space.

Nathan Sandford, produced an interactive and very instructive Widget which you can run in your browser to see the effect that the star formation history has on abundance patterns.

Installation

pip install git+https://github.com/jan-rybizki/Chempy.git

Chempy should run with the latest python 2 and python 3 version. Its dependencies are: Numpy, SciPy, matplotlib, multiprocessing and emcee (for the MCMC), and corner (for the MCMC plots). They are all pip installable and you can also get part of it with Anaconda.

Installation without admin rights:

You can install Chempy into a folder where you have write access:

pip install --install-option='--prefix=~/extra_package/' git+https://github.com/jan-rybizki/Chempy.git

Then you have to add the site-packages/ folder which will be one of the newly created subfolders in extra_package/ into the PYTHONPATH variable, e.g.:

export PYTHONPATH=~/extra_package/lib/python2.7/site-packages/:$PYTHONPATH

If you want this to be permanent, you can add the last line to your .bashrc.

Authors

Collaborators

  • Hans-Walter Rix (MPIA)
  • Andreas Just (ZAH)
  • Morgan Fouesneau (MPIA)

Links

  • arxiv:1702.08729
  • ascl:1702.011
  • An early version of Chempy is presented in chapter 4 of my phd thesis.

Getting started

The jupyter tutorial illustrates the basic usage of Chempy and basic concepts of galactic chemical evolution modeling. It can be inspected in the github repository or you can run it interactively on your local machine.

To run it interactively first clone the repository with

git clone https://github.com/jan-rybizki/Chempy.git

Then you can jupyter notebook from within the tutorial folder (it will run if you have installed Chempy). If you did not install Chempy you can still run the tutorial but need to point to the files in the Chempy folder. Basically you have to cd ../Chempy/ and then replace each from Chempy import ... with from . import ....

You can also read the automatically generated manual.

Compare to Chempy data

If you want to compare your abundance model/data to Chempy paper one results, look at the tutorial 7 where the stored abundance tracks are loaded and plotted for one element.

Extract yield tables for chemical evolution

If you want to use the flexible framework of Chempy to produce IMF integrated metallicity dependent yield tables for your SPH or other Chemical Evolution model you can use tutorial 8. You can use net or gross yields and also look at individual processes contribution to the overall SSP yield table.

Attribution

Please cite the paper when using the code in your research.

\bibitem[Rybizki et al.(2017)]{2017A&A...605A..59R} Rybizki, J., Just, A., & Rix, H.-W.\ 2017, \aap, 605, A59

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].