Package: intergalactic
Intergalactic is a Q-Matrices generator.Based on explicit values forsolar abundances,zandIMF, Intergalactic calculates matricesQ(i,j)of masses of elementsiejected to the galactic medium as elementj, for a complete range of stellar masses, accounting for supernovas of typesIaandII. You can read more about theMatrices Q formalisminFerrini et al. 1992.Intergalactic computes the contribution matrix of 15 elements:HDHe3He4CC13NOn.r.NeMgSiSCaFeInstallationThe easiest way to install the package is using pip:$ pip install intergalacticThis will also install some dependencies if they are not found in the system:numpy,scipyandyamlA previous installation can be upgraded to the latest version with:$ pip install --upgrade intergalacticUsageUse intergalactic running:$ intergalactic --config FILENAMEwhereFILENAMEis 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 rangeimf_supernova_rates: the initial mass functions for the supernova rates for each mass intervalqm-matrices: the Q(m) matrices for every mass interval defined in themass_intervalsfileInput paramsIntergalactic reads a config file where several options can be set in yaml format:z: 0.0200               # metallicity
sol_ab: as09            # solar abundances
imf: kroupa             # initial mass function (IMF)
imf_m_low: 0.15         # lower mass limit for the IMF
imf_m_up: 100           # upper mass limit for the IMF
total_time_steps: 300   # number of time steps (will result in a Q Matrix per step)
m_min: 0.98             # min value for stellar mass
m_max: 40               # max value for stellar mass
binary_fraction: 0.15   # rate of binary stars
dtd_sn: rlp             # delay time distribution for supernovasIntergalactic will use its internal default values for all params for which no values are provided.If you want to use an existent configuration file as template for your own, you can run:$ intergalactic --generate-configThat command will create aconfig-example.ymlfile in the current dir.Initial mass functionTheimfparam in the config file can be set to use any of the predefined IMFs from different papers/authors:salpeter:Salpeter 1955starburst:Starburst 1999 (a Salpeter with mass limits in [1, 120])miller_scalo:Miller & Scalo 1979ferrini:Ferrini, Palla & Penco 1998kroupa:Kroupa 2002chabrier:Chabrier 2003maschberger:Maschberger 2012The default value iskroupa. If you want to use your own IMF you can do so subclassing theIMF class.The IMF will be normalized integrating in the[imf_m_low, imf_m_up]mass interval (default:[0.15, 100], exceptStarburst:[1, 120]).Solar abundancesThesol_abparam in the config file can be set to use any of the available abundances datasets from different papers/authors:ag89:Anders & Grevesse 1989gs98:Grevesse & Sauval 1998as05:Asplund et al. 2005as09:Asplund et al. 2009he10:Heger 2010The default value isas09. If you want to use your own abundances data you can do so subclassing theAbundances class.Delay Time DistributionsThedtd_snparam in the config file can be set to use any of the available Delay Time Distributions for supernova rates from different papers/authors:rlp:Supernova rates from Ruiz-Lapuente et al. 2000mdvp:DTD from Mannucci, Della Valle, Panagia 2006maoz:DTD of Type Ia supernovae from Maoz & Graur (2017)castrillo:DTD of Type Ia supernovae from Castrillo et al. (2020)Test suiteIntergalactic includes a test suite located in the/src/intergalactic/testsdirectory. The current state of the build ispublicly tracked by Travis CI. You can run the latest tests locally and get information on code coverage if you clone the code to your local machine, install its development dependencies and usepytest:$ git clone https://github.com/xuanxu/intergalactic.git
$ cd intergalactic
$ pip install -e .[dev]
$ pytest -v --cov=intergalacticEdgeIf you want to play with the latest code present in this repository even if it has not been released yet, you can do it by cloning the repo locally and instructing pip to install it:$ git clone https://github.com/xuanxu/intergalactic.git
$ cd intergalactic
$ pip install -e .LicenseCopyright© 2020 Juanjo Bazán, released under theMIT license.CreditsIntergalactic is built upon a long list of previous works from different authors/papers:Ferrini et al.,1992, ApJ, 387, 138Ferrini & Poggiantti, 1993, ApJ, 410, 44FPortinari, Chiosi & Bressan,1998,AA,334,505PGalli et al., 1995, ApJ, 443, 536GMollá et al., 2015, MNRAS, 451, 3693-3708Iwamoto et al., 1999, ApJS, 125, 439Matteucci & Greggio, 1986, A&A, 154, 279MMollá et al., 2017, MNRAS, 468, 305-318Gavilan, Mollá & Buell, 2006, A&A, 450, 509Raiteri C.M., Villata M. & Navarro J.F., 1996, A&A 315, 105-115Mannucci, Della Valle, Panagia, 2006, MNRAS, 370, 773MRuiz-Lapuente, P., Canal, R., 2000, astro.ph..9312RMaoz, D. & Graur, O.2017, ApJ, 848, 25MCastrillo, A. et al2020, MNRAS (in preparation)