From ff1873e22ddfb2e6b6fefc492f0a8b421446c158 Mon Sep 17 00:00:00 2001 From: shimwell Date: Thu, 17 Oct 2024 17:38:23 +0100 Subject: [PATCH] added nuc data --- .../1_find_dpa.ipynb | 21 +++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/tasks/task_06_CSG_cell_tally_DPA/1_find_dpa.ipynb b/tasks/task_06_CSG_cell_tally_DPA/1_find_dpa.ipynb index f3d0c963..4c52fd7d 100644 --- a/tasks/task_06_CSG_cell_tally_DPA/1_find_dpa.ipynb +++ b/tasks/task_06_CSG_cell_tally_DPA/1_find_dpa.ipynb @@ -27,7 +27,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "This first stage sets up the geometry and materials for the simulation." + "First import OpenMC and configure the nuclear data path" ] }, { @@ -38,7 +38,24 @@ "source": [ "import openmc\n", "\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 stage sets up the geometry and materials for the simulation." + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ "# MATERIALS\n", "\n", "density_of_iron_in_g_per_cm3 = 7.75\n",