openmc-data 2.5.0__tar.gz → 3.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {openmc_data-2.5.0 → openmc_data-3.0.0}/.github/workflows/test_package.yml +8 -4
- openmc_data-3.0.0/.github/workflows/test_processing.yml +114 -0
- openmc_data-3.0.0/.github/workflows/test_urls.yml +55 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/.gitignore +1 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/PKG-INFO +104 -13
- {openmc_data-2.5.0 → openmc_data-3.0.0}/README.md +99 -12
- {openmc_data-2.5.0 → openmc_data-3.0.0}/pyproject.toml +14 -3
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/__init__.py +1 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/_version.py +3 -3
- openmc_data-3.0.0/src/openmc_data/convert/convert_jeff.py +306 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/depletion/generate_branching_ratios.py +110 -14
- openmc_data-3.0.0/src/openmc_data/depletion/generate_jeff_chain.py +126 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/depletion/generate_jendl_chain.py +4 -6
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/download/download_chain.py +12 -9
- openmc_data-3.0.0/src/openmc_data/download/download_jeff.py +54 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/generate/generate_endf.py +4 -4
- openmc_data-3.0.0/src/openmc_data/generate/generate_jeff.py +287 -0
- openmc_data-3.0.0/src/openmc_data/generate/generate_jendl.py +256 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/urls.py +170 -45
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/urls_chain.py +54 -14
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/urls_h5.py +17 -0
- openmc_data-3.0.0/src/openmc_data/urls_jeff.py +144 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/urls_xml.py +57 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/utils.py +138 -24
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data.egg-info/PKG-INFO +104 -13
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data.egg-info/SOURCES.txt +11 -3
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data.egg-info/entry_points.txt +3 -3
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data.egg-info/scm_file_list.json +20 -3
- openmc_data-3.0.0/src/openmc_data.egg-info/scm_version.json +8 -0
- openmc_data-3.0.0/tests/test_apply_updates.py +104 -0
- openmc_data-3.0.0/tests/test_download.py +107 -0
- openmc_data-3.0.0/tests/test_download_jeff.py +207 -0
- openmc_data-3.0.0/tests/test_generate_branching_ratios.py +95 -0
- openmc_data-3.0.0/tests/test_generate_jeff_chain.py +105 -0
- openmc_data-3.0.0/tests/test_generate_jeff_download.py +39 -0
- openmc_data-3.0.0/tests/test_generate_jendl.py +139 -0
- openmc_data-3.0.0/tests/test_urls.py +321 -0
- openmc_data-2.5.0/.github/workflows/test_processing.yml +0 -143
- openmc_data-2.5.0/.github/workflows/test_urls.yml +0 -52
- openmc_data-2.5.0/src/openmc_data/convert/convert_jeff32.py +0 -266
- openmc_data-2.5.0/src/openmc_data/convert/convert_jeff33.py +0 -228
- openmc_data-2.5.0/src/openmc_data/depletion/generate_jeff_chain.py +0 -92
- openmc_data-2.5.0/src/openmc_data/generate/generate_jeff33.py +0 -216
- openmc_data-2.5.0/src/openmc_data/generate/generate_jendl.py +0 -137
- openmc_data-2.5.0/src/openmc_data.egg-info/scm_version.json +0 -8
- openmc_data-2.5.0/tests/test_urls.py +0 -83
- {openmc_data-2.5.0 → openmc_data-3.0.0}/.github/workflows/python-publish.yml +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/LICENSE +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/MANIFEST.in +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/setup.cfg +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/convert/__init__.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/convert/convert_endf.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/convert/convert_fendl.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/convert/convert_lib80x.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/convert/convert_mcnp70.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/convert/convert_mcnp71.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/convert/convert_tendl.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/depletion/__init__.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/depletion/add_branching_ratios.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/depletion/branching_ratios_pwr.json +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/depletion/branching_ratios_sfr.json +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/depletion/casl_chain.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/depletion/generate_endf71_chain_casl.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/depletion/generate_endf_chain.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/depletion/generate_serpent_fissq.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/depletion/generate_tendl_chain.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/depletion/reduce_chain.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/depletion/serpent_fissq.json +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/depletion/tendl2019_nuclides.json +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/depletion/tendl2021_nuclides.json +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/download/__init__.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/download/download_endf.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/download/download_tendl.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/generate/__init__.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/generate/generate_cendl.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/generate/generate_fendl.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/generate/generate_tendl.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/other/__init__.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/other/combine_libraries.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/other/convert_tendl_rand.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/other/make_compton.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/other/make_stopping_powers.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/other/remove_corrupt_h5.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data/other/sample_sandy.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data.egg-info/dependency_links.txt +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data.egg-info/requires.txt +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/src/openmc_data.egg-info/top_level.txt +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/tests/test_utils.py +0 -0
- {openmc_data-2.5.0 → openmc_data-3.0.0}/tests/test_version.py +0 -0
|
@@ -41,15 +41,17 @@ jobs:
|
|
|
41
41
|
cd ..
|
|
42
42
|
pip install .
|
|
43
43
|
cd ..
|
|
44
|
-
pip install .
|
|
44
|
+
pip install '.[tests]'
|
|
45
|
+
|
|
46
|
+
- name: Test offline unit and CLI behavior
|
|
47
|
+
run: python -m pytest -q -rs tests -m 'not network and not integration'
|
|
45
48
|
|
|
46
49
|
# this just check the scripts are accessible after the install
|
|
47
50
|
# the scripts are not run or checked for correct behaviour
|
|
48
51
|
- name: Test convert scripts exist
|
|
49
52
|
run: |
|
|
50
53
|
convert_fendl --help
|
|
51
|
-
|
|
52
|
-
convert_jeff33 --help
|
|
54
|
+
convert_jeff --help
|
|
53
55
|
convert_lib80x --help
|
|
54
56
|
convert_mcnp70 --help
|
|
55
57
|
convert_mcnp71 --help
|
|
@@ -60,12 +62,13 @@ jobs:
|
|
|
60
62
|
run: |
|
|
61
63
|
generate_cendl --help
|
|
62
64
|
generate_endf --help
|
|
63
|
-
|
|
65
|
+
generate_jeff --help
|
|
64
66
|
generate_jendl --help
|
|
65
67
|
|
|
66
68
|
- name: Test download h5 scripts exist
|
|
67
69
|
run: |
|
|
68
70
|
download_endf --help
|
|
71
|
+
download_jeff --help
|
|
69
72
|
download_tendl --help
|
|
70
73
|
|
|
71
74
|
- name: Test download chain files scripts exist
|
|
@@ -85,6 +88,7 @@ jobs:
|
|
|
85
88
|
add_branching_ratios --help
|
|
86
89
|
generate_endf71_chain_casl --help
|
|
87
90
|
generate_endf_chain --help
|
|
91
|
+
generate_jeff_chain --help
|
|
88
92
|
generate_serpent_fissq --help
|
|
89
93
|
generate_tendl_chain --help
|
|
90
94
|
reduce_chain --help
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
|
|
2
|
+
name: test_convert_scripts
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
script:
|
|
7
|
+
description: Script recipe to run (downloads and processes large datasets)
|
|
8
|
+
required: true
|
|
9
|
+
type: choice
|
|
10
|
+
options:
|
|
11
|
+
- convert_fendl
|
|
12
|
+
- convert_jeff
|
|
13
|
+
- convert_endf
|
|
14
|
+
- convert_tendl
|
|
15
|
+
- convert_tendl_rand
|
|
16
|
+
- download_endf
|
|
17
|
+
- download_tendl
|
|
18
|
+
- download_chain
|
|
19
|
+
- add_branching_ratios
|
|
20
|
+
- reduce_chain
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
jobs:
|
|
24
|
+
run_scripts:
|
|
25
|
+
runs-on: ubuntu-latest
|
|
26
|
+
timeout-minutes: 360
|
|
27
|
+
steps:
|
|
28
|
+
- uses: actions/checkout@v5
|
|
29
|
+
|
|
30
|
+
- name: Set up Python
|
|
31
|
+
uses: actions/setup-python@v6
|
|
32
|
+
with:
|
|
33
|
+
python-version: 3.12
|
|
34
|
+
|
|
35
|
+
- name: Install testing dependencies
|
|
36
|
+
run: |
|
|
37
|
+
sudo apt-get update
|
|
38
|
+
sudo apt-get install libhdf5-serial-dev
|
|
39
|
+
git clone --single-branch --branch develop --depth 1 https://github.com/openmc-dev/openmc.git
|
|
40
|
+
cd openmc
|
|
41
|
+
mkdir build
|
|
42
|
+
cd build
|
|
43
|
+
cmake ..
|
|
44
|
+
make -j2
|
|
45
|
+
sudo make -j2 install
|
|
46
|
+
cd ..
|
|
47
|
+
pip install .
|
|
48
|
+
cd ..
|
|
49
|
+
pip install .
|
|
50
|
+
|
|
51
|
+
# Convert scripts that require MCNP nuclear data are not tested because
|
|
52
|
+
# the CI doesn't contain that nuclear data.
|
|
53
|
+
# convert_lib80x.py convert_mcnp70.py convert_mcnp71.py files are not tested here
|
|
54
|
+
|
|
55
|
+
- name: test default convert_fendl
|
|
56
|
+
if: inputs.script == 'convert_fendl'
|
|
57
|
+
run: |
|
|
58
|
+
convert_fendl --cleanup
|
|
59
|
+
|
|
60
|
+
# Limit neutron processing to one temperature to bound disk use.
|
|
61
|
+
- name: test convert_jeff
|
|
62
|
+
if: inputs.script == 'convert_jeff'
|
|
63
|
+
run: convert_jeff -t 293 --cleanup
|
|
64
|
+
|
|
65
|
+
- name: test default convert_endf
|
|
66
|
+
if: inputs.script == 'convert_endf'
|
|
67
|
+
run: |
|
|
68
|
+
convert_endf --cleanup
|
|
69
|
+
|
|
70
|
+
- name: test default convert_tendl
|
|
71
|
+
if: inputs.script == 'convert_tendl'
|
|
72
|
+
run: |
|
|
73
|
+
convert_tendl --cleanup
|
|
74
|
+
|
|
75
|
+
- name: test default convert_tendl_rand
|
|
76
|
+
if: inputs.script == 'convert_tendl_rand'
|
|
77
|
+
run: |
|
|
78
|
+
convert_tendl_rand --nuclides O16 --cleanup
|
|
79
|
+
|
|
80
|
+
# download scripts
|
|
81
|
+
- name: test default download_endf
|
|
82
|
+
if: inputs.script == 'download_endf'
|
|
83
|
+
run: |
|
|
84
|
+
download_endf
|
|
85
|
+
|
|
86
|
+
- name: test default download_tendl
|
|
87
|
+
if: inputs.script == 'download_tendl'
|
|
88
|
+
run: |
|
|
89
|
+
download_tendl -r 2019
|
|
90
|
+
download_tendl -r 2021
|
|
91
|
+
|
|
92
|
+
- name: test default download_chain
|
|
93
|
+
if: inputs.script == 'download_chain'
|
|
94
|
+
run: |
|
|
95
|
+
download_chain -l endf -r b7.1 -b None
|
|
96
|
+
download_chain -l endf -r b8.0 -b None
|
|
97
|
+
download_chain -l endf -r b7.1 -b SFR
|
|
98
|
+
download_chain -l endf -r b8.0 -b SFR
|
|
99
|
+
download_chain -l endf -r b7.1 -b PWR
|
|
100
|
+
download_chain -l endf -r b8.0 -b PWR
|
|
101
|
+
download_chain -l endf -r b8.0 -b PWR
|
|
102
|
+
|
|
103
|
+
- name: test default add_branching_ratios
|
|
104
|
+
if: inputs.script == 'add_branching_ratios'
|
|
105
|
+
run: |
|
|
106
|
+
download_chain -l endf -r b8.0
|
|
107
|
+
add_branching_ratios -i chain-endf-b8.0.xml -o chain_endf_b8.0_sfr.xml -b sfr
|
|
108
|
+
add_branching_ratios -i chain-endf-b8.0.xml -o chain_endf_b8.0_pwr.xml -b pwr
|
|
109
|
+
|
|
110
|
+
- name: test default reduce_chain
|
|
111
|
+
if: inputs.script == 'reduce_chain'
|
|
112
|
+
run: |
|
|
113
|
+
download_chain -l endf -r b8.0
|
|
114
|
+
reduce_chain -i chain-endf-b8.0.xml -o chain_endf_b8.0_sfr.xml -hl 1e15
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
|
|
2
|
+
name: test_urls
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
pull_request:
|
|
6
|
+
branches:
|
|
7
|
+
- main
|
|
8
|
+
paths-ignore:
|
|
9
|
+
- "**.md"
|
|
10
|
+
- "**.txt"
|
|
11
|
+
- "**.cff"
|
|
12
|
+
- 'docs/**'
|
|
13
|
+
- '.gitignore'
|
|
14
|
+
push:
|
|
15
|
+
branches:
|
|
16
|
+
- main
|
|
17
|
+
schedule:
|
|
18
|
+
- cron: "0 0 * * *"
|
|
19
|
+
# cron job runs every day
|
|
20
|
+
|
|
21
|
+
jobs:
|
|
22
|
+
ping_urls:
|
|
23
|
+
runs-on: ubuntu-latest
|
|
24
|
+
steps:
|
|
25
|
+
- uses: actions/checkout@v5
|
|
26
|
+
|
|
27
|
+
- name: Set up Python
|
|
28
|
+
uses: actions/setup-python@v6
|
|
29
|
+
with:
|
|
30
|
+
python-version: 3.12
|
|
31
|
+
|
|
32
|
+
- name: Install testing dependencies
|
|
33
|
+
run: python -m pip install '.[tests]'
|
|
34
|
+
|
|
35
|
+
- name: Test URL registry and HTTP helpers offline
|
|
36
|
+
run: python -m pytest -q -rs tests/test_urls.py -m 'not network and not integration'
|
|
37
|
+
|
|
38
|
+
live_urls:
|
|
39
|
+
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
|
|
40
|
+
runs-on: ubuntu-latest
|
|
41
|
+
timeout-minutes: 180
|
|
42
|
+
steps:
|
|
43
|
+
- uses: actions/checkout@v5
|
|
44
|
+
|
|
45
|
+
- name: Set up Python
|
|
46
|
+
uses: actions/setup-python@v6
|
|
47
|
+
with:
|
|
48
|
+
python-version: 3.12
|
|
49
|
+
|
|
50
|
+
- name: Install testing dependencies
|
|
51
|
+
run: python -m pip install '.[tests]'
|
|
52
|
+
|
|
53
|
+
# External failures remain failures; this health check is not a PR gate.
|
|
54
|
+
- name: Test live URLs with explicit skip reasons
|
|
55
|
+
run: python -m pytest -v -rs tests/test_urls.py -m network
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: openmc_data
|
|
3
|
-
Version:
|
|
3
|
+
Version: 3.0.0
|
|
4
4
|
Summary: A Python package containing a collection of scripts for producing and downloading data for OpenMC
|
|
5
5
|
Author-email: Jonathan Shimwell <mail@jshimwell.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -8,6 +8,10 @@ Project-URL: Homepage, https://github.com/fusion-energy/openmc_data
|
|
|
8
8
|
Project-URL: Bug Tracker, https://github.com/fusion-energy/openmc_data/issues
|
|
9
9
|
Keywords: openmc,nuclear,data,download,process,cross,section
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
11
15
|
Classifier: Operating System :: OS Independent
|
|
12
16
|
Requires-Python: >=3.8
|
|
13
17
|
Description-Content-Type: text/markdown
|
|
@@ -40,6 +44,34 @@ The package is distributed on [PYPI](https://pypi.org/project/openmc-data/) and
|
|
|
40
44
|
pip install openmc_data
|
|
41
45
|
```
|
|
42
46
|
|
|
47
|
+
# Testing
|
|
48
|
+
|
|
49
|
+
Install the test dependencies with `python -m pip install '.[tests]'`, then run
|
|
50
|
+
the offline suite with `python -m pytest -q -rs tests -m 'not network and not integration'`.
|
|
51
|
+
Tests stay in the flat [tests](tests) directory: [test_utils.py](tests/test_utils.py)
|
|
52
|
+
covers shared utilities, [test_urls.py](tests/test_urls.py) covers registry
|
|
53
|
+
validation, HTTP helper regressions and marked live URL checks, and script-specific
|
|
54
|
+
tests belong in files named test_<script>.py alongside them. Use pytest's
|
|
55
|
+
`tmp_path` for generated test artifacts rather than writing into the repository.
|
|
56
|
+
|
|
57
|
+
The `network` marker identifies live external URL checks; `integration` identifies
|
|
58
|
+
data download and processing tests. Pull requests and pushes run offline tests
|
|
59
|
+
and CLI help checks in [test_package.yml](.github/workflows/test_package.yml), and
|
|
60
|
+
offline URL syntax and repository-file checks in
|
|
61
|
+
[test_urls.yml](.github/workflows/test_urls.yml), without compiling OpenMC for the
|
|
62
|
+
URL jobs. Live URL checks run nightly or manually in a separate job of that same
|
|
63
|
+
workflow. Full, multi-GB processing runs only through the required script choice
|
|
64
|
+
in the manual [test_processing.yml](.github/workflows/test_processing.yml) workflow.
|
|
65
|
+
|
|
66
|
+
Exactly one URL is explicitly **not tested over HTTP** because of its Cloudflare
|
|
67
|
+
challenge:
|
|
68
|
+
<https://nds.iaea.org/fendl/data/neutron/fendl-FENDL-3.2c-neutron-endf.zip>.
|
|
69
|
+
Its syntax is still checked offline. Other HTTP errors, including IAEA and
|
|
70
|
+
Cloudflare 403 responses, remain failures, not skips or expected failures.
|
|
71
|
+
Nightly/manual external health checks may remain red until blocked IAEA and
|
|
72
|
+
obsolete OECD URLs are restored; passing offline checks does not establish that
|
|
73
|
+
downloads are available.
|
|
74
|
+
|
|
43
75
|
# Usage
|
|
44
76
|
|
|
45
77
|
Once installed several scripts are available in your terminal that are able to
|
|
@@ -81,10 +113,36 @@ A few categories of scripts are available:
|
|
|
81
113
|
|convert_endf | ENDF/B | VII.1 | NNDC |
|
|
82
114
|
|convert_lib80x | ENDF/B | VIII.0 | LANL |
|
|
83
115
|
|convert_fendl | FENDL | 3.2c<br>3.2b<br>3.2a<br>3.2<br>3.1d<br>3.1a<br>3.1<br>3.0<br>2.1 |
|
|
84
|
-
|
|
|
85
|
-
|convert_jeff33 | JEFF | 3.3 |
|
|
116
|
+
|convert_jeff | JEFF | 3.2<br>3.3<br>4.0 (default) | OECD/NEA |
|
|
86
117
|
|convert_tendl | TENDL | 2015<br>2017<br>2019<br>2021 |
|
|
87
118
|
|
|
119
|
+
#### JEFF ACE conversion
|
|
120
|
+
|
|
121
|
+
`convert_jeff -r 3.3 -t 600 900 --destination jeff-hot` converts neutron and
|
|
122
|
+
thermal ACE data without NJOY or a 293 K base. Defaults: release 4.0, all neutron
|
|
123
|
+
temperatures, `--libver latest`. Available neutron archive temperatures:
|
|
124
|
+
|
|
125
|
+
| Release | Neutron archive temperatures (K) |
|
|
126
|
+
| --- | --- |
|
|
127
|
+
| 3.2 | 293, 300, 400, 500, 600, 700, 800, 900, 1000, 1200, 1500, 1800 |
|
|
128
|
+
| 3.3 | 293, 600, 900, 1200, 1500, 1800 |
|
|
129
|
+
| 4.0 | 0.1, 293, 300, 600, 900, 1200, 1500, 1800 |
|
|
130
|
+
|
|
131
|
+
Select the 4.0 archive containing 293.6 K data with `-t 293`. **All native thermal
|
|
132
|
+
temperatures** are retained, including the 1 K UO2 pairs. **JEFF-4.0 supplies only
|
|
133
|
+
the public 12-case/316-table thermal subset**, not the full TSL library.
|
|
134
|
+
Unknown thermal aliases retain their identity with a `c_` prefix and warning.
|
|
135
|
+
|
|
136
|
+
Output HDF5/XML goes directly into `--destination` (default `jeff-<release>-hdf5`),
|
|
137
|
+
staged until conversion succeeds; existing files and name/temperature collisions fail.
|
|
138
|
+
Downloads require multiple GB. `--no-download --no-extract` reuses working-directory
|
|
139
|
+
caches `jeff-<release>-download` and `jeff-<release>-ace`; `--cleanup` removes both
|
|
140
|
+
only after success. Metastable corrections never edit cached ACE files.
|
|
141
|
+
Every discovered nuclide must have every selected neutron temperature; 3.3 also
|
|
142
|
+
requires its 20 thermal groups. Caches cannot reveal nuclides absent at all temperatures.
|
|
143
|
+
|
|
144
|
+
See `convert_jeff --help` for all options.
|
|
145
|
+
|
|
88
146
|
### Generate cross sections
|
|
89
147
|
|
|
90
148
|
| Script name | Library | Release | Processed by |
|
|
@@ -92,16 +150,18 @@ A few categories of scripts are available:
|
|
|
92
150
|
| generate_cendl | CENDL | 3.1<br>3.2 | |
|
|
93
151
|
| generate_endf | ENDF/B | VII.1<br>VIII.0<br>VIII.1 | NNDC |
|
|
94
152
|
| generate_fendl | FENDL | 3.2c<br>3.2b<br>3.2a<br>3.2<br>3.1d<br>3.1a<br>3.0 | |
|
|
95
|
-
| generate_jendl | JENDL | 4.0<br>5.0 | |
|
|
153
|
+
| generate_jendl | JENDL | 4.0<br>5.0 (neutron, thermal scattering and photon) | NJOY |
|
|
154
|
+
| generate_jeff | JEFF | 3.3<br>4.0 (neutron and thermal scattering) | NJOY |
|
|
96
155
|
| generate_tendl | TENDL | 2023<br>2025 | |
|
|
97
156
|
|
|
98
157
|
|
|
99
158
|
### Download cross sections
|
|
100
159
|
|
|
101
|
-
| Script name | Library | Release | Processed by |
|
|
102
|
-
|
|
103
|
-
| download_endf | ENDF/B | VII.1<br>VIII.0<br>VIII.1 | NNDC |
|
|
104
|
-
|
|
|
160
|
+
| Script name | Library | Release | Processed by | Neutron temperatures (K) |
|
|
161
|
+
|-|-|-|-|-|
|
|
162
|
+
| download_endf | ENDF/B | VII.1<br>VIII.0<br>VIII.1 | NNDC | 250, 293.6, 600, 900, 1200, 2500 |
|
|
163
|
+
| download_jeff | JEFF | 3.3<br>4.0 | OpenMC development team | 250, 293.6, 600, 900, 1200, 2500 |
|
|
164
|
+
| download_tendl | TENDL | 2019<br>2021 | | 293.6 |
|
|
105
165
|
|
|
106
166
|
<!-- | Script name | Library | Release | Processed by | Download available | Downloads ACE files and convert to HDF5 | Downloads ENDF files and convert to HDF5 | Convert local ACE files |
|
|
107
167
|
|-|-|-|-|-|-|-|-|
|
|
@@ -114,8 +174,6 @@ A few categories of scripts are available:
|
|
|
114
174
|
|generate_endf| ENDF/B | VIII.0 | NNDC | [openmc.org](https://anl.box.com/shared/static/uhbxlrx7hvxqw27psymfbhi7bx7s6u6a.xz) | | :heavy_check_mark: | |
|
|
115
175
|
|convert_fendl| FENDL | 2.1<br>3.0<br>3.1a<br>3.1d<br>3.2 | | [openmc.org 3.2](https://anl.box.com/shared/static/3cb7jetw7tmxaw6nvn77x6c578jnm2ey.xz) | :heavy_check_mark: | | |
|
|
116
176
|
|generate_jendl| JENDL | 4.0 | | | | :heavy_check_mark: | |
|
|
117
|
-
|convert_jeff32| JEFF | 3.2 | | [openmc.org](https://anl.box.com/shared/static/pb94oxriiipezysu7w4r2qdoufc2epxv.xz) | :heavy_check_mark: | | |
|
|
118
|
-
|convert_jeff33| JEFF | 3.3 | | [openmc.org](https://anl.box.com/shared/static/ddetxzp0gv1buk1ev67b8ynik7f268hw.xz) | :heavy_check_mark: | | |
|
|
119
177
|
|convert_tendl| TENDL | 2015<br>2017<br>2019<br>2021| | | :heavy_check_mark: | | | -->
|
|
120
178
|
|
|
121
179
|
## Produce Depletion Chain files
|
|
@@ -125,7 +183,7 @@ A few categories of scripts are available:
|
|
|
125
183
|
| Script name | Library | Release |
|
|
126
184
|
|-|-|-|
|
|
127
185
|
|generate_endf_chain | ENDF/B | VII.1<br>VIII.0<br>VIII.1 |
|
|
128
|
-
|generate_jeff_chain | JEFF | 3.3
|
|
186
|
+
|generate_jeff_chain | JEFF | 3.3<br>4.0 (default) |
|
|
129
187
|
|generate_jendl_chain | JENDL | 5.0 |
|
|
130
188
|
|generate_tendl_chain | TENDL | 2015<br>2017<br>2019<br>2021<br>2023<br>2025 |
|
|
131
189
|
|generate_serpent_fissq | | |
|
|
@@ -156,6 +214,7 @@ generate_branching_ratios \
|
|
|
156
214
|
--neutron-dir tendl-2017-endf/neutron \
|
|
157
215
|
--fispact-fluxes fns/Ag/2000exp_5min_fluxes \
|
|
158
216
|
--chain chain_tendl_2017_endf80.xml \
|
|
217
|
+
--decay endf-b8.0-endf/decay --decay-pattern '*.endf' \
|
|
159
218
|
--jobs 20 \
|
|
160
219
|
-o branching_ratios_tendl_2017_fns.json
|
|
161
220
|
|
|
@@ -166,6 +225,18 @@ add_branching_ratios \
|
|
|
166
225
|
-o chain_tendl_2017_endf80_fns.xml
|
|
167
226
|
```
|
|
168
227
|
|
|
228
|
+
The MF=8 section lists the excited states of each product by excitation energy
|
|
229
|
+
but not by isomer number. Pass the decay sublibrary used for the chain with
|
|
230
|
+
`--decay` so that each state is matched to the isomer with the closest
|
|
231
|
+
excitation energy. Without it the states are numbered in order of energy, which
|
|
232
|
+
mislabels an isomer whenever an evaluation lists a higher isomer without the
|
|
233
|
+
lower one. JEFF-4.0 Ta181 capture, for example, only lists the 519.6 keV
|
|
234
|
+
Ta182_m2 state, which ranking calls Ta182_m1. When an evaluation lists a
|
|
235
|
+
metastable state that the decay data has no isomer for, such as the 200.1 keV
|
|
236
|
+
Tb156 state in TENDL next to the 88.4 keV Tb156_m2, the isomer goes to the
|
|
237
|
+
nearest state and the other is counted as the ground state, as the chain has no
|
|
238
|
+
nuclide for it.
|
|
239
|
+
|
|
169
240
|
Most reactions store their isomeric production as cross sections in MF=10 and
|
|
170
241
|
need no other data. The remainder store multiplicities in MF=9 which have to be
|
|
171
242
|
weighted by the reaction cross section, and as the MF=3 cross section is only
|
|
@@ -187,10 +258,30 @@ in series.
|
|
|
187
258
|
|
|
188
259
|
| Script name | Library | Release | Branching options|
|
|
189
260
|
|-|-|-|-|
|
|
190
|
-
|download_chain | ENDF/B | VII.1<br>VIII.0
|
|
261
|
+
|download_chain | ENDF/B | VII.1<br>VIII.0 | None<br>SFR<br>PWR |
|
|
262
|
+
|download_chain | ENDF/B | VIII.1 | None<br>SFR<br>PWR<br>FNS |
|
|
263
|
+
|download_chain | JEFF | 4.0 | None<br>SFR<br>PWR<br>FNS |
|
|
264
|
+
|download_chain | JENDL | 5.0 | None<br>SFR<br>PWR<br>FNS |
|
|
191
265
|
|download_chain | TENDL | 2017<br>2019 | None<br>SFR<br>PWR<br>FNS<br>FNS-ORIGEN |
|
|
192
266
|
|download_chain | TENDL | 2025 | None<br>SFR<br>PWR<br>FNS |
|
|
193
267
|
|
|
268
|
+
The JEFF-4.0 and JENDL-5.0 chains are made with `generate_jeff_chain` and
|
|
269
|
+
`generate_jendl_chain` and take their neutron, decay and fission yield data from
|
|
270
|
+
their own library only, as do the ENDF/B chains. Their FNS branching ratios come
|
|
271
|
+
from the isomeric production data of the same library, with the decay data of
|
|
272
|
+
the same library passed to `generate_branching_ratios --decay`.
|
|
273
|
+
|
|
274
|
+
| Chain | Nuclides | FNS reaction types | FNS branched channels | Size |
|
|
275
|
+
|-|-|-|-|-|
|
|
276
|
+
| ENDF/B-VIII.1 | 3820 | 30 | 236 | 28 MB |
|
|
277
|
+
| JEFF-4.0 | 3851 | 29 | 2742 | 9 MB |
|
|
278
|
+
| JENDL-5.0 | 4070 | 28 | 2328 | 66 MB |
|
|
279
|
+
|
|
280
|
+
ENDF/B-VIII.1 has isomeric production data for far fewer reactions than JEFF-4.0,
|
|
281
|
+
JENDL-5.0 or TENDL, so its FNS chain splits fewer channels. The JENDL-5.0 chains
|
|
282
|
+
are larger because its decay sublibrary holds more, and more detailed, decay
|
|
283
|
+
radiation spectra.
|
|
284
|
+
|
|
194
285
|
All the TENDL chains are made with `generate_tendl_chain` using decay data and
|
|
195
286
|
neutron induced fission yields from ENDF/B-VIII.0, so the releases can be
|
|
196
287
|
compared against one another.
|
|
@@ -209,7 +300,7 @@ values. Counts below are for TENDL 2017.
|
|
|
209
300
|
| None | none | 0 | |
|
|
210
301
|
| SFR<br>PWR | `(n,gamma)` only | 101 | [Serpent default isomeric branching ratios](https://serpent.vtt.fi/mediawiki/index.php?title=Default_isomeric_branching_ratios) |
|
|
211
302
|
| FNS-ORIGEN | 15 reaction types | 2355 | ORIGEN |
|
|
212
|
-
| FNS | 35 reaction types |
|
|
303
|
+
| FNS | 35 reaction types | 14692 | the TENDL files themselves |
|
|
213
304
|
|
|
214
305
|
The reactor options only ever split capture. For a fusion spectrum the threshold
|
|
215
306
|
reactions matter most, and in the FNS chains `(n,gamma)` is only the fourth
|
|
@@ -20,6 +20,34 @@ The package is distributed on [PYPI](https://pypi.org/project/openmc-data/) and
|
|
|
20
20
|
pip install openmc_data
|
|
21
21
|
```
|
|
22
22
|
|
|
23
|
+
# Testing
|
|
24
|
+
|
|
25
|
+
Install the test dependencies with `python -m pip install '.[tests]'`, then run
|
|
26
|
+
the offline suite with `python -m pytest -q -rs tests -m 'not network and not integration'`.
|
|
27
|
+
Tests stay in the flat [tests](tests) directory: [test_utils.py](tests/test_utils.py)
|
|
28
|
+
covers shared utilities, [test_urls.py](tests/test_urls.py) covers registry
|
|
29
|
+
validation, HTTP helper regressions and marked live URL checks, and script-specific
|
|
30
|
+
tests belong in files named test_<script>.py alongside them. Use pytest's
|
|
31
|
+
`tmp_path` for generated test artifacts rather than writing into the repository.
|
|
32
|
+
|
|
33
|
+
The `network` marker identifies live external URL checks; `integration` identifies
|
|
34
|
+
data download and processing tests. Pull requests and pushes run offline tests
|
|
35
|
+
and CLI help checks in [test_package.yml](.github/workflows/test_package.yml), and
|
|
36
|
+
offline URL syntax and repository-file checks in
|
|
37
|
+
[test_urls.yml](.github/workflows/test_urls.yml), without compiling OpenMC for the
|
|
38
|
+
URL jobs. Live URL checks run nightly or manually in a separate job of that same
|
|
39
|
+
workflow. Full, multi-GB processing runs only through the required script choice
|
|
40
|
+
in the manual [test_processing.yml](.github/workflows/test_processing.yml) workflow.
|
|
41
|
+
|
|
42
|
+
Exactly one URL is explicitly **not tested over HTTP** because of its Cloudflare
|
|
43
|
+
challenge:
|
|
44
|
+
<https://nds.iaea.org/fendl/data/neutron/fendl-FENDL-3.2c-neutron-endf.zip>.
|
|
45
|
+
Its syntax is still checked offline. Other HTTP errors, including IAEA and
|
|
46
|
+
Cloudflare 403 responses, remain failures, not skips or expected failures.
|
|
47
|
+
Nightly/manual external health checks may remain red until blocked IAEA and
|
|
48
|
+
obsolete OECD URLs are restored; passing offline checks does not establish that
|
|
49
|
+
downloads are available.
|
|
50
|
+
|
|
23
51
|
# Usage
|
|
24
52
|
|
|
25
53
|
Once installed several scripts are available in your terminal that are able to
|
|
@@ -61,10 +89,36 @@ A few categories of scripts are available:
|
|
|
61
89
|
|convert_endf | ENDF/B | VII.1 | NNDC |
|
|
62
90
|
|convert_lib80x | ENDF/B | VIII.0 | LANL |
|
|
63
91
|
|convert_fendl | FENDL | 3.2c<br>3.2b<br>3.2a<br>3.2<br>3.1d<br>3.1a<br>3.1<br>3.0<br>2.1 |
|
|
64
|
-
|
|
|
65
|
-
|convert_jeff33 | JEFF | 3.3 |
|
|
92
|
+
|convert_jeff | JEFF | 3.2<br>3.3<br>4.0 (default) | OECD/NEA |
|
|
66
93
|
|convert_tendl | TENDL | 2015<br>2017<br>2019<br>2021 |
|
|
67
94
|
|
|
95
|
+
#### JEFF ACE conversion
|
|
96
|
+
|
|
97
|
+
`convert_jeff -r 3.3 -t 600 900 --destination jeff-hot` converts neutron and
|
|
98
|
+
thermal ACE data without NJOY or a 293 K base. Defaults: release 4.0, all neutron
|
|
99
|
+
temperatures, `--libver latest`. Available neutron archive temperatures:
|
|
100
|
+
|
|
101
|
+
| Release | Neutron archive temperatures (K) |
|
|
102
|
+
| --- | --- |
|
|
103
|
+
| 3.2 | 293, 300, 400, 500, 600, 700, 800, 900, 1000, 1200, 1500, 1800 |
|
|
104
|
+
| 3.3 | 293, 600, 900, 1200, 1500, 1800 |
|
|
105
|
+
| 4.0 | 0.1, 293, 300, 600, 900, 1200, 1500, 1800 |
|
|
106
|
+
|
|
107
|
+
Select the 4.0 archive containing 293.6 K data with `-t 293`. **All native thermal
|
|
108
|
+
temperatures** are retained, including the 1 K UO2 pairs. **JEFF-4.0 supplies only
|
|
109
|
+
the public 12-case/316-table thermal subset**, not the full TSL library.
|
|
110
|
+
Unknown thermal aliases retain their identity with a `c_` prefix and warning.
|
|
111
|
+
|
|
112
|
+
Output HDF5/XML goes directly into `--destination` (default `jeff-<release>-hdf5`),
|
|
113
|
+
staged until conversion succeeds; existing files and name/temperature collisions fail.
|
|
114
|
+
Downloads require multiple GB. `--no-download --no-extract` reuses working-directory
|
|
115
|
+
caches `jeff-<release>-download` and `jeff-<release>-ace`; `--cleanup` removes both
|
|
116
|
+
only after success. Metastable corrections never edit cached ACE files.
|
|
117
|
+
Every discovered nuclide must have every selected neutron temperature; 3.3 also
|
|
118
|
+
requires its 20 thermal groups. Caches cannot reveal nuclides absent at all temperatures.
|
|
119
|
+
|
|
120
|
+
See `convert_jeff --help` for all options.
|
|
121
|
+
|
|
68
122
|
### Generate cross sections
|
|
69
123
|
|
|
70
124
|
| Script name | Library | Release | Processed by |
|
|
@@ -72,16 +126,18 @@ A few categories of scripts are available:
|
|
|
72
126
|
| generate_cendl | CENDL | 3.1<br>3.2 | |
|
|
73
127
|
| generate_endf | ENDF/B | VII.1<br>VIII.0<br>VIII.1 | NNDC |
|
|
74
128
|
| generate_fendl | FENDL | 3.2c<br>3.2b<br>3.2a<br>3.2<br>3.1d<br>3.1a<br>3.0 | |
|
|
75
|
-
| generate_jendl | JENDL | 4.0<br>5.0 | |
|
|
129
|
+
| generate_jendl | JENDL | 4.0<br>5.0 (neutron, thermal scattering and photon) | NJOY |
|
|
130
|
+
| generate_jeff | JEFF | 3.3<br>4.0 (neutron and thermal scattering) | NJOY |
|
|
76
131
|
| generate_tendl | TENDL | 2023<br>2025 | |
|
|
77
132
|
|
|
78
133
|
|
|
79
134
|
### Download cross sections
|
|
80
135
|
|
|
81
|
-
| Script name | Library | Release | Processed by |
|
|
82
|
-
|
|
83
|
-
| download_endf | ENDF/B | VII.1<br>VIII.0<br>VIII.1 | NNDC |
|
|
84
|
-
|
|
|
136
|
+
| Script name | Library | Release | Processed by | Neutron temperatures (K) |
|
|
137
|
+
|-|-|-|-|-|
|
|
138
|
+
| download_endf | ENDF/B | VII.1<br>VIII.0<br>VIII.1 | NNDC | 250, 293.6, 600, 900, 1200, 2500 |
|
|
139
|
+
| download_jeff | JEFF | 3.3<br>4.0 | OpenMC development team | 250, 293.6, 600, 900, 1200, 2500 |
|
|
140
|
+
| download_tendl | TENDL | 2019<br>2021 | | 293.6 |
|
|
85
141
|
|
|
86
142
|
<!-- | Script name | Library | Release | Processed by | Download available | Downloads ACE files and convert to HDF5 | Downloads ENDF files and convert to HDF5 | Convert local ACE files |
|
|
87
143
|
|-|-|-|-|-|-|-|-|
|
|
@@ -94,8 +150,6 @@ A few categories of scripts are available:
|
|
|
94
150
|
|generate_endf| ENDF/B | VIII.0 | NNDC | [openmc.org](https://anl.box.com/shared/static/uhbxlrx7hvxqw27psymfbhi7bx7s6u6a.xz) | | :heavy_check_mark: | |
|
|
95
151
|
|convert_fendl| FENDL | 2.1<br>3.0<br>3.1a<br>3.1d<br>3.2 | | [openmc.org 3.2](https://anl.box.com/shared/static/3cb7jetw7tmxaw6nvn77x6c578jnm2ey.xz) | :heavy_check_mark: | | |
|
|
96
152
|
|generate_jendl| JENDL | 4.0 | | | | :heavy_check_mark: | |
|
|
97
|
-
|convert_jeff32| JEFF | 3.2 | | [openmc.org](https://anl.box.com/shared/static/pb94oxriiipezysu7w4r2qdoufc2epxv.xz) | :heavy_check_mark: | | |
|
|
98
|
-
|convert_jeff33| JEFF | 3.3 | | [openmc.org](https://anl.box.com/shared/static/ddetxzp0gv1buk1ev67b8ynik7f268hw.xz) | :heavy_check_mark: | | |
|
|
99
153
|
|convert_tendl| TENDL | 2015<br>2017<br>2019<br>2021| | | :heavy_check_mark: | | | -->
|
|
100
154
|
|
|
101
155
|
## Produce Depletion Chain files
|
|
@@ -105,7 +159,7 @@ A few categories of scripts are available:
|
|
|
105
159
|
| Script name | Library | Release |
|
|
106
160
|
|-|-|-|
|
|
107
161
|
|generate_endf_chain | ENDF/B | VII.1<br>VIII.0<br>VIII.1 |
|
|
108
|
-
|generate_jeff_chain | JEFF | 3.3
|
|
162
|
+
|generate_jeff_chain | JEFF | 3.3<br>4.0 (default) |
|
|
109
163
|
|generate_jendl_chain | JENDL | 5.0 |
|
|
110
164
|
|generate_tendl_chain | TENDL | 2015<br>2017<br>2019<br>2021<br>2023<br>2025 |
|
|
111
165
|
|generate_serpent_fissq | | |
|
|
@@ -136,6 +190,7 @@ generate_branching_ratios \
|
|
|
136
190
|
--neutron-dir tendl-2017-endf/neutron \
|
|
137
191
|
--fispact-fluxes fns/Ag/2000exp_5min_fluxes \
|
|
138
192
|
--chain chain_tendl_2017_endf80.xml \
|
|
193
|
+
--decay endf-b8.0-endf/decay --decay-pattern '*.endf' \
|
|
139
194
|
--jobs 20 \
|
|
140
195
|
-o branching_ratios_tendl_2017_fns.json
|
|
141
196
|
|
|
@@ -146,6 +201,18 @@ add_branching_ratios \
|
|
|
146
201
|
-o chain_tendl_2017_endf80_fns.xml
|
|
147
202
|
```
|
|
148
203
|
|
|
204
|
+
The MF=8 section lists the excited states of each product by excitation energy
|
|
205
|
+
but not by isomer number. Pass the decay sublibrary used for the chain with
|
|
206
|
+
`--decay` so that each state is matched to the isomer with the closest
|
|
207
|
+
excitation energy. Without it the states are numbered in order of energy, which
|
|
208
|
+
mislabels an isomer whenever an evaluation lists a higher isomer without the
|
|
209
|
+
lower one. JEFF-4.0 Ta181 capture, for example, only lists the 519.6 keV
|
|
210
|
+
Ta182_m2 state, which ranking calls Ta182_m1. When an evaluation lists a
|
|
211
|
+
metastable state that the decay data has no isomer for, such as the 200.1 keV
|
|
212
|
+
Tb156 state in TENDL next to the 88.4 keV Tb156_m2, the isomer goes to the
|
|
213
|
+
nearest state and the other is counted as the ground state, as the chain has no
|
|
214
|
+
nuclide for it.
|
|
215
|
+
|
|
149
216
|
Most reactions store their isomeric production as cross sections in MF=10 and
|
|
150
217
|
need no other data. The remainder store multiplicities in MF=9 which have to be
|
|
151
218
|
weighted by the reaction cross section, and as the MF=3 cross section is only
|
|
@@ -167,10 +234,30 @@ in series.
|
|
|
167
234
|
|
|
168
235
|
| Script name | Library | Release | Branching options|
|
|
169
236
|
|-|-|-|-|
|
|
170
|
-
|download_chain | ENDF/B | VII.1<br>VIII.0
|
|
237
|
+
|download_chain | ENDF/B | VII.1<br>VIII.0 | None<br>SFR<br>PWR |
|
|
238
|
+
|download_chain | ENDF/B | VIII.1 | None<br>SFR<br>PWR<br>FNS |
|
|
239
|
+
|download_chain | JEFF | 4.0 | None<br>SFR<br>PWR<br>FNS |
|
|
240
|
+
|download_chain | JENDL | 5.0 | None<br>SFR<br>PWR<br>FNS |
|
|
171
241
|
|download_chain | TENDL | 2017<br>2019 | None<br>SFR<br>PWR<br>FNS<br>FNS-ORIGEN |
|
|
172
242
|
|download_chain | TENDL | 2025 | None<br>SFR<br>PWR<br>FNS |
|
|
173
243
|
|
|
244
|
+
The JEFF-4.0 and JENDL-5.0 chains are made with `generate_jeff_chain` and
|
|
245
|
+
`generate_jendl_chain` and take their neutron, decay and fission yield data from
|
|
246
|
+
their own library only, as do the ENDF/B chains. Their FNS branching ratios come
|
|
247
|
+
from the isomeric production data of the same library, with the decay data of
|
|
248
|
+
the same library passed to `generate_branching_ratios --decay`.
|
|
249
|
+
|
|
250
|
+
| Chain | Nuclides | FNS reaction types | FNS branched channels | Size |
|
|
251
|
+
|-|-|-|-|-|
|
|
252
|
+
| ENDF/B-VIII.1 | 3820 | 30 | 236 | 28 MB |
|
|
253
|
+
| JEFF-4.0 | 3851 | 29 | 2742 | 9 MB |
|
|
254
|
+
| JENDL-5.0 | 4070 | 28 | 2328 | 66 MB |
|
|
255
|
+
|
|
256
|
+
ENDF/B-VIII.1 has isomeric production data for far fewer reactions than JEFF-4.0,
|
|
257
|
+
JENDL-5.0 or TENDL, so its FNS chain splits fewer channels. The JENDL-5.0 chains
|
|
258
|
+
are larger because its decay sublibrary holds more, and more detailed, decay
|
|
259
|
+
radiation spectra.
|
|
260
|
+
|
|
174
261
|
All the TENDL chains are made with `generate_tendl_chain` using decay data and
|
|
175
262
|
neutron induced fission yields from ENDF/B-VIII.0, so the releases can be
|
|
176
263
|
compared against one another.
|
|
@@ -189,7 +276,7 @@ values. Counts below are for TENDL 2017.
|
|
|
189
276
|
| None | none | 0 | |
|
|
190
277
|
| SFR<br>PWR | `(n,gamma)` only | 101 | [Serpent default isomeric branching ratios](https://serpent.vtt.fi/mediawiki/index.php?title=Default_isomeric_branching_ratios) |
|
|
191
278
|
| FNS-ORIGEN | 15 reaction types | 2355 | ORIGEN |
|
|
192
|
-
| FNS | 35 reaction types |
|
|
279
|
+
| FNS | 35 reaction types | 14692 | the TENDL files themselves |
|
|
193
280
|
|
|
194
281
|
The reactor options only ever split capture. For a fusion spectrum the threshold
|
|
195
282
|
reactions matter most, and in the FNS chains `(n,gamma)` is only the fourth
|
|
@@ -19,6 +19,10 @@ requires-python = ">=3.8"
|
|
|
19
19
|
keywords = ["openmc", "nuclear", "data", "download", "process", "cross", "section"]
|
|
20
20
|
classifiers = [
|
|
21
21
|
"Programming Language :: Python :: 3",
|
|
22
|
+
"Programming Language :: Python :: 3.10",
|
|
23
|
+
"Programming Language :: Python :: 3.11",
|
|
24
|
+
"Programming Language :: Python :: 3.12",
|
|
25
|
+
"Programming Language :: Python :: 3.13",
|
|
22
26
|
"Operating System :: OS Independent",
|
|
23
27
|
]
|
|
24
28
|
dependencies = [
|
|
@@ -37,6 +41,13 @@ tests = [
|
|
|
37
41
|
"requests"
|
|
38
42
|
]
|
|
39
43
|
|
|
44
|
+
[tool.pytest.ini_options]
|
|
45
|
+
testpaths = ["tests"]
|
|
46
|
+
markers = [
|
|
47
|
+
"network: live external URL checks (scheduled or manual, not a pull request gate)",
|
|
48
|
+
"integration: data download and processing tests (manual only)",
|
|
49
|
+
]
|
|
50
|
+
|
|
40
51
|
[project.urls]
|
|
41
52
|
"Homepage" = "https://github.com/fusion-energy/openmc_data"
|
|
42
53
|
"Bug Tracker" = "https://github.com/fusion-energy/openmc_data/issues"
|
|
@@ -54,8 +65,7 @@ include-package-data = false
|
|
|
54
65
|
|
|
55
66
|
[project.scripts]
|
|
56
67
|
convert_fendl = "openmc_data.convert.convert_fendl:main"
|
|
57
|
-
|
|
58
|
-
convert_jeff33 = "openmc_data.convert.convert_jeff33:main"
|
|
68
|
+
convert_jeff = "openmc_data.convert.convert_jeff:main"
|
|
59
69
|
convert_lib80x = "openmc_data.convert.convert_lib80x:main"
|
|
60
70
|
convert_mcnp70 = "openmc_data.convert.convert_mcnp70:main"
|
|
61
71
|
convert_mcnp71 = "openmc_data.convert.convert_mcnp71:main"
|
|
@@ -64,7 +74,7 @@ convert_tendl = "openmc_data.convert.convert_tendl:main"
|
|
|
64
74
|
|
|
65
75
|
generate_cendl = "openmc_data.generate.generate_cendl:main"
|
|
66
76
|
generate_endf = "openmc_data.generate.generate_endf:main"
|
|
67
|
-
|
|
77
|
+
generate_jeff = "openmc_data.generate.generate_jeff:main"
|
|
68
78
|
generate_jendl = "openmc_data.generate.generate_jendl:main"
|
|
69
79
|
generate_fendl = "openmc_data.generate.generate_fendl:main"
|
|
70
80
|
generate_tendl = "openmc_data.generate.generate_tendl:main"
|
|
@@ -87,5 +97,6 @@ sample_sandy = "openmc_data.other.sample_sandy:main"
|
|
|
87
97
|
reduce_chain = "openmc_data.depletion.reduce_chain:main"
|
|
88
98
|
|
|
89
99
|
download_endf = "openmc_data.download.download_endf:main"
|
|
100
|
+
download_jeff = "openmc_data.download.download_jeff:main"
|
|
90
101
|
download_tendl = "openmc_data.download.download_tendl:main"
|
|
91
102
|
download_chain = "openmc_data.download.download_chain:main"
|
|
@@ -18,7 +18,7 @@ version_tuple: tuple[int | str, ...]
|
|
|
18
18
|
commit_id: str | None
|
|
19
19
|
__commit_id__: str | None
|
|
20
20
|
|
|
21
|
-
__version__ = version = '
|
|
22
|
-
__version_tuple__ = version_tuple = (
|
|
21
|
+
__version__ = version = '3.0.0'
|
|
22
|
+
__version_tuple__ = version_tuple = (3, 0, 0)
|
|
23
23
|
|
|
24
|
-
__commit_id__ = commit_id = '
|
|
24
|
+
__commit_id__ = commit_id = 'ga06d1e87b'
|