A simulation is the executable form of a model and is used to interact with and monitor the model state. In the simulation the neuron model is initiated and the spike exchange and the integration for each cell group are scheduled.

From recipe to simulation

To build a simulation the following is needed:

  • A recipe that describes the cells and connections in the model.

  • A domain decomposition that describes the distribution of the model over the local and distributed hardware resources. If not given, a default algorithm will be used which assigns cells to groups one to one; each group is assigned to a thread from the context.

  • An execution context used to execute the simulation. If not given, the default context will be used, which allocates one thread, one process (MPI task), and no GPU.

Configuring data extraction

Two kinds of data extraction can be set up: 1. certain state variables can be sampled by attaching a

sampler to a probe.

  1. spikes can be recorded by either a callback (C++) or a preset recording model (Python), see the API docs linked below.

Simulation execution and interaction

Simulations provide an interface for executing and interacting with the model:

  • The simulation is executed/run by advancing the model state from the current simulation time to another with maximum time step size.

  • The model state can be reset to its initial state before the simulation was started.

  • Sampling of the simulation state can be performed during execution with samplers and probes and spike output with the total number of spikes generated since either construction or reset.