Test of POPIII star input

Test of SSP with POPIII yields. Focus are basic GCE features. You can find the documentation here. Note that all POPIII stars are massive stars. Hence we cannot extend the IMF down to for example 1Msun.


In [2]:
%pylab nbagg
import sygma as s
reload(s)
s.__file__
#from imp import *
#s=load_source('sygma','/home/nugrid/nugrid/SYGMA/SYGMA_online/SYGMA_dev/sygma.py')
from scipy.integrate import quad
from scipy.interpolate import UnivariateSpline
import matplotlib.pyplot as plt
import numpy as np


Populating the interactive namespace from numpy and matplotlib

Results

$\odot$ Evolution of ISM fine

$\odot$ Sources of massive and AGB stars distinguished

$\odot$ Test of final mass of ISM for different IMF boundaries

$\odot$ Test of Salpeter, Chabrier, Kroupa IMF by checking the evolution of ISM mass (incl. alphaimf)

$\odot$ Test if SNIa on/off works

$\odot$ Test of the three SNIa implementations, the evolution of SN1a contributions

$\odot$ Test of parameter tend, dt and special_timesteps

$\odot$ Test of parmeter mgal

$\odot$ Test of netyields_on

TODO: test non-linear yield fitting (hard set in code right now, no input parameter provided)

IMF notes:

The IMF allows to calculate the number of stars $N_{12}$ in the mass interval [m1,m2] with

(I) $N_{12}$ = kN $\int {m1}^{m2} m^{-2.35} dm$

Where kN is the normalization constant. It can be derived from the total amount of mass of the system $M{tot}$ since the total mass $M_{12}$ in the mass interval above can be estimated with

(II) $M_{12}$ = kN $\int {m1}^{m2} m^{-1.35} dm$

With a total mass interval of [1,30] and $M_{tot}=1e11$ the $k_N$ can be derived:

$1e11 = k_N/0.35 * (1^{-0.35} - 30^{-0.35})$

Final mass


In [60]:
k_N=1e11*0.35/ (10**-0.35 - 30**-0.35) #(I)
N_tot=k_N/1.35 * (10**-1.35 - 30**-1.35) #(II)
Yield_tot=0.1*N_tot

Includes stars from 10Msun to 30Msun (upper end consistent with higher Z).

At ~5e6 M30 star starts to contribute. Need to resolve steps between masses and hence chhose small constant time interval for s2 run. There are


In [61]:
reload(s)
s1=s.sygma(iolevel=0,mgal=1e11,dt=1e7,tend=1.3e10,special_timesteps=-1,imf_type='salpeter',
           imf_yields_range_pop3=[10,30],imf_bdys_pop3=[10,30],
           pop3_table='yield_tables/popIII_h1.txt',table='yield_tables/isotope_yield_table_h1.txt',
           sn1a_on=False, sn1a_table='yield_tables/sn1a_h1.txt', 
           iniabu_table='yield_tables/iniabu/iniab1.0E-04GN93_alpha_h1.ppn')
s2=s.sygma(iolevel=0,mgal=1e11,dt=1e5,tend=1e7,special_timesteps=-1,imf_type='salpeter',
           imf_yields_range_pop3=[10,30],imf_bdys_pop3=[10,30],
           pop3_table='yield_tables/popIII_h1.txt',table='yield_tables/isotope_yield_table_h1.txt',
           sn1a_on=False, sn1a_table='yield_tables/sn1a_h1.txt', 
           iniabu_table='yield_tables/iniabu/iniab1.0E-04GN93_alpha_h1.ppn')
Yield_tot_sim=s1.history.ism_iso_yield[-1][0]


SYGMA run in progress..
   SYGMA run completed - Run time: 64.58s
SYGMA run in progress..
   SYGMA run completed - Run time: 5.44s

In [62]:
print Yield_tot_sim
print Yield_tot
print 'ratio should be 1 : ',Yield_tot_sim/Yield_tot


627865031.179
627865031.179
ratio should be 1 :  1.0

Test of distinguishing between massive PoPIII and (not relevant) other sources

No production of any source, except massive stars expected. Massive stars produce all H.


In [63]:
print s1.history.ism_iso_yield_agb[-1][0]
print 'should be 1: ',s1.history.ism_iso_yield_massive[-1][0]/Yield_tot
print 'No SNIa contribution:',s1.history.ism_iso_yield_1a[-1][0]


0.0
should be 1:  1.0
No SNIa contribution: 0.0

As expected massive stars contribute to 'All'.


In [64]:
s1.plot_totmasses(fig=1,source='all',markevery=2,marker='^')
s1.plot_totmasses(fig=1,source='agb')
s1.plot_totmasses(fig=1,source='massive',marker='x',markevery=3)
s1.plot_totmasses(fig=1,source='sn1a',marker='D')
s1.plot_mass(fig=1,specie='H-1',marker='+',markevery=1)
#plt.legend(loc=7,fontsize=14)
#mpld3.display()
#plt.legend(loc='center left', bbox_to_anchor=(1, 0.5))
plt.xlim(1e6,1e9)


Out[64]:
(1000000.0, 1000000000.0)

Higher resolution:


In [65]:
s2.plot_totmasses(fig=2,source='all',markevery=4,marker='^')
s2.plot_totmasses(fig=2,source='massive',marker='x',markevery=6)
s2.plot_mass(fig=2,specie='H-1',marker='+',markevery=10)
#plt.legend(loc=7,fontsize=14)
#mpld3.display()
#plt.legend(loc='center left', bbox_to_anchor=(1, 0.5))
plt.xlim(6e6,3e7)


Out[65]:
(6000000.0, 30000000.0)

Calculating yield ejection over time

Check grid lifetime plot


In [66]:
import read_yields as ry
y=ry.read_nugrid_yields('yield_tables/popIII_h1.txt')
zm_lifetime_grid=s1.zm_lifetime_grid_current
idx_z = (np.abs(zm_lifetime_grid[0]-0.0001)).argmin() #Z=0
grid_masses=zm_lifetime_grid[1][::-1]
grid_lifetimes=zm_lifetime_grid[2][idx_z][::-1]
plt.figure(981)
plt.plot(grid_masses,grid_lifetimes,label='spline fit grid points (SYGMA)',marker='x')
m=[]
ages=[]
for k in range(len(y.table_mz)):
    m_ini=float(y.table_mz[k].split(',')[0].split('=')[1])
    if m_ini>=30:
        continue
    m.append(m_ini)
    ages.append(y.age[k])
plt.plot(np.array(m),np.log10(np.array(ages)),marker='+',markersize=20,label='input yield grid',linestyle='None')
plt.xlabel('Mini/Msun')
plt.ylabel('log lifetime');plt.legend(prop={'size':14})


Out[66]:
<matplotlib.legend.Legend at 0x7fc6b803b390>

In [85]:
s2.plot_totmasses(fig=561,marker='x',label='totmass',markevery=2)
s2.plot_mass(fig=561,specie='H',label='H, sim',color='k',shape='-',marker='o',markevery=3)
import read_yields as ry
y=ry.read_nugrid_yields('yield_tables/popIII_h1.txt')
m=[]
ages=[]
for k in range(len(y.table_mz)):
    m_ini=float(y.table_mz[k].split(',')[0].split('=')[1])
    if m_ini>=30:
        continue
    m.append(m_ini)
    ages.append(y.age[k])
    #print m[-1],ages[-1]
def yields(m,k_N):
    return ( k_N/1.35 * (m**-1.35 - 30.**-1.35) ) * 0.1
yields1=[]
for m1 in m:
    yields1.append(yields(m1,k_N))
plt.figure(561)
plt.plot(ages,yields1,marker='+',linestyle='',markersize=15,label='H, semi')
plt.legend(loc=4)
plt.xlim(5e6,3e7)


Out[85]:
(5000000.0, 30000000.0)

Test of parameter imf_bdys: Selection of different mass intervals

Select imf_bdys=[15,30]


In [68]:
k_N=1e11*0.35/ (15**-0.35 - 30**-0.35)
N_tot=k_N/1.35 * (15**-1.35 - 30**-1.35)
Yield_tot=0.1*N_tot

In [69]:
# imf_bdys_pop3=[15,30]

In [70]:
##reload(chem_evol)
#dreload(s)
import sygma as s
reload(s)
s1=s.sygma(iolevel=1,mgal=1e11,iniZ=0,dt=1e7,tend=1.3e10,imf_type='salpeter',
           imf_bdys=[10,30],imf_bdys_pop3=[15,30],pop3_table='yield_tables/popIII_h1.txt',
           table='yield_tables/isotope_yield_table_h1.txt',sn1a_on=False, sn1a_table='yield_tables/sn1a_h1.txt', 
           iniabu_table='yield_tables/iniabu/iniab1.0E-04GN93_alpha_h1.ppn')
Yield_tot_sim=s1.history.ism_iso_yield[-1][0]


Warning - Use isotopes with care.
['H-1']
Use initial abundance of  yield_tables/iniabu/iniab1.0E-04GN93_alpha_h1.ppn
Number of timesteps:  3.0E+01
### Start with initial metallicity of  0.0000E+00
###############################
SYGMA run in progress..
################## Star formation at  1.000E+07 (Z=0.0000E+00) of  1.0
Mass locked away: 1.000E+11 , new ISM mass: 0.000E+00
Taking POPIII yields from yield_tables/popIII_heger10.txt
Currently only PopIII massive stars between 10Msun and 100Msun with their yielda contributions included
 lower IMF minimum (imf_bdys) fixed to 10Msun for now
__get_mass_bdys: mass_bdys:  [10, 10.1, 10.3, 10.45, 10.55, 10.649999999999999, 10.75, 10.850000000000001, 10.95, 11.05, 11.149999999999999, 11.25, 11.350000000000001, 11.45, 11.55, 11.649999999999999, 11.75, 11.850000000000001, 11.95, 12.1, 12.3, 12.5, 12.7, 12.9, 13.1, 13.3, 13.5, 13.7, 13.9, 14.1, 14.3, 14.5, 14.7, 14.9, 15.1, 15.3, 15.5, 15.7, 15.9, 16.1, 16.299999999999997, 16.5, 16.700000000000003, 16.9, 17.05, 17.15, 17.25, 17.35, 17.45, 17.55, 17.65, 17.75, 17.85, 17.95, 18.05, 18.15, 18.25, 18.35, 18.45, 18.55, 18.65, 18.75, 18.85, 18.95, 19.1, 19.299999999999997, 19.5, 19.700000000000003, 19.9, 20.25, 20.75, 21.25, 21.75, 22.25, 22.75, 23.25, 23.75, 24.25, 24.75, 25.25, 25.75, 26.25, 26.75, 27.25, 27.75, 28.25, 28.75, 29.25, 29.75, 30]
__get_mass_bdys: m_stars [10.0, 10.2, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 11.0, 11.1, 11.2, 11.3, 11.4, 11.5, 11.6, 11.7, 11.8, 11.9, 12.0, 12.2, 12.4, 12.6, 12.8, 13.0, 13.2, 13.4, 13.6, 13.8, 14.0, 14.2, 14.4, 14.6, 14.8, 15.0, 15.2, 15.4, 15.6, 15.8, 16.0, 16.2, 16.4, 16.6, 16.8, 17.0, 17.1, 17.2, 17.3, 17.4, 17.5, 17.6, 17.7, 17.8, 17.9, 18.0, 18.1, 18.2, 18.3, 18.4, 18.5, 18.6, 18.7, 18.8, 18.9, 19.0, 19.2, 19.4, 19.6, 19.8, 20.0, 20.5, 21.0, 21.5, 22.0, 22.5, 23.0, 23.5, 24.0, 24.5, 25.0, 25.5, 26.0, 26.5, 27.0, 27.5, 28.0, 28.5, 29.0, 29.5, 30.0]
Stars under consideration (take into account user-selected imf ends):
15 | 15.0 | 15.1
15.1 | 15.2 | 15.3
15.3 | 15.4 | 15.5
15.5 | 15.6 | 15.7
15.7 | 15.8 | 15.9
15.9 | 16.0 | 16.1
16.1 | 16.2 | 16.3
16.3 | 16.4 | 16.5
16.5 | 16.6 | 16.7
16.7 | 16.8 | 16.9
16.9 | 17.0 | 17.05
17.05 | 17.1 | 17.15
17.15 | 17.2 | 17.25
17.25 | 17.3 | 17.35
17.35 | 17.4 | 17.45
17.45 | 17.5 | 17.55
17.55 | 17.6 | 17.65
17.65 | 17.7 | 17.75
17.75 | 17.8 | 17.85
17.85 | 17.9 | 17.95
17.95 | 18.0 | 18.05
18.05 | 18.1 | 18.15
18.15 | 18.2 | 18.25
18.25 | 18.3 | 18.35
18.35 | 18.4 | 18.45
18.45 | 18.5 | 18.55
18.55 | 18.6 | 18.65
18.65 | 18.7 | 18.75
18.75 | 18.8 | 18.85
18.85 | 18.9 | 18.95
18.95 | 19.0 | 19.1
19.1 | 19.2 | 19.3
19.3 | 19.4 | 19.5
19.5 | 19.6 | 19.7
19.7 | 19.8 | 19.9
19.9 | 20.0 | 20.25
20.25 | 20.5 | 20.75
20.75 | 21.0 | 21.25
21.25 | 21.5 | 21.75
21.75 | 22.0 | 22.25
22.25 | 22.5 | 22.75
22.75 | 23.0 | 23.25
23.25 | 23.5 | 23.75
23.75 | 24.0 | 24.25
24.25 | 24.5 | 24.75
24.75 | 25.0 | 25.25
25.25 | 25.5 | 25.75
25.75 | 26.0 | 26.25
26.25 | 26.5 | 26.75
26.75 | 27.0 | 27.25
27.25 | 27.5 | 27.75
27.75 | 28.0 | 28.25
28.25 | 28.5 | 28.75
28.75 | 29.0 | 29.25
29.25 | 29.5 | 29.75
29.75 | 30.0 | 30
lens:  57 56
Total mass of the gas in stars:
AGB:  0.000E+00
Massive:  1.000E+11
30.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  5.864E+06
29.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  5.897E+06
29.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  6.026E+06
28.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  6.081E+06
28.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  6.196E+06
27.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  6.249E+06
27.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  6.346E+06
26.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  6.443E+06
26.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  6.542E+06
25.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  6.639E+06
25.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  6.649E+06
24.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  6.830E+06
24.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  6.912E+06
23.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  7.035E+06
23.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  7.185E+06
22.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  7.414E+06
22.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  7.434E+06
21.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  7.725E+06
21.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  7.945E+06
20.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  7.846E+06
20.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  7.833E+06
19.8 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  7.917E+06
19.6 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.027E+06
19.4 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.222E+06
19.2 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.174E+06
19.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.294E+06
18.9 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.191E+06
18.8 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.238E+06
18.7 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.399E+06
18.6 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.459E+06
18.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.362E+06
18.4 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.390E+06
18.3 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.622E+06
18.2 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.489E+06
18.1 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.556E+06
18.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.569E+06
17.9 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.624E+06
17.8 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.804E+06
17.7 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.708E+06
17.6 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.873E+06
17.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.860E+06
17.4 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.894E+06
17.3 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.935E+06
17.2 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  9.011E+06
17.1 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  9.240E+06
17.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  9.308E+06
16.8 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  9.370E+06
16.6 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  9.517E+06
16.4 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  9.629E+06
16.2 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  9.764E+06
16.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  9.919E+06
15.8 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  1.005E+07
15.6 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.043E+07
15.4 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.052E+07
15.2 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.053E+07
15.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.077E+07
time and metallicity and total mass:
1.640E+07 0.0000E+00 4.8760E+08
time and metallicity and total mass:
1.640E+07 0.0000E+00 4.8760E+08
time and metallicity and total mass:
3.443E+07 0.0000E+00 4.8760E+08
time and metallicity and total mass:
3.443E+07 0.0000E+00 4.8760E+08
time and metallicity and total mass:
7.228E+07 0.0000E+00 4.8760E+08
time and metallicity and total mass:
7.228E+07 0.0000E+00 4.8760E+08
time and metallicity and total mass:
1.518E+08 0.0000E+00 4.8760E+08
time and metallicity and total mass:
1.518E+08 0.0000E+00 4.8760E+08
time and metallicity and total mass:
3.186E+08 0.0000E+00 4.8760E+08
time and metallicity and total mass:
3.186E+08 0.0000E+00 4.8760E+08
time and metallicity and total mass:
6.690E+08 0.0000E+00 4.8760E+08
time and metallicity and total mass:
6.690E+08 0.0000E+00 4.8760E+08
time and metallicity and total mass:
1.405E+09 0.0000E+00 4.8760E+08
time and metallicity and total mass:
1.405E+09 0.0000E+00 4.8760E+08
time and metallicity and total mass:
2.949E+09 0.0000E+00 4.8760E+08
time and metallicity and total mass:
2.949E+09 0.0000E+00 4.8760E+08
time and metallicity and total mass:
6.192E+09 0.0000E+00 4.8760E+08
time and metallicity and total mass:
6.192E+09 0.0000E+00 4.8760E+08
time and metallicity and total mass:
1.300E+10 0.0000E+00 4.8760E+08
time and metallicity and total mass:
1.300E+10 0.0000E+00 4.8760E+08
   SYGMA run completed - Run time: 2.71s

In [71]:
print 'Sould be 1:' ,Yield_tot_sim/Yield_tot


Sould be 1: 1.0

Select imf_bdys=[10,15]


In [72]:
k_N=1e11*0.35/ (10**-0.35 - 15**-0.35)
N_tot=k_N/1.35 * (10**-1.35 - 15**-1.35)
Yield_tot=0.1*N_tot

In [73]:
s1=s.sygma(iolevel=1,mgal=1e11,dt=1e7,tend=1.3e10,imf_type='salpeter',imf_yields_range_pop3=[10,30],imf_bdys_pop3=[10,15],pop3_table='yield_tables/popIII_h1.txt',table='yield_tables/isotope_yield_table_h1.txt',sn1a_on=False, sn1a_table='yield_tables/sn1a_h1.txt', iniabu_table='yield_tables/iniabu/iniab1.0E-04GN93_alpha_h1.ppn')
Yield_tot_sim=s1.history.ism_iso_yield[-1][0]


Warning - Use isotopes with care.
['H-1']
Use initial abundance of  yield_tables/iniabu/iniab1.0E-04GN93_alpha_h1.ppn
Number of timesteps:  3.0E+01
### Start with initial metallicity of  0.0000E+00
###############################
SYGMA run in progress..
################## Star formation at  1.000E+07 (Z=0.0000E+00) of  1.0
Mass locked away: 1.000E+11 , new ISM mass: 0.000E+00
Taking POPIII yields from yield_tables/popIII_heger10.txt
Currently only PopIII massive stars between 10Msun and 100Msun with their yielda contributions included
 lower IMF minimum (imf_bdys) fixed to 10Msun for now
__get_mass_bdys: mass_bdys:  [10, 10.1, 10.3, 10.45, 10.55, 10.649999999999999, 10.75, 10.850000000000001, 10.95, 11.05, 11.149999999999999, 11.25, 11.350000000000001, 11.45, 11.55, 11.649999999999999, 11.75, 11.850000000000001, 11.95, 12.1, 12.3, 12.5, 12.7, 12.9, 13.1, 13.3, 13.5, 13.7, 13.9, 14.1, 14.3, 14.5, 14.7, 14.9, 15.1, 15.3, 15.5, 15.7, 15.9, 16.1, 16.299999999999997, 16.5, 16.700000000000003, 16.9, 17.05, 17.15, 17.25, 17.35, 17.45, 17.55, 17.65, 17.75, 17.85, 17.95, 18.05, 18.15, 18.25, 18.35, 18.45, 18.55, 18.65, 18.75, 18.85, 18.95, 19.1, 19.299999999999997, 19.5, 19.700000000000003, 19.9, 20.25, 20.75, 21.25, 21.75, 22.25, 22.75, 23.25, 23.75, 24.25, 24.75, 25.25, 25.75, 26.25, 26.75, 27.25, 27.75, 28.25, 28.75, 29.25, 29.75, 30]
__get_mass_bdys: m_stars [10.0, 10.2, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 11.0, 11.1, 11.2, 11.3, 11.4, 11.5, 11.6, 11.7, 11.8, 11.9, 12.0, 12.2, 12.4, 12.6, 12.8, 13.0, 13.2, 13.4, 13.6, 13.8, 14.0, 14.2, 14.4, 14.6, 14.8, 15.0, 15.2, 15.4, 15.6, 15.8, 16.0, 16.2, 16.4, 16.6, 16.8, 17.0, 17.1, 17.2, 17.3, 17.4, 17.5, 17.6, 17.7, 17.8, 17.9, 18.0, 18.1, 18.2, 18.3, 18.4, 18.5, 18.6, 18.7, 18.8, 18.9, 19.0, 19.2, 19.4, 19.6, 19.8, 20.0, 20.5, 21.0, 21.5, 22.0, 22.5, 23.0, 23.5, 24.0, 24.5, 25.0, 25.5, 26.0, 26.5, 27.0, 27.5, 28.0, 28.5, 29.0, 29.5, 30.0]
Stars under consideration (take into account user-selected imf ends):
10 | 10.0 | 10.1
10.1 | 10.2 | 10.3
10.3 | 10.4 | 10.45
10.45 | 10.5 | 10.55
10.55 | 10.6 | 10.65
10.65 | 10.7 | 10.75
10.75 | 10.8 | 10.85
10.85 | 10.9 | 10.95
10.95 | 11.0 | 11.05
11.05 | 11.1 | 11.15
11.15 | 11.2 | 11.25
11.25 | 11.3 | 11.35
11.35 | 11.4 | 11.45
11.45 | 11.5 | 11.55
11.55 | 11.6 | 11.65
11.65 | 11.7 | 11.75
11.75 | 11.8 | 11.85
11.85 | 11.9 | 11.95
11.95 | 12.0 | 12.1
12.1 | 12.2 | 12.3
12.3 | 12.4 | 12.5
12.5 | 12.6 | 12.7
12.7 | 12.8 | 12.9
12.9 | 13.0 | 13.1
13.1 | 13.2 | 13.3
13.3 | 13.4 | 13.5
13.5 | 13.6 | 13.7
13.7 | 13.8 | 13.9
13.9 | 14.0 | 14.1
14.1 | 14.2 | 14.3
14.3 | 14.4 | 14.5
14.5 | 14.6 | 14.7
14.7 | 14.8 | 14.9
14.9 | 15.0 | 15
lens:  35 34
Total mass of the gas in stars:
AGB:  0.000E+00
Massive:  1.000E+11
15.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.077E+07
14.8 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.091E+07
14.6 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.109E+07
14.4 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.132E+07
14.2 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.155E+07
14.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.177E+07
13.8 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.199E+07
13.6 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.226E+07
13.4 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.252E+07
13.2 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.274E+07
13.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.303E+07
12.8 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.331E+07
12.6 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.405E+07
12.4 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.400E+07
12.2 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.415E+07
12.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.430E+07
11.9 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.461E+07
11.8 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.466E+07
11.7 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.486E+07
11.6 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.551E+07
11.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.533E+07
11.4 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.549E+07
11.3 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.601E+07
11.2 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.591E+07
11.1 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.614E+07
11.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.636E+07
10.9 Wind (if massive +SN2): of Z= 0.000000E+00  at time  2.100E+07 with lifetime:  1.658E+07
10.8 Wind (if massive +SN2): of Z= 0.000000E+00  at time  2.100E+07 with lifetime:  1.683E+07
10.7 Wind (if massive +SN2): of Z= 0.000000E+00  at time  2.100E+07 with lifetime:  1.718E+07
10.6 Wind (if massive +SN2): of Z= 0.000000E+00  at time  2.100E+07 with lifetime:  1.774E+07
10.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  2.100E+07 with lifetime:  1.754E+07
10.4 Wind (if massive +SN2): of Z= 0.000000E+00  at time  2.100E+07 with lifetime:  1.785E+07
10.2 Wind (if massive +SN2): of Z= 0.000000E+00  at time  2.100E+07 with lifetime:  1.812E+07
10.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  2.100E+07 with lifetime:  1.839E+07
time and metallicity and total mass:
1.640E+07 0.0000E+00 2.1967E+08
time and metallicity and total mass:
1.640E+07 0.0000E+00 2.1967E+08
time and metallicity and total mass:
3.443E+07 0.0000E+00 8.2603E+08
time and metallicity and total mass:
3.443E+07 0.0000E+00 8.2603E+08
time and metallicity and total mass:
7.228E+07 0.0000E+00 8.2603E+08
time and metallicity and total mass:
7.228E+07 0.0000E+00 8.2603E+08
time and metallicity and total mass:
1.518E+08 0.0000E+00 8.2603E+08
time and metallicity and total mass:
1.518E+08 0.0000E+00 8.2603E+08
time and metallicity and total mass:
3.186E+08 0.0000E+00 8.2603E+08
time and metallicity and total mass:
3.186E+08 0.0000E+00 8.2603E+08
time and metallicity and total mass:
6.690E+08 0.0000E+00 8.2603E+08
time and metallicity and total mass:
6.690E+08 0.0000E+00 8.2603E+08
time and metallicity and total mass:
1.405E+09 0.0000E+00 8.2603E+08
time and metallicity and total mass:
1.405E+09 0.0000E+00 8.2603E+08
time and metallicity and total mass:
2.949E+09 0.0000E+00 8.2603E+08
time and metallicity and total mass:
2.949E+09 0.0000E+00 8.2603E+08
time and metallicity and total mass:
6.192E+09 0.0000E+00 8.2603E+08
time and metallicity and total mass:
6.192E+09 0.0000E+00 8.2603E+08
time and metallicity and total mass:
1.300E+10 0.0000E+00 8.2603E+08
time and metallicity and total mass:
1.300E+10 0.0000E+00 8.2603E+08
   SYGMA run completed - Run time: 1.69s
Select imf_bdys_pop3=[5,100] ; NEEDS TO BE TESTED

In [74]:
k_N=1e11*0.35/ (5**-0.35 - 100**-0.35) # IMF range
N_tot=k_N/1.35 * (10**-1.35 - 30**-1.35) # yield range
Yield_tot=0.1*N_tot

In [75]:
s1=s.sygma(iolevel=1,mgal=1e11,dt=1e7,tend=1.3e10,imf_type='salpeter',imf_bdys_pop3=[5,100],
           pop3_table='yield_tables/popIII_h1.txt',table='yield_tables/isotope_yield_table_h1.txt',
           sn1a_on=False, sn1a_table='yield_tables/sn1a_h1.txt', 
           iniabu_table='yield_tables/iniabu/iniab1.0E-04GN93_alpha_h1.ppn')
#imf_yields_range_pop3=[10,30],
Yield_tot_sim=s1.history.ism_iso_yield[-1][0]


Warning - Use isotopes with care.
['H-1']
Use initial abundance of  yield_tables/iniabu/iniab1.0E-04GN93_alpha_h1.ppn
Number of timesteps:  3.0E+01
### Start with initial metallicity of  0.0000E+00
###############################
SYGMA run in progress..
################## Star formation at  1.000E+07 (Z=0.0000E+00) of  1.0
Mass locked away: 1.000E+11 , new ISM mass: 0.000E+00
Taking POPIII yields from yield_tables/popIII_heger10.txt
Currently only PopIII massive stars between 10Msun and 100Msun with their yielda contributions included
 lower IMF minimum (imf_bdys) fixed to 10Msun for now
__get_mass_bdys: mass_bdys:  [10, 10.1, 10.3, 10.45, 10.55, 10.649999999999999, 10.75, 10.850000000000001, 10.95, 11.05, 11.149999999999999, 11.25, 11.350000000000001, 11.45, 11.55, 11.649999999999999, 11.75, 11.850000000000001, 11.95, 12.1, 12.3, 12.5, 12.7, 12.9, 13.1, 13.3, 13.5, 13.7, 13.9, 14.1, 14.3, 14.5, 14.7, 14.9, 15.1, 15.3, 15.5, 15.7, 15.9, 16.1, 16.299999999999997, 16.5, 16.700000000000003, 16.9, 17.05, 17.15, 17.25, 17.35, 17.45, 17.55, 17.65, 17.75, 17.85, 17.95, 18.05, 18.15, 18.25, 18.35, 18.45, 18.55, 18.65, 18.75, 18.85, 18.95, 19.1, 19.299999999999997, 19.5, 19.700000000000003, 19.9, 20.25, 20.75, 21.25, 21.75, 22.25, 22.75, 23.25, 23.75, 24.25, 24.75, 25.25, 25.75, 26.25, 26.75, 27.25, 27.75, 28.25, 28.75, 29.25, 29.75, 30]
__get_mass_bdys: m_stars [10.0, 10.2, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 11.0, 11.1, 11.2, 11.3, 11.4, 11.5, 11.6, 11.7, 11.8, 11.9, 12.0, 12.2, 12.4, 12.6, 12.8, 13.0, 13.2, 13.4, 13.6, 13.8, 14.0, 14.2, 14.4, 14.6, 14.8, 15.0, 15.2, 15.4, 15.6, 15.8, 16.0, 16.2, 16.4, 16.6, 16.8, 17.0, 17.1, 17.2, 17.3, 17.4, 17.5, 17.6, 17.7, 17.8, 17.9, 18.0, 18.1, 18.2, 18.3, 18.4, 18.5, 18.6, 18.7, 18.8, 18.9, 19.0, 19.2, 19.4, 19.6, 19.8, 20.0, 20.5, 21.0, 21.5, 22.0, 22.5, 23.0, 23.5, 24.0, 24.5, 25.0, 25.5, 26.0, 26.5, 27.0, 27.5, 28.0, 28.5, 29.0, 29.5, 30.0]
Stars under consideration (take into account user-selected imf ends):
10 | 10.0 | 10.1
10.1 | 10.2 | 10.3
10.3 | 10.4 | 10.45
10.45 | 10.5 | 10.55
10.55 | 10.6 | 10.65
10.65 | 10.7 | 10.75
10.75 | 10.8 | 10.85
10.85 | 10.9 | 10.95
10.95 | 11.0 | 11.05
11.05 | 11.1 | 11.15
11.15 | 11.2 | 11.25
11.25 | 11.3 | 11.35
11.35 | 11.4 | 11.45
11.45 | 11.5 | 11.55
11.55 | 11.6 | 11.65
11.65 | 11.7 | 11.75
11.75 | 11.8 | 11.85
11.85 | 11.9 | 11.95
11.95 | 12.0 | 12.1
12.1 | 12.2 | 12.3
12.3 | 12.4 | 12.5
12.5 | 12.6 | 12.7
12.7 | 12.8 | 12.9
12.9 | 13.0 | 13.1
13.1 | 13.2 | 13.3
13.3 | 13.4 | 13.5
13.5 | 13.6 | 13.7
13.7 | 13.8 | 13.9
13.9 | 14.0 | 14.1
14.1 | 14.2 | 14.3
14.3 | 14.4 | 14.5
14.5 | 14.6 | 14.7
14.7 | 14.8 | 14.9
14.9 | 15.0 | 15.1
15.1 | 15.2 | 15.3
15.3 | 15.4 | 15.5
15.5 | 15.6 | 15.7
15.7 | 15.8 | 15.9
15.9 | 16.0 | 16.1
16.1 | 16.2 | 16.3
16.3 | 16.4 | 16.5
16.5 | 16.6 | 16.7
16.7 | 16.8 | 16.9
16.9 | 17.0 | 17.05
17.05 | 17.1 | 17.15
17.15 | 17.2 | 17.25
17.25 | 17.3 | 17.35
17.35 | 17.4 | 17.45
17.45 | 17.5 | 17.55
17.55 | 17.6 | 17.65
17.65 | 17.7 | 17.75
17.75 | 17.8 | 17.85
17.85 | 17.9 | 17.95
17.95 | 18.0 | 18.05
18.05 | 18.1 | 18.15
18.15 | 18.2 | 18.25
18.25 | 18.3 | 18.35
18.35 | 18.4 | 18.45
18.45 | 18.5 | 18.55
18.55 | 18.6 | 18.65
18.65 | 18.7 | 18.75
18.75 | 18.8 | 18.85
18.85 | 18.9 | 18.95
18.95 | 19.0 | 19.1
19.1 | 19.2 | 19.3
19.3 | 19.4 | 19.5
19.5 | 19.6 | 19.7
19.7 | 19.8 | 19.9
19.9 | 20.0 | 20.25
20.25 | 20.5 | 20.75
20.75 | 21.0 | 21.25
21.25 | 21.5 | 21.75
21.75 | 22.0 | 22.25
22.25 | 22.5 | 22.75
22.75 | 23.0 | 23.25
23.25 | 23.5 | 23.75
23.75 | 24.0 | 24.25
24.25 | 24.5 | 24.75
24.75 | 25.0 | 25.25
25.25 | 25.5 | 25.75
25.75 | 26.0 | 26.25
26.25 | 26.5 | 26.75
26.75 | 27.0 | 27.25
27.25 | 27.5 | 27.75
27.75 | 28.0 | 28.25
28.25 | 28.5 | 28.75
28.75 | 29.0 | 29.25
29.25 | 29.5 | 29.75
29.75 | 30.0 | 30
lens:  90 89
Total mass of the gas in stars:
AGB:  0.000E+00
Massive:  3.856E+10
30.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  5.864E+06
29.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  5.897E+06
29.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  6.026E+06
28.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  6.081E+06
28.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  6.196E+06
27.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  6.249E+06
27.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  6.346E+06
26.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  6.443E+06
26.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  6.542E+06
25.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  6.639E+06
25.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  6.649E+06
24.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  6.830E+06
24.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  6.912E+06
23.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  7.035E+06
23.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  7.185E+06
22.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  7.414E+06
22.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  7.434E+06
21.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  7.725E+06
21.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  7.945E+06
20.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  7.846E+06
20.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  7.833E+06
19.8 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  7.917E+06
19.6 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.027E+06
19.4 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.222E+06
19.2 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.174E+06
19.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.294E+06
18.9 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.191E+06
18.8 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.238E+06
18.7 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.399E+06
18.6 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.459E+06
18.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.362E+06
18.4 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.390E+06
18.3 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.622E+06
18.2 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.489E+06
18.1 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.556E+06
18.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.569E+06
17.9 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.624E+06
17.8 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.804E+06
17.7 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.708E+06
17.6 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.873E+06
17.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.860E+06
17.4 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.894E+06
17.3 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  8.935E+06
17.2 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  9.011E+06
17.1 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  9.240E+06
17.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  9.308E+06
16.8 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  9.370E+06
16.6 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  9.517E+06
16.4 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  9.629E+06
16.2 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  9.764E+06
16.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  9.919E+06
15.8 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.000E+07 with lifetime:  1.005E+07
15.6 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.043E+07
15.4 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.052E+07
15.2 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.053E+07
15.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.077E+07
14.8 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.091E+07
14.6 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.109E+07
14.4 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.132E+07
14.2 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.155E+07
14.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.177E+07
13.8 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.199E+07
13.6 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.226E+07
13.4 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.252E+07
13.2 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.280E+07 with lifetime:  1.274E+07
13.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.303E+07
12.8 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.331E+07
12.6 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.405E+07
12.4 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.400E+07
12.2 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.415E+07
12.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.430E+07
11.9 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.461E+07
11.8 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.466E+07
11.7 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.486E+07
11.6 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.551E+07
11.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.533E+07
11.4 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.549E+07
11.3 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.601E+07
11.2 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.591E+07
11.1 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.614E+07
11.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  1.640E+07 with lifetime:  1.636E+07
10.9 Wind (if massive +SN2): of Z= 0.000000E+00  at time  2.100E+07 with lifetime:  1.658E+07
10.8 Wind (if massive +SN2): of Z= 0.000000E+00  at time  2.100E+07 with lifetime:  1.683E+07
10.7 Wind (if massive +SN2): of Z= 0.000000E+00  at time  2.100E+07 with lifetime:  1.718E+07
10.6 Wind (if massive +SN2): of Z= 0.000000E+00  at time  2.100E+07 with lifetime:  1.774E+07
10.5 Wind (if massive +SN2): of Z= 0.000000E+00  at time  2.100E+07 with lifetime:  1.754E+07
10.4 Wind (if massive +SN2): of Z= 0.000000E+00  at time  2.100E+07 with lifetime:  1.785E+07
10.2 Wind (if massive +SN2): of Z= 0.000000E+00  at time  2.100E+07 with lifetime:  1.812E+07
10.0 Wind (if massive +SN2): of Z= 0.000000E+00  at time  2.100E+07 with lifetime:  1.839E+07
time and metallicity and total mass:
1.640E+07 0.0000E+00 1.4519E+08
time and metallicity and total mass:
1.640E+07 0.0000E+00 1.4519E+08
time and metallicity and total mass:
3.443E+07 0.0000E+00 2.4210E+08
time and metallicity and total mass:
3.443E+07 0.0000E+00 2.4210E+08
time and metallicity and total mass:
7.228E+07 0.0000E+00 2.4210E+08
time and metallicity and total mass:
7.228E+07 0.0000E+00 2.4210E+08
time and metallicity and total mass:
1.518E+08 0.0000E+00 2.4210E+08
time and metallicity and total mass:
1.518E+08 0.0000E+00 2.4210E+08
time and metallicity and total mass:
3.186E+08 0.0000E+00 2.4210E+08
time and metallicity and total mass:
3.186E+08 0.0000E+00 2.4210E+08
time and metallicity and total mass:
6.690E+08 0.0000E+00 2.4210E+08
time and metallicity and total mass:
6.690E+08 0.0000E+00 2.4210E+08
time and metallicity and total mass:
1.405E+09 0.0000E+00 2.4210E+08
time and metallicity and total mass:
1.405E+09 0.0000E+00 2.4210E+08
time and metallicity and total mass:
2.949E+09 0.0000E+00 2.4210E+08
time and metallicity and total mass:
2.949E+09 0.0000E+00 2.4210E+08
time and metallicity and total mass:
6.192E+09 0.0000E+00 2.4210E+08
time and metallicity and total mass:
6.192E+09 0.0000E+00 2.4210E+08
time and metallicity and total mass:
1.300E+10 0.0000E+00 2.4210E+08
time and metallicity and total mass:
1.300E+10 0.0000E+00 2.4210E+08
   SYGMA run completed - Run time: 1.6s

The code should ignore s1.imf_bdys and use s1.imf_bdys_pop3


In [76]:
print s1.imf_bdys,s1.imf_bdys_pop3,s1.imf_yields_range_pop3


[0.1, 100] [5, 100] [10, 30]

In [77]:
print Yield_tot_sim
print Yield_tot
print 'Sould be 1:' ,Yield_tot_sim/Yield_tot


242096720.425
242096720.425
Sould be 1: 1.0

Test of parameter imf_type: Selection of alphaimf

alphaimf


In [78]:
alphaimf = 1.5 #Set test alphaimf

In [79]:
k_N=1e11*(alphaimf-2)/ (-10**-(alphaimf-2) + 30**-(alphaimf-2))
N_tot=k_N/(alphaimf-1) * (-10**-(alphaimf-1) + 30**-(alphaimf-1))
Yield_tot=0.1*N_tot

In [80]:
s1=s.sygma(iolevel=0,mgal=1e11,dt=1e7,tend=1.3e10,imf_type='alphaimf',alphaimf=1.5,imf_bdys_pop3=[10,30],pop3_table='yield_tables/popIII_h1.txt',table='yield_tables/isotope_yield_table_h1.txt',sn1a_on=False, sn1a_table='yield_tables/sn1a_h1.txt', iniabu_table='yield_tables/iniabu/iniab1.0E-04GN93_alpha_h1.ppn')
Yield_tot_sim=s1.history.ism_iso_yield[-1][0]


SYGMA run in progress..
   SYGMA run completed - Run time: 1.69s

In [81]:
print 'Should be 1 :',Yield_tot/Yield_tot_sim


Should be 1 : 1.0

Testing other IMF type does not make sense since range only considers massive stars

Test of parameter sn1a_on: on/off mechanism : There should be no SNIa contribution


In [82]:
reload(s)
s1=s.sygma(iolevel=0,mgal=1e11,dt=1e7,tend=1.3e10,imf_type='alphaimf',imf_bdys_pop3=[10,30],pop3_table='yield_tables/popIII_h1.txt',table='yield_tables/isotope_yield_table_h1.txt',sn1a_on=False, sn1a_table='yield_tables/sn1a_h1.txt', iniabu_table='yield_tables/iniabu/iniab1.0E-04GN93_alpha_h1.ppn')
s2=s.sygma(iolevel=0,mgal=1e11,dt=1e7,tend=1.3e10,imf_type='alphaimf',imf_bdys_pop3=[10,30],pop3_table='yield_tables/popIII_h1.txt',table='yield_tables/isotope_yield_table_h1.txt',sn1a_on=True, sn1a_table='yield_tables/sn1a_h1.txt', iniabu_table='yield_tables/iniabu/iniab1.0E-04GN93_alpha_h1.ppn')


SYGMA run in progress..
   SYGMA run completed - Run time: 1.91s
SYGMA run in progress..
   SYGMA run completed - Run time: 1.76s

In [83]:
print 'Should be 0:',(s1.history.ism_elem_yield_1a[0]),(s1.history.ism_elem_yield_1a[-1])
print (s1.history.ism_elem_yield[0]),(s1.history.ism_elem_yield[-1])
print 'Should be 0:',(s2.history.ism_elem_yield_1a[0]),(s2.history.ism_elem_yield_1a[-1])
print (s2.history.ism_elem_yield[0]),(s2.history.ism_elem_yield[-1])
print (s1.history.ism_elem_yield[-1][0] + s2.history.ism_elem_yield_1a[-1][0])/s2.history.ism_elem_yield[-1][0]
#s2.plot_mass(specie='H-1',source='sn1a') #plot s1 data  (without sn) cannot be plotted -> error, maybe change plot function?


Should be 0: [0] [0.0]
[100000000000.0] [627865031.17904055]
Should be 0: [0] [0.0]
[100000000000.0] [627865031.17904055]
1.0

with net yields netyields_on = True


In [84]:
s0=s.sygma(iolevel=0,imf_bdys=[0.01,100],imf_yields_range=[0.02,99],imf_type='chabrier',transitionmass=6,sfr='input',iniZ=0.0,\
        dt=1e7,tend=1.3e10, mgal=1e1,sn1a_on=True,sn1a_rate='exp',exp_dtd=2e9,exclude_masses=[100,6,7],netyields_on=True,pop3_table='yield_tables/popIII_h1.txt')


Warning: Non-default transitionmass chosen. Use in agreement with yield input!
Error - net yields setting not usable with PopIII at the moment.

End of test suite (for now)

Test parameter imf_yields_range : Change range of contributing yields: Not yet included!

yield range [20,30]


In [94]:
s1=s.sygma(iolevel=1,mgal=1e11,dt=1e7,tend=1.3e10,imf_type='salpeter',imf_bdys_pop3=[10,30],imf_yields_range_pop3=[20,30],iniZ=-1,pop3_table='yield_tables/popIII_h1.txt',table='yield_tables/isotope_yield_table_h1.txt',sn1a_on=False, sn1a_table='yield_tables/sn1a_h1.txt', iniabu_table='yield_tables/iniabu/iniab1.0E-04GN93_alpha_h1.ppn')
#Yield_tot_sim=s1.history.ism_iso_yield[-1][0]


################    Start SYGMA simulation   ##############
Stop: Setting of imf_yields_range_pop3 feature not included  yet

In [330]:
k_N=1e11*0.35/ (10**-0.35 - 30**-0.35)
N_tot=k_N/1.35 * (20**-1.35 - 30**-1.35)
Yield_tot=0.1*N_tot

In [331]:
s1.imf_bdys,s1.imf_bdys_pop3,s1.imf_yields_range_pop3


Out[331]:
([10, 30], [10, 30], [20, 30])

In [332]:
print 'Sould be 1:' ,Yield_tot_sim/Yield_tot


Sould be 1: 1.0

In [ ]:
yield range [20,30]