Skip to content

Commit 91e1f7e

Browse files
committed
Add a section about distributed cell densities and temperatures to the geometry userguide.
1 parent f09b84a commit 91e1f7e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/source/usersguide/geometry.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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
249249
assigned 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

Comments
 (0)