# Volume not specified for depletable material with ID=2

**URL:** <https://openmc.discourse.group/t/volume-not-specified-for-depletable-material-with-id-2/1047>\
**Category:** User Support\
**Created:** [March 4, 2021, 5:03pm UTC](https://openmc.discourse.group/t/volume-not-specified-for-depletable-material-with-id-2/1047 "2021-03-04T17:03:37Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![hhhnain](https://avatars.discourse-cdn.com/v4/letter/h/d6d6ee/32.png) [@hhhnain](https://openmc.discourse.group/u/hhhnain)\
**Post date:** [March 8, 2021, 11:23am UTC](https://openmc.discourse.group/t/volume-not-specified-for-depletable-material-with-id-2/1047/5 "2021-03-08T11:23:21Z")

</div>

Hi, thanks for the reply. I’m new to this so was simply trying to do the hexagonal tutorial.

"%matplotlib inline  
import openmc  
import math

uel = openmc.Material(name=‘fuel’)  
fuel.add\_nuclide(‘U235’,1.0)  
fuel.set\_density(‘g/cm3’,100.0)

fuel2 = openmc.Material(name = ‘fuel2’)  
fuel2.add\_nuclide(‘U238’,1.0)  
fuel2.set\_density(‘g/cm3’,100.0)

water = openmc.Material(name=‘water’)  
water.add\_nuclide(‘H1’,2.0)  
water.add\_nuclide(‘O16’,10.0)  
water.set\_density(‘g/cm3’,10.0)

fuel.volume = 1 # ← units are cm³  
fuel2.volume = 1 # ← units are cm³

mats = openmc.Materials((fuel,fuel2,water))  
mats.export\_to\_xml()

r\_pin = openmc.ZCylinder(r=0.25)  
fuel\_cell = openmc.Cell(fill=fuel, region = -r\_pin)  
water\_cell = openmc.Cell(fill=water, region = +r\_pin)  
pin\_universe = openmc.Universe(cells=(fuel\_cell,water\_cell))

r\_big\_pin = openmc.ZCylinder(r=0.5)  
fuel2\_cell = openmc.Cell(fill=fuel2, region = -r\_big\_pin)  
water2\_cell = openmc.Cell(fill=water,region=+r\_big\_pin)  
big\_pin\_universe = openmc.Universe(cells=(fuel2\_cell,water2\_cell))

all\_water\_cell = openmc.Cell(fill=water)  
outer\_universe = openmc.Universe(cells=(all\_water\_cell,))

lat = openmc.HexLattice()

lat.center = (0.,0.)  
lat.pitch = (1.25,)  
lat.outer = outer\_universe

uter\_ring = [big\_pin\_universe] + [pin\_universe]\*11  
middle\_ring = [big\_pin\_universe] + [pin\_universe]\*5  
inner\_ring = [big\_pin\_universe]  
lat.universes = [outer\_ring,middle\_ring,inner\_ring]

outer\_surface = openmc.ZCylinder(r=4.0,boundary\_type=‘vacuum’)  
main\_cell = openmc.Cell(fill=lat,region=-outer\_surface)  
geom = openmc.Geometry([main\_cell])  
geom.export\_to\_xml()

settings = openmc.Settings()  
settings.particles = 100  
settings.inactive = 10  
settings.batches = 20  
settings.export\_to\_xml()  
import openmc.deplete  
chain = openmc.deplete.Chain.from\_xml("./chain\_endfb71\_sfr.xml")  
operator = openmc.deplete.Operator(geom,settings,"./chain\_endfb71\_sfr.xml")  
power = 174  
time\_steps = [30 \* 24 \* 60 \* 60] \* 6  
integrator = openmc.deplete.PredictorIntegrator(operator, time\_steps, power)  
integrator.integrate() "

---

_[View the full topic](https://openmc.discourse.group/t/volume-not-specified-for-depletable-material-with-id-2/1047)._
