![]() |
(376) |
where
is the observable of interest evaluated in state
.
In a classical system of particles, the index
labels the microscopic phase point
| (377) |
i.e., the list of coordinates and momenta
.
Therefore, the ensemble average is
![]() |
(378) |
where
![]() |
(379) |
is the probability density at phase-point
,
where the system has total energy
| (380) |
with total kinetic energy
![]() |
(381) |
and total potential energy of interaction between particles
.
The factorization of the total energy into kinetic and potential energy terms, allows one to factorize the probability distribution function as follows,
| (382) |
where
![]() |
(383) |
and
![]() |
(384) |
Further factorization of the momentum distribution is possible, since
the total kinetic energy of the system
is the sum of the kinetic energy of individual particles
where![]() |
(385) |
Eqs. (384) and (385) thus define the probability distribution functions that are necessary to sample an ensemble of configurations of the fluid at thermal equilibrium.
Contrary to clusters of atoms or molecules, fluids with bulk
properties usually involve an enormous number of particles
particles where the fraction of particles near the walls of the container
is negligibly small. However, computer memory and disk space requirements
usually limits the capabilities of computer simulations to model sytems
with less than
particles. Contrary to macroscopic systems, these model systems have a
significant fraction of particles near the walls of the container. Therefore,
in order to simulate systems with bulk properties, it is necessary to implement
a trick to minimize surface effects. The most common trick involves the
implementation of periodic boundary conditions (p.b.c.).
The implementation of p.b.c. for a one-dimensional "box" of length L
converts the segment L into a circle of radius r, where
.
The distance between any two particles is measured along the arc of such
circle and hence the maximum separation between any two particles is L/2.
One simple way of implementing p.b.c. for particles in a 1-dimensional
box of length L is to add(subtract) L to the coordinate of any particle
that crosses the left(right) boundary of the box after being slightly displaced
to a new position. This can be implemented with an if-statement as follows:
![]() |
(386) |
To compute the minimum distance dx between particles p1 and p2 at x1 and x2, respectively, we can write
![]() |
(387) |
Note that when programing Eqs. (386) and (387) you will need to implement
the logic characters and the punctuation marks required by the specific
programing language of choice. The generalization of Eqs. (386) and (387)
to the implementation of p.b.c. in two and three dimensions is straightforward.