Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,11 @@ jobs:
run: python transistor/make_datasheet_figure.py
- name: compute the ampoule
run: python transistor/sealed_unit.py
- name: report the neutron gate from the committed tallies (OpenMC itself runs in openmc.yml)
run: python neutron/report.py
- name: run the photon keystone census from the committed level schemes (no network)
run: python photon/census.py
- name: report the ampoule from the committed tallies (no OpenMC, no network)
run: python ampoule/report.py
- name: rebuild index.html
run: python build_html.py
101 changes: 101 additions & 0 deletions .github/workflows/openmc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: OpenMC reproductions
on:
push:
branches: [main]
paths: ["neutron/**", "ampoule/**", ".github/workflows/openmc.yml"]
pull_request:
paths: ["neutron/**", "ampoule/**", ".github/workflows/openmc.yml"]
workflow_dispatch:

# Reproduces the two OpenMC directories at their quick budgets with the
# official ENDF/B-VIII.0 library. The main reproduce job rebuilds every
# results.md and figure from the committed tallies without OpenMC; these jobs
# are the proof that the tallies themselves can be regenerated from public
# code and data. Each job streams the 3.4 GB official archive once and keeps
# about 2 GB of it; the data directory is cached on the fetcher's own hash.
jobs:
neutron:
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v2
with:
environment-name: openmc
create-args: >-
python=3.12
openmc=0.16.0=*nompi*
numpy
matplotlib
h5py
init-shell: bash
cache-environment: true
- name: cache the ENDF/B-VIII.0 files the two directories use
uses: actions/cache@v4
with:
path: neutron/data
key: endfb-viii.0-${{ hashFiles('neutron/data.py') }}
- name: fetch and verify the data
shell: micromamba-shell {0}
run: python neutron/data.py --verify
- name: calibrate against the handbook (quick)
shell: micromamba-shell {0}
run: python neutron/benchmarks.py --quick
- name: run the gate protocol (quick)
shell: micromamba-shell {0}
run: python neutron/gate.py --quick
- name: report
shell: micromamba-shell {0}
run: python neutron/report.py
- uses: actions/upload-artifact@v4
with:
name: neutron-gate-quick
path: |
neutron/tallies.json
neutron/benchmarks.json
neutron/results.md
figures/fig15_neutron_gate.svg
figures/fig15_neutron_gate.png

ampoule:
runs-on: ubuntu-latest
timeout-minutes: 120
steps:
- uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v2
with:
environment-name: openmc
create-args: >-
python=3.12
openmc=0.16.0=*nompi*
numpy
matplotlib
h5py
init-shell: bash
cache-environment: true
- name: cache the ENDF/B-VIII.0 files the two directories use
uses: actions/cache@v4
with:
path: neutron/data
key: endfb-viii.0-${{ hashFiles('neutron/data.py') }}
- name: fetch and verify the data
shell: micromamba-shell {0}
run: python neutron/data.py --verify
- name: calibrate the photon instrument
shell: micromamba-shell {0}
run: python ampoule/calibrate.py
- name: run the vessel (quick)
shell: micromamba-shell {0}
run: python ampoule/model.py --quick
- name: report
shell: micromamba-shell {0}
run: python ampoule/report.py
- uses: actions/upload-artifact@v4
with:
name: ampoule-quick
path: |
ampoule/tallies.json
ampoule/calibration.json
ampoule/results.md
figures/fig17_ampoule.svg
figures/fig17_ampoule.png
Loading