mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
[samples] Add plt.show() to Python samples
This commit is contained in:
parent
1d86759140
commit
c7910524da
@ -131,7 +131,7 @@ class SolidProperties:
|
||||
def effectiveConductivitySiC(Ts): # for silicon carbide
|
||||
return (1 - 0.84) * 1857.0 * Ts**(-0.5332)
|
||||
|
||||
# YZA: Thermal conductivity of zirconia–alumina composites, N.P. Bansal, D. Zhu,
|
||||
# YZA: Thermal conductivity of zirconia–alumina composites, N.P. Bansal, D. Zhu,
|
||||
# Ceramics International, 31(7), pp 911-916 (2015)
|
||||
def effectiveConductivityYZA(Ts): # for yittria-stabilized zirconia alumina
|
||||
return 0.3
|
||||
@ -409,3 +409,4 @@ plt.legend()
|
||||
plt.xlabel("x (m)")
|
||||
plt.ylabel("T (K)")
|
||||
plt.savefig("T.png")
|
||||
plt.show()
|
||||
|
@ -162,6 +162,7 @@ plt.figure()
|
||||
plt.semilogx(time_history.t, time_history("CO").X, "-o")
|
||||
plt.xlabel("Time (s)")
|
||||
plt.ylabel("Mole Fraction : $X_{CO}$")
|
||||
plt.show()
|
||||
|
||||
# %%
|
||||
# Illustration : Modeling experimental data
|
||||
@ -288,6 +289,7 @@ plt.ylabel(r"Mole Fractions")
|
||||
|
||||
plt.xlim([650, 1100])
|
||||
plt.legend(loc=1)
|
||||
plt.show()
|
||||
|
||||
# %%
|
||||
# References
|
||||
|
Loading…
Reference in New Issue
Block a user