@@ -248,6 +248,28 @@ The classes :class:`Halfspace`, :class:`Intersection`, :class:`Union`, and
248248:class: `Complement ` and all instances of :class: `openmc.Region ` and can be
249249assigned to the :attr: `Cell.region ` attribute.
250250
251+ Cells also contain :attr: `Cell.temperature ` and :attr: `Cell.density `
252+ attributes which override the temperature and density of the fill. These can
253+ be quite useful when temperatures and densities are spatially varying, as the
254+ alternative would be to add a unique :class: `Material ` for each permutation of
255+ temperature, density, and composition. You can set the temperature (K) and
256+ density (g/cc) of a cell like so::
257+
258+ fuel.temperature = 800.0
259+ fuel.density = 10.0
260+
261+ The real utility of cell temperatures and densities occurs when a cell is
262+ replicated across the geometry, such as when a cell is the root geometric element
263+ in a replicated :ref: `universe<usersguide_universes> ` or :ref: `lattice
264+ <usersguide_lattices>`. In those cases, you can provide a list of temperatures
265+ and densities to apply a temperature/density field to all of the distributed cells::
266+
267+ fuel.temperature = [800.0, 900.0, 800.0, 900.0]
268+ fuel.density = [10.0, 9.0, 10.0, 9.0]
269+
270+ In this example, the fuel cell is distributed four times in the geometry. Each
271+ distributed instance then receives its own temperature and density.
272+
251273.. _usersguide_universes :
252274
253275---------
0 commit comments