Skip to content

Commit b28241a

Browse files
committed
update CHRU2014 scripts
1 parent 2ed2e07 commit b28241a

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

contrib/CHRU2014/helper_solid_solution.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ class HelperSolidSolution(burnman.Mineral):
1717
solution between two or more end member minerals. It is not
1818
completely clear how to do this, or how valid this approximation
1919
is, but here we just do a weighted arithmetic average of the
20-
thermoelastic properties of the end members according to their molar fractions
20+
thermoelastic properties of the end members according to their molar
21+
fractions.
2122
"""
2223

2324
def __init__(self, endmembers, molar_fractions):
@@ -127,7 +128,7 @@ def __init__(self, fe_num):
127128

128129
class other_ferropericlase(HelperSolidSolution):
129130
def __init__(self, fe_num):
130-
endmembers = [minerals.other.periclase(), minerals.other.wuestite()]
131+
endmembers = [minerals.SLB_2011.periclase(), minerals.SLB_2011.wuestite()]
131132
molar_fractions = [1.0 - fe_num, 0.0 + fe_num]
132133
# keep the 0.0 +, otherwise it is an array sometimes
133134
HelperSolidSolution.__init__(self, endmembers, molar_fractions)
@@ -139,7 +140,10 @@ def __init__(self, fe_num):
139140

140141
class other_mg_fe_perovskite(HelperSolidSolution):
141142
def __init__(self, fe_num):
142-
endmembers = [minerals.other.mg_perovskite(), minerals.other.fe_perovskite()]
143+
endmembers = [
144+
minerals.SLB_2011.mg_perovskite(),
145+
minerals.SLB_2011.fe_perovskite(),
146+
]
143147
molar_fractions = [
144148
1.0 - fe_num,
145149
0.0 + fe_num,

contrib/CHRU2014/paper_benchmark.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -53,34 +53,24 @@ def check_slb_fig7_txt():
5353
temperature = np.array(data[:, 2])
5454
pressure = np.array(data[:, 0])
5555
rho = np.array(data[:, 3])
56-
frho = np.empty_like(rho)
5756
rho_comp = np.empty_like(rho)
5857
Kt = np.array(data[:, 4])
59-
fKt = np.empty_like(Kt)
6058
Kt_comp = np.empty_like(Kt)
6159
Ks = np.array(data[:, 5])
62-
fKs = np.empty_like(Ks)
6360
Ks_comp = np.empty_like(Ks)
6461
G = np.array(data[:, 6])
65-
fG = np.empty_like(G)
6662
G_comp = np.empty_like(G)
6763
VB = np.array(data[:, 7])
68-
fVB = np.empty_like(VB)
6964
VB_comp = np.empty_like(VB)
7065
VS = np.array(data[:, 8])
71-
fVS = np.empty_like(VS)
7266
VS_comp = np.empty_like(VS)
7367
VP = np.array(data[:, 9])
74-
fVP = np.empty_like(VP)
7568
VP_comp = np.empty_like(VP)
7669
vol = np.array(data[:, 10])
77-
fvol = np.empty_like(vol)
7870
vol_comp = np.empty_like(vol)
7971
alpha = np.array(data[:, 11])
80-
falpha = np.empty_like(alpha)
8172
alpha_comp = np.empty_like(alpha)
8273
Cp = np.array(data[:, 12])
83-
fCp = np.empty_like(Cp)
8474
Cp_comp = np.empty_like(Cp)
8575
gr = np.array(data[:, 13])
8676
gr_comp = np.empty_like(gr)

0 commit comments

Comments
 (0)