A flexible Chemical Evolution model
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
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
simN.cfg
file (where N
is a number) by copying
sim0.cfg
simN.cfg
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
inflows_func
: functional form of the gas inflow
exp
: exponential with a timescale of inflows_b1
double_exp
: double exponential with timescales of inflows_b1
and
inflows_b2
te-t
: linear-exponential product with a timescale of inflows_b1
constant_mgas
: constant gas mass (and hence constant SFR)custom
: user-defined inflow ratePickle 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.
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}
}
Copyright 2016 Brett Andrews.
flexCE is free software made available under the MIT License. For details see the LICENSE file.