In [5]:
import ongp
reload(ongp)
evol_params = {
'hhe_eos_option':'scvh',
'z_eos_option':'reos water',
'atm_option':'f11_tables jup',
'path_to_data':'/Users/chris/Dropbox/planet_models/ongp/data'
}
e = ongp.evol(evol_params)
static_params = {
'mtot':'jup',
't1':165.,
'z1':0.07,
'z2':0.1,
'y1':0.265,
'y2':0.280,
'transition_pressure':3.35,
'mcore':3.25
}
print(static_params)
e.static(static_params)
Out[5]:
In [ ]:
evolve_params = {
'mtot':'jup',
'start_t':2e3,
'end_t':160.,
'which_t':'t1',
'y1':0.265,
'y2':0.280,
'z1':0.07,
'z2':0.1,
'mcore':3.25,
'transition_pressure':3.35,
'stdout_interval':5
}
e.evolve(evolve_params)
In [ ]:
plt.plot(e.history['age'], e.history['t1'])
plt.hlines(165, 0, 5, linestyle=':', color='grey', lw=1)
plt.ylim(150, 300)
plt.legend()
plt.xlabel(r'Age (Gyr)')
plt.ylabel(r'$T_{1}\ (\rm K)$')