3 color Potts model, Metropolis updating.
$$ S=K\sum_{\langle i,j\rangle} \delta(s_i,s_j) $$ where the \(s_i=1,2,3\) can take three states.

pseudo-code:

  1. randomly find a site, and randomly change its state
  2. compare with neighour, and find out the change: dS
  3. Metropolisily accept or reject


updating speed=100 Coupking \(K\)=-1.0