def paneltoenergy():
panellength=length.get()
panelwidth=width.get()
#Total energy from sun is 1850 watts per square meter
size = panellength*panelwidth
raw_energy = size*1850
#assuming that half of the energy is lost into the atmosphere
energy_output = raw_energy/2
#calorimitry begins here
Q = energy_output
m = Q/(4.184*80)
tkMessageBox.showinfo("Results", "You can boil " + str(m) +" Litres of room temperature water.")
评论列表
文章目录