Giter VIP home page Giter VIP logo

flexce's Introduction

flexCE

A flexible Chemical Evolution model in python

ascl:1612.006

Documentation

For the latest documenation please see here.

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

Run the code

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

Change the parameters of the code:

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

    python flexce.py ../config/simN.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

License

Copyright 2016 Brett Andrews.

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

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}
}

flexce's People

Contributors

bretthandrews 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.