Modification to OpenMC to update the cell volume during the depletion calculation for multi-physics coupling
Modifications:
abc.py:
-
Line 714: check_greater_than('timestep', timestep, 0.0, True)
Allowed for 0 time-step for iteration within a burnup step
results.py:
-
Lines 509-251: def update_volumes(self, geometry)
Define a function to update the cell volume in the depletion for multi-physics coupling
operator.py:
-
Line 170: volume_update=False
Add a parameter to control update of the volume
-
Lines 215-218:
Update the volume or not
To turn on/off the volume update:
When defining the operator in OpenMC:
- On: operator = openmc.deplete.Operator(geometry=geometry, settings=settings, volume_update=True, chain_file=self.chain, prev_results=results)
- Off: operator = openmc.deplete.Operator(geometry=geometry, settings=settings, volume_update=False, chain_file=self.chain, prev_results=results) or operator = openmc.deplete.Operator(geometry=geometry, settings=settings, chain_file=self.chain, prev_results=result)