Skip to content

Commit

Permalink
Merge pull request #316 from fusion-energy/fixing-last-halfday-worksh…
Browse files Browse the repository at this point in the history
…op-task

addined xs path to last task in half day workshop
  • Loading branch information
shimwell authored Feb 11, 2025
2 parents 8916ee9 + 5dc10d8 commit 608d593
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions tasks/task_19_design_task/1_optimal_design.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"\n",
"I recommend plotting the cross sections before you make your choices.\n",
"\n",
"The [example](https://github.com/fusion-energy/neutronics-workshop/blob/main/tasks/task_01_cross_sections/3_material_xs_plot.ipynb) for plotting cross sections might be useful."
"The [example](https://github.com/fusion-energy/neutronics-workshop/blob/main/tasks/task_01_cross_sections/3_material_xs_plot.ipynb) for plotting cross sections might be useful.\n",
"\n",
"First import OpenMC and configure the nuclear data path"
]
},
{
Expand All @@ -27,7 +29,11 @@
"metadata": {},
"outputs": [],
"source": [
"import openmc"
"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'\n"
]
},
{
Expand Down
10 changes: 8 additions & 2 deletions tasks/task_19_design_task/1_optimal_design_with_hints.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"\n",
"I recommend plotting the cross sections before you make your choices.\n",
"\n",
"The [example](https://github.com/fusion-energy/neutronics-workshop/blob/main/tasks/task_01_cross_sections/3_material_xs_plot.ipynb) for plotting cross sections might be useful."
"The [example](https://github.com/fusion-energy/neutronics-workshop/blob/main/tasks/task_01_cross_sections/3_material_xs_plot.ipynb) for plotting cross sections might be useful.\n",
"\n",
"First import OpenMC and configure the nuclear data path"
]
},
{
Expand All @@ -27,7 +29,11 @@
"metadata": {},
"outputs": [],
"source": [
"import openmc"
"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'\n"
]
},
{
Expand Down

0 comments on commit 608d593

Please sign in to comment.