Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
JYNi16 authored Sep 4, 2022
1 parent a72e04d commit f4539d6
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions XYmodel_metropolis_python/PTMC.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from xymodel_mc import *
import numpy as np

L = 50
beta = 1
J = 5
steps = 1000000
V = []
M2 = []
C = []

def single_run():
for T in range(4, 25):
t = T/10
sim = XYMetropolis((L, L),beta=1/t,J=J,random_state=5,initial_state='hot')
sim.simulate(steps)
V.append(sim.Vdensity)
M2.append(sim.M2)
C.append(sim.C)

if __name__=="__mian__":
single_run()

0 comments on commit f4539d6

Please sign in to comment.