Agent reproduction and mortality

Author: Lukas Breitwieser
In this tutorial we want to demonstrate how to add and remove agents from the simulation.

Let's start by setting up BioDynaMo notebooks.

Let's define our initial model: One cell at origin.
We also create an agent pointer for our cell, because raw pointers might be invalidated after a call to Scheduler::Simulate

Adding an agent to the simulation is as easy as constructing one and adding it to the execution context.
Our default execution context will add the new agent to the simulation at the end of the iteration.
Therefore, the visualization still shows only one agent.