All Projects → bdhammel → ising-model

bdhammel / ising-model

Licence: Unlicense license
Python implementation of the Ising model

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to ising-model

SpinMonteCarlo.jl
Markov chain Monte Carlo solver for lattice spin systems implemented by Julialang
Stars: ✭ 35 (-5.41%)
Mutual labels:  monte-carlo, ising-model
financial-engineering
Applications of Monte Carlo methods to financial engineering projects, in Python.
Stars: ✭ 229 (+518.92%)
Mutual labels:  monte-carlo
Mathematical-Modeling
A sharing of the learning process of mathematical modeling 数学建模常用工具模型算法分享:数学建模竞赛优秀论文,数学建模常用算法模型,LaTeX论文模板,SPSS工具分享。
Stars: ✭ 30 (-18.92%)
Mutual labels:  monte-carlo
mcxcl
Monte Carlo eXtreme for OpenCL (MCXCL)
Stars: ✭ 36 (-2.7%)
Mutual labels:  monte-carlo
vegasflow
VegasFlow: accelerating Monte Carlo simulation across multiple hardware platforms
Stars: ✭ 19 (-48.65%)
Mutual labels:  monte-carlo
admc
Infinite order automatic differentiation for Monte Carlo with unnormalized probability distribution
Stars: ✭ 17 (-54.05%)
Mutual labels:  monte-carlo
tiny-path
An instructive one-file Ruby path tracer
Stars: ✭ 53 (+43.24%)
Mutual labels:  monte-carlo
mcrt
Monte Carlo Raytracer from Scratch in C++11/14
Stars: ✭ 22 (-40.54%)
Mutual labels:  monte-carlo
monte-carlo-ray-tracer
Physically based renderer with Path Tracing and Photon Mapping.
Stars: ✭ 246 (+564.86%)
Mutual labels:  monte-carlo
sampling-methods-numpy
This repository contains implementations of some basic sampling methods in numpy.
Stars: ✭ 48 (+29.73%)
Mutual labels:  monte-carlo
Stock Prediction Models
Gathers machine learning and deep learning models for Stock forecasting including trading bots and simulations
Stars: ✭ 4,660 (+12494.59%)
Mutual labels:  monte-carlo
UQpy
UQpy (Uncertainty Quantification with python) is a general purpose Python toolbox for modeling uncertainty in physical and mathematical systems.
Stars: ✭ 117 (+216.22%)
Mutual labels:  monte-carlo
ValoMC
Monte Carlo software for simulating light propagation
Stars: ✭ 31 (-16.22%)
Mutual labels:  monte-carlo
neworder
A dynamic microsimulation framework for python
Stars: ✭ 15 (-59.46%)
Mutual labels:  monte-carlo
marburg
physics meets neural networks
Stars: ✭ 93 (+151.35%)
Mutual labels:  monte-carlo
grand
A Python module for carrying out GCMC insertions and deletions of water molecules in OpenMM.
Stars: ✭ 23 (-37.84%)
Mutual labels:  monte-carlo
MonteCarlo.jl
Classical and quantum Monte Carlo simulations in Julia
Stars: ✭ 125 (+237.84%)
Mutual labels:  monte-carlo
ase exploration
Planning for robotic exploration based on forward simulation
Stars: ✭ 82 (+121.62%)
Mutual labels:  monte-carlo
optionmatrix
Financial Derivatives Calculator with 168+ Models (Options Calculator)
Stars: ✭ 121 (+227.03%)
Mutual labels:  monte-carlo
Bioindustrial-Park
BioSTEAM's Premier Repository for Biorefinery Models and Results
Stars: ✭ 23 (-37.84%)
Mutual labels:  monte-carlo

bdhammel

Ising Model

Python code to simulate the Ising model of a Ferromagnet.

For a discussion of the theory, visit my blog post.

The initial conditions of the ising lattice can be specified by the tempature, initial state, and size parameters of the model.

Running the simulation will output a video of system as it changes through out the run steps.

Example

The --help command can show to possible parameters for modifying the simulation

$ python ising.py --help
Usage: ising.py [OPTIONS]

Options:
  -t, --temperature FLOAT    temperature of the system  [default: 0.5]
  -i, --initial-state [r|u]  (R)andom or (U)niform initial state of the system [default: r]
  -s, --size INTEGER         Number of sites, M, in the MxM lattice  [default: 100]
  -e, --epochs INTEGER       Number of iterations to run the simulation for [default: 1000000]
  --video                    Record a video of the simulation progression
  --help                     Show this message and exit.

For example:

$ python ising.py --temperature .8 --initial-state r --video

FAQ

If you get the error:

MovieWriter stderr:
dyld: Library not loaded: /usr/local/opt/x264/lib/libx264.152.dylib
  Referenced from: /usr/local/bin/ffmpeg
  Reason: image not found

Then you need to install ffmpeg

$ brew install ffmpeg
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].