Research Article

Simulating Growth Kinetics in a Data-Parallel 3D Lattice Photobioreactor

Algorithm 1

Kawasaki exchange Monte Carlo algorithm including PSF model and mutual shading effects.
for 3D lattice
blank lattice, initialise 10 random cells
for all time-steps do
 compute cell shading map, CUDA
for all blocks of size in lattice do
  for all 33 sites in each block, random order do
   thread return if out of bounds
   thread return if empty cell
   if site contains bubble then
    diffuse bubble upward or laterally randomly
    return
   end if
   compute left and right shading (scalar values, )
   compute illumination on site,
   kill cell and return on probability cell_death_prob .
   choose random site
   perform state transitions and state imperatives (shown in Algorithm 2)
   perform Kawasaki site exchange (shown in Algorithm 3)
  end for
end for
end for