Skip to content

Commit 4e84432

Browse files
authored
Merge pull request #39 from LukeSeifert/cleanup
Cleanup
2 parents c7b6175 + c87d8a4 commit 4e84432

File tree

31 files changed

+1190
-1318
lines changed

31 files changed

+1190
-1318
lines changed

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,6 @@ cython_debug/
174174
/examples/huynh_2014/postproc.json
175175
/examples/huynh_2014/images/*
176176

177-
/examples/empty_run/*.csv
178-
/examples/empty_run/postproc.json
179-
/examples/empty_run/images/*
180-
181177
/examples/msre/*.csv
182178
/examples/msre/postproc.json
183179
/examples/msre/images/*

README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,20 @@ cumulative fission yields (with energy dependence based on nearest energy)
4747
- [IAEA data](https://www-nds.iaea.org/beta-delayed-neutron/database.html):
4848
these give emission probabilities and half-lives
4949

50+
Some data are provided without additional downloading steps.
51+
These data include: chemical reprocessing schemes and group parameter data.
52+
- Chemical removal rates provided should represent *scaled* removal (the removal
53+
rate applied to the entire volume). This is generally how the data is presented
54+
in the literature. The scripts assume the data is in this form. The user input
55+
captures this effect via the `base_removal_scaling`. This term represents, as a
56+
value from 0 to 1, the ex-core fraction (assuming chemical removal in the that
57+
region). Whatever chemical removal rates are used, this term should represent
58+
the scaling that has been applied to that data (for example, if the removal
59+
occurs everywhere in the primary loop, then the scaling would be 1.0 since this
60+
term captures the spatial component.)
61+
- The group parameter data from the literature should be given as absolute
62+
yields (calculable from the relative yield and total yield values).
63+
5064
### Processing
5165
Processing consists of three steps:
5266
1. Generate concentrations (or collect fission yield data).
@@ -73,11 +87,9 @@ including analysis of each step.
7387
## Using the tool from source
7488
Download the repository from GitHub.
7589
The environment will also to be created by running
76-
`conda env create -f environment.yml`.
90+
`mamba env create -f environment.yml`.
7791
This should be followed with `conda activate mosdenv` to activate
7892
the environment.
79-
Run `pip install -e .` to make the package available to use on the command line
80-
as `mosden` in the `mosdenv` environment.
8193
Download the data used in tests by running `bash download_data.sh`.
8294
Check that tests pass by running `pytest` or `pytest -m "not slow"` for the
8395
faster version.
@@ -103,4 +115,4 @@ various debug outputs.
103115
- [<20] is the info level (This is the suggested level)
104116
- [<30] is the warning level
105117
- [<40] is the error level
106-
- [<50] is the critical level
118+
- [<50] is the critical level

download_data.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ NFY_URL="https://www.nndc.bnl.gov/endf-b${INTEGER_VALUE}.${DIGIT_PART}/zips/${NF
5656
echo "Downloading NFY data for ENDF/B-${ENDF_VERSION}..."
5757
TEMP_ZIP="${NFY_DIR}/${NFY_ZIP_NAME}"
5858
echo "Accessing ${NFY_URL}"
59-
wget --show-progress -O "$TEMP_ZIP" "$NFY_URL"
59+
wget -4 --show-progress -O "$TEMP_ZIP" "$NFY_URL"
6060
echo "Extracting NFY data..."
6161
unzip "$TEMP_ZIP" -d "$NFY_DIR"
6262
rm "$TEMP_ZIP"
@@ -68,7 +68,7 @@ decay_URL="https://www.nndc.bnl.gov/endf-b${INTEGER_VALUE}.${DIGIT_PART}/zips/${
6868
echo "Downloading decay data for ENDF/B-${ENDF_VERSION}..."
6969
TEMP_ZIP="${decay_DIR}/${decay_ZIP_NAME}"
7070
echo "Accessing ${decay_URL}"
71-
wget --show-progress -O "$TEMP_ZIP" "$decay_URL"
71+
wget -4 --show-progress -O "$TEMP_ZIP" "$decay_URL"
7272
echo "Extracting decay data..."
7373
unzip "$TEMP_ZIP" -d "$decay_DIR"
7474
rm "$TEMP_ZIP"
@@ -101,7 +101,7 @@ fi
101101

102102
echo "Downloading NFY data for JEFF-${JEFF_VERSION}..."
103103
echo "Accessing ${JEFF_URL}"
104-
wget --show-progress --recursive --no-parent --accept "*.zip" --no-host-directories --cut-dirs=3 -P "${JEFF_DIR}" "$JEFF_URL"
104+
wget -4 --show-progress --recursive --no-parent --accept "*.zip" --no-host-directories --cut-dirs=3 -P "${JEFF_DIR}" "$JEFF_URL"
105105
echo "Extracting NFY data..."
106106
for f in "$NFY_DIR"/*.zip; do
107107
unzip "$f" -d "$NFY_DIR"
@@ -120,20 +120,20 @@ IAEA_URL="https://www-nds.iaea.org/relnsd/delayedn/eval.csv"
120120
mkdir -p "$IAEA_DIR"
121121

122122
echo "Downloading IAEA delayed neutron data..."
123-
wget -q --show-progress -O "$IAEA_FILE" "$IAEA_URL"
123+
wget -4 -q --show-progress -O "$IAEA_FILE" "$IAEA_URL"
124124
echo "Saved to $IAEA_FILE"
125125

126126
# /IAEA --------------------------------------------------------------------
127127

128128
# OpenMC --------------------------------------------------------------------
129129
OPENMC_DIR="${ENDF_DIR}/omcchain/"
130130
mkdir -p "$OPENMC_DIR"
131-
wget -q --show-progress -O "${OPENMC_DIR}chain_casl_pwr.xml" "https://anl.box.com/shared/static/3nvnasacm2b56716oh5hyndxdyauh5gs.xml"
132-
wget -q --show-progress -O "${OPENMC_DIR}chain_casl_sfr.xml" "https://anl.box.com/shared/static/9fqbq87j0tx4m6vfl06pl4ccc0hwamg9.xml"
131+
wget -4 -q --show-progress -O "${OPENMC_DIR}chain_casl_pwr.xml" "https://anl.box.com/shared/static/3nvnasacm2b56716oh5hyndxdyauh5gs.xml"
132+
wget -4 -q --show-progress -O "${OPENMC_DIR}chain_casl_sfr.xml" "https://anl.box.com/shared/static/9fqbq87j0tx4m6vfl06pl4ccc0hwamg9.xml"
133133
if [[ "${ENDF_VERSION}" == "VII.1" ]]; then
134-
wget -q --show-progress -O "${OPENMC_DIR}chain_endfb71_pwr.xml" "https://anl.box.com/shared/static/os1u896bwsbopurpgas72bi6aij2zzdc.xml"
135-
wget -q --show-progress -O "${OPENMC_DIR}chain_endfb71_sfr.xml" "https://anl.box.com/shared/static/9058zje1gm0ekd93hja542su50pccvj0.xml"
134+
wget -4 -q --show-progress -O "${OPENMC_DIR}chain_endfb71_pwr.xml" "https://anl.box.com/shared/static/os1u896bwsbopurpgas72bi6aij2zzdc.xml"
135+
wget -4 -q --show-progress -O "${OPENMC_DIR}chain_endfb71_sfr.xml" "https://anl.box.com/shared/static/9058zje1gm0ekd93hja542su50pccvj0.xml"
136136
elif [[ "${ENDF_VERSION}" == "VIII.0" ]]; then
137-
wget -q --show-progress -O "${OPENMC_DIR}chain_endfb71_pwr.xml" "https://anl.box.com/shared/static/nyezmyuofd4eqt6wzd626lqth7wvpprr.xml"
138-
wget -q --show-progress -O "${OPENMC_DIR}chain_endfb71_sfr.xml" "https://anl.box.com/shared/static/x3kp739hr5upmeqpbwx9zk9ep04fnmtg.xml"
137+
wget -4 -q --show-progress -O "${OPENMC_DIR}chain_endfb71_pwr.xml" "https://anl.box.com/shared/static/nyezmyuofd4eqt6wzd626lqth7wvpprr.xml"
138+
wget -4 -q --show-progress -O "${OPENMC_DIR}chain_endfb71_sfr.xml" "https://anl.box.com/shared/static/x3kp739hr5upmeqpbwx9zk9ep04fnmtg.xml"
139139
fi

environment.yml

Lines changed: 12 additions & 153 deletions
Original file line numberDiff line numberDiff line change
@@ -1,158 +1,17 @@
11
name: mosdenv
22
channels:
33
- conda-forge
4-
- defaults
54
dependencies:
6-
- _libgcc_mutex=0.1
7-
- _openmp_mutex=4.5
8-
- asttokens=3.0.0
9-
- blosc=1.21.6
10-
- brotli=1.1.0
11-
- brotli-bin=1.1.0
12-
- bzip2=1.0.8
13-
- c-ares=1.34.5
14-
- ca-certificates=2025.10.5
15-
- cached-property=1.5.2
16-
- cached_property=1.5.2
17-
- colorama=0.4.6
18-
- contourpy=1.3.3
19-
- cycler=0.12.1
20-
- dagmc=3.2.4
21-
- decorator=5.2.1
22-
- eigen=3.4.0
23-
- endf=0.1.4
24-
- exceptiongroup=1.3.0
25-
- executing=2.2.0
26-
- fonttools=4.59.0
27-
- freetype=2.13.3
28-
- future=1.0.0
29-
- h5py=3.13.0
30-
- hdf4=4.2.15
31-
- hdf5=1.14.3
32-
- iniconfig=2.0.0
33-
- ipython=9.4.0
34-
- ipython_pygments_lexers=1.1.1
35-
- jedi=0.19.2
36-
- jinja2=3.1.6
37-
- keyutils=1.6.1
38-
- kiwisolver=1.4.8
39-
- krb5=1.21.3
40-
- lcms2=2.17
41-
- ld_impl_linux-64=2.44
42-
- lerc=4.0.0
43-
- libaec=1.1.4
44-
- libblas=3.9.0
45-
- libbrotlicommon=1.1.0
46-
- libbrotlidec=1.1.0
47-
- libbrotlienc=1.1.0
48-
- libcblas=3.9.0
49-
- libcurl=8.14.1
50-
- libdeflate=1.24
51-
- libedit=3.1.20250104
52-
- libev=4.33
53-
- libexpat=2.7.1
54-
- libffi=3.4.6
55-
- libfreetype=2.13.3
56-
- libfreetype6=2.13.3
57-
- libgcc=15.1.0
58-
- libgcc-ng=15.1.0
59-
- libgfortran=15.1.0
60-
- libgfortran5=15.1.0
61-
- libgomp=15.1.0
62-
- libiconv=1.18
63-
- libjpeg-turbo=3.1.0
64-
- liblapack=3.9.0
65-
- liblzma=5.8.1
66-
- libnetcdf=4.9.2
67-
- libnghttp2=1.64.0
68-
- libnsl=2.0.1
69-
- libopenblas=0.3.30
70-
- libpng=1.6.50
71-
- libsqlite=3.50.4
72-
- libssh2=1.11.1
73-
- libstdcxx=15.1.0
74-
- libstdcxx-ng=15.1.0
75-
- libtiff=4.7.0
76-
- libuuid=2.38.1
77-
- libwebp-base=1.6.0
78-
- libxcb=1.17.0
79-
- libxcrypt=4.4.36
80-
- libxml2=2.13.8
81-
- libxslt=1.1.43
82-
- libzip=1.11.2
83-
- libzlib=1.3.1
84-
- lxml=6.0.0
85-
- lz4-c=1.10.0
86-
- markupsafe=3.0.2
87-
- matplotlib-base=3.10.5
88-
- matplotlib-inline=0.1.7
89-
- metis=5.1.0
90-
- moab=5.5.1
91-
- munkres=1.1.4
92-
- ncrystal=4.2.6
93-
- ncrystal-core=4.2.6
94-
- ncrystal-lib=4.2.6
95-
- ncrystal-python=4.2.6
96-
- ncurses=6.5
97-
- njoy2016=2016.78
98-
- numpy=2.3.2
99-
- openjpeg=2.5.3
100-
- openmc=0.15.2
101-
- openssl=3.5.4
102-
- packaging=25.0
103-
- pandas=2.3.1
104-
- parso=0.8.4
105-
- patsy=1.0.1
106-
- pexpect=4.9.0
107-
- pickleshare=0.7.5
108-
- pillow=11.3.0
109-
- pip=25.2
110-
- pluggy=1.6.0
111-
- prompt-toolkit=3.0.51
112-
- pthread-stubs=0.4
113-
- ptyprocess=0.7.0
114-
- pure_eval=0.2.3
115-
- pygments=2.19.2
116-
- pyparsing=3.2.3
117-
- pytest=8.4.1
118-
- python=3.12.11
119-
- python-dateutil=2.9.0.post0
120-
- python-tzdata=2025.2
121-
- python_abi=3.12
122-
- pytz=2025.2
123-
- qhull=2020.2
124-
- readline=8.2
125-
- scipy=1.16.0
126-
- seaborn=0.13.2
127-
- seaborn-base=0.13.2
128-
- setuptools=80.9.0
129-
- six=1.17.0
130-
- snappy=1.2.2
131-
- stack_data=0.6.3
132-
- statsmodels=0.14.5
133-
- tempest-remap=2.2.0
134-
- tk=8.6.13
135-
- tomli=2.2.1
136-
- tqdm=4.67.1
137-
- traitlets=5.14.3
138-
- typing_extensions=4.14.1
139-
- tzdata=2025b
140-
- uncertainties=3.2.3
141-
- unicodedata2=16.0.0
142-
- wcwidth=0.2.13
143-
- wheel=0.45.1
144-
- xorg-libxau=1.0.12
145-
- xorg-libxdmcp=1.1.5
146-
- zlib=1.3.1
147-
- zstd=1.5.7
5+
- python=3.12
6+
- numpy
7+
- pip
8+
- pytest
9+
- pandas
10+
- uncertainties
11+
- scipy
12+
- tqdm
13+
- openmc
14+
- seaborn
14815
- pip:
149-
- https://github.com/terrapower/armi/archive/main.zip
150-
- coverage==7.10.5
151-
- ordered-set==4.1.0
152-
- pydoe==0.3.8
153-
- pyevtk==1.6.0
154-
- ruamel-yaml==0.18.15
155-
- ruamel-yaml-clib==0.2.12
156-
- toml==0.10.2
157-
- voluptuous==0.15.2
158-
- yamlize==0.7.1
16+
- -e .
17+
- https://github.com/terrapower/armi/archive/main.zip

examples/empty_run/input.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/iaea_matching/input.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@
3737
"incore_s": 10,
3838
"excore_s": 0,
3939
"net_irrad_s": 420,
40-
"decay_time": 1200,
40+
"decay_time": 120,
4141
"num_decay_times": 800
4242
},
4343
"group_options": {
4444
"num_groups": 6,
4545
"method": "nlls",
46-
"samples": 5000,
46+
"samples": 1,
4747
"sample_func": "normal"
4848
}
4949
}

examples/keepin_1957/input.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"group_options": {
4747
"num_groups": 6,
4848
"method": "nlls",
49-
"samples": 1000,
49+
"samples": 100,
5050
"sample_func": "uniform"
5151
}
52-
}
52+
}

examples/prelim_results/input.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"cross_section": "",
1818
"emission_probability": "iaea/eval.csv",
1919
"fission_yield": "endfb71/nfy/",
20-
"decay_time_spacing": "log",
20+
"decay_time_spacing": "linear",
2121
"temperature_K": 920,
2222
"density_g_cm3": 2.3275,
2323
"energy_MeV": 0.0253e-6,

examples/prelim_results/results_generator.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import shutil
66
from copy import deepcopy
77
import subprocess
8-
from mosden.utils.chemical_schemes import MSBR_scheme
8+
from mosden.utils.chemical_schemes import Reprocessing
99

1010
base_input_file = './input.json'
1111
analysis_list = list()
@@ -32,8 +32,8 @@
3232
'run_post': False,
3333
'overwrite': True
3434
},
35-
'reprocessing': [MSBR_scheme(),
36-
MSBR_scheme(include_long=False)],
35+
'reprocessing': [Reprocessing(base_input_file).removal_scheme(),
36+
Reprocessing(base_input_file).removal_scheme(include_long=False)],
3737
'incore_s': [10],
3838
'excore_s': [10],
3939
'multi_id': [name]
@@ -48,8 +48,8 @@
4848
'run_post': False,
4949
'overwrite': True
5050
},
51-
'reprocessing': [MSBR_scheme(),
52-
MSBR_scheme(rate_scaling=0.0)],
51+
'reprocessing': [Reprocessing(base_input_file).removal_scheme(),
52+
Reprocessing(base_input_file).removal_scheme(rate_scaling=0.0)],
5353
'incore_s': [10],
5454
'excore_s': [10],
5555
'multi_id': [name]
@@ -77,7 +77,7 @@
7777
'run_post': False,
7878
'overwrite': True
7979
},
80-
'num_decay_times': [50, 100, 200, 400, 800],
80+
'num_decay_times': [50, 100, 150, 200, 250, 400, 800],
8181
'multi_id': [name]
8282
}
8383
analysis_list.append(decay_times_analysis)
@@ -99,8 +99,8 @@
9999
detailed_decay_analysis = {
100100
'meta': {
101101
'name': name,
102-
'run_full': True,
103-
'run_post': False,
102+
'run_full': False,
103+
'run_post': True,
104104
'overwrite': True
105105
},
106106
'decay_time': [1200, 2400],

0 commit comments

Comments
 (0)