WorldΒΆ

Outside the navigator, particles are not tracked. GGEMS includes a tool to record photons exiting the navigator. Particles are projected into the world using a DDA algorithm.

The world module is GGEMSWorld:

world = GGEMSWorld()

After creating a GGEMSWorld, the world dimensions and voxel size can be defined:

world.set_dimensions(200, 200, 200)
world.set_element_sizes(10.0, 10.0, 10.0, 'mm')

For world output, the user can save various information such as: photon energy and squared energy through voxel, photon momentum, and fluence (photon tracking):

world.set_output_basename('data/world')
world.energy_tracking(True)
world.energy_squared_tracking(True)
world.momentum(True)
world.photon_tracking(True)