# 3-dimensional HTR with 3 different types of fuel

**URL:** <https://openmc.discourse.group/t/3-dimensional-htr-with-3-different-types-of-fuel/3243>\
**Category:** User Support\
**Created:** [July 29, 2023, 1:27pm UTC](https://openmc.discourse.group/t/3-dimensional-htr-with-3-different-types-of-fuel/3243 "2023-07-29T13:27:15Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Ruri](https://avatars.discourse-cdn.com/v4/letter/r/b487fb/32.png) [@Ruri](https://openmc.discourse.group/u/Ruri)\
**Post date:** [July 14, 2025, 11:10am UTC](https://openmc.discourse.group/t/3-dimensional-htr-with-3-different-types-of-fuel/3243/3 "2025-07-14T11:10:27Z")

</div>

Yes, I’ve solved this problem. You simply need to define three different fuels, formed in three different fuel-pebble (different cells). Then, you need to set their distribution ratio in the random generator. For example, if you have two fuel pebbles, **pebble1** and _pebble2_, with a **30:70 ratio** , you can do this:

```auto
pebbles = openmc.model.pack_spheres( radius = (..) , pf = (...), region = (...) )
pack = []
for c in pebbles:
    if random.random() < 0.3:
        pack.append(openmc.model.TRISO(fill=pebble1_univ, ...))
    else:
        pack.append(openmc.model.TRISO(fill=pebble2_univ, ...))

```

You can also see this discussion [link](https://openmc.discourse.group/t/rotating-rectangular-prism/3335/7)

---

_[View the full topic](https://openmc.discourse.group/t/3-dimensional-htr-with-3-different-types-of-fuel/3243)._
