Advertisement
vlpap

ALPS tutorial

Oct 7th, 2020
633
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.50 KB | None | 0 0
  1. import pyalps
  2.  
  3. parms = []
  4. for t in [1.5,2,2.5]:
  5.    parms.append(
  6.        {
  7.          'LATTICE'        : "square lattice",
  8.          'T'              : t,
  9.          'J'              : 1 ,
  10.          'THERMALIZATION' : 1000,
  11.          'SWEEPS'         : 100000,
  12.          'UPDATE'         : "cluster",
  13.          'MODEL'          : "Ising",
  14.          'L'              : 8
  15.        }
  16.    )
  17.  
  18. input_file = pyalps.writeInputFiles('parm1',parms)
  19. pyalps.runApplication('spinmc',input_file,Tmin=5,writexml=True)
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement