https://github.com/nsmith5/go-ising
API Driven Ising Model
https://github.com/nsmith5/go-ising
Last synced: 3 months ago
JSON representation
API Driven Ising Model
- Host: GitHub
- URL: https://github.com/nsmith5/go-ising
- Owner: nsmith5
- License: mit
- Created: 2020-05-13T00:12:43.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-13T06:10:19.000Z (about 6 years ago)
- Last Synced: 2023-03-03T22:43:41.025Z (over 3 years ago)
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-ising
[](https://cloud.drone.io/nsmith5/go-ising)
[Ising model](https://en.wikipedia.org/wiki/Ising_model) simulation written in
Go. Streams state as mjpeg movie. To build simply run:
```shell
$ git clone https://github.com/nfsmith5/go-ising
$ pushd go-ising
$ go get
$ go build
```
To run, execute the binary
```shell
$ ./go-ising
2020/05/12 23:04:17 Server binding to :8080...
```
If you point your browser to `localhost:8080` you'll see a movie streaming with
the realtime status of the simulation. Beta (the inverse temperature scaled by
Boltzman's contant) can be controlled with a simple POST require.
```shell
$ # Modify beta to 1
$ curl -X POST -d '1' localhost:8080
```