Code Monkey home page Code Monkey logo

ising-model-1's Introduction

To install dependecies run: pip install -r requirements.txt

To plot a lattice instantiate a plot object, the parameters include:

N- size of lattice
B- strength of magnetic field (default is zero)
start- low(cold) or high(hot) start (default is low)
inc- size of increments in plots (default is 0.01)
x0- starting point of plots (default is 1)
x1- final point of plots (default is 5)
steps-number of steps (default is 50000)
T - Temperature (default is 1) 

Some recipes to showcase how the program works:

Plots specific heat capacity with a cold start and with increments of 0.1 for a 10x10 lattice:

import Ising_model as I 

P=I.plots(N=10,start='Low',inc=0.1)
P.spec_heat()
P.show()

Specific heat capacity

Plots magnetization with with a hot start increments of 0.1 for a 15x15 lattice

import Ising_model as I 

P=I.plots(N=15,start='Low',inc=0.1)
P.mag()
P.show()

Specific heat capacity

Plots lattice with a hot start, with and a 150x150 lattice and equilibrated at a temperature of 2

import Ising_model as I 

P=I.plots(N=150,start='High',inc=0.1,T=2)
P.lattice()
P.show()

Specific heat capacity

Plots lattice with a hot start and with and a 100x100 lattice, with an external magnetic field of 1, and ran for 60000 steps

import Ising_model as I 

P=I.plots(N=100,start='High',B=1,steps=60000)
P.lattice()
P.show()

Specific heat capacity

ising-model-1's People

Contributors

red-starter avatar

Watchers

 avatar

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.