promotional bannermobile promotional banner
premium banner
Adds a command that runs an Ising Model simulation using the Metropolis Algorithm

Description

Adds a single command that runs an Ising Model simulation using the Metropolis algorithm. 

The model can be of any size, 2D or 3D, the "temperature" of the simulation can also be changed, the number of flips simulated can also be specified (as a power of 10). The blocks used can also be changed. This is recommended for 3D, to replace one of the blocks with air.

An example command:

 

/ising_model 40 2

 

Will create a 40x40 2D model, with a temperature of 2, and the default value of 100 * 40 * 40 simulated flips (160k).

 

Another one:

 

/ising_model 50 1.5 3 8 minecraft:white_concrete minecraft:air

 

Will create a 50x50x50 3D model, with a temperature of 1.5, with 10^8 simulated flips (100 million), but replacing down spins with air (instead of the default black concrete)

 

Careful when running the command, it completely freezes the server. It is only meant to be used in singleplayer.