Simulation#
Running simulations#
A combination of a System, and a list of States, which can be added to. |
|
|
Evolve a particular state, with index state_index, subject to some bounds. |
|
Evolve all states, stopping each as they reach the boundary conditions. |
|
Evolve some states, stopping each as they reach the boundary conditions. |
Modifying simulations and getting information#
Add a new state to the simulation. |
|
Adds n new states to the simulation. |
|
|
Sets a system parameter. |
Gets a system parameter. |
|
|
Returns the current canvas for state_index (default 0), as an array copy. |
|
Returns the current canvas for state_index (default 0), as a direct view of the state array. |
|
Returns the number of events simulated for the state. |
|
Returns the amount of time simulated (in seconds) for the state. |
|
Returns the number of tiles in the state. |
Returns a list of the total number of events simulated for each state. |
|
Returns a list of the amount of time simulated (in seconds) for each state. |
|
Returns a list of the number of tiles in each state. |
|
|
|
|
|
|
Plot a state as a pcolormesh. |
Returns a matplotlib colormap for tile numbers. |