GGEMS Commands

Commands to manage GGEMS are listed here in detail:

# Create an GGEMS instance
ggems = GGEMS()

Lot of verboses are available using GGEMS:

# Infos about OpenCL environment
ggems.opencl_verbose(True)

# Infos about whole material database
ggems.material_database_verbose(True)

# Infos about navigator (system/phantom)
ggems.navigator_verbose(True)

# Infos about source
ggems.source_verbose(True)

# Infos about memory usage
ggems.memory_verbose(True)

# Infos about activated processe(s)
ggems.process_verbose(True)

# Infos about range cuts
ggems.range_cuts_verbose(True)

# Print infos about first random state and initial seed
ggems.random_verbose(True)

# Infos about elapsed time in kernels
ggems.profiling_verbose(True)

# Infos about a specific photon index (here photon index 12)
ggems.tracking_verbose(True, 12)

Important commands to initialize and run a GGEMS application:

# Initialization with a specific seed (here 9383) or let GGEMS get a random seed
ggems.initialize(9383)
# ggems.initialize() # random seed

# Running ggems
ggems.run()