openmc.lib.id_map

openmc.lib.id_map(plot)[source]

Generate a 2-D map of cell and material IDs. Used for in-memory image generation.

Parameters

plot (openmc.lib.plot._PlotBase) – Object describing the slice of the model to be generated

Returns

id_map – A NumPy array with shape (vertical pixels, horizontal pixels, 3) of OpenMC property ids with dtype int32. The last dimension of the array contains, in order, cell IDs, cell instances, and material IDs.

Return type

numpy.ndarray