Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
166 commits
Select commit Hold shift + click to select a range
65c9141
rearrange files and add irdff and tools package
Apr 12, 2023
d6d397c
added reworked fns_duct model
Apr 12, 2023
b95bd68
Create README.md
SteSeg Apr 12, 2023
2e3ac52
added the fng-str model folder with main files
May 17, 2023
0eaf486
fng str model included
May 17, 2023
0a09f02
added new irdff acef files
May 17, 2023
5ac16c3
updated fng str model and postprocessing
May 17, 2023
9b98b8a
substituted none with pass in some helpers
May 18, 2023
d605fd2
Update README.md
SteSeg May 19, 2023
af6fcca
added gold to detector materials
Jun 8, 2023
1eb86ac
Merge branch 'repo_reorganization' of github.com:eepeterson/openmc_si…
Jun 8, 2023
c166ae5
fng_str model updated
Jun 22, 2023
404e771
sinbad results in h5 files for fns duct
Jul 28, 2023
219a9ea
fixed minor bug in helpers
Jul 31, 2023
d0f39e3
made helpers explicit for more clearness
Jul 31, 2023
514765a
fixed some bugs on fng=str
Aug 1, 2023
8fa71df
update on fns-duct model and postprocessing
Aug 2, 2023
8bea0da
fixed bug in fns-duct postprocessing and helpers
Aug 2, 2023
e85e49b
renamed h5 files in fns-duct
Aug 2, 2023
4ffb4c5
minor change postprocessing fns-duct
Aug 2, 2023
fe782e5
reworked fng-str postprocessing and h5 file
Aug 2, 2023
b9ee0a4
fixed density bug in xml_to_py script
Aug 7, 2023
6738652
fixed a couple of densities in fns-duct materials
Aug 7, 2023
50ae369
fix in fns-duct helpers
SteSeg Aug 11, 2023
b9ab835
statepoint and summary in gitignore
SteSeg Sep 14, 2023
7dae19f
statepoint_to_csv
SteSeg Sep 14, 2023
082d794
fixed postprocessing in fng-str
SteSeg Sep 28, 2023
22c31b5
reorganization
SteSeg Sep 28, 2023
a2095b2
changed name and position pf fng source model
SteSeg Sep 28, 2023
ac1b79a
added dependencies in toml
SteSeg Sep 28, 2023
eccdc5b
changed filename to openmc model
SteSeg Sep 28, 2023
f474383
renamed ww files
SteSeg Sep 28, 2023
3dfa391
organization attempt
SteSeg Sep 28, 2023
86beb60
continue reorganization
SteSeg Sep 28, 2023
a9f068c
updated fng-str and fns-duct inputs' import
SteSeg Sep 28, 2023
2736999
update fng-str source
SteSeg Sep 28, 2023
659ba4a
updated irdff path in models
SteSeg Sep 28, 2023
8463e02
updated todo
SteSeg Sep 28, 2023
a265f07
nothing changed
SteSeg Sep 28, 2023
b88a2fb
added results_database folder
SteSeg Sep 28, 2023
0de0deb
changed names to .h5 files in result_databases
SteSeg Sep 29, 2023
2b3888b
added file.close to postprocessings
SteSeg Sep 29, 2023
8d81a85
reworked .h5 files of fng-str
SteSeg Sep 29, 2023
8e01d6b
converted all h5 files
SteSeg Oct 3, 2023
cc51573
+database file and classes in within
SteSeg Oct 3, 2023
5bbcfcc
improved database file
SteSeg Oct 3, 2023
2dedbbf
added literature attr to some h5 files
SteSeg Oct 3, 2023
230eb89
updated tallies in fng-str
SteSeg Oct 3, 2023
b3393fb
updated todo file
SteSeg Oct 12, 2023
de6037c
+ postprocessing_v2 to try things
SteSeg Oct 13, 2023
34271ff
+ from_openmc.py & fixed database classes
SteSeg Oct 13, 2023
4225377
- tallyfromdatabase class
SteSeg Oct 13, 2023
d51e502
+ resultsfromopenmc class
SteSeg Oct 13, 2023
8922902
+ read_results file (former database)
SteSeg Oct 13, 2023
24f2d5c
+ ResultsFromOpenmc object
SteSeg Oct 16, 2023
dbb5708
small fix in read_results file
SteSeg Oct 16, 2023
ea3b57d
small fix in read_results file
SteSeg Oct 16, 2023
e5340bb
+ notebook folder and blank notebooks
SteSeg Oct 16, 2023
f4dce24
+ to_hdf() for openmc_results
SteSeg Oct 17, 2023
a669d4d
- openmc_to_h5 file
SteSeg Oct 17, 2023
32a56f7
updated todo file
SteSeg Oct 17, 2023
5973a3f
+ tally normalization for openmc results
SteSeg Oct 17, 2023
ecc7c2f
updated gitignore
SteSeg Oct 18, 2023
7fc1a2c
advances in visualization
SteSeg Oct 18, 2023
1e59f75
updated postprocessing_v2 in fng_str
SteSeg Oct 19, 2023
315c89f
+ heating in postprocessing v2
SteSeg Oct 19, 2023
95223f7
+ postprocessing v2 in fns-duct
SteSeg Oct 19, 2023
355ff5b
+ spectra in postprocessing v2 of fns-duct
SteSeg Oct 19, 2023
2bcf277
+ read_results documentation
SteSeg Oct 20, 2023
849f760
+ visualize documentation
SteSeg Oct 20, 2023
236f372
converted docstrings of type numpy
SteSeg Oct 20, 2023
3337995
+ documentation for the read_results file
SteSeg Oct 20, 2023
2672762
updated todo file
SteSeg Oct 20, 2023
2cbf77d
+ example database in notebooks & read_database
SteSeg Oct 20, 2023
26fc6c1
updated todo file
SteSeg Oct 20, 2023
4cd27a4
+ when and where in openmc tally to h5 attribute
SteSeg Oct 23, 2023
c1fdaf6
fixed tally_to_hdf
SteSeg Oct 24, 2023
d903d26
+ comments in visualize.py
SteSeg Oct 24, 2023
9bc6d39
+ comments in read results
SteSeg Oct 24, 2023
f66a9c5
minor change in read_results
SteSeg Oct 24, 2023
947be55
filled read database notebook
SteSeg Oct 24, 2023
57da28f
+ plotting_results notebook
SteSeg Oct 25, 2023
f727f70
a bit more on plotting notebook
SteSeg Oct 25, 2023
7ed4cb9
filled plotting notebook
SteSeg Oct 26, 2023
63d453d
- old postprocessing notebooks
SteSeg Oct 26, 2023
edbb170
renamed notebook
SteSeg Oct 26, 2023
f23a03f
updated todo file
SteSeg Oct 26, 2023
d650fb5
updated readme file
SteSeg Oct 30, 2023
6da8641
updated readme file
SteSeg Oct 30, 2023
1ad5e53
cleaned fng-str results database
SteSeg Oct 30, 2023
2240eeb
fns-duct cleaned
SteSeg Oct 30, 2023
a750712
fixed irdff path
SteSeg Nov 21, 2023
5ff809c
fill push openmc to h5 notebook
SteSeg Nov 29, 2023
205ac75
openmc to hdf tutorial notebook
SteSeg Nov 30, 2023
778ab4c
updated helpers file for fng_str
SteSeg Nov 30, 2023
dc0afab
updated fns_duct model
SteSeg Dec 1, 2023
9fe43cc
+ offaxis results in fng_streaming postprocessing
SteSeg Dec 1, 2023
601a67f
fixed helpers and postprocessing 4 fng_str heating
SteSeg Dec 6, 2023
72ea66d
update fns_duct helpers
SteSeg Dec 6, 2023
4b1a6d2
+ run&store for fns_duct
SteSeg Dec 6, 2023
6510140
+ run&store fng_str
SteSeg Dec 7, 2023
a2402ee
+ build_hdf_filename(0 in read_results
SteSeg Dec 7, 2023
44f9224
adapted stuff to run&store files
SteSeg Dec 7, 2023
70f659a
adapted files to run&store fns_duct (verified)
SteSeg Dec 7, 2023
4d39e44
fixed print info function
SteSeg Dec 7, 2023
9e700fe
tested run&store fns_duct
SteSeg Dec 7, 2023
33c232c
tested run&store for fng_str
SteSeg Dec 7, 2023
f50280e
+ openmc fendl3.2b results in database fns_duct
SteSeg Dec 8, 2023
edc3aed
+ fendl3.2b file in fng_str results database
SteSeg Dec 11, 2023
cc32ffa
+ endf\b-8.0 in fns_duct results database
SteSeg Dec 11, 2023
0336cd8
+ run&store tutorial notebook
SteSeg Dec 11, 2023
c517bed
added code version to hdf5 filenames
SteSeg Dec 20, 2023
74896e6
completed read openmc statepoint notebook
SteSeg Dec 21, 2023
aec2d2d
fixed path in resultsfromdatabase
SteSeg Dec 22, 2023
c9d1daa
fns_duct endf80 run
SteSeg Dec 23, 2023
67dbbe0
+ openmc14 fendl3.2 fns-duct database file
SteSeg Dec 31, 2023
fd888ec
+ fng_str openmc 14.0 endf 8 results
SteSeg Jan 2, 2024
77c4091
fng_source Source -> IndependentSource
SteSeg Jan 2, 2024
54ee987
more irdff files
SteSeg Jan 2, 2024
5b113ea
updated fns_duct postprocessing
SteSeg Jan 2, 2024
f054be6
fixed postprocessing fns_duct
SteSeg Jan 2, 2024
2c99065
new pkg name openmc_fusion_benchmarks
SteSeg Jan 2, 2024
302b331
changed package name to ofb in fns_duct
SteSeg Jan 2, 2024
e728a38
changed pkg name to ofb in fng_str
SteSeg Jan 2, 2024
bc50ffb
changed pkg name to ofb in notebooks
SteSeg Jan 2, 2024
5d666c9
fixed from_irdff file
SteSeg Jan 3, 2024
f04f271
+ openmg 14.0 fendl2.3 in fng_str result database
SteSeg Jan 5, 2024
e4a2e98
updated postprocessing file in fng_str
SteSeg Jan 5, 2024
1a00309
update fng_source
SteSeg Jan 5, 2024
423950f
improved fng_source script and files
SteSeg Jan 8, 2024
b9b9700
- 230keV characteristics
SteSeg Jan 8, 2024
59d7854
+ 230 keV characteristics
SteSeg Jan 8, 2024
4efc065
+ fng_w benchmark
SteSeg Jan 9, 2024
c161bfb
+ ww file to fng_w
SteSeg Jan 9, 2024
1656f88
+ fendl & endf results in fng-w
SteSeg Jan 13, 2024
822f230
documented postprocessing notebook of fng_str
SteSeg Jan 24, 2024
7d06629
postprocessing fng_str
SteSeg Jan 24, 2024
3db6ffa
doc on postprocessing fng_str and _w
SteSeg Jan 26, 2024
2acde26
doc on postprocessing fgn_w
SteSeg Jan 26, 2024
6b29a1f
doc in fns_duct postprocessing
SteSeg Jan 26, 2024
3f03f97
fixed run&store in fns_duct
SteSeg Feb 29, 2024
0ead7f3
fixed gitignore
SteSeg Feb 29, 2024
ae308f7
- egg-info
SteSeg Feb 29, 2024
3fed0f0
refixed gitignore
SteSeg Feb 29, 2024
8fc17b3
added stuff to do
SteSeg Feb 29, 2024
5562647
+ fns_clean_w benchmark case
SteSeg Feb 29, 2024
c07201e
addition to fns_duct postprocessing
SteSeg Feb 29, 2024
9e08da0
documented fns-clean-w notebook
SteSeg Feb 29, 2024
1871fbf
fixed dataframe visualization and str decode
SteSeg Mar 6, 2024
e7be180
- benchmarks not consisten w/ worflow
SteSeg Mar 6, 2024
b9eadf5
+ fendl results for fns_clean_w
SteSeg Mar 6, 2024
aca3041
- old fendl3 fns duct result
SteSeg Mar 6, 2024
47b46c1
improved ResultsFromOpenmc class
SteSeg Mar 6, 2024
6dea1ef
fixed ResultsFromOpenmc class
SteSeg Mar 8, 2024
3e1a0b0
+ tables in dependencies
SteSeg Mar 8, 2024
4ec829f
attempt fix neutron_sources
SteSeg Mar 8, 2024
d704889
back to previous neutron_sources
SteSeg Mar 8, 2024
f041fdd
try fix pyproject.toml
SteSeg Mar 8, 2024
f4fe42e
new pyproject
SteSeg Mar 8, 2024
f507242
pyproject again
SteSeg Mar 8, 2024
ce8be5e
again
SteSeg Mar 8, 2024
37c2e41
again
SteSeg Mar 8, 2024
2423e43
back to old pyproject
SteSeg Mar 8, 2024
f3c3ecc
old pyproject
SteSeg Mar 8, 2024
d6de7d6
fixed push notebook
SteSeg Mar 12, 2024
15b530a
- fnsduct endf file + fnsduct fendl file
SteSeg Mar 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
*.log
*.out
*.pkl
summary.*
statepoint.*

# temporary files
my_openmc_results.h5

# attempt/sketch files
DELETE*
delete*

# Compiler python objects
*.pyc
Expand All @@ -15,9 +24,6 @@
*~
*.swp

# HDF5 files
*.h5

# Images
*.png
*.ppm
Expand All @@ -41,6 +47,7 @@
.python-version
.coverage
htmlcov
openmc_fusion_benchmarks.egg-info/

# macOS
*.DS_Store
Expand Down
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 MIT PSFC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include LICENSE
include pyproject.toml
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# openmc_sinbad_benchmarks

## Installation
```
pip install .
```

## Folder organization
The `src` folder provides all the classes and functions of the package. It also has additional data in the `data` subfolder (e.g. IRDFF-2 cross sections) and some neutron source characteristics, importable as `openmc.Source` object, in the `neutron_sources` subfolder (so far there is only the Frascati Neutron Generator - FNG energy and angular characteristics).

The `notebooks` folder contains some useful tutorial notebooks.

The `models` folder has all the models and benchmarks covered by this repo (e.g. the `fng-str` and `fns-duct` benchmarks). Each bechmark provides an `openmc_model.py` file that has the Python API input file for the relative openmc model. It can be run via command line and often has some different options for running it. There should be also a `postprocessing.ipynb` jupyter notebook for quick result visualizatin and confrontation against other experimental or other codes' results.

## Interactive database
Each model has a `results_database` subfolder that contains the experimental results as well as previous simulation results of the benchmark in form of hdf files. Tutorial notebooks in the `notebooks` folder show how to navigate those files. All the hdf files belonging to the same model should have same structure (same tallies, with the same name, postprocessed in the same way and extractable in the same way). Each `results_database` subfolder should have at least an `experiment.h5` file. Results from openmc and other codes are more than welcome, especially if built consistently with the files already present.

## Contribute
The contribution workflow is semi-authomatized for the openmc code. Users can run any openmc model and then the postprocessing notebook for a direct validation of the openmc version they use but they can also contribute to the repository. It is sufficient to:
- Run an openmc model (with sufficient number of particles)
- Postprocess them (see `read_openmc_statepoints.ipynb` notebook)
- Push results to the `results_database` folder relative to the tested model provide as many info as possible (i.e. code version, nuclear data library, number of particles run etc. - see `push_openmc_to_database.ipynb` notebook)
13 changes: 13 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# to do
- the to_hdf method should be revised: one should be able to provide the "when" and "where" and a default hdf_file name should be added, think about the xaxis thing as well (?)
- the to_hdf file should be more resilient to errors
- move the tally_h5 functiono out of the OpenmcResults class for more versatility (made necessary by the fng_duct heating tally)

## tests

## notebooks

## clean postprocessing
- being able to extract tally from statepoint files
- pick tally from database
- mean, std_dev, rel_std_dev, ratio_of_means, over_lethargy, heating
Loading