Debian Codegraph @

periodictable/activation.py

raw
1 # -*- coding: iso-8859-15 -*-
2 # This program is public domain
3 # Author: Paul Kienzle
4 # Based on spreadsheet by Les Slaback (1998).
5 r"""
6 Calculate expected neutron activation from time spent in beam line.
7
8 Accounts for burnup and 2n, g production.
9
10 This is only a gross estimate. Many effects are not taken into account, such as
11 self-shielding in the sample and secondary activation from the decay products.
12
13 **Introduction to neutron activation terminology**
14
15 See a text!! These are just a few notes to refresh the memory of those who
16 already know the topic.
17
18 Reactions: The most common reaction is the simple addition of a neutron,
19 thereby increasing its atomic number by one but leaving it as the same
20 element. Not all activation products are radioactive. Those that are not are
21 not included in this database. Beware that there are production chains that
22 depend upon these intermediate products. This database does not address those
23 more complicated processes.
24
25 There are exceptions to the simple addition process such as the n,alpha
26 reaction of Li-6. These then result in a different element as the activation
27 product. These are identified in the reaction column. Radioactive products
28 also have the potential of undergoing a neutron reaction. This is
29 accounted for in this database for selected products (generally those that
30 result in significant half-life products). These reactions and products
31 should only be important at very high fluences, i.e., >1E16 n/cm2.
32
33 Neutron energy: The majority of the reactions are initiated by thermal neutrons.
34 As a practical matter the number of thermal neutrons is usually measured with a
35 cadmium filter. This excludes the neutrons above the cadmium absorption
36 threshold, called the cadmium cutoff. For most materials the resulting measured
37 'thermal' neutron fluence is adequate to determine the thermal neutron
38 activation. A few materials have large cross-sections for the neutrons above the
39 cadmium cutoff. Hence a 'cadmium ratio' is needed to predict the number of
40 neutrons present above this cutoff, as seen by the specific reaction of
41 interest.
42
43 For the same neutron spectrum two different elements will have different
44 cadmium ratios. Similarly, for the same reaction but different neutron
45 environments the ratio will also vary. Copper is a good material on which
46 to predict the thermal-to-epithermal fluence ratio since its two cross-sections
47 are about equal. If you use the ratio of another reaction, correct the
48 activity ratio of the nuclide by the cross-section ratio in order to derive
49 the extimated fluence ratio. Take care. By definition, the cadmium ratio
50 is an activity ratio, not a fluence ratio. [Note: This ratio is divided
51 into the specfied thermal neutron fluence rate to get the epithermal rate.]
52
53 Fast neutron reactions: There are also those reactions that depend on
54 higher energy neutrons. These can be of a great variety: n,gamma; n,p;
55 n,d; n,alpha; n,triton; etc. Any they are highly variable in how high the
56 neutron energy must be to initiate the reaction. In general the cross-
57 sections are relatively small, e.g., 10's of millibarns and less as compared
58 to 1000's of barns in some cases for thermal reactions. Plus the fast
59 neutron fluences are much smaller so that in general the amount of the
60 activation product is much less than for thermal production processes.
61
62 Barn: As they say- just how big is the broad side of that barn? For neutrons
63 it is 1 E-24 cm2, e.g. 0.000000000000000000000001 square cm. Millibarns
64 are of course for the _______ (leprechauns?).
65
66 Calulation:
67 (number of atoms)*(cross-section)*(no. of neutrons)*(decay correction)*C.F.
68
69 Number of atoms: mass*avagadro's number*isotopic abundance/mole.weight
70 where the mass is that of the target element, not the whole sample.
71
72 Decay correction: Since the radioactive product decays while it is being
73 made one must correct for this using (1-exp(-0.693*t/hlflf))
74 where t is the exposure time and hlflf is the product halflife
75
76 C.F: includes unit conversion factors, e.g., convert to microcuries
77
78
79 Example::
80
81 >>> from periodictable import activation
82 >>> env = activation.ActivationEnvironment(fluence=1e5, Cd_ratio=70, fast_ratio=50, location="BT-2")
83 >>> sample = activation.Sample("Co30Fe70", 10)
84 >>> sample.calculate_activation(env, exposure=10, rest_times=[0, 1, 24, 360])
85 >>> sample.show_table()
86 ----------------- activity (uCi) ------------------
87 isotope product reaction half-life 0 hrs 1 hrs 24 hrs 360 hrs
88 -------- --------- -------- ---------- ------------ ------------ ------------ ------------
89 Co-59 Co-60 act 5.2714 y 0.0004957 0.0004957 0.0004955 0.000493
90 Co-59 Co-60m+ act 10.467 m 1.664 0.03129 --- ---
91 -------- --------- -------- ---------- ------------ ------------ ------------ ------------
92 total 1.664 0.03181 0.0005079 0.0005045
93 -------- --------- -------- ---------- ------------ ------------ ------------ ------------
94
95 >>> print("%.3f"%sample.decay_time(0.001)) # number of hours to reach 1 nCi
96 2.046
97
98 The default rest times used above show the sample activity at the end of neutron
99 activation and after 1 hour, 1 day, and 15 days.
100
101 The neutron activation table, *activation.dat*,\ [#Shleien1998]_ contains
102 details about the individual isotopes, with interaction cross sections taken
103 from from IAEA-273\ [#IAEA1987]_, and half-lives from NUBASE2020\ [#Kondev2021]_
104
105 Activation can be run from the command line using::
106
107 $ python -m periodictable.activation FORMULA
108
109 where FORMULA is the chemical formula for the material.
110
111 .. [#Shleien1998] Shleien, B., Slaback, L.A., Birky, B.K., 1998.
112 Handbook of health physics and radiological health.
113 Williams & Wilkins, Baltimore.
114
115 .. [#IAEA1987] IAEA (1987)
116 Handbook on Nuclear Activation Data.
117 TR 273 (International Atomic Energy Agency, Vienna, Austria, 1987).
118 http://cds.cern.ch/record/111089/files/IAEA-TR-273.pdf
119
120 .. [#Kondev2021] F.G. Kondev, M. Wang, W.J. Huang, S. Naimi, and G. Audi, 2021.
121 Chin. Phys. C45, 030001. DOI:10.1088/1674-1137/abddae
122 Data retrieved from https://www.anl.gov/phy/reference/nubase-2020-nubase4mas20
123
124 Code original developed for spreadsheet by Les Slaback of NIST.
125 """
126
127 # Comments on ACT_2N_X.xls from ACT_CALC.TXT
128 #
129 # Fast neutron cross-sections added 2/1/94
130 #
131 # One database error detected and corrected at this time.
132 #
133 # Corrections made 3/4/94
134 #
135 # 1. Halflife for entry 21 entered. (previous entry blank)
136 # 2. Cross-section for entry 311 entered (previous entry blank)
137 # 3. 2 beta mode entries - added parent lambda's
138 # 4. Changed range of look up function in 2 columns to include last row.
139 # 5. With 9E15 y halflife the calculation always returned 0 microcuries!
140 # The 9E15 exceeds a math precision resulting in zero being assigned to the
141 # the function 1-e(-x). For any value of x<1E-10 the approximation x+x^2/2
142 # is more accurate, and for values of X<1E-16 this approximation returns a
143 # non-zero value while 1-e(-x)=0.
144 # Appropriate changes have been made, but in fact only two entries are
145 # affected by this, one with a 12 Ty halflife and one with a 9000Ty t1/2.
146 # The equations for "b" mode production were not changed because they are
147 # more complex, and none of the halflives currently in the database related
148 # to this mode are a problem. Take care if you add more with very long halflives.
149 # [PAK: These have since been updated to use expm1()]
150 # 6. The cross-section for the reaction Sr-88(n,gamma)Sr-89 was reduced from
151 # .058 to .0058 b. The entry of .058 in IAEA273 is in error, based on a
152 # number of other references (including IAEA156).
153 # 7. The unit for the halflife of Pm-151 coorected from 'm' to 'h'
154 #
155 # Changes made in April 1994
156 #
157 # 1. Burnup cross-sections added to the database and nuclides produced by
158 # two neutron additions (2n,gamma) have been added. The activation equations
159 # have been changed to account for burnup. This does not become significant
160 # until exposures exceed 1e17 n/cm2 (e.g., 1e10 n/cm2/sec*1000 hrs), even for
161 # those with very large cross-sections. Note that 'burnup' can be viewed as
162 # loss of the intended n,gamma product or as a 2n,gamma production mode. Both
163 # effects are included in the database and equations.
164 # 2.ACT_CALC.WQ1 does not have the burnup equations or related cross-section data.
165 # ACT_2N.WQ1 has the added equations and data, but requires manual entry of the
166 # cross-section database index numbers.
167 # ACT_2N_X.WQ1 allows direct entry of the chemical element to retrieve ALL
168 # entries from the database for that element
169 # Results from both have been compared to assure that the new spreadsheet
170 # is correct. Also the Au-197(2n,g)Au-199 reaction has been checked against
171 # a textbook example (Friedlander,Kennedy,Miller:Nuclear Chemistry).
172 # 3.An educational note related to this addition:
173 # Computing the equation [exp(-x)-exp(-y)] in that syntax is better than using
174 # [exp(-x)*(1-exp(x-y))]. The latter format blows up when large
175 # values of X and Y are encountered due to computational limitations for these
176 # functions in a PC. But this problem was only encountered in excess of
177 # 1E22 n/cm2.
178 # 4. 61 (2n,g) reactions have been added. You will note many more
179 # radionuclides with secondary capture cross-sections. Many of these go to
180 # stable nuclides (particularly the larger x-section ones - logically enough).
181 # The isomer-ground state pairs that have 2n modes to the same resulting
182 # nuclide are treated one of several ways.
183 # - if the obvious dominate pathway is only through the ground state then
184 # only production via that mode is included.
185 # - if the combination of parent halflives and production cross-sections
186 # make it unclear as to which is the dominant production mode then both
187 # are calculated. Beware, these are not necessarily additive values.
188 # Sometimes the ground state also reflects production via the isomer.
189 # See the specific notes for any particular reaction.
190 # 5.None of the entries for production via 'b' (beta decay ingrowth from a
191 # neutron induced parent) account for burnup. Those with significant burnup
192 # cross-sections have a specific note reminding of this. This is an issue
193 # only at high fluence rates.
194 # 6.Note that the database entries have different meanings for 'b' and '2n'
195 # production modes. For instance, the first set of cross-sections (proceeding
196 # horizontally for a particular database entry) is not the cross-section of
197 # the 2n reaction, but that to produce the parent. The second set of cross-
198 # sections which are the burnup cross-sections for n,g; n,p; n,alpha; etc.
199 # reactions are the production cross-sections for the 2n reactions.
200 # 7.If you want to determine how much burnup is occurring do one of the
201 # following:
202 # - do the calculation separately in ACT_CALC and ACT_2N.
203 # - do the calculation at a low fluence, e.g., 1E7, prorate to the fluence
204 # of interest, and compare to the result calculated directly. Make
205 # certain the same exposure time is used. You cannot prorate this
206 # parameter.
207 #
208 # Additions/changes made July 1997
209 #
210 # The following n,p and n,alpha reactions have both a thermal cross-section (as
211 # per IAEA273) and a fast cross-section. In all cases the database entry was for
212 # the fast cross-section but indicated it was a thermal reaction. That has been
213 # corrected (and verified against IAEA156) and a second entry made for the thermal
214 # reaction. Despite the entry in IAEA 273 there is some question as to whether
215 # the thermal induced reaction is energetically possible. Dick Lindstrom's
216 # calculation shows that the coulomb barrier should prevent the thermal reaction
217 # from being possible.
218 #
219 # The entries changed, and added, are for the following:
220 #
221 # 35Cl (n,p)
222 # 35Cl (n,alpha)
223 # 33S (n,p)
224 # 39K (n,alpha)
225 # 40Ca (n,p)
226 # 58Ni (n,alpha)
227
228
229 from math import exp, log, expm1
230 import os
231 from collections.abc import Callable, Sequence
232 from typing import cast
233
234 from .formulas import formula as build_formula, Formula, FormulaInput
235 from .core import Element, Isotope, isisotope, get_data_path
236
237 LN2 = log(2)
238
239 def table_abundance(iso: Isotope) -> float:
240 """
241 Isotopic abundance in % from the periodic table package.
242 """
243 return iso.abundance if iso.abundance else 0.
244
245 def IAEA1987_isotopic_abundance(iso: Isotope) -> float:
246 """
247 Isotopic abundance in % from the IAEA, as provided in the activation.dat table.
248
249 Note: this will return an abundance of 0 if there is no neutron activation for
250 the isotope even though for isotopes such as H[1], the natural abundance may in
251 fact be rather large.
252
253 IAEA 273: Handbook on Nuclear Activation Data, 1987.
254 """
255 activation = getattr(iso, "neutron_activation", None)
256 if activation is not None:
257 return activation[0].abundance
258 return 0.
259
260 class Sample:
261 """
262 Sample properties.
263
264 *formula* : chemical formula
265
266 Chemical formula. Any format accepted by
267 :func:`.formulas.formula` can be used, including
268 formula string.
269
270 *mass* : float | g
271
272 Sample mass.
273
274 *name* : string
275
276 Name of the sample (defaults to formula).
277 """
278 formula: Formula
279 mass: float
280 name: str
281 activity: dict["ActivationResult", list[float]]
282 environment: "ActivationEnvironment"
283 exposure: float
284 rest_times: tuple[float, ...]
285
286 def __init__(self, formula: FormulaInput, mass: float, name: str|None=None):
287 self.formula = build_formula(formula)
288 self.mass = mass # cell F19
289 self.name = name if name else str(self.formula) # cell F20
290 self.activity = {}
291
292 # The following are set in calculation_activation
293 #self.environment = None
294 self.exposure = 0.
295 self.rest_times = ()
296
297 def calculate_activation(
298 self,
299 environment: "ActivationEnvironment",
300 exposure: float=1,
301 rest_times: tuple[float, ...]=(0, 1, 24, 360),
302 abundance: Callable[[Isotope], float]=table_abundance,
303 ):
304 """
305 Calculate sample activation (uCi) after exposure to a neutron flux.
306
307 *environment* is the exposure environment.
308
309 *exposure* is the exposure time in hours (default is 1 h).
310
311 *rest_times* are deactivation times in hours (default [0, 1, 24, 360]).
312
313 *abundance* is a function that returns the relative abundance of an
314 isotope. By default it uses :func:`table_abundance` with natural
315 abundance defined in :mod:`periodictable.mass`, but there is the
316 alternative :func:`IAEA1987_isotopic_abundance` in the activation data
317 table.
318 """
319 self.activity = {}
320 self.environment = environment
321 self.exposure = exposure
322 self.rest_times = rest_times
323 for el, frac in self.formula.mass_fraction.items():
324 if isisotope(el):
325 A = activity(cast(Isotope, el), self.mass*frac, environment, exposure, rest_times)
326 self._accumulate(A)
327 else:
328 for iso_num in el.isotopes:
329 iso: Isotope = cast(Element, el)[iso_num]
330 iso_mass = self.mass*frac*abundance(iso)*0.01
331 if iso_mass:
332 A = activity(iso, iso_mass, environment, exposure, rest_times)
333 self._accumulate(A)
334
335 def decay_time(self, target: float, tol: float=1e-10):
336 """
337 After determining the activation, compute the number of hours required to achieve
338 a total activation level after decay.
339 """
340 if not self.rest_times or not self.activity:
341 return 0
342
343 # Find the smallest rest time (probably 0 hr)
344 k, t_k = min(enumerate(self.rest_times), key=lambda x: x[1])
345 # Find the activity at that time, and the decay rate
346 data = [
347 (Ia[k], LN2/a.Thalf_hrs)
348 for a, Ia in self.activity.items()
349 # TODO: not sure why Ia is zero, but it messes up the initial value guess if it is there
350 if Ia[k] > 0.0
351 ]
352 # Need an initial guess near the answer otherwise find_root gets confused.
353 # Small but significant activation with an extremely long half-life will
354 # dominate at long times, but at short times they will not affect the
355 # derivative. Choosing a time that satisfies the longest half-life seems
356 # to work well enough.
357 guess = max(-log(target/Ia)/La + t_k for Ia, La in data)
358 # With times far from zero the time resolution in the exponential is
359 # poor. Adjust the start time to the initial guess, rescaling intensities
360 # to the activity at that time.
361 adj = [(Ia*exp(-La*(guess-t_k)), La) for Ia, La in data]
362 #print(adj)
363 # Build f(t) = total activity at time T minus target activity and its
364 # derivative df/dt. f(t) will be zero when activity is at target
365 f = lambda t: sum(Ia*exp(-La*t) for Ia, La in adj) - target
366 df = lambda t: sum(-La*Ia*exp(-La*t) for Ia, La in adj)
367 #print("data", data, [])
368 t, ft = find_root(0, f, df, tol=tol)
369 percent_error = 100*abs(ft)/target
370 if percent_error > 0.1:
371 #return 1e100*365*24 # Return 1e100 rather than raising an error
372 msg = (
373 "Failed to compute decay time correctly (%.1g error). Please"
374 " report material, mass, flux and exposure.") % percent_error
375 raise RuntimeError(msg)
376 # Return time at least zero hours after removal from the beam. Correct
377 # for time adjustment we used to stablize the fit.
378 return max(t+guess, 0.0)
379
380 def _accumulate(self, activity: dict["ActivationResult", list[float]]):
381 for el, activity_el in activity.items():
382 el_total = self.activity.get(el, [0]*len(self.rest_times))
383 self.activity[el] = [T+v for T, v in zip(el_total, activity_el)]
384
385 def show_table(self, cutoff: float=0.0001, format: str="%.4g"):
386 """
387 Tabulate the daughter products.
388
389 *cutoff=1* : float | uCi
390
391 The minimum activation value to show.
392
393 *format="%.1f"* : string
394
395 The number format to use for the activation.
396 """
397 # TODO: need format="auto" which picks an appropriate precision based on
398 # cutoff and/or activation level.
399
400 # Track individual rows with more than 1 uCi of activation, and total activation
401 # Replace any activation below the cutoff with '---'
402 rows = []
403 total = [0.]*len(self.rest_times)
404 for el, activity_el in sorted_activity(self.activity):
405 total = [t+a for t, a in zip(total, activity_el)]
406 if all(a < cutoff for a in activity_el):
407 continue
408 activity_str = [format%a if a >= cutoff else "---" for a in activity_el]
409 rows.append([el.isotope, el.daughter, el.reaction, el.Thalf_str]+activity_str)
410 footer = ["", "", "", "total"] + [format%t if t >= cutoff else "---" for t in total]
411
412 # If no significant total activation then don't print the table
413 if all(t < cutoff for t in total):
414 print("No significant activation")
415 return
416
417 # Print the table header, with an overbar covering the various rest times
418 # Print a dashed separator above and below each column
419 header = ["isotope", "product", "reaction", "half-life"] \
420 + ["%g hrs"%vi for vi in self.rest_times]
421 separator = ["-"*8, "-"*9, "-"*8, "-"*10] + ["-"*12]*len(self.rest_times)
422 cformat = "%-8s %-9s %8s %10s " + " ".join(["%12s"]*len(self.rest_times))
423
424 width = sum(len(c)+1 for c in separator[4:]) - 1
425 if width < 16:
426 width = 16
427 overbar = "-"*(width//2-8) + " activity (uCi) " + "-"*((width+1)//2-8)
428 offset = sum(len(c)+1 for c in separator[:4]) - 1
429 print(" "*(offset+1)+overbar)
430 print(cformat%tuple(header))
431 print(cformat%tuple(separator))
432
433 # Print the significant table rows, or indicate that there were no
434 # significant rows if the total is significant but none of the
435 # individual isotopes
436 if rows:
437 for r in rows:
438 print(cformat%tuple(r))
439 else:
440 print("No significant isotope activation")
441 print(cformat%tuple(separator))
442
443 # If there is more than one row, or if there is enough marginally
444 # significant activation that the total is greater then the one row
445 # print the total in the footer
446 if len(rows) != 1 or any(c != t for c, t in zip(rows[0][4:], footer[4:])):
447 print(cformat%tuple(footer))
448 print(cformat%tuple(separator))
449
450 def find_root(
451 x: float,
452 f: Callable[[float], float],
453 df: Callable[[float], float],
454 max: int=20,
455 tol: float=1e-10,
456 ):
457 r"""
458 Find zero of a function.
459
460 Returns when $|f(x)| < tol$ or when max iterations have been reached,
461 so check that $|f(x)|$ is small enough for your purposes.
462
463 Returns x, f(x).
464 """
465 fx = f(x)
466 for _ in range(max):
467 #print(f"step {_}: {x=} {fx=} df/dx={df(x)} dx={fx/df(x)}")
468 if abs(fx) < tol:
469 break
470 x -= fx / df(x)
471 fx = f(x)
472 return x, fx
473
474
475 def sorted_activity(
476 activity: dict["ActivationResult", list[float]],
477 ) -> list[tuple["ActivationResult", list[float]]]:
478 """Interator over activity pairs sorted by isotope then daughter product."""
479 return sorted(activity.items(), key=lambda x: (x[0].isotope, x[0].daughter))
480
481
482 class ActivationEnvironment:
483 """
484 Neutron activation environment.
485
486 The activation environment provides details of the neutron flux at the
487 sample position.
488
489 *fluence* : float | n/cm^2/s
490
491 Thermal neutron fluence on sample. For COLD neutrons enter equivalent
492 thermal neutron fluence.
493
494 **Warning**: For very high fluences, e.g., >E16 to E17 n/cm2, the
495 equations give erroneous results because of the precision limitations.
496 If there is doubt simply do the calculation at a lower flux and
497 proportion the result. This will not work for the cascade reactions,
498 i.e., two neutron additions.
499
500 *Cd_ratio* : float
501
502 Neutron cadmium ratio. Use 0 to suppress epithermal contribution.
503
504 This is to account for those nuclides that have a significant
505 contribution to the activation due to epithermal neutrons. This is
506 tabulated in the cross-section database as the 'resonance cross-
507 section'. Values can range from 4 to more than 100.
508
509 ....... Use 0 for your initial calculation ..........
510
511 If you do a specific measurement for the nuclide and spectrum
512 of interest you simply apply a correction to the thermal based
513 calculation, i.e., reduce the fluence by the appropriate factor.
514
515 This computation can be based on a Cd ratio of a material that has
516 no significant resonance cross-section, or that has been corrected
517 so that it reflects just the thermal to epithermal fluence ratio.
518 The computation simply adds a portion of this resonance cross-section
519 to the thermal cross-section based on the presumption that the
520 Cd ratio reflects the fluence ratio. Copper is a good material on
521 which to equate the Cd ratio to the thermal-epithermal fluence ratio.
522
523 For other materials, correct for the thermal:epithermal cross-section
524 ratio.
525
526 At the NBSR this ranges from 12 in mid-core, to 200 at RT-4,
527 to >2000 at a filtered cold neutron guide position.
528
529 *fast_ratio* : float
530
531 Thermal/fast ratio needed for fast reactions. Use 0 to suppress fast
532 contribution.
533
534 This is very reaction dependent. You in essence need to know the
535 answer before you do the calculation! That is, this ratio depends
536 upon the shape of the cross-section curve as well as the spectrum
537 shape above the energy threshold of the reaction. But at least you
538 can do 'what-if' calculations with worse case assumptions (in the
539 absence of specific ratios).
540
541 The fast cross-sections in this database are weighted for a fast
542 maxwellian spectrum so the fast/thermal ratio should be just a
543 fluence correction (i.e., a fluence ratio), not an energy correction.
544
545 Fast neutron cross-sections from IAEA273 are manually spectrum weighted.
546 Those from IAEA156 are fission spectrum averaged as tabulated.
547
548 Use 50 (for NBSR calculations) as a starting point if you simply
549 exploring for possible products.
550
551 """
552 fluence: float
553 Cd_ratio: float
554 fast_ratio: float
555 location: str
556
557 def __init__(self, fluence=1e5, Cd_ratio=0., fast_ratio=0., location=""):
558 self.fluence = fluence # cell F13
559 self.Cd_ratio = Cd_ratio # cell F15
560 self.fast_ratio = fast_ratio # cell F17
561 self.location = location # cell F21
562
563 # Cell Q1
564 @property
565 def epithermal_reduction_factor(self):
566 """
567 Used as a multiplier times the resonance cross section to add to the
568 thermal cross section for all thermal induced reactions.
569 """
570 return 1./self.Cd_ratio if self.Cd_ratio >= 1 else 0
571
572 COLUMN_NAMES = [
573 "_symbol", # 0 AF
574 "_index", # 1 AG
575 "Z", # 2 AH
576 "symbol", # 3 AI
577 "A", # 4 AJ
578 "isotope", # 5 AK
579 "abundance", # 6 AL
580 "daughter", # 7 AM
581 "_Thalf", # 8 AN
582 "_Thalf_unit", # 9 AO
583 "isomer", # 10 AP
584 "percentIT", # 11 AQ
585 "reaction", # 12 AR
586 "fast", # 13 AS
587 "thermalXS", # 14 AT
588 "gT", # 15 AU
589 "resonance", # 16 AV
590 "Thalf_hrs", # 17 AW
591 "Thalf_str", # 18 AX
592 "Thalf_parent", # 19 AY
593 "thermalXS_parent", # 20 AZ
594 "resonance_parent", # 21 BA
595 "comments", # 22 BB
596 ]
597 INT_COLUMNS = [1, 2, 4]
598 BOOL_COLUMNS = [13]
599 FLOAT_COLUMNS = [6, 11, 14, 15, 16, 17, 19, 20, 21]
600 UNITS_TO_HOURS = {'y': 8760, 'd': 24, 'h': 1, 'm': 1/60, 's': 1/3600}
601
602 def activity(
603 isotope: Isotope,
604 mass: float,
605 env: ActivationEnvironment,
606 exposure: float,
607 rest_times: Sequence[float],
608 ) -> dict["ActivationResult", list[float]]:
609 """
610 Compute isotope specific daughter products after the given exposure time and
611 rest period.
612
613 Activations are listed in *isotope.neutron_activation*. Most of the
614 activations (n,g n,p n,a n,2n) define a single step process, where a neutron
615 is absorbed yielding the daughter and some prompt radiation. The daughter
616 itself will decay during exposure, yielding a balance between production and
617 emission. Any exposure beyound about eight halflives will not increase
618 activity for that product.
619
620 Activity for daughter products may undergo further neutron capture, reducing
621 the activity of the daughter product but introducing a grand daughter with
622 its own activity.
623
624 The data tables for activation are only precise to about three significant
625 figures. Any changes to the calculations below this threshold, e.g., due to
626 slightly different mass or abundance, are therefore of little concern.
627
628 Differences in formulas compare to the NCNR activation spreadsheet:
629
630 * Column M: Use ln(2) rather than 0.693
631 * Column N: Use ln(2) rather than 0.693
632 * Column O: Rewrite to use expm1(x) = exp(x) - 1::
633 = L (1 - exp(-M Y43)/(1-(M/N) ) + exp(-N Y43)/((N/M)-1) )
634 = L (1 - N exp(-M Y43)/(N-M) + M exp(-N Y43)/(N-M) )
635 = L/(N-M) ( (N-M) - N exp(-M Y43) + M exp(-N Y43) )
636 = L/(N-M) ( N(1 - exp(-M Y43)) + M (exp(-N Y43) - 1) )
637 = L/(N-M) ( -N expm1(-M Y43) + M expm1(-N) )
638 = L/(N-M) (M expm1(-N Y43) - N expm1(-M Y43))
639 * Column X: Rewrite to use expm1(x) = exp(x) - 1::
640 = W ((abs(U)<1e-10 and abs(V)<1e-10) ? (V-U + (V-U)(V+U)/2) : (exp(-U)-exp(-V)))
641 = W (exp(-U) - exp(-V))
642 = W exp(-V) (exp(V-U) - 1) = W exp(-U) (1 - exp(U-V))
643 = W exp(-V) expm1(V-U) = -W exp(-U) expm1(U-V)
644 = (U > V) ? (W exp(-V) expm1(V-U)) : (-W exp(-U) expm1(U-V))
645
646 Differences in the data tables:
647
648 * AW1462 (W-186 => W-188 2n) t1/2 in hrs is not converting days to hours
649 * AK1495 (Au-198 => Au-199 2n) target should be Au-197
650 * AN1428 (Tm-169 => Tm-171 2n) t1/2 updated to Tm-171 rather than Tm-172
651 * AN1420 (Er-162 => Ho-163 b) t1/2 updated to 4570 y from 10 y
652 * AT1508 (Pb-208 => Pb-209 act) Thermal (b) x 1000 to convert from mbarns to barns
653 """
654 # TODO: is the table missing 1-H => 3-H ?
655 # 0nly activations which produce radioactive daughter products are
656 # included. Because 1-H => 2-H (act) is not in the table, is this why
657 # there is no entry for 1-H => 3-H (2n).
658
659 result: dict["ActivationResult", list[float]] = {}
660 if not hasattr(isotope, 'neutron_activation'):
661 return result
662
663 for ai in isotope.neutron_activation:
664 # Ignore fast neutron interactions if not using fast ratio
665 if ai.fast and env.fast_ratio == 0:
666 continue
667 # Column D: elemental % mass content of sample
668 # mass fraction and abundance already included in mass calculation, so not needed
669 # Column E: target nuclide and comment
670 # str(isotope), ai.comment
671 # Column F: Nuclide Produced
672 # ai.daughter
673 # Column G: Half-life
674 # ai.Thalf_str
675 # Column H: initial effective cross-section [barn]
676 # env.epithermal_reduction_factor:$Q$1 = 1/env.Cd_ratio:$F$15
677 initialXS = ai.thermalXS + env.epithermal_reduction_factor*ai.resonance
678 # Column I: reaction
679 # ai.reaction
680 # Column J: fast?
681 # ai.fast
682 # Column K: effective reaction flux [n/cm^2/s]
683 # env.fluence:$F$13 env.fast_ratio:$F$17
684 flux = env.fluence/env.fast_ratio if ai.fast else env.fluence
685 # Column L: root part of activation calculation [uCi]
686 # mass:$F$19
687 # Decay correction portion done in column M
688 # The given mass is sample mass * sample fraction * isotope abundance
689 # The constant converts from Bq to uCi via avogadro's number with
690 # N_A[atoms] / 3.7e10[Bq/Ci] * 1e6 [uCi/Ci] ~ 1.627605611e19
691 Bq_to_uCi = 1.6276e19
692 #Bq_to_uCi = constants.avogadro_number / 3.7e4
693 # 1/(cm^2 s) (Bq s) (barn cm^2/barn) g / (g/mol) ((1/mol) / (Bq/uCi))
694 # TODO: use isotope.mass rather than isotope.isotope
695 # Using isotope number rather than isotope mass to estimate the number
696 # atoms introduces some error, overestimating Li activation by 0.25%
697 # and underestimating Fe activation by 0.11%
698 root = flux * (initialXS * 1e-24) * mass / isotope.isotope * Bq_to_uCi
699 # Column M: 0.69/t1/2 [1/h] lambda of produced nuclide
700 lam = LN2/ai.Thalf_hrs
701 #print(ai.thermalXS, ai.resonance, env.epithermal_reduction_factor)
702 #print(isotope, "D", mass, "F", ai.daughter, "G", ai.Thalf_str,
703 # "H", initialXS, "I", ai.reaction, "J", ai.fast, "K", flux,
704 # "L", root, "M", lam)
705
706 # Column Y: activity at the end of irradiation [uCi]
707 if ai.reaction == 'b':
708 # Column N: 0.69/t1/2 [1/h] lambda of parent nuclide
709 parent_lam = LN2 / ai.Thalf_parent
710 # Column O: Activation if "b" mode production
711 # 2022-05-18 PAK: addressed the following
712 # Note: problems resulting from precision limitation not addressed
713 # in "b" mode production
714 # by rewriting equation to use expm1:
715 # activity = root*(1 - exp(-lam*exposure)/(1 - (lam/parent_lam))
716 # + exp(-parent_lam*exposure)/((parent_lam/lam)-1))
717 # Let x1=-lam*exposure x2=-parent_lam*exposure a=x1/x2=lam/parent_lam
718 # activity = root * (1 - exp(x1)/(1-a) + exp(x2)/(1/a - 1))
719 # = root * (1 - x2*exp(x1)/(x2-x1)) + x1*exp(x2)/(x2-x1))
720 # = root * ((x2-x1) - x2*exp(x1) + x1*exp(x2)) / (x2-x1)
721 # = root * (x2*(1-exp(x1)) + x1*(exp(x2)-1)) / (x2-x1)
722 # = root * (x1*expm1(x2) - x2*expm1(x1)) / (x2-x1)
723 # = root * (lam*expm1(x2) - parent_lam*expm1(x1)) / (parent_lam - lam)
724 # Checked for each b-mode production that small halflife results are
725 # unchanged to four digits and Eu[151] => Gd[152] no longer fails.
726 activity = root/(parent_lam - lam) * (
727 lam*expm1(-parent_lam*exposure) - parent_lam*expm1(-lam*exposure))
728 #print("N", parent_lam, "O", activity)
729 elif ai.reaction == '2n':
730 # Column N: 0.69/t1/2 [1/h] lambda of parent nuclide
731 parent_lam = LN2 / ai.Thalf_parent
732 # Column P: effective cross-section 2n product and n, g burnup [barn]
733 # Note: This cross-section always uses the total thermal flux
734 effectiveXS = ai.thermalXS_parent + env.epithermal_reduction_factor*ai.resonance_parent
735 # Column Q: 2n mode effective lambda of stable target [1/h]
736 lam_2n = (flux*3600)*(initialXS*1e-24)
737 # Column R: radioactive parent [1/h]
738 parent_activity = (env.fluence*3600)*(effectiveXS*1e-24) + parent_lam
739 # Column S: resulting product [1/h]
740 product_2n = lam if ai.reaction == '2n' else 0
741 # Column T: activity if 2n mode
742 activity = root*lam*(parent_activity-parent_lam)*(
743 (exp(-lam_2n*exposure)
744 / ((parent_activity-lam_2n)*(product_2n-lam_2n)))
745 + (exp(-parent_activity*exposure)
746 / ((lam_2n-parent_activity)*(product_2n-parent_activity)))
747 + (exp(-product_2n*exposure)
748 / ((lam_2n-product_2n)*(parent_activity-product_2n)))
749 )
750 #print("N", parent_lam, "P", effectiveXS, "Q", lam_2n,
751 # "R", parent_activity, "S", product_2n, "T", activity)
752 else:
753 # Provide the fix for the limitied precision (15 digits) in the
754 # floating point calculation. For neutron fluence rates above
755 # 1e16 the precision in certain cells needs to be improved to
756 # avoid erroneous results. Also, burnup for single capture
757 # reactions (excluding 'b') is included here.
758 # See README file for details.
759
760 # Column P: effective cross-section 2n product and n, g burnup [barn]
761 # Note: This cross-section always uses the total thermal flux
762 effectiveXS = ai.thermalXS_parent + env.epithermal_reduction_factor*ai.resonance_parent
763 # Column U: nv1s1t [neutrons]
764 U = (flux*3600)*(initialXS*1e-24)*exposure
765 # Column V: nv2s2t+L2*t [neutrons]
766 V = ((env.fluence*3600)*(effectiveXS*1e-24)+lam)*exposure
767 # Column W: L/(L-nvs1+nvs2) [unitless]
768 W = lam/(lam-(flux*3600)*(initialXS*1e-24)+(env.fluence*3600)*(effectiveXS*1e-24))
769 # Column X: W*(exp(-U)-exp(V)) if U,V > 1e-10 else W*(V-U+(V-U)*(V+U)/2)
770 # [PAK 2024-02-28] Rewrite the exponential difference using expm1()
771 #Xp = exp(-V)*expm1(V-U) if U>V else -exp(-U)*expm1(U-V)
772 X = W*exp(-V)*expm1(V-U) if U>V else -W*exp(-U)*expm1(U-V)
773 # Column Y: O if "b" else T if "2n" else L*X
774 activity = root*X
775 #print(f"{ai.isotope}=>{ai.daughter} {U=} {V=} {W=} {Xp=} {X=} {activity=} {lam=} {flux*initialXS*3600*1e-24+env.fluence*effectiveXS*3600*1e-24}")
776 #print(f"{ai.isotope}=>{ai.daughter} {U=} {V=} {W=} {X=} {activity=}")
777
778 if activity < 0:
779 msg = "activity %g less than zero for %g"%(activity, isotope)
780 raise RuntimeError(msg)
781 #print(ai.thermalXS_parent, ai.resonance_parent, exposure)
782 #print("P", effectiveXS, "U", U, "V", V, "W", W, "X",
783 # precision_correction, "Y", activity)
784 # columns: F32 H K L U V W X
785 #data = env.fluence, initialXS, flux, root, U, V, W, precision_correction
786 #print(" ".join("%.5e"%v for v in data))
787
788 # TODO: chained activity (e.g., )
789 result[ai] = [activity*exp(-lam*Ti) for Ti in rest_times]
790 #print([(Ti, Ai) for Ti, Ai in zip(rest_times, result[ai])])
791
792 return result
793
794 class ActivationResult:
795 r"""
796 *isotope* :
797
798 Activation target for this result ({symbol}-{A})
799
800 *abundance* : float | %
801
802 IAEA 1987 isotopic abundance of activation target
803
804 *symbol* :
805
806 Element symbol for isotope
807
808 *A* : int
809
810 Number of protons plus neutrons in isotope
811
812 *Z* : int
813
814 Number of protons in isotope
815
816 *reaction* :
817
818 Activation type
819
820 - "act" for (n,gamma)
821 - "n,p" for (n,proton)
822 - "n,a" for (n,alpha)
823 - "2n" for activation of a daughter (e.g., 95Mo + n => 95Nb + n => 96Nb)
824 - "n,2n" for neutron catalyzed release of a neutron
825 - "b" for beta decay of a daughter (e.g., 98Mo + n => 99Mo => Tc-99)
826
827 *comments* :
828
829 Notes relating to simplifications or assumptions in the
830 database. For most situations these do not affect your results.
831
832 *daughter* :
833
834 Daughter product from activation ({symbol}-{A}{isomer})
835
836 *isomer* :
837
838 Daughter product isotope annotation
839
840 m, m1, m2: indicate metastable states. Decay may be to the ground
841 state or to another nuclide.
842
843 \+: indicates radioactive daughter production already included in
844 daughter listing several parent t1/2's required to acheive calculated
845 daughter activity. All activity assigned at end of irradiation. In
846 most cases the added activity to the daughter is small.
847
848 \*: indicates radioactive daughter production NOT calculated,
849 approximately secular equilibrium
850
851 s: indicates radioactive daughter of this nuclide in secular equilibrium
852 after several daughter t1/2's
853
854 t: indicates transient equilibrium via beta decay. Accumulation of that
855 nuclide during irradiation is separately calculated.
856
857 *Thalf_hrs* : float | hours
858
859 Half-life of daughter in hours
860
861 *Thalf_str* :
862
863 Half-life of daughter as string, such as "29.0 y"
864
865 *Thalf_parent* : float | hours
866
867 Half-life of parent in chained "2n" or "b" reaction
868
869 *fast* : bool
870
871 Indicates whether the reaction is fast or thermal. If fast then the
872 fluence is reduced by the specified fast/thermal ratio. When
873 *fast_ratio* is zero in the environment this activation will not appear.
874
875 *thermalXS*, *resonance*, *thermalXS_parent*, *resonance_parent* : float | barns
876
877 Activation database values for computing the reaction cross section.
878
879 *gT*, *percentIT* :
880
881 Unused.
882
883 Database notes:
884
885 Most of the cross-section data is from IAEA 273. This is an excellent
886 compilation. I highly recommend its purchase. The fast neutron cross-section
887 data entered in the spreadsheet is weighted by an U-235 maxwellian
888 distributed fission spectrum. Allthermal reactions producing nuclides with a
889 half-life in excess of 1 second, and some less than 1 second, are included.
890 Also included are radioactive daughters with halflives substantially longer
891 than the parent produced by the neutron induced reaction, i.e., those
892 daughters not in secular equilibrium. See the database in for more detailed
893 notes relating to the database entries.
894
895 [Note: 150 fission spectrum averaged fast neutron reactions added from
896 IAEA156 on 2/1/94. All those that are tabulated as measured have been
897 entered. Those estimated by calculation have not been entered. In practice
898 this means that the convenient, observable products are in this database.
899 Fast reactions included are n,p; n,alpha; n,2n; and n,n'.
900
901 Reaction = b : This is the beta produced daughter of an activated parent.
902 This is calculated only for the cases where the daughter is long lived
903 relative to the parent. In the reverse case the daughter activity is
904 reasonably self evident and the parent nuclide is tagged to indicate a
905 radioactive daughter. The calculated activity of the beta produced
906 daughter is through the end of irradiation. Contributions from the
907 added decay of the parent after the end of irradiation are left for the
908 user to determine, but are usually negligible for irradiations that are
909 long relative to the parent halflife.
910
911 During irradiation parent activity (A1) is:
912
913 A1 = K [1 - exp(-L1*t)]
914
915 where K is the parent saturation activity and L1 is the decay constant.
916
917 For the beta produced daughter the activity (A2) is:
918
919 A2 = K [1 - exp(-L1*t) * L2/(L2-L1) + exp(-L2*t) * L1/(L2-L1)]
920
921 """
922 isotope: Isotope
923 abundance: float
924 symbol: str
925 A: int
926 Z: int
927 reaction: str
928 comments: str
929 daughter: str
930 isomer: str
931 Thalf_hrs: float
932 Thalf_str: str
933 Thalf_parent: float
934 fast: bool
935 thermalXS: float
936 resonance: float
937 thermalXS_parent: float
938 resonance_parent: float
939 percentIT: float|None
940 gT: float|None
941
942 def __init__(self, **kw):
943 self.__dict__ = kw
944 def __repr__(self):
945 return f"ActivationResult({self.isotope},{self.reaction},{self.daughter})"
946 def __str__(self):
947 return f"{self.isotope}={self.reaction}=>{self.daughter}"
948
949 def init(table, reload=False):
950 """
951 Add neutron activation levels to each isotope.
952 """
953 # TODO: importlib.reload does not work for iso.neutron_activation attribute
954 if 'neutron_activation' not in table.properties:
955 table.properties.append('neutron_activation')
956 elif not reload:
957 return
958 else:
959 # Reloading activation table so clear the existing data.
960 for el in table:
961 for iso in el.isotopes:
962 if hasattr(el[iso], 'neutron_activation'):
963 del el[iso].neutron_activation
964
965 # We are keeping the table as a simple export of the activation data
966 # from the ncnr health physics excel spreadsheet so that it is easier
967 # to validate that the table contains the same data. Unfortunately some
968 # of the cells involved formulas, which need to be reproduced when loading
969 # in order to match full double precision values.
970 activations = {}
971 path = os.path.join(get_data_path('.'), 'activation.dat')
972 with open(path, 'r') as fd:
973 for row in fd:
974 #print(row, end='')
975 columns = row.split('\t')
976 if columns[0].strip() in ('', 'xx'):
977 continue
978 columns = [c[1:-1] if c.startswith('"') else c for c in columns]
979 #print columns
980 for c in INT_COLUMNS:
981 columns[c] = int(columns[c])
982 for c in BOOL_COLUMNS:
983 columns[c] = (columns[c] == 'y')
984 for c in FLOAT_COLUMNS:
985 s = columns[c].strip()
986 columns[c] = float(s) if s else 0.
987 # clean up comment column
988 columns[-1] = columns[-1].replace('"', '').strip()
989 kw = dict(zip(COLUMN_NAMES, columns))
990 iso = (kw['Z'], kw['A'])
991 act = activations.setdefault(iso, [])
992
993 # TODO: use NuBase2020 for halflife
994 # NuBase2020 uses different isomer labels.
995 # Strip the (+, *, s, t) tags
996 # Convert m1/m2 to m/n for
997 # In-114 In-116 Sb-124 Eu-152 Hf-179 Ir-192
998 # Convert Eu-152m2 to Eu-152r
999 # Convert m to n for
1000 # Sc-46m Ge-73m Kr-83m Pd-107m Pd-109m Ag-110m Ta-182m Ir-194m Pb-204m
1001 # Convert m to p for
1002 # Sb-122m Lu-177m
1003
1004 # Recreate Thalf_hrs column using double precision.
1005 # Note: spreadsheet is not converting half-life to hours in cell AW1462 (186-W => 188-W)
1006 kw['Thalf_hrs'] = float(kw['_Thalf']) * UNITS_TO_HOURS[kw['_Thalf_unit']]
1007 #print(f"T1/2 {kw['Thalf_hrs']} +/- {kw['Thalf_hrs_unc']}")
1008
1009 # Half-lives use My, Gy, Ty, Py
1010 value, units = float(kw['_Thalf']), kw['_Thalf_unit']
1011 if units == 'y':
1012 if value >= 1e12:
1013 value, units = value/1e12, 'Ty'
1014 elif value >= 1e9:
1015 value, units = value/1e9, 'Gy'
1016 elif value >= 200e3: # above 200,000 years use My
1017 value, units = value/1e6, 'My'
1018 elif value >= 20e3: # between 20,000 and 200,000 use ky
1019 value, units = value/1e3, 'ky'
1020 formatted = f"{value:g} {units}"
1021 #if formatted.replace(' ', '') != kw['Thalf_str'].replace(' ', ''):
1022 # print(f"{kw['_index']}: old {kw['Thalf_str']} != {formatted} new")
1023 kw['Thalf_str'] = formatted
1024
1025 # Override half-lives using NUBASE2020.
1026 # Note: to use the original values, import periodictable.activation and set
1027 # use_nubase2020_halflife = False before accessing any activation data.
1028 if use_nubase2020_halflife:
1029 daughter = kw['daughter']
1030 # NUBASE2020 lists 123Te as stable, so drop it from the reaction table
1031 if daughter == "Te-123":
1032 continue
1033 Thalf_hrs = nubase2020_halflife[daughter][0] / 3600.0
1034 # Show change for a specific element or isotope
1035 #if daughter.startswith('Co'):
1036 # print(f"{daughter}: {kw['Thalf_hrs']} => {Thalf_hrs}")
1037 kw['Thalf_hrs'] = Thalf_hrs
1038 kw['Thalf_str'] = nubase2020_halflife[daughter][2]
1039
1040 # Recreate Thalf_parent by fetching from the new Thalf_hrs
1041 # e.g., =IF(OR(AR1408="2n",AR1408="b"),IF(AR1407="b",AW1406,AW1407),"")
1042 # This requires that the parent is directly before the 'b' or 'nb'
1043 # with its activation list already entered into the isotope.
1044 # Note: 150-Nd has 'act' followed by two consecutive 'b' entries.
1045 if kw['reaction'] in ('b', '2n'):
1046 parent = act[-2] if act[-1].reaction == 'b' else act[-1]
1047 kw['Thalf_parent'] = parent.Thalf_hrs
1048 else:
1049 #assert kw['Thalf_parent'] == 0
1050 kw['Thalf_parent'] = None
1051
1052 # Strip columns whose names start with underscore
1053 kw = dict((k, v) for k, v in kw.items() if not k.startswith('_'))
1054
1055 # Create an Activation record and add it to the isotope
1056 act.append(ActivationResult(**kw))
1057
1058 # Check abundance values
1059 #if abs(iso.abundance - kw['abundance']) > 0.001*kw['abundance']:
1060 # percent = 100*abs(iso.abundance - kw['abundance'])/kw['abundance']
1061 # print "Abundance of", iso, "is", iso.abundance, \
1062 # "but activation.dat has", kw['abundance'], "(%.1f%%)"%percent
1063
1064 # Plug the activation products into the table
1065 for (Z, A), daughters in activations.items():
1066 table[Z][A].neutron_activation = tuple(daughters)
1067
1068 # Halflife from NUBASE2020 in seconds
1069 # F.G. Kondev, M. Wang, W.J. Huang, S. Naimi, and G. Audi, Chin. Phys. C45, 030001 (2021)
1070 # isomer: (halflife, uncertainty, formatted)
1071 use_nubase2020_halflife = True # Set this to False before accessing activation data
1072 nubase2020_halflife = {
1073 "H-3": (3.8878e+08, 6.3e+05, "12.32 y"),
1074 "Li-8": (8.3870e-01, 3.0e-04, "838.7 ms"),
1075 "Be-10": (4.377e+13, 3.8e+11, "1.387 My"),
1076 "He-6": (8.0692e-01, 2.4e-04, "806.92 ms"),
1077 "B-12": (2.0200e-02, 2.0e-05, "20.20 ms"),
1078 "C-11": (1.2204e+03, 3.2e-01, "20.3402 m"),
1079 "C-14": (1.7987e+11, 9.5e+08, "5.70 ky"),
1080 "N-16": (7.13e+00, 2.0e-02, "7.13 s"),
1081 "O-15": (1.2227e+02, 4.3e-02, "122.266 s"),
1082 "N-17": (4.173e+00, 4.0e-03, "4.173 s"),
1083 "O-19": (2.6470e+01, 6.0e-03, "26.470 s"),
1084 "F-20": (1.1006e+01, 8.0e-03, "11.0062 s"),
1085 "F-18": (6.5840e+03, 4.8e-01, "109.734 m"),
1086 "Ne-23": (3.715e+01, 3.0e-02, "37.15 s"),
1087 "Na-24m+": (2.0180e-02, 1.0e-04, "20.18 ms"),
1088 "Na-24": (5.38416e+04, 5.4e+00, "14.9560 h"),
1089 "Na-22": (8.2108e+07, 1.9e+04, "2.6019 y"),
1090 "Na-25": (5.91e+01, 6.0e-01, "59.1 s"),
1091 "Mg-27": (5.661e+02, 1.6e+00, "9.435 m"),
1092 "Mg-28": (7.5294e+04, 3.2e+01, "20.915 h"),
1093 "Al-28": (1.347e+02, 3.0e-01, "2.245 m"),
1094 "Al-29": (3.936e+02, 3.6e+00, "6.56 m"),
1095 "Si-31": (9.430e+03, 1.2e+01, "157.16 m"),
1096 "Si-32": (4.95e+09, 2.2e+08, "157 y"),
1097 "P-32": (1.23284e+06, 6.0e+02, "14.269 d"),
1098 "P-33": (2.1902e+06, 9.5e+03, "25.35 d"),
1099 "S-35": (7.5488e+06, 3.5e+03, "87.37 d"),
1100 "P-34": (1.243e+01, 1.0e-01, "12.43 s"),
1101 "S-37": (3.030e+02, 1.2e+00, "5.05 m"),
1102 "Cl-36": (9.508e+12, 4.7e+10, "301.3 ky"),
1103 "Cl-38m+": (7.150e-01, 3.0e-03, "715 ms"),
1104 "Cl-38": (2.2338e+03, 8.4e-01, "37.230 m"),
1105 "Ar-37": (3.0250e+06, 1.6e+03, "35.011 d"),
1106 "Ar-39": (8.46e+09, 2.5e+08, "268 y"),
1107 "Ar-41": (6.5766e+03, 2.4e+00, "109.61 m"),
1108 "Ar-42": (1.038e+09, 3.5e+07, "32.9 y"),
1109 "K-40": (3.9383e+16, 9.5e+13, "1.248 Gy"),
1110 "K-42": (4.4478e+04, 2.5e+01, "12.355 h"),
1111 "Ca-41": (3.137e+12, 4.7e+10, "99.4 ky"),
1112 "K-43": (8.028e+04, 3.6e+02, "22.3 h"),
1113 "Ca-45": (1.40495e+07, 7.8e+03, "162.61 d"),
1114 "Ca-47*": (3.9191e+05, 2.6e+02, "4.536 d"),
1115 "Ca-49t": (5.231e+02, 3.6e-01, "8.718 m"),
1116 "Sc-49": (3.4308e+03, 7.8e+00, "57.18 m"),
1117 "Sc-46m+": (1.875e+01, 4.0e-02, "18.75 s"),
1118 "Sc-46": (7.2366e+06, 1.2e+03, "83.757 d"),
1119 "Sc-47": (2.89371e+05, 5.2e+01, "3.3492 d"),
1120 "Ti-45": (1.1088e+04, 3.0e+01, "184.8 m"),
1121 "Sc-48": (1.5721e+05, 3.2e+02, "43.67 h"),
1122 "Ti-51": (3.456e+02, 6.0e-01, "5.76 m"),
1123 "V-52": (2.246e+02, 3.0e-01, "3.743 m"),
1124 "Cr-51": (2.393410e+06, 9.5e+01, "27.7015 d"),
1125 "Cr-49": (2.5380e+03, 6.0e+00, "42.3 m"),
1126 "V-53": (9.26e+01, 8.4e-01, "1.543 m"),
1127 "Cr-55": (2.098e+02, 1.8e-01, "3.497 m"),
1128 "Mn-56": (9.2840e+03, 3.6e-01, "2.5789 h"),
1129 "Mn-54": (2.69638e+07, 2.8e+03, "312.081 d"),
1130 "Fe-55": (8.6977e+07, 1.3e+04, "2.7562 y"),
1131 "Fe-53": (5.106e+02, 1.2e+00, "8.51 m"),
1132 "Fe-59": (3.8448e+06, 1.0e+03, "44.500 d"),
1133 "Co-60m+": (6.280e+02, 3.6e-01, "10.467 m"),
1134 "Co-61": (5.936e+03, 1.8e+01, "1.649 h"),
1135 "Co-60": (1.66349e+08, 1.9e+04, "5.2714 y"),
1136 "Co-58": (6.1209e+06, 1.7e+03, "70.844 d"),
1137 "Ni-57": (1.2816e+05, 2.2e+02, "35.60 h"),
1138 "Ni-59": (2.56e+12, 1.6e+11, "81 ky"),
1139 "Co-58m+": (3.1871e+04, 8.3e+01, "8.853 h"),
1140 "Ni-63": (3.194e+09, 4.7e+07, "101.2 y"),
1141 "Ni-65": (9.0630e+03, 1.8e+00, "2.5175 h"),
1142 "Cu-62": (5.803e+02, 4.8e-01, "9.672 m"),
1143 "Cu-64": (4.57214e+04, 4.7e+00, "12.7004 h"),
1144 "Cu-66": (3.072e+02, 8.4e-01, "5.120 m"),
1145 "Cu-67": (2.2259e+05, 4.3e+02, "61.83 h"),
1146 "Ni-66s": (1.966e+05, 1.1e+03, "54.6 h"),
1147 "Zn-65": (2.10764e+07, 3.5e+03, "243.94 d"),
1148 "Zn-69ms": (4.9489e+04, 4.0e+01, "13.747 h"),
1149 "Zn-69": (3.384e+03, 5.4e+01, "56.4 m"),
1150 "Zn-71m": (1.4933e+04, 4.3e+01, "4.148 h"),
1151 "Zn-71": (1.440e+02, 3.0e+00, "2.40 m"),
1152 "Ga-70": (1.2684e+03, 3.0e+00, "21.14 m"),
1153 "Ga-72m+": (3.968e-02, 1.3e-04, "39.68 ms"),
1154 "Ga-72": (5.0490e+04, 3.6e+01, "14.025 h"),
1155 "Ga-73": (1.750e+04, 1.1e+02, "4.86 h"),
1156 "Ge-69": (1.4058e+05, 3.6e+02, "39.05 h"),
1157 "Ge-71m+": (2.041e-02, 1.8e-04, "20.41 ms"),
1158 "Ge-71": (9.876e+05, 2.6e+03, "11.43 d"),
1159 "Ge-73m": (4.99e-01, 1.1e-02, "499 ms"),
1160 "Ge-75m+": (4.77e+01, 5.0e-01, "47.7 s"),
1161 "Ge-75": (4.9668e+03, 2.4e+00, "82.78 m"),
1162 "Zn-71ms": (1.4933e+04, 4.3e+01, "4.148 h"),
1163 "Ge-77m+": (5.37e+01, 6.0e-01, "53.7 s"),
1164 "Ge-77": (4.0360e+04, 1.1e+01, "11.211 h"),
1165 "Ge-78s": (5.280e+03, 6.0e+01, "88.0 m"),
1166 "As-74": (1.5353e+06, 1.7e+03, "17.77 d"),
1167 "As-76": (9.446e+04, 3.3e+02, "1.0933 d"),
1168 "As-77": (1.3964e+05, 1.8e+02, "38.79 h"),
1169 "Se-75": (1.03490e+07, 2.6e+03, "119.78 d"),
1170 "Se-77m": (1.736e+01, 5.0e-02, "17.36 s"),
1171 "Se-79m+": (2.340e+02, 1.1e+00, "3.900 m"),
1172 "Se-79": (1.032e+13, 8.8e+11, "327 ky"),
1173 "Se-79m": (2.340e+02, 1.1e+00, "3.900 m"),
1174 "Se-81m*": (3.4368e+03, 1.2e+00, "57.28 m"),
1175 "Se-81": (1.1070e+03, 7.2e+00, "18.45 m"),
1176 "Se-83m+": (7.01e+01, 4.0e-01, "70.1 s"),
1177 "Se-83t": (1.3350e+03, 2.4e+00, "22.25 m"),
1178 "Br-83": (8.546e+03, 1.4e+01, "2.374 h"),
1179 "Br-80m*": (1.59138e+04, 2.9e+00, "4.4205 h"),
1180 "Br-80": (1.0608e+03, 1.2e+00, "17.68 m"),
1181 "Br-82m+": (3.678e+02, 3.0e+00, "6.13 m"),
1182 "Br-82": (1.27015e+05, 2.5e+01, "35.282 h"),
1183 "Kr-79m+": (5.00e+01, 3.0e+00, "50 s"),
1184 "Kr-79": (1.2614e+05, 3.6e+02, "35.04 h"),
1185 "Kr-81m+": (1.310e+01, 3.0e-02, "13.10 s"),
1186 "Kr-81": (7.23e+12, 3.5e+11, "229 ky"),
1187 "Kr-83m": (6.588e+03, 4.7e+01, "1.830 h"),
1188 "Kr-85m+": (1.6128e+04, 2.9e+01, "4.480 h"),
1189 "Kr-85": (3.3854e+08, 2.2e+05, "10.728 y"),
1190 "Kr-87": (4.578e+03, 3.0e+01, "76.3 m"),
1191 "Kr-88": (1.0170e+04, 6.8e+01, "2.825 h"),
1192 "Rb-84": (2.8356e+06, 6.0e+03, "32.82 d"),
1193 "Rb-86m+": (6.10e+01, 1.8e-01, "1.017 m"),
1194 "Rb-86": (1.61093e+06, 6.9e+02, "18.645 d"),
1195 "Rb-88": (1.0668e+03, 1.8e+00, "17.78 m"),
1196 "Rb-89*": (9.192e+02, 6.0e+00, "15.32 m"),
1197 "Sr-85m+": (4.0578e+03, 2.4e+00, "67.63 m"),
1198 "Sr-85": (5.60269e+06, 5.2e+02, "64.846 d"),
1199 "Sr-87m": (1.0098e+04, 3.2e+01, "2.805 h"),
1200 "Sr-89": (4.3686e+06, 2.2e+03, "50.563 d"),
1201 "Sr-90": (9.1231e+08, 9.5e+05, "28.91 y"),
1202 "Y-88": (9.2127e+06, 2.1e+03, "106.629 d"),
1203 "Y-89m": (1.5663e+01, 5.0e-03, "15.663 s"),
1204 "Y-90m+": (1.1614e+04, 4.0e+01, "3.226 h"),
1205 "Y-90": (2.3058e+05, 1.8e+02, "64.05 h"),
1206 "Y-91": (5.0553e+06, 5.2e+03, "58.51 d"),
1207 "Zr-89": (2.82096e+05, 8.3e+01, "78.360 h"),
1208 "Zr-93": (5.08e+13, 1.6e+12, "1.61 My"),
1209 "Sr-90s": (9.1231e+08, 9.5e+05, "28.91 y"),
1210 "Zr-95s": (5.53236e+06, 5.2e+02, "64.032 d"),
1211 "Zr-97s": (6.0296e+04, 2.9e+01, "16.749 h"),
1212 "Nb-92mt": (8.740e+05, 1.1e+03, "10.116 d"),
1213 "Nb-92": (1.095e+15, 7.6e+13, "34.7 My"),
1214 "Nb-94m+": (3.758e+02, 2.4e-01, "6.263 m"),
1215 "Nb-94": (6.44e+11, 1.3e+10, "20.4 ky"),
1216 "Nb-93m": (5.087e+08, 3.8e+06, "16.12 y"),
1217 "Mo-93m+": (2.466e+04, 2.5e+02, "6.85 h"),
1218 "Mo-93": (1.26e+11, 2.5e+10, "4.0 ky"),
1219 "Nb-95": (3.02322e+06, 5.2e+02, "34.991 d"),
1220 "Nb-96": (8.406e+04, 1.8e+02, "23.35 h"),
1221 "Mo-99st": (2.37355e+05, 1.8e+01, "65.932 h"),
1222 "Tc-99": (6.662e+12, 3.8e+10, "211.1 ky"),
1223 "Zr-95": (5.53236e+06, 5.2e+02, "64.032 d"),
1224 "Mo-101s": (8.766e+02, 1.8e+00, "14.61 m"),
1225 "Tc-99m+": (2.16238e+04, 7.2e-01, "6.0066 h"),
1226 "Ru-97t": (2.4512e+05, 1.2e+02, "2.8370 d"),
1227 "Tc-97": (1.329e+14, 5.0e+12, "4.21 My"),
1228 "Ru-103": (3.39077e+06, 6.9e+02, "39.245 d"),
1229 "Ru-105t": (1.5980e+04, 4.0e+01, "4.439 h"),
1230 "Rh-105": (1.27228e+05, 6.8e+01, "35.341 h"),
1231 "Rh-103m": (3.3668e+03, 5.4e-01, "56.114 m"),
1232 "Rh-104m": (2.604e+02, 1.8e+00, "4.34 m"),
1233 "Rh-104": (4.23e+01, 4.0e-01, "42.3 s"),
1234 "Pd-103": (1.4680e+06, 1.6e+03, "16.991 d"),
1235 "Pd-107m+": (2.13e+01, 5.0e-01, "21.3 s"),
1236 "Pd-107": (2.051e+14, 9.5e+12, "6.5 My"),
1237 "Pd-109m+": (2.822e+02, 5.4e-01, "4.703 m"),
1238 "Pd-109": (4.892e+04, 4.3e+02, "13.59 h"),
1239 "Pd-111m*": (2.0027e+04, 4.7e+01, "5.563 h"),
1240 "Pd-111t": (1.4136e+03, 5.4e+00, "23.56 m"),
1241 "Ag-111": (6.4221e+05, 8.6e+02, "7.433 d"),
1242 "Ag-106ms": (7.154e+05, 1.7e+03, "8.28 d"),
1243 "Ag-108m*": (1.385e+10, 2.8e+08, "439 y"),
1244 "Ag-108": (1.429e+02, 6.6e-01, "2.382 m"),
1245 "Ag-110m*": (2.15882e+07, 2.1e+03, "249.863 d"),
1246 "Ag-110": (2.46e+01, 1.1e-01, "24.56 s"),
1247 "Cd-107": (2.3400e+04, 7.2e+01, "6.50 h"),
1248 "Ag-106": (1.4376e+03, 2.4e+00, "23.96 m"),
1249 "Cd-109": (3.9856e+07, 4.3e+04, "461.3 d"),
1250 "Cd-111m": (2.9100e+03, 5.4e+00, "48.50 m"),
1251 "Cd-113m": (4.383e+08, 3.5e+06, "13.89 y"),
1252 "Cd-113": (2.537e+23, 1.6e+21, "8.04 Py"),
1253 "Cd-115ms": (3.850e+06, 2.1e+04, "44.56 d"),
1254 "Cd-115s": (1.9246e+05, 1.8e+02, "53.46 h"),
1255 "Cd-117ms": (1.2388e+04, 3.2e+01, "3.441 h"),
1256 "Cd-117s": (9.011e+03, 1.8e+01, "2.503 h"),
1257 "In-114m2+": (4.310e-02, 6.0e-04, "43.1 ms"),
1258 "In-114m1*": (4.27766e+06, 8.6e+02, "49.51 d"),
1259 "In-114": (7.190e+01, 1.0e-01, "71.9 s"),
1260 "In-116m2+": (2.18e+00, 4.0e-02, "2.18 s"),
1261 "In-116m1": (3.257e+03, 1.0e+01, "54.29 m"),
1262 "In-116": (1.410e+01, 3.0e-02, "14.10 s"),
1263 "In-115m": (1.6150e+04, 1.4e+01, "4.486 h"),
1264 "Sn-113m+": (1.284e+03, 2.4e+01, "21.4 m"),
1265 "Sn-113": (9.9429e+06, 3.5e+03, "115.08 d"),
1266 "Sn-117m": (1.2043e+06, 2.1e+03, "13.939 d"),
1267 "Sn-119m": (2.5324e+07, 6.0e+04, "293.1 d"),
1268 "Sn-121m": (1.385e+09, 1.6e+07, "43.9 y"),
1269 "Sn-121": (9.731e+04, 1.4e+02, "27.03 h"),
1270 "Sn-123m": (2.4036e+03, 6.0e-01, "40.06 m"),
1271 "Sn-123": (1.1163e+07, 3.5e+04, "129.2 d"),
1272 "Sn-125t": (8.324e+05, 1.3e+03, "9.634 d"),
1273 "Sn-125m": (5.86e+02, 1.5e+01, "9.77 m"),
1274 "Sb-125": (8.7021e+07, 3.5e+04, "2.7576 y"),
1275 "Sn-126": (7.26e+12, 4.4e+11, "230 ky"),
1276 "Sb-122m+": (2.515e+02, 1.8e-01, "4.191 m"),
1277 "Sb-122": (2.35336e+05, 1.7e+01, "2.7238 d"),
1278 "Sb-124m2*": (1.212e+03, 1.2e+01, "20.2 m"),
1279 "Sb-124m1+": (9.30e+01, 5.0e+00, "93 s"),
1280 "Sb-124": (5.2013e+06, 2.6e+03, "60.20 d"),
1281 "Te-121m*": (1.4230e+07, 4.3e+04, "164.7 d"),
1282 "Te-121": (1.6684e+06, 6.0e+03, "19.31 d"),
1283 "Te-123m*": (1.02989e+07, 8.6e+03, "119.2 d"),
1284 "Te-125m": (4.959e+06, 1.3e+04, "57.40 d"),
1285 "Te-127m*": (9.167e+06, 6.0e+04, "106.1 d"),
1286 "Te-127": (3.366e+04, 2.5e+02, "9.35 h"),
1287 "Te-129ms": (2.9030e+06, 8.6e+03, "33.6 d"),
1288 "Te-129t": (4.176e+03, 1.8e+01, "69.6 m"),
1289 "I-129": (5.093e+14, 3.8e+12, "16.14 My"),
1290 "Te-131m": (1.1693e+05, 4.0e+02, "32.48 h"),
1291 "Te-132": (2.768e+05, 1.1e+03, "3.204 d"),
1292 "Te-131t": (1.5000e+03, 6.0e+00, "25.0 m"),
1293 "I-131": (6.93351e+05, 5.2e+01, "8.0249 d"),
1294 "I-126": (1.1172e+06, 4.3e+03, "12.93 d"),
1295 "I-128": (1.4994e+03, 1.2e+00, "24.99 m"),
1296 "Xe-125m+": (5.69e+01, 9.0e-01, "56.9 s"),
1297 "Xe-125t": (6.073e+04, 2.9e+02, "16.87 h"),
1298 "I-125": (5.13147e+06, 6.9e+02, "59.392 d"),
1299 "Xe-127m+": (6.92e+01, 9.0e-01, "69.2 s"),
1300 "Xe-127": (3.13995e+06, 2.6e+02, "36.342 d"),
1301 "Xe-129m": (7.672e+05, 1.7e+03, "8.88 d"),
1302 "Xe-131m": (1.0323e+06, 1.0e+03, "11.948 d"),
1303 "Xe-133m+": (1.899e+05, 1.1e+03, "2.198 d"),
1304 "Xe-133": (4.53375e+05, 4.3e+01, "5.2474 d"),
1305 "Xe-135m+": (9.174e+02, 3.0e+00, "15.29 m"),
1306 "Xe-135": (3.2904e+04, 7.2e+01, "9.14 h"),
1307 "Xe-137t": (2.291e+02, 7.8e-01, "3.818 m"),
1308 "Cs-137s": (9.480e+08, 1.3e+06, "30.04 y"),
1309 "Cs-134m+": (1.04832e+04, 7.2e+00, "2.912 h"),
1310 "Cs-134": (6.5165e+07, 1.3e+04, "2.0650 y"),
1311 "Cs-135": (4.20e+13, 6.0e+12, "1.33 My"),
1312 "I-130": (4.4496e+04, 3.6e+01, "12.36 h"),
1313 "Ba-131m+": (8.556e+02, 5.4e+00, "14.26 m"),
1314 "Ba-131s": (9.9533e+05, 8.6e+02, "11.52 d"),
1315 "Ba-133m+": (1.4004e+05, 2.2e+02, "38.90 h"),
1316 "Ba-133": (3.32544e+08, 5.0e+04, "10.5379 y"),
1317 "Cs-132": (5.5987e+05, 5.2e+02, "6.480 d"),
1318 "Ba-135m": (1.01196e+05, 7.2e+01, "28.11 h"),
1319 "Ba-136m": (3.084e-01, 1.9e-03, "308.4 ms"),
1320 "Ba-137m": (1.5312e+02, 6.0e-02, "2.552 m"),
1321 "Cs-136": (1.1241e+06, 4.3e+03, "13.01 d"),
1322 "Cs-137": (9.480e+08, 1.3e+06, "30.04 y"),
1323 "Ba-139": (4.9758e+03, 5.4e+00, "82.93 m"),
1324 "Ba-140": (1.10189e+06, 1.8e+02, "12.7534 d"),
1325 "La-140": (1.45040e+05, 1.4e+01, "40.289 h"),
1326 "La-141*": (1.411e+04, 1.1e+02, "3.92 h"),
1327 "Ce-137m*": (1.238e+05, 1.1e+03, "34.4 h"),
1328 "Ce-137t": (3.24e+04, 1.1e+03, "9.0 h"),
1329 "La-137": (1.89e+12, 6.3e+11, "60 ky"),
1330 "Ce-139m+": (5.76e+01, 3.2e-01, "57.58 s"),
1331 "Ce-139": (1.18923e+07, 1.7e+03, "137.642 d"),
1332 "Ce-141": (2.80843e+06, 8.6e+02, "32.505 d"),
1333 "Ce-143t": (1.18940e+05, 2.2e+01, "33.039 h"),
1334 "Pr-143": (1.1724e+06, 1.7e+03, "13.57 d"),
1335 "Ce-144s": (2.46142e+07, 2.2e+03, "284.886 d"),
1336 "Pr-142m+": (8.76e+02, 3.0e+01, "14.6 m"),
1337 "Pr-142": (6.883e+04, 1.4e+02, "19.12 h"),
1338 "Nd-147t": (9.4867e+05, 8.6e+02, "10.98 d"),
1339 "Pm-147": (8.27864e+07, 6.3e+03, "2.6234 y"),
1340 "Nd-149t": (6.2208e+03, 3.6e+00, "1.728 h"),
1341 "Pm-149": (1.9109e+05, 1.8e+02, "53.08 h"),
1342 "Nd-151t": (7.464e+02, 4.2e+00, "12.44 m"),
1343 "Pm-151": (1.0224e+05, 1.4e+02, "28.40 h"),
1344 "Sm-151": (2.985e+09, 1.9e+07, "94.6 y"),
1345 "Sm-145t": (2.938e+07, 2.6e+05, "340 d"),
1346 "Pm-145": (5.59e+08, 1.3e+07, "17.7 y"),
1347 "Sm-153": (1.666246e+05, 8.3e+00, "46.2846 h"),
1348 "Sm-155": (1.3308e+03, 3.6e+00, "22.18 m"),
1349 "Eu-152m2+": (5.748e+03, 2.4e+01, "95.8 m"),
1350 "Eu-152m1": (3.35218e+04, 4.7e+00, "9.3116 h"),
1351 "Gd-152": (3.41e+21, 2.5e+20, "108 Ty"),
1352 "Eu-152t": (4.2655e+08, 1.9e+05, "13.517 y"),
1353 "Eu-154": (2.71137e+08, 9.5e+04, "8.592 y"),
1354 "Eu-155": (1.4964e+08, 2.5e+05, "4.742 y"),
1355 "Gd-153": (2.0788e+07, 6.0e+04, "240.6 d"),
1356 "Gd-159": (6.6524e+04, 1.4e+01, "18.479 h"),
1357 "Gd-161t": (2.188e+02, 1.8e-01, "3.646 m"),
1358 "Tb-161": (6.0031e+05, 4.3e+02, "6.948 d"),
1359 "Tb-160": (6.247e+06, 1.7e+04, "72.3 d"),
1360 "Dy-157t": (2.930e+04, 1.4e+02, "8.14 h"),
1361 "Tb-157": (2.24e+09, 2.2e+08, "71 y"),
1362 "Dy-159": (1.2476e+07, 1.7e+04, "144.4 d"),
1363 "Dy-165m": (7.54e+01, 3.6e-01, "1.257 m"),
1364 "Dy-165": (8.395e+03, 1.4e+01, "2.332 h"),
1365 "Dy-166": (2.9376e+05, 3.6e+02, "81.6 h"),
1366 "Ho-166m": (3.574e+10, 1.2e+08, "1.1326 ky"),
1367 "Ho-166": (9.6523e+04, 2.5e+01, "26.812 h"),
1368 "Er-163t": (4.500e+03, 2.4e+01, "75.0 m"),
1369 "Ho-163": (1.4422e+11, 7.9e+08, "4.570 ky"),
1370 "Er-165": (3.730e+04, 1.4e+02, "10.36 h"),
1371 "Er-167m": (2.269e+00, 6.0e-03, "2.269 s"),
1372 "Er-169": (8.115e+05, 1.6e+03, "9.392 d"),
1373 "Er-171t": (2.70576e+04, 7.2e+00, "7.516 h"),
1374 "Tm-171": (6.059e+07, 3.2e+05, "1.92 y"),
1375 "Er-172*": (1.775e+05, 1.8e+03, "49.3 h"),
1376 "Tm-170": (1.1111e+07, 2.6e+04, "128.6 d"),
1377 "Yb-169m+": (4.60e+01, 2.0e+00, "46 s"),
1378 "Yb-169": (2.76601e+06, 4.3e+02, "32.014 d"),
1379 "Yb-175m+": (6.820e-02, 3.0e-04, "68.2 ms"),
1380 "Yb-175": (3.61584e+05, 8.6e+01, "4.185 d"),
1381 "Yb-177m+": (6.41e+00, 2.0e-02, "6.41 s"),
1382 "Yb-177t": (6.880e+03, 1.1e+01, "1.911 h"),
1383 "Lu-177": (5.74068e+05, 7.8e+01, "6.6443 d"),
1384 "Lu-176m": (1.3190e+04, 6.8e+01, "3.664 h"),
1385 "Lu-176": (1.1679e+18, 5.4e+15, "37.01 Gy"),
1386 "Lu-177m*": (1.3859e+07, 2.6e+04, "160.4 d"),
1387 "Hf-175": (6.104e+06, 1.6e+04, "70.65 d"),
1388 "Hf-178m": (4.0e+00, 2.0e-01, "4.0 s"),
1389 "Hf-179m2": (2.160e+06, 1.5e+04, "25.00 d"),
1390 "Hf-179m1": (1.867e+01, 4.0e-02, "18.67 s"),
1391 "Hf-180m": (1.9908e+04, 7.2e+01, "5.53 h"),
1392 "Hf-181": (3.6625e+06, 5.2e+03, "42.39 d"),
1393 "Hf-182s": (2.809e+14, 2.8e+12, "8.90 My"),
1394 "Ta-182m+": (9.504e+02, 6.0e+00, "15.84 m"),
1395 "Ta-182": (9.914e+06, 1.0e+04, "114.74 d"),
1396 "Ta-183": (4.406e+05, 8.6e+03, "5.1 d"),
1397 "Lu-178": (1.704e+03, 1.2e+01, "28.4 m"),
1398 "W-181": (1.04506e+07, 1.6e+03, "120.956 d"),
1399 "W-185m+": (9.58e+01, 2.4e-01, "1.597 m"),
1400 "W-185": (6.489e+06, 2.6e+04, "75.1 d"),
1401 "W-187": (8.5712e+04, 9.0e+01, "23.809 h"),
1402 "W-188": (6.0281e+06, 4.3e+03, "69.77 d"),
1403 "Re-184ms": (1.460e+07, 6.9e+05, "169 d"),
1404 "Re-184": (3.059e+06, 6.0e+04, "35.4 d"),
1405 "Re-186": (3.21278e+05, 4.3e+01, "3.7185 d"),
1406 "Re-188m+": (1.1154e+03, 2.4e+00, "18.59 m"),
1407 "Re-188": (6.1218e+04, 1.1e+01, "17.005 h"),
1408 "Os-185": (8.0309e+06, 7.8e+03, "92.95 d"),
1409 "Os-189m": (2.092e+04, 3.6e+02, "5.81 h"),
1410 "Os-190m": (5.916e+02, 1.8e+00, "9.86 m"),
1411 "Os-191m+": (4.716e+04, 1.8e+02, "13.10 h"),
1412 "Os-191": (1.2951e+06, 1.7e+03, "14.99 d"),
1413 "Os-193": (1.07388e+05, 6.5e+01, "29.830 h"),
1414 "Os-194s": (1.893e+08, 6.3e+06, "6.0 y"),
1415 "Ir-192m2*": (7.61e+09, 2.8e+08, "241 y"),
1416 "Ir-192m1+": (8.70e+01, 3.0e+00, "1.45 m"),
1417 "Ir-192": (6.3780e+06, 1.2e+03, "73.820 d"),
1418 "Ir-193m": (9.098e+05, 3.5e+03, "10.53 d"),
1419 "Ir-194m": (1.477e+07, 9.5e+05, "171 d"),
1420 "Ir-194": (6.966e+04, 2.5e+02, "19.35 h"),
1421 "Pt-191": (2.445e+05, 1.7e+03, "2.83 d"),
1422 "Pt-193m": (3.741e+05, 2.6e+03, "4.33 d"),
1423 "Pt-193": (1.58e+09, 1.9e+08, "50 y"),
1424 "Pt-195m": (3.4646e+05, 4.3e+02, "4.010 d"),
1425 "Pt-197m+": (5.725e+03, 1.1e+01, "95.41 m"),
1426 "Pt-197": (7.16094e+04, 6.8e+00, "19.8915 h"),
1427 "Pt-199m+": (1.35e+01, 1.6e-01, "13.48 s"),
1428 "Pt-199t": (1.848e+03, 1.3e+01, "30.80 m"),
1429 "Au-199": (2.7121e+05, 6.0e+02, "3.139 d"),
1430 "Pt-200s": (4.54e+04, 1.1e+03, "12.6 h"),
1431 "Au-196": (5.3266e+05, 9.5e+02, "6.165 d"),
1432 "Au-197m": (7.73e+00, 6.0e-02, "7.73 s"),
1433 "Au-198": (2.32817e+05, 1.2e+01, "2.69464 d"),
1434 "Hg-197m*": (8.575e+04, 1.4e+02, "23.82 h"),
1435 "Hg-197": (2.3375e+05, 2.5e+02, "64.93 h"),
1436 "Hg-199m": (2.5602e+03, 5.4e+00, "42.67 m"),
1437 "Hg-203": (4.02710e+06, 8.6e+02, "46.610 d"),
1438 "Hg-205": (3.084e+02, 5.4e+00, "5.14 m"),
1439 "Tl-202": (1.0636e+06, 6.9e+03, "12.31 d"),
1440 "Tl-204": (1.1938e+08, 3.8e+05, "3.783 y"),
1441 "Tl-206": (2.521e+02, 6.6e-01, "4.202 m"),
1442 "Pb-203": (1.86926e+05, 5.4e+01, "51.924 h"),
1443 "Pb-204m": (4.0158e+03, 6.0e+00, "66.93 m"),
1444 "Pb-205": (5.36e+14, 2.8e+13, "17.0 My"),
1445 "Pb-209": (1.1646e+04, 1.8e+01, "3.235 h"),
1446 "Bi-210ms": (9.59e+13, 1.9e+12, "3.04 My"),
1447 "Bi-210t": (4.3304e+05, 4.3e+02, "5.012 d"),
1448 "Po-210": (1.195569e+07, 1.7e+02, "138.376 d"),
1449 "Bi-211": (1.284e+02, 1.2e+00, "2.14 m"),
1450 }
1451
1452 def demo(): # pragma: nocover
1453 import sys
1454 import argparse
1455 import periodictable as pt
1456
1457 parser = argparse.ArgumentParser(description='Process some data with mass, flux, exposure, and decay options.')
1458 parser.add_argument('-m', '--mass', type=float, default=1, help='Specify the mass value (default: 1)')
1459 parser.add_argument('-f', '--flux', type=float, default=1e8, help='Specify the flux value (default: 1e8)')
1460 parser.add_argument('-e', '--exposure', type=float, default=10, help='Specify the exposure value (default: 10)')
1461 parser.add_argument('-d', '--decay', type=float, default=5e-4, help='Specify the decay value (default: 5e-4)')
1462 parser.add_argument('--cd-ratio', type=float, default=70, help='Specify the Cd ratio value (default: 70)')
1463 parser.add_argument('--fast-ratio', type=float, default=50, help='Specify the fast ratio value (default: 50)')
1464
1465 parser.add_argument('formula', nargs='?', type=str, default=None, help='Specify the formula as a positional argument')
1466 args = parser.parse_args()
1467
1468 formula = args.formula
1469 if formula is None:
1470 # Make sure all elements compute
1471 #formula = "".join(str(el) for el in pt.elements)[1:]
1472 formula = build_formula([(1/el.mass, el) for el in pt.elements][1:])
1473 # Use an enormous mass to force significant activation of rare isotopes
1474 mass, fluence = 1e15, 1e8
1475 env = ActivationEnvironment(fluence=args.flux, Cd_ratio=args.cd_ratio, fast_ratio=args.fast_ratio, location="BT-2")
1476 sample = Sample(formula, mass=args.mass)
1477 abundance = IAEA1987_isotopic_abundance
1478 #abundance=NIST2001_isotopic_abundance,
1479 sample.calculate_activation(
1480 env, exposure=args.exposure, rest_times=(0, 1, 24, 360),
1481 abundance=abundance,
1482 )
1483 decay_time = sample.decay_time(args.decay)
1484 print(f"{args.mass} g {formula} for {args.exposure} hours at {args.flux} n/cm^2/s")
1485 print(f"Time to decay to {args.decay} uCi is {decay_time} hours.")
1486 sample.calculate_activation(
1487 env, exposure=args.exposure, rest_times=(0, 1, 24, 360, decay_time),
1488 abundance=abundance,
1489 )
1490 sample.show_table(cutoff=0.0)
1491
1492 ## Print a table of flux vs. activity so we can debug the
1493 ## precision_correction value in the activity() function.
1494 ## Note that you also need to uncomment the print statement
1495 ## at the end of activity() that shows the column values.
1496 #import numpy as np
1497 #sample = Sample('Co', mass=10)
1498 #for fluence in np.logspace(3, 20, 20-3+1):
1499 # env = ActivationEnvironment(fluence=fluence)
1500 # sample.calculate_activation(
1501 # env, exposure=exposure, rest_times=[0],
1502 # abundance=IAEA1987_isotopic_abundance)
1503
1504 if __name__ == "__main__":
1505 demo() # pragma: nocover