Skip to content

Metropolis-Hastings algorithm written in C for simulation purposes in a 3D lattice.

Notifications You must be signed in to change notification settings

olundberg/Monte-Carlo-Simulation-C-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Monte Carlo Simulation 3 State 3D Potts Model 12-Sized lattice


The program will generate data from temperature t = 0 to t = 3. The output in .csv-format stores the data as

Temperature - Energy - Specific heat - Magnetic Susceptibility - Binder Cumulant - Magnetization


The following settings using GCC to compile is recommended:
gcc -o MonteCarloProgram MonteCarloProgram.c -lm -Ofast


Use Octave/Matlab or something to plot.


About

Metropolis-Hastings algorithm written in C for simulation purposes in a 3D lattice.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages