Skip to content

Commit 707d97d

Browse files
Merge pull request #1 from veliki-filozof/initialization
Initialization and first samples
2 parents 4a2c4d0 + 88ce61f commit 707d97d

22 files changed

Lines changed: 2908 additions & 15 deletions

.github/workflows/ci.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,16 @@ jobs:
1515
with:
1616
auto-update-conda: true
1717
environment-file: environment.yml
18-
activate-environment: libra-run-env
18+
activate-environment: baby-1l-run-7
1919

20-
# example how to run a notebook
21-
# - name: Run tritium model
22-
# shell: bash -l {0}
23-
# working-directory: analysis/tritium
24-
# run: jupyter-nbconvert --to notebook tritium_model.ipynb --execute
20+
- name: Run neutronics
21+
shell: bash -l {0}
22+
working-directory: analysis/neutron
23+
run: |
24+
python openmc_model.py
25+
jupyter-nbconvert --to notebook postprocessing.ipynb --execute
26+
27+
- name: Run tritium model
28+
shell: bash -l {0}
29+
working-directory: analysis/tritium
30+
run: jupyter-nbconvert --to notebook tritium_model.ipynb --execute

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
This is a template repository for experimental runs of LIBRA.
66

7-
This repository has the data for the run [**insert run name**].
7+
This repository has the data for the run [BABY 1L Run #7].
88

99
## How to reproduce the results
1010

@@ -20,18 +20,18 @@ This repository has the data for the run [**insert run name**].
2020
conda env create -f environment.yml
2121
```
2222

23-
2. Run the notebooks with the created environment `[INSERT NAME OF ENV]`
23+
2. Run the notebooks with the created environment `[baby-1l-run-7]`
2424

2525
## Todo list:
2626
- [ ] [Link to Zenodo](https://zenodo.org/)
27-
- [ ] Change environment name in [`environment.yml`](environment.yml)
28-
- [ ] Change environment name in [CI workflows](.github/workflows)
27+
- [x] Change environment name in [`environment.yml`](environment.yml)
28+
- [x] Change environment name in [CI workflows](.github/workflows)
2929
- [ ] Modify [binder](https://mybinder.org/) badge by inserting the repo name
30-
- [ ] Add general run data to [`data/general.json`](data/general.json)
31-
- [ ] Add LSC data to [`data/tritium_detection`](data/tritium_detection)
30+
- [x] Add general run data to [`data/general.json`](data/general.json)
31+
- [x] Add LSC data to [`data/tritium_detection`](data/tritium_detection)
3232
- [ ] Add neutron detection data to [`data/neutron_detection`](data/neutron_detection)
33-
- [ ] Add OpenMC model to [`analysis/neutron`](analysis/neutron)
34-
- [ ] Add Tritium model to [`analysis/tritium`](analysis/tritium)
33+
- [x] Add OpenMC model to [`analysis/neutron`](analysis/neutron)
34+
- [x] Add Tritium model to [`analysis/tritium`](analysis/tritium)
3535
- [ ] Add the right version tags to [`environment.yml`](environment.yml)
3636
- [ ] Add and update information in the README
3737
- [ ] Add all analysis to [CI workflows](.github/workflows)

analysis/neutron/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
*.h5
3+
*.xml

analysis/neutron/helpers.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import math
2+
import openmc
3+
4+
5+
def get_exp_cllif_density(temp, LiCl_frac=0.695):
6+
"""Calculates density of ClLiF [g/cc] from temperature in Celsius
7+
and molar concentration of LiCl. Valid for 660 C - 1000 C.
8+
Source:
9+
G. J. Janz, R. P. T. Tomkins, C. B. Allen;
10+
Molten Salts: Volume 4, Part 4
11+
Mixed Halide Melts Electrical Conductance, Density, Viscosity, and Surface Tension Data.
12+
J. Phys. Chem. Ref. Data 1 January 1979; 8 (1): 125–302.
13+
https://doi.org/10.1063/1.555590
14+
"""
15+
temp = temp + 273.15 # Convert temperature from Celsius to Kelvin
16+
C = LiCl_frac * 100 # Convert molar concentration to molar percent
17+
18+
a = 2.25621
19+
b = -8.20475e-3
20+
c = -4.09235e-4
21+
d = 6.37250e-5
22+
e = -2.52846e-7
23+
f = 8.73570e-9
24+
g = -5.11184e-10
25+
26+
rho = a + b * C + c * temp + d * C**2 + e * C**3 + f * temp * C**2 + g * C * temp**2
27+
28+
return rho

0 commit comments

Comments
 (0)