GithubHelp home page GithubHelp logo

fys4150-project-4's Introduction

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++.

fys4150-project-4's People

Contributors

sim-hal avatar hermabr avatar carlfre avatar

Watchers

 avatar

Forkers

gezhuang0717

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.