General Ising S Spins (Blume Capel model)

Spins S: can take -S,-S+1,...,0,...,S
Energy=S.hlocal+D.S2
P(x)= e-Energy/T
       = e-h.S-D.S.S

The Alias Walker (AW) algorithm re-arrange the 3 probabilities into 3 boxes (0), (1) and (2), of equal weight with 2 possibilities in each. It is not difficult to choose one of the box with a random number and an (int) command and choose the correct possibility with an if condition.

Download the Alias Walker Hasting restricted (AWHd) Algorithm:
The best method is the Alias Walker Hasting restricted AWHd. it consits to calculate by the walker algorithm a new state DIFFERENT of the present one (Heat Bath method). Then accept the new configuration with Hasting method.
1.  To use the Alias Walker Hasting restricted (AWHd) you must have :
2.  AND you must have the tables in the file "Ising_S_walker_Hasting.res". You must create this file using create_Ising_S_walker_Hasting.c


Download the Alias Walker (AW) Algorithm:
A little less good than the previous one.
1.  To use the Alias Walker Hasting restricted (AWHd) you must have :
2.  AND you must have the tables in the file "Ising_S_walker.res". You must create this file using create_Ising_S_walker.c

Download the Article:

Probabilities and Performances :
  • Figure: comparison of the time consumption to simulate a two dimensional three state (S=1) ferromagnetic Ising_S spins on a square lattice for various algorithms (Metropolis,Me, Restricted metropolis, Med, Direct Heat Bath, DHB, Restricted Direct Heat Bath, DHBd, Walter Algorithm, WA, Restricted Walter Algorithm Hasting, WAHd ). We note that the DHB and WA are equivalent. Only the time consumption changes. DHBd and WAHd are also equivalent.
    The critical temperatures are shown by the squares
    The Restricted Walter Algorithm Hasting, WAHd or the direct Heat Bath DHBd are the fastest algorithms at the critical temperature.
    More...

Algorithms in C