blob: 33c10a6a371415973745cb8b3b5413b0c7967287 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
//Calculate the Translational Partition function of a Helium atom
//Example 23.2
clc;
clear;
m=4.003*1.661*10^-27; //Mass of Helium atom in kg amu^-1
KB=1.381*10^-23; //Boltzmann's constant in J K^-1
T=298; //Temperature in K
h=6.626*10^-34; //Planck's constant in J s
V=1; //Volume of container in m^3
Qtrans=(((2*%pi*m*KB*T)^(3/2))*V)/h^3; //Translational Partition function of a Helium atom (1 J=1 kg m^2 s^-2)
printf("Translational Partition function of a Helium atom = %.2f*10^30",Qtrans*10^-30);
|