Skip to content

Example implementation of the Metropolis algorithm for the Ising model in Carlo.jl

Notifications You must be signed in to change notification settings

lukas-weber/Ising.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ising

DOI

This is the reference implementation of the Metropolis Markov-Chain Monte Carlo algorithm for the 2D Ising model using the Carlo.jl framework.

The file src/Ising.jl contains the implementation of the Carlo.AbstractMC interface, which is all that is needed to implement a Carlo Monte Carlo algorithm.

Installation

julia> using Pkg; Pkg.add("Ising"); Pkg.add("Carlo")

Example

There is an example job script example/job to show how to run simulations using Carlo. Simply execute it to access the Carlo command-line interface.

cd example

julia --project example_job.jl run

If everything went well, you should find the file example/job.results.json containing the means and errorbars of your calculation.

For unfinished jobs, you can at any point use

julia --project example_job.jl status

to retrieve progress information and

julia --project example_job.jl merge

to merge the data already collected into a results file.

To start over from scratch, remember to julia --project example_job.jl delete the existing data or use the run -r flag. For more information, run julia --project example_job.jl --help.

About

Example implementation of the Metropolis algorithm for the Ising model in Carlo.jl

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages