openmc.capi.Cell

class openmc.capi.Cell(uid=None, new=True, index=None)[source]

Cell stored internally.

This class exposes a cell that is stored internally in the OpenMC library. To obtain a view of a cell with a given ID, use the openmc.capi.nuclides mapping.

Parameters:index (int) – Index in the cells array.
Variables:id (int) – ID of the cell
set_temperature(T, instance=None)[source]

Set the temperature of a cell

Parameters:
  • T (float) – Temperature in K
  • instance (int or None) – Which instance of the cell