In this paper, an attempt has been made to
develop a Python module for evaluating energy in transit
(viz., heat and work). The work considered in this article
is non-dissipative displacement work. Functions for
constant pressure, volume, and temperature were
developed, along with adiabatic and polytropic processes.
Also, the sensible and latent heat were also transformed
into functions. The modules NumPy and Matplotlib were
used to perform the stipulated task. The correctness of
codes was checked against four different numerical
problems, and it has been observed that the program
results match exactly with the results in the literature. As
a result, the developed functions thus developed have
shown high accuracy with the least effort and error in all
Energy in Transit; Thermodynamic Processes; Heat; Work; Python Programming; NumPy; Matplotlib.