Skip to content

Commit

Permalink
fixing task 5 nuc data
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Oct 17, 2024
1 parent 50e6cb6 commit 711e786
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,14 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"This example uses a simple sphere model with a breeder material and a tritium production tally.\n",
"\n",
"This first code block makes the geometry, materials and settings for the neutronics model."
"This example uses a simple sphere model with a breeder material and a tritium production tally."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"First import OpenMC and configure the nuclear data path"
]
},
{
Expand All @@ -36,6 +41,24 @@
"source": [
"import openmc\n",
"\n",
"# Setting the cross section path to the correct location in the docker image.\n",
"# If you are running this outside the docker image you will have to change this path to your local cross section path.\n",
"openmc.config['cross_sections'] = '/nuclear_data/cross_sections.xml'"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"This first code block makes the geometry, materials and settings for the neutronics model."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# MATERIALS\n",
"\n",
"breeder_material = openmc.Material() # lithium lead chemical equation is Pb84.2Li15.8\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@
"This python notebook allows users to make a simple model with a Lithium blanket of controllable enrichment. Simulations are then performed for several different Li6 enrichments and the TBR found."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -24,9 +36,6 @@
"metadata": {},
"outputs": [],
"source": [
"import openmc\n",
"\n",
"\n",
"def make_materials_geometry_tallies(enrichment):\n",
" \"\"\"Makes a neutronics model of a blanket and simulates the TBR value.\n",
"\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

import openmc

# Setting the cross section path to the correct location in the docker image.
# If you are running this outside the docker image you will have to change this path to your local cross section path.
openmc.config['cross_sections'] = '/nuclear_data/cross_sections.xml'

# make some python materials
breeder_material = openmc.Material(material_id = 12) # Pb84.2Li15.8
Expand Down

0 comments on commit 711e786

Please sign in to comment.