From e66668e19201dec7800c225fbd7cbfd1f83e127b Mon Sep 17 00:00:00 2001 From: Adam Parler Date: Thu, 19 Oct 2023 03:30:34 -0700 Subject: [PATCH] Added a setup file to explain how to install OpenMC prerequisites --- setup.sh | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 setup.sh diff --git a/setup.sh b/setup.sh new file mode 100644 index 0000000..5a13602 --- /dev/null +++ b/setup.sh @@ -0,0 +1,44 @@ +#!/bin/bash + +BASE_DIR=/opt/ + +##### DOWNLOAD DATA ##### +mkdir -p $BASE_DIR/xdata && cd $BASE_DIR/xdata + +wget -O endfb71.tar.xz https://anl.box.com/shared/static/9igk353zpy8fn9ttvtrqgzvw1vtejoz6.xz +tar -xf endfb71.tar.xz + +wget -O endfb80.tar.xz https://anl.box.com/shared/static/uhbxlrx7hvxqw27psymfbhi7bx7s6u6a.xz +tar -xf endfb80.tar.xz + +wget -O jeff33.tar.xz https://anl.box.com/shared/static/4jwkvrr9pxlruuihcrgti75zde6g7bum.xz +tar -xf jeff33.tar.xz + +wget -O lib80x.tar.xz https://anl.box.com/shared/static/nd7p4jherolkx4b1rfaw5uqp58nxtstr.xz +tar -xf lib80x.tar.xz + +wget -O fendl32.tar.xz https://anl.box.com/shared/static/3cb7jetw7tmxaw6nvn77x6c578jnm2ey.xz +tar -xf fendl32.tar.xz + +git clone https://github.com/ahmedkmadani/OpenMCProject.git openmc-test + +######################### + +module load gcc/10.2.0 +module load openmpi/4.1.4 +module load python/miniconda23.5.2 +source /share/apps/python/miniconda23.5.2/etc/profile.d/conda.sh +conda info --envs +conda create -n openmc-env +conda activate openmc-env +conda install -c conda-forge openmc (nodagmc_nompi_py311h86d942f_0) +conda list +conda search openmc +conda search openmc --channel conda-forge +echo $OPENMC_CROSS_SECTIONS +python --version + +## ADD %env OPENMC_CROSS_SECTIONS /opt/xdata/endfb-vii.1-hdf5/cross_sections.xml +## to the top of any Notebook files you use + +openmc -g -n 1000000 -s 32 -t -e problem