Computations¶
Thermal field¶
Surface heat flow¶
pyGMS can compute and plot the surface heat flow using
compute_surface_heat_flow()
and
plot_surface_heat_flow()
. When calling the plot
method, pyGMS will automatically compute the heat flow if it has not been
computed beforehand:
In [1]: from pyGMS import GMS
...: import matplotlib.pyplot as pl
...: from matplotlib import tri
...: model = GMS('../../examples/model.fem')
...: model.layer_add_var('T')
...:
Loading ../../examples/model.fem
Done!
Triangulating layers
Done!
In [2]: fig, ax = plt.subplots()
...: ax.set_aspect('equal')
...: cm = model.plot_surface_heat_flow(ax=ax, levels=np.linspace(0, 80, 9))
...: fig.colorbar(cm, ax=ax, label='Surface heat flow / mW/m2');
...: