Professional Documents
Culture Documents
FIG. 1: Plot of the second virial coefficient as a function of temperature for the Lennard-Jones
potential.
I.
INTRODUCTION
The STP SecondVirialCoefficient program numerically evaluates the second virial coefficient for the Lennard-Jones potential at various temperatures. The default temperature
range is 0.5 T 5.
STP SecondVirialCoefficient is part of a suite of Open Source Physics programs that model aspects of Statistical and Thermal Physics (STP). The program is distributed as a ready-to-run (compiled) Java archive.
stp SecondVirialCoefficient.jar file will run the program if Java is installed on your
computer. Additional programs can be found by searching ComPADRE for Open Source
Physics, STP, or Statistical and Thermal Physics.
II.
DESCRIPTION
(1)
where P is the pressure, V is the volume, N is the number of particles, T is the temperature,
and k is Boltzmanns constant. The density = N/V , and Bn is the nth virial coefficient.
The second virial coefficient B2 is given by the integral (in three dimensions)
B2 = 2
(2)
where = 1/kT and u(r) is the interparticle potential. Except for simple forms of u(r), the
integral must be done numerically.
The program computes the integral for the Lennard-Jones potential at various temperatures. The Lennard-Jones potential is given by
h 12
u(r) = 4
6 i
(3)
Simpsons rule is used for the numerical calculation. The program uses units such that the
Lennard-Jones parameters /k and are set equal to unity.
Double click on the jar file to run the program. When you click on the Calculate
button, the program numerically evaluates the integral for the second virial coefficient at
various temperatures.
You can change the temperature range of the calculation, Tmin and Tmax . (After you type
in a value, the box remains yellow, which signifies that the program has not incorporated
the new value until you press Enter and then Calculate).
III.
QUESTIONS
IV.
INPUT PARAMETERS
Parameter Description
Tmin (Tmax ) Minimum (maximum) temperature of the calculation.
TABLE I: Control parameters.
V.
For further discussion see Chapter 8 of Statistical and Thermal Physics by H. Gould and
J. Tobochnik available on ComPADRE. Other resources are available for Statistical and
Thermal Physics from osp stp.jar or searching ComPADRE for STP, OSP, or Statistical
and Thermal Physics.
c
Harvey
Gould, Jan Tobochnik, Wolfgang Christian, and Anne J. Cox (2009).
10 February 2009.