전산물리학:울프_군집_셈법_wolff_cluster_algorithm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
전산물리학:울프_군집_셈법_wolff_cluster_algorithm [2022/01/16 22:22] jonghoon전산물리학:울프_군집_셈법_wolff_cluster_algorithm [2022/01/17 16:10] jonghoon
Line 15: Line 15:
 다음은 울프 셈법으로 주기적 경계(periodic boundary)를 갖는 128$\times$128 크기의 정사각 격자(square latice)에서 단계(step)별 자화(magnetization)를 구하고 파일로 내보내는 C++코드이다. 초기 상태는 모두가 한 방향으로 정렬되어 있는 상태다. 다음은 울프 셈법으로 주기적 경계(periodic boundary)를 갖는 128$\times$128 크기의 정사각 격자(square latice)에서 단계(step)별 자화(magnetization)를 구하고 파일로 내보내는 C++코드이다. 초기 상태는 모두가 한 방향으로 정렬되어 있는 상태다.
  
-<Code:C++>+<code:C++ | wolff.cpp>
 #include <fstream> #include <fstream>
 #include <cmath> #include <cmath>
Line 123: Line 123:
     m = abs(m);     m = abs(m);
 } }
-</Code>+</code>
  
 ======함께 보기====== ======함께 보기======
 [[물리:2차원 이징 모형]] [[물리:2차원 이징 모형]]
  • 전산물리학/울프_군집_셈법_wolff_cluster_algorithm.txt
  • Last modified: 2023/09/05 15:46
  • by 127.0.0.1