Files

76 KiB

In [6]:
import numpy as np
import matplotlib.pyplot as plt
from astropy import constants as const
from astropy import units as u
In [7]:
# Ternary recombination
Te = 80 #K
Te_eV = Te*8.61732814974056E-05 # eV

#from Matveyev 1995
def k3(T_eV):
    return 8.75E-27/(T_eV**(4.5)) * u.cm**6/u.s

def mfp(Te_eV, n):
    v = np.sqrt(2*Te_eV/511E3)*const.c # m/s
    k = k3(Te_eV) # cm^6/s
    print("k3: " + str(k))
    return (v/(k*n**2)).to(u.m)

print(mfp(Te_eV, 1E15/(u.m**3)))
k3: 4.665801632759307e-17 cm6 / s
1055.432076587134 m
In [140]:
# H5 creation and fragmentation rate
T = 100
nT2 = 3.7E13
kbT = 8.61732814974056E-05*T

k_35 = 6.08E-24*T**(-2.3) # cm^6/s from Miderski 1988

k_75 = 9.7E-8*np.exp(-1248/T) # cm^3/s

DH = np.array([9.6, 4.1, 3.8, 2.4]) # kcal/mole
#DH = np.array([6.6, 3.1])
DS = np.array([24.6, 19.8, 20.2, 19.3]) # cal/deg
#DS = np.array([14.5, 19.9])





DG = DH - T*DS*1E-3 # kcal/mole

DG_eV = DG*2.611E22/mol # eV

K_eV = np.exp(DG_eV/kbT)

K = np.exp(DG*4184/(R*T))

k_53 = k_35/K[0]*nT2
k_57 = k_75*K[1]/nT2

print(DG_eV)
print(K_eV)

#print(k_35)
#print(k_53)
#print(k_57)
#print(k_75)
[ 0.22719429  0.07327449  0.05853288  0.00086715 -0.00390219 -0.01907738
 -0.01647592 -0.03121754 -0.05332996 -0.06070076]
[2.81899911e+11 4.93030891e+03 8.91105326e+02 1.10586637e+00
 6.35825679e-01 1.09280242e-01 1.47791550e-01 2.67118835e-02
 2.05251753e-03 8.72598233e-04]
In [170]:
T = 80
nT2 = 3.7E13
kbT = 8.61732814974056E-05*T
mol = 6.022E23

DH = np.array([7.12, 3.48, 3.35, 1.84, 1.82, 1.74, 0.90, 0.81, 0.71, 0.6])
DH_err = np.array([0.3, 0.2, 0.2, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.])

DS = np.array([18.8, 17.9, 20.0, 18.2, 19.1, 21.8, 12.8, 15.3, 19.4, 20])
DS_err = np.array([2, 1, 1, 1, 1, 1, 1, 1, 1, 0])

DG = DH - T*DS*1E-3 # kcal/mole
DG_err = DH_err - T*DS_err*1E-3


DG_eV = DG*2.611E22/mol # eV
DG_err_eV = DG_err*2.611E22/mol # eV


K_eV = np.exp(DG_eV/kbT)

K_err = (DG_err_eV/kbT)*K_eV

print(K_eV)
print(K_err)
#print(DG_eV)
index = np.arange(0,K_eV.size,1)*2 + 3
plt.errorbar(index, K_eV, yerr=K_err, linestyle=':')
plt.yscale("log")
plt.hlines(1, 2.5, 20)
plt.grid()
plt.xticks(index)
Out [170]:
[2.18590360e+15 3.92590252e+05 6.02528522e+04 1.11908650e+01
 6.27441741e+00 9.75156538e-01 4.58463160e-01 7.39935507e-02
 5.01357961e-03 1.85602671e-03]
[1.92469777e+15 2.96294957e+05 4.54739164e+04 1.40765801e+00
 7.89236033e-01 1.22661377e-01 5.76684052e-02 9.30737830e-03
 6.30639855e-04 0.00000000e+00]
([<matplotlib.axis.XTick at 0x7f50630913d0>,
  <matplotlib.axis.XTick at 0x7f5063091610>,
  <matplotlib.axis.XTick at 0x7f5062ff0a00>,
  <matplotlib.axis.XTick at 0x7f50604d9040>,
  <matplotlib.axis.XTick at 0x7f5062a2fb50>,
  <matplotlib.axis.XTick at 0x7f5062a2f9d0>,
  <matplotlib.axis.XTick at 0x7f5062a2fa60>,
  <matplotlib.axis.XTick at 0x7f506319e550>,
  <matplotlib.axis.XTick at 0x7f506319ea90>,
  <matplotlib.axis.XTick at 0x7f5062a2f2b0>],
 [Text(0, 0, ''),
  Text(0, 0, ''),
  Text(0, 0, ''),
  Text(0, 0, ''),
  Text(0, 0, ''),
  Text(0, 0, ''),
  Text(0, 0, ''),
  Text(0, 0, ''),
  Text(0, 0, ''),
  Text(0, 0, '')])
In [174]:
T = 80
nT2 = 3.7E13
kbT = 8.61732814974056E-05*T
mol = 6.022E23

DH = np.array([6.9, 3.3, 3.2, 1.72, 1.64, 1.54, 0.88, 0.8, 0.61])
DH_err = np.array([0.3, 0.2, 0.2, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1])
DS = np.array([17.4, 17.4, 18.5, 17.9, 18.9, 20.0, 16.5, 17.9, 19.1])
DS_err = np.array([2, 1, 1,1,1,1,1,1,1])
DG = DH - T*DS*1E-3 # kcal/mole

DG = DH - T*DS*1E-3 # kcal/mole
DG_err = DH_err - T*DS_err*1E-3


DG_eV = DG*2.611E22/mol # eV
DG_err_eV = DG_err*2.611E22/mol # eV


K_eV = np.exp(DG_eV/kbT)

K_err = (DG_err_eV/kbT)*K_eV

print(K_eV)
print(K_err)
index = np.arange(0,K_eV.size,1)*2 + 3
plt.errorbar(index, K_eV, yerr=K_err, linestyle=':')
plt.yscale("log")
plt.hlines(1, 2.5, 20)
plt.grid()
plt.xticks(index)
Out [174]:
[1.10825092e+15 1.62757610e+05 4.98924852e+04 6.11853916e+00
 2.23676943e+00 6.85669850e-01 6.28314465e-02 1.87821467e-02
 3.10856760e-03]
[9.75819830e+14 1.22836109e+05 3.76547601e+04 7.69628678e-01
 2.81355052e-01 8.62479043e-02 7.90333801e-03 2.36253759e-03
 3.91015357e-04]
([<matplotlib.axis.XTick at 0x7f5062fe0160>,
  <matplotlib.axis.XTick at 0x7f5062fe0040>,
  <matplotlib.axis.XTick at 0x7f5060671610>,
  <matplotlib.axis.XTick at 0x7f5060459d00>,
  <matplotlib.axis.XTick at 0x7f5060674760>,
  <matplotlib.axis.XTick at 0x7f50606744f0>,
  <matplotlib.axis.XTick at 0x7f5060674af0>,
  <matplotlib.axis.XTick at 0x7f50604e39a0>,
  <matplotlib.axis.XTick at 0x7f50604e3610>],
 [Text(0, 0, ''),
  Text(0, 0, ''),
  Text(0, 0, ''),
  Text(0, 0, ''),
  Text(0, 0, ''),
  Text(0, 0, ''),
  Text(0, 0, ''),
  Text(0, 0, ''),
  Text(0, 0, '')])
In [ ]: