Ising2D.jl

Julia package of the 2D Ising model
Author genkuroki
Popularity
1 Star
Updated Last
1 Year Ago
Started In
August 2020

Ising2D.jl - Julia package of the 2D Ising model

Dev Build Status

Install

julia> ]
pkg> add Ising2D

or

julia> ]
pkg> add Ising2D#master
julia> ]
pkg> add https://github.com/genkuroki/Ising2D.jl

Example

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, 1.0; nwarmups=0, nskips=1, nframes=500, fps=15)

gif_mcmc_ising2d()

Used By Packages

No packages found.