Skip to content

Commit 5b8286e

Browse files
Merge pull request #6 from davidepettinari/A325_neutron_source
OpenMC model with the MIT-VaultLab A-325 neutron generator
2 parents d1eedb8 + 6299c14 commit 5b8286e

File tree

3 files changed

+124
-117
lines changed

3 files changed

+124
-117
lines changed

analysis/neutron/openmc_model.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import openmc
22
import vault
3+
from libra_toolbox.neutronics.neutron_source import A325_generator_diamond
34
import helpers
45

56

@@ -278,9 +279,7 @@ def baby_model():
278279

279280
settings = openmc.Settings()
280281

281-
point = openmc.stats.Point((x_c, y_c, z_c - 5.635))
282-
src = openmc.IndependentSource(space=point)
283-
src.energy = openmc.stats.Discrete([14.1e6], [1.0])
282+
src = A325_generator_diamond((x_c, y_c, z_c - 5.635), (1, 1, 1))
284283
settings.source = src
285284
settings.batches = 100
286285
settings.inactive = 0

analysis/neutron/postprocessing.ipynb

Lines changed: 120 additions & 112 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)