Giter VIP home page Giter VIP logo

chempy's Introduction

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/[email protected]

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/[email protected]

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/[email protected]

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

chempy's People

Contributors

jan-rybizki avatar nathansandford avatar mfouesneau avatar andersdot avatar

Stargazers

 avatar

Watchers

James Cloos 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.