mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
using math to get ln(2)
This commit is contained in:
parent
5bf60560af
commit
47e242551d
1 changed files with 2 additions and 1 deletions
|
|
@ -3,6 +3,7 @@ from collections.abc import Iterable
|
|||
from copy import deepcopy
|
||||
from numbers import Real
|
||||
from pathlib import Path
|
||||
import math
|
||||
import re
|
||||
import warnings
|
||||
from xml.etree import ElementTree as ET
|
||||
|
|
@ -714,7 +715,7 @@ class Material(IDManagerMixin):
|
|||
for key, value in atoms_per_barn_cm2.items():
|
||||
if key in openmc.data.HALF_LIFE.keys():
|
||||
atoms = value[1] * self.volume * 1e24
|
||||
activity = 0.693 * atoms / openmc.data.HALF_LIFE[key]
|
||||
activity = math.log(2) * atoms / openmc.data.HALF_LIFE[key]
|
||||
print('activity', activity)
|
||||
total_activity += activity
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue