Skip to content

Commit

Permalink
[samples] Add plt.show() to Python samples
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl committed Feb 4, 2025
1 parent cf5a6df commit 55ee0f9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion samples/python/reactors/PorousMediaBurner.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def __init__(
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
Expand Down Expand Up @@ -409,3 +409,4 @@ def before_component_name(self, i):
plt.xlabel("x (m)")
plt.ylabel("T (K)")
plt.savefig("T.png")
plt.show()
2 changes: 2 additions & 0 deletions samples/python/reactors/continuous_reactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@
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
Expand Down Expand Up @@ -288,6 +289,7 @@

plt.xlim([650, 1100])
plt.legend(loc=1)
plt.show()

# %%
# References
Expand Down

0 comments on commit 55ee0f9

Please sign in to comment.