mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
moved decay rate units conversion to reaction.py
This commit is contained in:
parent
59a8e6e13b
commit
b894ad6ff3
2 changed files with 4 additions and 4 deletions
|
|
@ -98,9 +98,7 @@ class Product(EqualityMixin):
|
|||
def decay_rate(self, decay_rate):
|
||||
cv.check_type('product decay rate', decay_rate, Real)
|
||||
cv.check_greater_than('product decay rate', decay_rate, 0.0, True)
|
||||
|
||||
# Convert the decay rate from units of inverse shakes to inverse seconds
|
||||
self._decay_rate = decay_rate * 1.e8
|
||||
self._decay_rate = decay_rate
|
||||
|
||||
@distribution.setter
|
||||
def distribution(self, distribution):
|
||||
|
|
|
|||
|
|
@ -107,7 +107,9 @@ def _get_fission_products(ace):
|
|||
for group in range(n_group):
|
||||
delayed_neutron = Product('neutron')
|
||||
delayed_neutron.emission_mode = 'delayed'
|
||||
delayed_neutron.decay_rate = ace.xss[idx]
|
||||
|
||||
# Convert units of inverse shakes to inverse seconds
|
||||
delayed_neutron.decay_rate = ace.xss[idx] * 1.e8
|
||||
|
||||
group_probability = Tabulated1D.from_ace(ace, idx + 1)
|
||||
if np.all(group_probability.y == group_probability.y[0]):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue