Skip to content

gezhuang0717/FYS4150-Project-4

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FYS4150 Project 4 - Ising model

Usage

Python

usage: run.py [-h] [-s] [-p] [-an] [-z] [-r] [-a]

To run the python scripts and some the c++ files

optional arguments:
  -h, --help         show this help message and exit
  -s, --states       To get information about different states
  -p, --plot         To generate plots
  -an, --analytical  To generate analytical values
  -z, --zoom         Find maximum values and zoom
  -r, --reproduce    Reproduce the experiment as done in the report, using the same seed
  -a, --all          To run everything

C++

Compiling

make

Running

Usage
        ./runner [flags]

Options:
        -h      Show this help message
        -t      Test implementation
        -b      Finds burn-in time
        -w      Writes samples to file. Provide L, T, and seed
        -s      Finds values for L in 20, 40, 60, 80, 100, 120, 140, 160 for T in the range [2.1, 2.4]
        -z      Zooms in and finds values. Provide L, T_min, T_max and seed as system argunments

Structure

.
├── include - header files
├── makefile - the makefile used to compile the project
├── output - all the text outputs generated by the programs
├── plots - all the plots generated by the programs
├── README.md - README-file
└── src - the code
   ├── analytical_ising_model.py - generates analytical values for a 2x2 lattice square
   ├── ising_model.cpp - the ising model
   ├── main.cpp - the main script for running c++ code
   ├── plot.py - for plotting
   ├── run.py - for running python scripts and some of the c++ scripts
   ├── utils.cpp - utility functions for c++
   └── zoom.py - for scanning intervals and zooming in on C_v and chi

Code documentation

For more in depth description of files see the docstring in the python file for python and the header files for c++.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TeX 75.4%
  • Python 12.1%
  • C++ 11.5%
  • Makefile 1.0%