Skip to content

cccclai/isingmodel

Repository files navigation

isingmodel

To output all matrix:

  • Compile file:
$ make picture=1
  • Output data:
    • For 2d ising model:
    $ ./2dising.sh
    
    (If it doesn't work, type in:
    $ chmod +x ./2dising.sh
    
    ).
    • For 3d ising model:
    $ ./3dising.sh
    
    (If it doesn't work, type in:
    $ chmod +x ./3dising.sh
    
    ).

To output energy, heat capacity, magnetization, magnetization susceptibility:

  • Compile file:
$ make
  • Output data:

    • For 2d ising model:
    $ ./2dising.sh
    
    • For 3d ising model:
    $ ./3dising.sh
    
  • 2d ising model data will be in ./data/2d

  • 3d ising model data will be in ./data/3d

To clean all data:

$ make cleandata

To clean 2d data:

$ make clean2ddata

To clean 3d data:

$ make clean3ddata

How to access Titan box:

How to run the cuda code:

  • Compile file:
$ make picture=1
  • Output data:
$ ./2dising.sh

(If it doesn't work, type in:

$ chmod +x ./2dising_cuda.sh

).

About

Simulation of 2D/3D Ising models in CUDA.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •