The most basic BioDynaMo simulation (i.e. our Hello World program) is a static single cell. It is the default model that comes with the installation of BioDynaMo. In this section we shall go over the three simple steps of running this simple simulation.
Run the following command to create a new project called "hello_world":
biodynamo new hello_world
Go into the newly created directory
And build the project files with:
You should see "Simulation completed succesfully" as the output.
Let's make the simulation more interesting by adding a biological behavior to the
cell: cell division. Open the
src/hello_world.h and add the following line to
the simulate function after the cell is created and before it is added to the
// Add the biological behavior to the cell. cell->AddBehavior(new GrowthDivision(32, 3000));
Rebuild and rerun the simulation to have the cell division take effect. visit the next exercise to learn about the visualization features of BioDynaMo.
You might want to run for a few more simulation steps to witness cells dividing