From df1f10aa3b2fb8acf2d265f662efe67c7f0c192b Mon Sep 17 00:00:00 2001 From: Adam Parler Date: Tue, 31 Oct 2023 23:41:42 -0700 Subject: [PATCH] Updated README and scripts --- BEAVRS/run.sh | 7 +++++++ README.md | 4 ++++ setup.sh | 53 +++++++++++++++++++++++++++++++++++++++++++++------ 3 files changed, 58 insertions(+), 6 deletions(-) create mode 100755 BEAVRS/run.sh diff --git a/BEAVRS/run.sh b/BEAVRS/run.sh new file mode 100755 index 0000000..e267f21 --- /dev/null +++ b/BEAVRS/run.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +conda activate openmc-env + +export OPENMC_CROSS_SECTIONS=${PWD}/cross_sections.xml +export OMP_SCHEDULE=dynamic,1 +nohup python make_beavrs.py > stdout 2>&1 & diff --git a/README.md b/README.md index f98d4d7..0efac66 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,7 @@ This repository is amalgamation of various simulations I found interesting. They are joined together to make one giant simulation repo. Files have been updated to run with `v0.13.3` of [OpenMC](https://github.com/openmc-dev/openmc/tree/v0.13.3) + +## Prerequisites + +OpenMC, NumPy, Matplotlib, h5py diff --git a/setup.sh b/setup.sh index 5a13602..6e32bc1 100644 --- a/setup.sh +++ b/setup.sh @@ -5,22 +5,30 @@ 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 +wget -c -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 +wget -c -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 +wget -c -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 +wget -c -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 +wget -c -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 +wget -c -O endfb-vii.1-hdf5/chain_endfb71_pwr.xml https://anl.box.com/shared/static/os1u896bwsbopurpgas72bi6aij2zzdc.xml +wget -c -O endfb-vii.1-hdf5/chain_endfb71_sfr.xml https://anl.box.com/shared/static/9058zje1gm0ekd93hja542su50pccvj0.xml + +wget -c -O endfb-viii.0-hdf5/chain_endfb80_pwr.xml https://anl.box.com/shared/static/nyezmyuofd4eqt6wzd626lqth7wvpprr.xml +wget -c -O endfb-viii.0-hdf5/chain_endfb80_sfr.xml https://anl.box.com/shared/static/x3kp739hr5upmeqpbwx9zk9ep04fnmtg.xml + +mkdir casl_deplete +wget -c -O casl_deplete/chain_casl_pwr.xml https://anl.box.com/shared/static/3nvnasacm2b56716oh5hyndxdyauh5gs.xml +wget -c -O casl_deplete/chain_casl_sfr.xml https://anl.box.com/shared/static/9fqbq87j0tx4m6vfl06pl4ccc0hwamg9.xml ######################### @@ -42,3 +50,36 @@ python --version ## to the top of any Notebook files you use openmc -g -n 1000000 -s 32 -t -e problem + + + +########## INSTALL OPENMC FROM SOURCE ################ + +module load gcc/8.1.0 openmpi/4.1.4 cmake/3.26.3 git/2.42.0 python/3.11.5 + +git clone --recurse-submodules https://github.com/openmc-dev/openmc.git + +cd openmc +git checkout v0.13.3 + +mkdir build && cd build + +HDF5_ROOT=/share/apps/hdf5-withmpi/gcc/8.1.0/openmpi/4.1.4 \ +cmake .. -DOPENMC_USE_OPENMP=on -DOPENMC_USE_MPI=on -DHDF5_PREFER_PARALLEL=on \ +-DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$HOME/openmc + +make -j24 +make -j24 install + +cd .. +MPICC=${MPI_ROOT}/bin/mpicc pip3 install mpi4py + +CC=/share/apps/openmpi/4.1.4/gcc/8.1.0/bin/mpicc HDF5_MPI=ON \ +HDF5_DIR=/share/apps/hdf5-withmpi/gcc/8.1.0/openmpi/4.1.4 \ +pip3 install --no-binary=h5py h5py + +PATH=${HOME}/openmc/bin:${PATH} +PATH=${PATH}/.local/bin:${PATH} +export PATH + +pip3 install .