%matplotlib inline
# %matplotlib notebook # for interactive
For high dpi displays.
%config InlineBackend.figure_format = 'retina'
This example compares pressure calculated from pytheos
and original publication for the gold scale by Tange 2008.
import matplotlib.pyplot as plt
import numpy as np
from uncertainties import unumpy as unp
import pytheos as eos
eta = np.linspace(1., 0.65, 36)
print(eta)
tange_mgo = eos.periclase.Tange2009()
tange_mgo.print_equations()
tange_mgo.print_equations()
tange_mgo.print_parameters()
v0 = 74.698
tange_mgo.three_r
v = v0 * (eta)
temp = 3000.
p = tange_mgo.cal_p(v, temp * np.ones_like(v))
print('for T = ', temp)
for eta_i, p_i in zip(eta, p):
print("{0: .3f} {1: .2f}".format(eta_i, p_i))
Make comparison with the Vinet column in the table.
v = tange_mgo.cal_v(p, temp * np.ones_like(p), min_strain=0.6)
print(1.-(v/v0))