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
5 changes: 5 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ jobs:
environment-file: environment.yml
activate-environment: libra-run-env

- name: Run neutronics
shell: bash -l {0}
working-directory: analysis/neutron
run: python openmc_model_LiOx.py

# example how to run a notebook
# - name: Run tritium model
# shell: bash -l {0}
Expand Down
5 changes: 2 additions & 3 deletions analysis/neutron/openmc_model_LiOx.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import openmc
import vault
from libra_toolbox.neutronics.neutron_source import A325_generator_diamond
import helpers
from libra_toolbox.neutronics import vault
import math
import numpy as np

Expand Down Expand Up @@ -148,7 +147,7 @@ def baby_model():
0, Li2O_bed_radius, (int(Li2O_bed_radius * 4)) + 1
) # 0.25cm radial bins (4x as many bins as breeder radius in cm)

phi_grid = [0, 1 * math.pi, 2 * math.pi]
phi_grid = np.linspace(0, np.pi, 10)

z_grid = np.linspace(
0, Li2O_bed_thickness, (int(Li2O_bed_thickness * 4)) + 1
Expand Down
120 changes: 60 additions & 60 deletions analysis/neutron/postprocessing.ipynb

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: libra-run-env
channels:
- conda-forge
dependencies:
- python
- python>=3.10
- openmc # add version tag
- openmc-plotter
- numpy # add version tag
Expand All @@ -13,6 +13,7 @@ dependencies:
- pint-pandas
- nbconvert
- ipykernel
- vtk
- pint
- pip
- pip:
Expand Down
Loading