flexCE

A flexible Chemical Evolution model

View the Project on GitHub bretthandrews/flexce

Read the Paper Andrews et al. (2017)

flexCE

Python Versions and Dependencies

Installation

Choose a location for flexCE to live. We"ll assume that it's in your home directory ("~/").

cd ~/flexce
python setup.py install

Generate yields

cd ~/flexce/flexce/
python make_yield_grids.py

Quick Start

Run the code

cd ~/flexce/flexce/
python flexce.py ../config/sim0.cfg

Plot [O/Fe]-[Fe/H]

cd flexce/flexce/plot
python plot_xfe_feh.py ofe_feh_sim0.cfg

Go to output plot directory

cd flexce/plots/plots

Change the parameters of the code

  1. create a new simN.cfg file (where N is a number) by copying sim0.cfg
  2. edit simN.cfg
  3. re-run the code

    cd ~/flexce/flexce/
    python flexce.py ../config/simN.cfg

Create subdirectories for new simulation suite

cd ~/flexce/flexce
python init_suite.py new-suite-name

Chemical Evolution Parameter Variations

inflows_func: functional form of the gas inflow

Warnings

Pickle files (*.pck) created in Python 2 cannot be read into Python 3 and vice versa, so use a consistent major version of Python for running the code and inspecting the simulation output.

Attribution

Please cite Andrews et al. (2017) if you find this code helpful in your research. You may also want to check out Weinberg, Andrews, & Freudenburg (2017) for a companion analytic model.

The BibTeX entry for Andrews et al. (2017):


    @ARTICLE{2017ApJ...835..224A,
   author = {{Andrews}, B.~H. and {Weinberg}, D.~H. and {Sch{\"o}nrich}, R. and
	{Johnson}, J.~A.},
    title = "{Inflow, Outflow, Yields, and Stellar Population Mixing in Chemical Evolution Models}",
  journal = {\apj},
archivePrefix = "arXiv",
   eprint = {1604.08613},
 keywords = {galaxies: ISM, Galaxy: evolution, Galaxy: formation, Galaxy: general, Galaxy: stellar content, stars: abundances},
     year = 2017,
    month = feb,
   volume = 835,
      eid = {224},
    pages = {224},
      doi = {10.3847/1538-4357/835/2/224},
   adsurl = {http://adsabs.harvard.edu/abs/2017ApJ...835..224A},
  adsnote = {Provided by the SAO/NASA Astrophysics Data System}
}

License

Copyright 2016 Brett Andrews.

flexCE is free software made available under the MIT License. For details see the LICENSE file.