Chemical evolution in galaxies
Project description
kimmy
Galactic chemical evolution in python
Overview
kimmy contains simple tools to study chemical evolution in galaxies.
Author
Jo Bovy (University of Toronto): bovy - at - astro - dot - utoronto - dot - ca
Installation
Clone/fork/download the repository and install using
sudo python setup.py install
or locally using
python setup.py install --user
Usage
For an example of usage, see the example notebook. You can also launch a Binder instance and directly play around with this notebook.
Currently, the only implemented feature is a simple one-zone chemical model with two elements O (for oxygen) and Fe (for iron). Initialize this model as
import kimmy
oz= kimmy.OneZone()
then for example compute the evolution of the default model and plot the [O/Fe] vs. [Fe/H] sequence
ts= numpy.linspace(0.001,10.,1001)*u.Gyr
plot(oz.Fe_H(ts),oz.O_Fe(ts))
To compute the distribution of [Fe/H], do for example,
FeHs= numpy.linspace(-1.525,1.225,56)
FeH_dist= [oz.Fe_H_DF(f) for f in FeHs]
and similar for the distribution of [O/H] and [O/Fe]. You can directly update the main parameters of the model and the model will be re-computed. For example, to set the outflow mass-loading parameter to one and plot the [O/Fe] vs. [Fe/H] sequence, do
ts= numpy.linspace(0.001,10.,1001)*u.Gyr
oz.eta= 1.
plot(oz.Fe_H(ts),oz.O_Fe(ts))
Keep in mind that once you change a parameter, it remains changed in the model. If you want to go back to the initial set of parameters that you used to initialize the instance, use oz.initial(); if you want to go back to the default set of parameters, use oz.default(). If you want to print the model you are using at any time, do
print(oz)
which prints a nicely formatted list of all of the model parameters.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kimmy-0.1.tar.gz.
File metadata
- Download URL: kimmy-0.1.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a55afb4711827595d8f518f320a51161aa5356225bb13ed7ed8dc42b651d74aa
|
|
| MD5 |
3b004aeb79b02bf528159b4b43b92506
|
|
| BLAKE2b-256 |
1693cb9cec938ac4f11f5eadad0192b2f817c372ae754eb6e5c27df1f4896132
|
File details
Details for the file kimmy-0.1-py3-none-any.whl.
File metadata
- Download URL: kimmy-0.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.34.0 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7219be8739a4989cae9067ac379092e4c23b0641d6fbcf03413fd590996ebacf
|
|
| MD5 |
4197ee0cc4b8cc539892d5c61f8570b7
|
|
| BLAKE2b-256 |
eda1de3045afe3d2671b7c57d30c5dccadfb27ef5d7988909d4ac736575d2579
|