Chapter 3 First Law of Thermodynamics

Example 3.1, Page no.12

In [1]:
import math
#initialisation of variables
R= 1.987  #in cal molˆ−1 Kˆ−1
T= 0      #in Celsius
V1= 22.4  #lit
V2= 2.24 
#CALCULATIONS
wrev= 2.303*R*(273.1+T)*math.log(V1/V2)
#RESULTS 
wrev=round(wrev,2)
print 'maximum work done= ',wrev, 'cal'
maximum work done=  2877.59 cal

Example 3.4, Page no.12

In [2]:
import math
#initialisation of variables
Cp= 0.096  # in cal deg gˆ−1
#RESULTS 
print 'Cp of zinc at constant pressure a room temperature=',Cp, 'cal deg gˆ−1'
Cp of zinc at constant pressure a room temperature= 0.096 cal deg gˆ−1