julia> ]
pkg> add Ising2D
or
julia> ]
pkg> add Ising2D#master
julia> ]
pkg> add https://github.com/genkuroki/Ising2D.jl
Jupyter notebook: Ising2D.ipynb
using Ising2D
Generate a 100x100 random state of 2D Ising model:
s = rand_ising2d(200)
P0 = plot_ising2d(s)
Update the whole state 500 times:
ising2d!(s, β_ising2d, 500)
P1 = plot_ising2d(s)
Create PNG files:
Ising2D.Plots.png(P0, "s0.png")
Ising2D.Plots.png(P1, "s1.png")
Create the GIF animation of 2D Ising model:
s = rand_ising2d(200)
gif_ising2d(;s, k=1.0, nwarmups=0, nskips=1, nframes=500, fps=15)
gif_mcmc_ising2d()