-
Notifications
You must be signed in to change notification settings - Fork 7
/
PerplexSolutionModelComparison.jl
369 lines (299 loc) · 19.2 KB
/
PerplexSolutionModelComparison.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
################################################################################
# Use the Julia-PerpleX interface to run the same isobaric Perplex calculation
# with different solution models to compare results
## --- Import some useful packages
using StatGeochem
using Plots
## --- Configure
# Absolute paths to perplex resources
perplexdir = joinpath(resourcepath,"perplex-stable")
scratchdir = "./scratch/" # Location of directory to store output files
# Attempt to install perplex, if not already extant
if !isfile(joinpath(perplexdir,"vertex"))
# Make sure resourcepath exists
run(`mkdir -p $resourcepath`)
# Download Perplex v6.8.7 -- known to work with interface used here
file = download("https://storage.googleapis.com/statgeochem/perplex-stable-6.8.7.zip", joinpath(resourcepath,"perplex-stable.zip"))
# # For a more updated perplex version, also try
# file = download("https://petrol.natur.cuni.cz/~ondro/perplex-sources-stable.zip", joinpath(resourcepath,"perplex-stable.zip"))
run(`unzip -u $file -d $resourcepath`) # Extract
system("cd $perplexdir; make") # Compile
end
## --- # # # # # # # # # # # # # Initial composition # # # # # # # # # # # # # #
## McDonough Pyrolite
#elements = [ "SIO2", "TIO2", "AL2O3", "FEO", "MNO", "MGO", "CAO", "NA2O", "K2O", "H2O", "CO2",]
#composition = [45.1242, 0.2005, 4.4623, 8.0723, 0.1354, 37.9043, 3.5598, 0.3610, 0.0291, 0.1511, 0.0440,]
## Kelemen (2014) primitive continental basalt. H2O and CO2 are guesses
#elements = [ "SIO2", "TIO2", "AL2O3", "FEO", "MNO", "MGO", "CAO", "NA2O", "K2O", "H2O", "CO2",]
#composition = [50.0956, 0.9564, 15.3224, 8.5103, 0.1659, 9.2520, 9.6912, 2.5472, 0.8588, 2.0000, 0.6000,]
# Kelemen (2014) primitive continental basalt excluding Mn and Ti since most melt models can"t handle them..
elements = [ "SIO2", "AL2O3", "FEO", "MGO", "CAO", "NA2O", "K2O", "H2O", "CO2",]
composition = [50.0956, 15.3224, 8.5103, 9.2520, 9.6912, 2.5472, 0.8588, 2.0000, 0.6000,]
## Average Archean basalt (EarthChem data)
#elements = [ "SIO2", "TIO2", "AL2O3", "FEO", "MNO", "MGO", "CAO", "NA2O", "K2O", "H2O", "CO2",]
#composition = [49.2054, 0.8401, 12.0551, 11.4018, 0.2198, 12.3997, 9.3113, 1.6549, 0.4630, 1.8935, 0.5555,]
## --- # # # # # # # # # # # Some solution model options # # # # # # # # # # # #
# Emphasis on phases from Green (2016) -- developed for metabasites, includes what is probably the best (and most expensive) amphibole model. Use with hp11ver.dat
G_solution_phases = "Augite(G)\nOpx(JH)\ncAmph(G)\noAmph(DP)\nO(JH)\nSp(JH)\nGrt(JH)\nfeldspar_B\nMica(W)\nBio(TCC)\nChl(W)\nCtd(W)\nCrd(W)\nSa(WP)\nSt(W)\nIlm(WPH)\nAtg(PN)\nT\nB\nF\nDo(HP)\nScap\nChum\nNeph(FB)\n"
G_excludes ="ged\nfanth\ngl\n"
# Emphasis on phases from White (2014) -- developed for metapelites. Use with hp11ver.dat
W_solution_phases = "Omph(HP)\nOpx(W)\ncAmph(DP)\noAmph(DP)\nO(JH)\nSp(JH)\nGt(W)\nfeldspar_B\nMica(W)\nBi(W)\nChl(W)\nCtd(W)\nCrd(W)\nSa(WP)\nSt(W) \nIlm(WPH)\nAtg(PN)\nT\nB\nF\nDo(HP)\nScap\nChum\nPu(M)\n"
W_excludes = "andr\nts\nparg\ngl\nged\nfanth\n"
# Emphasis on phases from Jennings and Holland (2015) -- developed for mantle melting. Use with hp11ver.dat
JH_solution_phases = "Cpx(JH)\nOpx(JH)\ncAmph(DP)\noAmph(DP)\nO(JH)\nSp(JH)\nGrt(JH)\nfeldspar_B\nMica(W)\nBio(TCC)\nChl(W)\nCtd(W)\nCrd(W)\nSa(WP)\nSt(W)\nIlm(WPH)\nAtg(PN)\nT\nB\nF\nDo(HP)\nScap\nChum\nNeph(FB)\n"
JH_excludes = "ts\nparg\ngl\nged\nfanth\n"
# Emphasis on phases from Holland and Powell -- all phases can be used with hp02ver.dat.
HP_solution_phases = "Omph(HP)\nOpx(HP)\nGlTrTsPg\nAnth\nO(HP)\nSp(HP)\nGt(HP)\nfeldspar_B\nMica(CF)\nBio(TCC)\nChl(HP)\nCtd(HP)\nSapp(HP)\nSt(HP)\nIlHm(A)\nDo(HP)\nT\nB\nF\n"
HP_excludes = "";
## --- Prepare for plotting
h0 = plot(xlabel="T (C)", ylabel="Melt percent")
## --- # # # # # # # # # # melt(G) + G_solution_phases # # # # # # # # # # # # #
# Input parameters
P = 10000 # bar
T_range = (500+273.15, 1500+273.15)
idx = 1
print("\nmelt(G) + G_solution_phases\n")
@time perplex_configure_isobar(perplexdir, scratchdir, composition, elements, P, T_range, dataset="hp11ver.dat", solution_phases="melt(G)\n"*G_solution_phases, excludes=G_excludes, index=idx)
# Query the full isobar -- results returned as elementified dictionary
T_range_inc = (floor(Int,first(T_range))+1, ceil(Int,last(T_range))-1)
npoints = last(T_range_inc) - first(T_range_inc) + 1
bulk = perplex_query_system(perplexdir, scratchdir, index=idx) # Get system data for all temperatures. Set include_fluid = "n" to get solid+melt only
modes = perplex_query_modes(perplexdir, scratchdir, index=idx) # || phase modes
melt = perplex_query_phase(perplexdir, scratchdir, "melt(G)", index=idx) # || melt data
# Create dictionary to hold solid composition and fill it using what we know from system and melt
solid = Dict()
solid["wt_pct"] = 100 .- melt["wt_pct"]
for e in ["SIO2","AL2O3","FEO","MGO","CAO","NA2O","K2O"]
solid[e] = (bulk[e] .- (melt[e] .* melt["wt_pct"]/100)) ./ (solid["wt_pct"]/100)
end
# Add results to melt % vs temperature figure
plot!(h0, melt["T(K)"] .- 273.15, melt["wt_pct"], label="melt(G) + G")
# Plot melt composition as a function of melt percent
h = plot(xlabel="Percent melt", ylabel="Wt. % in melt", title="melt(G) + G_solution_phases, $P bar")
for e in ["SIO2","AL2O3","FEO","MGO","CAO","NA2O","K2O"]
plot!(h, melt["wt_pct"], melt[e], label=e)
end
plot!(h,fg_color_legend=:white, framestyle=:box)
savefig(h,"Perplex_MeltTest_G.pdf")
# Plot solid composition as a function of melt percent
h = plot(xlabel="Percent melt", ylabel="Wt. % in solid", title="melt(G) + G_solution_phases, $P bar")
for e in ["SIO2","AL2O3","FEO","MGO","CAO","NA2O","K2O"]
plot!(h, melt["wt_pct"], solid[e], label=e)
end
plot!(h,fg_color_legend=:white, framestyle=:box, legend=:topleft)
savefig(h,"Perplex_SolidTest_G.pdf")
## --- # # # # # # # # # # melt(G) + W_solution_phases # # # # # # # # # # # # #
# Input parameters
P = 10000 # bar
T_range = (500+273.15, 1500+273.15)
idx = 2
print("\nmelt(G) + W_solution_phases\n")
@time perplex_configure_isobar(perplexdir, scratchdir, composition, elements, P, T_range, dataset="hp11ver.dat", solution_phases="melt(G)\n"*W_solution_phases, excludes=W_excludes, index=idx)
# Query the full isobar -- results returned as elementified dictionary
T_range_inc = (floor(Int,first(T_range))+1, ceil(Int,last(T_range))-1)
npoints = last(T_range_inc) - first(T_range_inc) + 1
bulk = perplex_query_system(perplexdir, scratchdir, index=idx) # Get system data for all temperatures. Set include_fluid = "n" to get solid+melt only
modes = perplex_query_system(perplexdir, scratchdir, index=idx) # || phase modes
melt = perplex_query_phase(perplexdir, scratchdir, "melt(G)", index=idx) # || melt data
# Create dictionary to hold solid composition and fill it using what we know from system and melt
solid = Dict()
solid["wt_pct"] = 100 .- melt["wt_pct"]
for e in ["SIO2","AL2O3","FEO","MGO","CAO","NA2O","K2O"]
solid[e] = (bulk[e] - (melt[e] .* melt["wt_pct"]/100)) ./ (solid["wt_pct"]/100)
end
# Add results to melt % vs temperature figure
plot!(h0, melt["T(K)"] .- 273.15, melt["wt_pct"], label="melt(G) + W")
# Plot melt composition as a function of melt percent
h = plot(xlabel="Percent melt", ylabel="Wt. % in melt", title="melt(G) + W_solution_phases, $P bar")
for e in ["SIO2","AL2O3","FEO","MGO","CAO","NA2O","K2O"]
plot!(h, melt["wt_pct"], melt[e], label=e)
end
plot!(h,fg_color_legend=:white, framestyle=:box)
savefig(h,"Perplex_MeltTest_G_W.pdf")
# Plot solid composition as a function of melt percent
h = plot(xlabel="Percent melt", ylabel="Wt. % in solid", title="melt(G) + W_solution_phases, $P bar")
for e in ["SIO2","AL2O3","FEO","MGO","CAO","NA2O","K2O"]
plot!(h, melt["wt_pct"], solid[e], label=e)
end
plot!(h,fg_color_legend=:white, framestyle=:box, legend=:topleft)
savefig(h,"Perplex_SolidTest_G_W.pdf")
## --- # # # # # # # # # # melt(G) +JH_solution_phases # # # # # # # # # # # # #
# Input parameters
P = 10000 # bar
T_range = (500+273.15, 1500+273.15)
idx = 3
print("\nmelt(G) + JH_solution_phases\n")
@time perplex_configure_isobar(perplexdir, scratchdir, composition, elements, P, T_range, dataset="hp11ver.dat", solution_phases="melt(G)\n"*JH_solution_phases, excludes=JH_excludes, index=idx)
# Query the full isobar -- results returned as elementified dictionary
T_range_inc = (floor(Int,first(T_range))+1, ceil(Int,last(T_range))-1)
npoints = last(T_range_inc) - first(T_range_inc) + 1
bulk = perplex_query_system(perplexdir, scratchdir, index=idx) # Get system data for all temperatures. Set include_fluid = "n" to get solid+melt only
modes = perplex_query_modes(perplexdir, scratchdir, index=idx) # || phase modes
melt = perplex_query_phase(perplexdir, scratchdir, "melt(G)", index=idx) # || melt data
# Create dictionary to hold solid composition and fill it using what we know from system and melt
solid = Dict()
solid["wt_pct"] = 100 .- melt["wt_pct"]
for e in ["SIO2","AL2O3","FEO","MGO","CAO","NA2O","K2O"]
solid[e] = (bulk[e] - (melt[e] .* melt["wt_pct"]/100)) ./ (solid["wt_pct"]/100)
end
# Add results to melt % vs temperature figure
plot!(h0, melt["T(K)"] .- 273.15, melt["wt_pct"], label="melt(G) + JH")
# Plot melt composition as a function of melt percent
h = plot(xlabel="Percent melt", ylabel="Wt. % in melt", title="melt(G) + JH_solution_phases, $P bar")
for e in ["SIO2","AL2O3","FEO","MGO","CAO","NA2O","K2O"]
plot!(h, melt["wt_pct"], melt[e], label=e)
end
plot!(h,fg_color_legend=:white, framestyle=:box)
savefig(h,"Perplex_MeltTest_G_JH.pdf")
# Plot solid composition as a function of melt percent
h = plot(xlabel="Percent melt", ylabel="Wt. % in solid", title="melt(G) + JH_solution_phases, $P bar")
for e in ["SIO2","AL2O3","FEO","MGO","CAO","NA2O","K2O"]
plot!(h, melt["wt_pct"], solid[e], label=e)
end
plot!(h,fg_color_legend=:white, framestyle=:box, legend=:topleft)
savefig(h,"Perplex_SolidTest_G_JH.pdf")
## --- # # # # # # # # # # pMELTS(G) +HP_solution_phases # # # # # # # # # # # #
# Input parameters
P = 10000 # bar
T_range = (500+273.15, 1500+273.15)
idx = 4
print("\npMELTS(G) + JH_solution_phases\n")
@time perplex_configure_isobar(perplexdir, scratchdir, composition, elements, P, T_range, dataset="hp02ver.dat", solution_phases="pMELTS(G)\n"*JH_solution_phases, excludes=JH_excludes, index=idx)
# Query the full isobar -- results returned as elementified dictionary
T_range_inc = (floor(Int,first(T_range))+1, ceil(Int,last(T_range))-1)
npoints = last(T_range_inc) - first(T_range_inc) + 1
bulk = perplex_query_system(perplexdir, scratchdir, index=idx) # Get system data for all temperatures. Set include_fluid = "n" to get solid+melt only
modes = perplex_query_modes(perplexdir, scratchdir, index=idx) # || phase modes
melt = perplex_query_phase(perplexdir, scratchdir, "pMELTS(G)", index=idx) # || melt data
# Create dictionary to hold solid composition and fill it using what we know from system and melt
solid = Dict()
solid["wt_pct"] = 100 .- melt["wt_pct"]
for e in ["SIO2","AL2O3","FEO","MGO","CAO","NA2O","K2O"]
solid[e] = (bulk[e] - (melt[e] .* melt["wt_pct"]/100)) ./ (solid["wt_pct"]/100)
end
# Add results to melt % vs temperature figure
plot!(h0, melt["T(K)"] .- 273.15, melt["wt_pct"], label="pMELTS(G) + JH")
# Plot melt composition as a function of melt percent
h = plot(xlabel="Percent melt", ylabel="Wt. % in melt", title="pMELTS(G) + JH_solution_phases, $P bar")
for e in ["SIO2","AL2O3","FEO","MGO","CAO","NA2O","K2O"]
plot!(h, melt["wt_pct"], melt[e], label=e)
end
plot!(h,fg_color_legend=:white, framestyle=:box)
savefig(h,"Perplex_MeltTest_pMELTS_JH.pdf")
# Plot solid composition as a function of melt percent
h = plot(xlabel="Percent melt", ylabel="Wt. % in solid", title="pMELTS(G) + JH_solution_phases, $P bar")
for e in ["SIO2","AL2O3","FEO","MGO","CAO","NA2O","K2O"]
plot!(h, melt["wt_pct"], solid[e], label=e)
end
plot!(h,fg_color_legend=:white, framestyle=:box, legend=:topleft)
savefig(h,"Perplex_SolidTest_pMELTS_JH.pdf")
## --- # # # # # # # # # # # melt(W) + W_solution_phases # # # # # # # # # # # #
# Input parameters
P = 10000 # bar
T_range = (500+273.15, 1500+273.15)
idx = 5
print("\nmelt(W) + W_solution_phases\n")
@time perplex_configure_isobar(perplexdir, scratchdir, composition, elements, P, T_range, dataset="hp11ver.dat", solution_phases="melt(W)\n"*W_solution_phases, excludes=W_excludes, index=idx)
# Query the full isobar -- results returned as elementified dictionary
T_range_inc = (floor(Int,first(T_range))+1, ceil(Int,last(T_range))-1)
npoints = last(T_range_inc) - first(T_range_inc) + 1
bulk = perplex_query_system(perplexdir, scratchdir, index=idx) # Get system data for all temperatures. Set include_fluid = "n" to get solid+melt only
modes = perplex_query_modes(perplexdir, scratchdir, index=idx) # || phase modes
melt = perplex_query_phase(perplexdir, scratchdir, "melt(W)", index=idx) # || melt data
# Create dictionary to hold solid composition and fill it using what we know from system and melt
solid = Dict()
solid["wt_pct"] = 100 .- melt["wt_pct"]
for e in ["SIO2","AL2O3","FEO","MGO","CAO","NA2O","K2O"]
solid[e] = (bulk[e] - (melt[e] .* melt["wt_pct"]/100)) ./ (solid["wt_pct"]/100)
end
# Add results to melt % vs temperature figure
plot!(h0, melt["T(K)"] .- 273.15, melt["wt_pct"], label="melt(W) + W")
# Plot melt composition as a function of melt percent
h = plot(xlabel="Percent melt", ylabel="Wt. % in melt", title="melt(W) + W_solution_phases, $P bar")
for e in ["SIO2","AL2O3","FEO","MGO","CAO","NA2O","K2O"]
plot!(h, melt["wt_pct"], melt[e], label=e)
end
plot!(h,fg_color_legend=:white, framestyle=:box)
savefig(h,"Perplex_MeltTest_W.pdf")
# Plot solid composition as a function of melt percent
h = plot(xlabel="Percent melt", ylabel="Wt. % in solid", title="melt(W) + W_solution_phases, $P bar")
for e in ["SIO2","AL2O3","FEO","MGO","CAO","NA2O","K2O"]
plot!(h, melt["wt_pct"], solid[e], label=e)
end
plot!(h,fg_color_legend=:white, framestyle=:box, legend=:topleft)
savefig(h,"Perplex_SolidTest_W.pdf")
## --- # # # # # # # # # # melt(W) + G_solution_phases # # # # # # # # # # # # #
# Input parameters
P = 10000 # bar
T_range = (500+273.15, 1500+273.15)
idx = 6
print("\nmelt(W) + G_solution_phases\n")
@time perplex_configure_isobar(perplexdir, scratchdir, composition, elements, P, T_range, dataset="hp11ver.dat", solution_phases="melt(W)\n"*G_solution_phases, excludes=G_excludes, index=idx)
# Query the full isobar -- results returned as elementified dictionary
T_range_inc = (floor(Int,first(T_range))+1, ceil(Int,last(T_range))-1)
npoints = last(T_range_inc) - first(T_range_inc) + 1
bulk = perplex_query_system(perplexdir, scratchdir, index=idx) # Get system data for all temperatures. Set include_fluid = "n" to get solid+melt only
modes = perplex_query_modes(perplexdir, scratchdir, index=idx) # || phase modes
melt = perplex_query_phase(perplexdir, scratchdir, "melt(W)", index=idx) # || melt data
# Create dictionary to hold solid composition and fill it using what we know from system and melt
solid = Dict()
solid["wt_pct"] = 100 .- melt["wt_pct"]
for e in ["SIO2","AL2O3","FEO","MGO","CAO","NA2O","K2O"]
solid[e] = (bulk[e] - (melt[e] .* melt["wt_pct"]/100)) ./ (solid["wt_pct"]/100)
end
# Add results to melt % vs temperature figure
plot!(h0, melt["T(K)"] .- 273.15, melt["wt_pct"], label="melt(W) + G")
# Plot melt composition as a function of melt percent
h = plot(xlabel="Percent melt", ylabel="Wt. % in melt", title="melt(W) + G_solution_phases, $P bar")
for e in ["SIO2","AL2O3","FEO","MGO","CAO","NA2O","K2O"]
plot!(h, melt["wt_pct"], melt[e], label=e)
end
plot!(h,fg_color_legend=:white, framestyle=:box)
savefig(h,"Perplex_MeltTest_W_G.pdf")
# Plot solid composition as a function of melt percent
h = plot(xlabel="Percent melt", ylabel="Wt. % in solid", title="melt(W) + G_solution_phases, $P bar")
for e in ["SIO2","AL2O3","FEO","MGO","CAO","NA2O","K2O"]
plot!(h, melt["wt_pct"], solid[e], label=e)
end
plot!(h,fg_color_legend=:white, framestyle=:box, legend=:topleft)
savefig(h,"Perplex_SolidTest_W_G.pdf")
## --- # # # # # # # # # # # melt(W) +JH_solution_phases # # # # # # # # # # # #
# Input parameters
P = 10000 # bar
T_range = (500+273.15, 1500+273.15)
idx = 7
print("\nmelt(W) + JH_solution_phases\n")
@time perplex_configure_isobar(perplexdir, scratchdir, composition, elements, P, T_range, dataset="hp11ver.dat", solution_phases="melt(W)\n"*JH_solution_phases, excludes=JH_excludes, index=idx)
# Query the full isobar -- results returned as elementified dictionary
T_range_inc = (floor(Int,first(T_range))+1, ceil(Int,last(T_range))-1)
npoints = last(T_range_inc) - first(T_range_inc) + 1
bulk = perplex_query_system(perplexdir, scratchdir, index=idx) # Get system data for all temperatures. Set include_fluid = "n" to get solid+melt only
modes = perplex_query_modes(perplexdir, scratchdir, index=idx) # || phase modes
melt = perplex_query_phase(perplexdir, scratchdir, "melt(W)", index=idx) # || melt data
# Create dictionary to hold solid composition and fill it using what we know from system and melt
solid = Dict()
solid["wt_pct"] = 100 .- melt["wt_pct"]
for e in ["SIO2","AL2O3","FEO","MGO","CAO","NA2O","K2O"]
solid[e] = (bulk[e] - (melt[e] .* melt["wt_pct"]/100)) ./ (solid["wt_pct"]/100)
end
# Add results to melt % vs temperature figure
plot!(h0, melt["T(K)"] .- 273.15, melt["wt_pct"], label="melt(W) + JH")
# Plot melt composition as a function of melt percent
h = plot(xlabel="Percent melt", ylabel="Wt. % in melt", title="melt(W) + JH_solution_phases, $P bar")
for e in ["SIO2","AL2O3","FEO","MGO","CAO","NA2O","K2O"]
plot!(h, melt["wt_pct"], melt[e], label=e)
end
plot!(h,fg_color_legend=:white, framestyle=:box)
savefig(h,"Perplex_MeltTest_W_JH.pdf")
# Plot solid composition as a function of melt percent
h = plot(xlabel="Percent melt", ylabel="Wt. % in solid", title="melt(W) + JH_solution_phases, $P bar")
for e in ["SIO2","AL2O3","FEO","MGO","CAO","NA2O","K2O"]
plot!(h, melt["wt_pct"], solid[e], label=e)
end
plot!(h,fg_color_legend=:white, framestyle=:box, legend=:topleft)
savefig(h,"Perplex_SolidTest_W_JH.pdf")
## --- Format melt comparison
plot!(h0,fg_color_legend=:white,legend=:topleft)
display(h0)
savefig(h0,"Perplex_T-F_comparison.pdf")
## --- End of File