Skip to main content

Galactic elements Q-Matrix generator

Project description

Build status MIT License Project status: alpha

Intergalactic is a Q-Matrix generator.

Based on explicit values for solar abundances, z and IMF, Intergalactic calculates matrices Q(i,j) of masses of elements i ejected to the galactic medium as element j, for a complete range of stellar masses, accounting for supernovas of types Ia and Ib.

Intergalactic computes the contribution matrix of 15 elements:

H

D

He3

He4

C

C13

N

O

n.r.

Ne

Mg

Si

S

Ca

Fe

Installation

The easiest way to install it is using pip:

$ pip install intergalactic

This will also install some dependencies: numpy and yaml

Usage

Use intergalactic running:

$ intergalactic --config FILENAME

where FILENAME is the path to the config yaml file.

Running intergalactic will produce a directory with three output files:

  • mass_intervals: all the mass intervals used to integrate for all the mass range

  • imf_supernova_rates: the initial mass functions for the supernova rates for each mass interval

  • qm-matrices: the Q(m) matrices for every mass interval defined in the mass_intervals file

Input params

Intergalactic reads a config file where several options can be set in yaml format:

input_params:
    z: 0.0200               # metallicity
    sol_ab: ag89            # solar abundances
    imf: kroupa             # initial mass function
    m_max: 40               # max value for stellar mass
    binary_fraction: 0.05   # rate of binary stars
    sn_ia_selection: rpl    # supernova imf

If no values are provided Intergalactic will use its internal default values for all params.

If you want to use an existent configuration file as template for your own, you can run:

$ intergalactic --generate-config

That command will create a config-example.yml file in the current dir.

Initial mass function

The imf param in the config file can be set to use any of the predefined IMFs from different papers/authors:

salpeter:

Salpeter 1955

starburst:

Starburst 1999

miller_scalo:

Miller & Scalo 1979

ferrini:

Ferrini, Palla & Penco 1998

kroupa:

Kroupa 2002

chabrier:

Chabrier 2003

maschberger:

Maschberger 2012

The default value is kroupa. If you want to use your own IMF you can do so subclassing the IMF class.

Solar abundances

The sol_ab param in the config file can be set to use any of the available abundances datasets from different papers/authors:

ag89:

Anders & Grevesse 1989

gs98:

Grevesse & Sauval 1998

as05:

Asplund et al. 2005

as09:

Asplund et al. 2009

he10:

Heger 2010

The default value is as09. If you want to use your own abundances data you can do so subclassing the Abundances class.

License

Copyright © 2019 Juanjo Bazán, released under the MIT license.

Credits

Intergalactic is built upon a long list of previous works from different authors/papers:

  • Ferrini et al.,1992, ApJ, 387, 138

  • Ferrini & Poggiantti, 1993, ApJ, 410, 44F

  • Portinari, Chiosi & Bressan.,1998,AA,334,505P

  • Galli et al., 1995, ApJ, 443, 536G

  • Mollá et al, 2015, MNRAS, 451, 3693-3708

  • Iwamoto et al, 1999, ApJS, 125, 439

  • Matteucci & Greggio, 1986, A&A, 154, 279M

  • Mollá et al, 2017, MNRAS, 468, 305-318

  • Gavilan, Mollá & Buell, 2006, A&A, 450, 509

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

intergalactic-0.0.3.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

intergalactic-0.0.3-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file intergalactic-0.0.3.tar.gz.

File metadata

  • Download URL: intergalactic-0.0.3.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for intergalactic-0.0.3.tar.gz
Algorithm Hash digest
SHA256 f61cd3d36d03a7545a8926ad20d060c8d2c28687f951bc1922af7641bcd1077c
MD5 7240b47718167b0bdfc1221f6246ee7b
BLAKE2b-256 4083581356850d3bba12ed7318339ce6edbd584295621c64314d10317fca61d4

See more details on using hashes here.

File details

Details for the file intergalactic-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: intergalactic-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 20.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for intergalactic-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0c6decb374fcc24eb9aa361b982ed276fd0ee8829431ce1eefb69ce88bfae0bf
MD5 fbce2925230319c69b629c9fc2e00925
BLAKE2b-256 0a796ba9d1c3d388ef0f707ccf4ab9a68398124ae0b10bb96b5c1e7cce3c74b0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page