Chapter 9 - Boltzmann distribution law

Example 1 - pg 235

In [1]:
#calculate the no of particles
#Initialization of variables
import math
r=2.1*10**-6 #cm
n=889
x=0.1 #cm
T=298.2 #K
#calculations
V=4/3 *math.pi *r**3
rho=19.3-1
ffd=rho*V*980.7
eps=ffd*x
logN=-6.96*10**-14 /(2.303*1.38*10**-16 *T)
N=10**logN *n
#results
print '%s %.1f' %("No. of particles =",N)
No. of particles = 163.9

Example 2 - pg 237

In [2]:
#calculate the Temperature
#Initialization of variables
import math
x=1. #percent
wave=1595 #cm**-1
#calculations
E=2.8593*wave
Nratio=(100-x)/x
logN=math.log10(Nratio)
T=E/(2.303*1.987*logN)
#results
print '%s %d %s' %("Temperature =",T,"K")
Temperature = 499 K