Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Chunde/XY-Model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XY-Model

Simulation of XY-Model

Usage

This code is parallelized with std c++, you may need to change the number of thread in the main.cpp, set the MAX_THREAD macro to the max logical threads of your CPU.

if you want to save the simulation state, you may need to modify the line the output of the state folder at the very beginning of the main.cpp file:

string stateFileFolder = "c:\\XYModel_State\\";

You can tweak the code so the final energy converge to the right value by checking the change of the total energy if it does converge.

Kosterlitz–Thouless transition

if you change the temperature from 20 to 0.1K, you will see theKosterlitz–Thouless transition. Here is a video visualize the simulation.

About

Simulation of XY-Model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages