Demon algorithm for microcanonical ensemble

Click For Summary
The discussion centers on the demon algorithm used in simulating a microcanonical ensemble of ideal gas particles. The algorithm is described as conducting a random walk in phase space, where steps that exceed the total energy are rejected, leading to approximations of the microcanonical ensemble. Participants express concerns about the absence of an upper bound on the demon's energy, suggesting that such a limit is necessary to prevent the demon from disproportionately influencing the system's energy. It is noted that while the demon's energy must be non-negative, constraining it further can reduce rejection probabilities and improve simulation efficiency. The consensus is that implementing an upper bound on the demon's energy is beneficial for accurate sampling.
gre_abandon
Messages
13
Reaction score
1
I simulated a microcanonical ensemble of 10 ideal gas particles in one dimension and yielded the expected normal distribution of velocities. However, I still did not get how the algorithm works. The demon has non-negative energy content and the demon together with the system constitutes a closed system with fixed energy. In my view, the demon algorithm amounts to conducting a random walk in phase space where H is less than E_total. Whenever a step of walk carries the particle outside the permitted region this step is rejected. But how is that a sampling of a microcanonical ensemble?
 
Physics news on Phys.org
It is an approximation of the microcanonical ensemble. There are fluctuations in the total energy of the system, but if the energy of the demon is constrained enough, then the system will stay close to the actual microcanonical energy. The main advantage is to reduce the probability of rejection: if your were to try to simulate the actual microcanonical case, most of the computer time would be used generating configurations that would be rejected.
 
DrClaude said:
It is an approximation of the microcanonical ensemble. There are fluctuations in the total energy of the system, but if the energy of the demon is constrained enough, then the system will stay close to the actual microcanonical energy. The main advantage is to reduce the probability of rejection: if your were to try to simulate the actual microcanonical case, most of the computer time would be used generating configurations that would be rejected.
On wikipedia and my textbook the only constraint on the demon is that the demon should hold non-negative energy while in my opinion there also should be an upper bound as well for demon energy. And the energy fluctuation of the system is between E_demon_min and E_demon_max. If the energy fluctuation is small enough compared with the energy scale of the system we can regard the energy of the system fixed. Am I correct that there should be an upper bound for demon energy?

I've also done simulation for only two one dimensional particles. Without an upper bound on demon energy, it seems that we are effectively sampling the phase volume enclosed by the energy surface uniformly and this is by no means what we want.
 
gre_abandon said:
Am I correct that there should be an upper bound for demon energy?
It can be useful to limit the energy of the demon. To quote from the original paper:
To keep the demon from running off with all the energy, its energy must be restricted. The simplest constraint is that ##E_D## be a positive number, but further limitations could be useful in certain cases.
The way the algorithm is described in Landau & Binder, A Guide to Monte Carlo Simulations in Statistical Physics, there is also an upper limit to the demon energy.
 

Similar threads

  • · Replies 37 ·
2
Replies
37
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K
  • Poll Poll
  • · Replies 5 ·
Replies
5
Views
6K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
5K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 13 ·
Replies
13
Views
6K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 3 ·
Replies
3
Views
3K