mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
review comments from @paulromano
This commit is contained in:
parent
7bbc778fd7
commit
87dafd1e31
3 changed files with 5 additions and 3 deletions
|
|
@ -63,6 +63,7 @@ Core Functions
|
|||
atomic_weight
|
||||
dose_coefficients
|
||||
gnd_name
|
||||
half_life
|
||||
isotopes
|
||||
linearize
|
||||
thin
|
||||
|
|
|
|||
|
|
@ -152,9 +152,10 @@ class Material(IDManagerMixin):
|
|||
for key, value in atoms_per_barn_cm2.items():
|
||||
half_life = openmc.data.half_life(key)
|
||||
if half_life:
|
||||
atoms = value[1] * self.volume * 1e24
|
||||
activity = math.log(2) * atoms / half_life
|
||||
atoms = value[1] * self.volume
|
||||
activity = atoms / half_life
|
||||
total_activity += activity
|
||||
total_activity = math.log(2) * total_activity * 1e24
|
||||
|
||||
return total_activity
|
||||
|
||||
|
|
|
|||
2
setup.py
2
setup.py
|
|
@ -32,7 +32,7 @@ kwargs = {
|
|||
# Data files and libraries
|
||||
'package_data': {
|
||||
'openmc.lib': ['libopenmc.{}'.format(suffix)],
|
||||
'openmc.data': ['mass16.txt', 'BREMX.DAT', '*.h5'],
|
||||
'openmc.data': ['mass16.txt', 'BREMX.DAT', 'half_life.json', '*.h5'],
|
||||
'openmc.data.effective_dose': ['*.txt']
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue