mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Merge pull request #1392 from awgolas/deplete_burnable_mats
Fixed volume allocation in openmc.deplete.Operator._differentiate_burnable_mats
This commit is contained in:
commit
8a77ee7efd
1 changed files with 6 additions and 1 deletions
|
|
@ -309,7 +309,12 @@ class Operator(TransportOperator):
|
|||
# Assign distribmats to cells
|
||||
for cell in self.geometry.get_all_material_cells().values():
|
||||
if cell.fill in distribmats and cell.num_instances > 1:
|
||||
cell.fill = [cell.fill.clone()
|
||||
mat = cell.fill
|
||||
if mat.volume is None:
|
||||
raise RuntimeError("Volume not specified for depletable "
|
||||
"material with ID={}.".format(mat.id))
|
||||
mat.volume /= mat.num_instances
|
||||
cell.fill = [mat.clone()
|
||||
for i in range(cell.num_instances)]
|
||||
|
||||
def _get_burnable_mats(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue