Launching a SimulationΒΆ

To launch a simulation, construct a CUDASimulation object from the model. You must then initialise it, set the population data and finally call its simulate method:

# Create a simulation object from the model
simulation = pyflamegpu.CUDASimulation(model)

# Initialise the model with the supplied command line parameters
simulation.initialise(sys.argv)

# Set a procedural population
simulation.setPopulationData(population)

# Run the simulation
simulation.simulate()