[samples] Add plt.show() to Python samples

This commit is contained in:
Ingmar Schoegl 2024-08-23 12:56:07 -05:00
parent 1d86759140
commit c7910524da
2 changed files with 4 additions and 1 deletions

View File

@ -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 zirconiaalumina composites, N.P. Bansal, D. Zhu,
# YZA: Thermal conductivity of zirconiaalumina 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()

View File

@ -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