Added a setup file to explain how to install OpenMC prerequisites

This commit is contained in:
Adam Parler 2023-10-19 03:30:34 -07:00
parent 93258ba1f8
commit e66668e192

44
setup.sh Normal file
View file

@ -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