anas
June 28, 2021, 3:10pm
1
Hello, i was trying to run example “CAD-BASED-GEOMETRY”, but i get error “DAGMC Mode unsupported for this build of OpenMC”. I already try to install dagmc on github and documentation of openmc, but still get error. Could you tell me how to fix that error?
Thank you
Pranto
June 29, 2021, 1:34pm
2
@anas Can you provide more information on your build steps? How did you install it? What command did you use to build OpenMC?
anas
June 29, 2021, 1:51pm
3
i using this youtube tutorial for installing openMC and setting its configuration.
Then, when i try to run CAD-Based-Geometry tutorial and get error about dagmc, i try to install dagmc with this link :
https://svalinn.github.io/DAGMC/install/openmc.html
But i still get error.
Thank you
Pranto
June 29, 2021, 3:18pm
4
@anas For DAGMC support you have to install openmc from the source.
# Dependency
sudo apt-get install git libhdf5-dev g++ -y
# create a conda env
conda create -n openmc-dev cmake python=3.9 vtk jupyterlab -y
conda activate openmc-dev
# Download
mkdir -p $HOME/opt/build && cd $HOME/opt/
git clone --recurse-submodules https://github.com/openmc-dev/openmc.git
mkdir openmc_install && cd $HOME/opt/build
cmake ../openmc -Ddagmc=on \
-Ddebug=on \
-Doptimize=on \
-DCMAKE_PREFIX_PATH=/path/to/DAGMC \
-DCMAKE_INSTALL_PREFIX=$HOME/opt/openmc_install
make -j4 install
echo 'export PATH=$PATH:$HOME/opt/openmc_install/bin' >> ~/.bashrc
source $HOME/.bashrc
cd ../openmc && pip install .
Now you have openmc with DAGMC support.
Best
pranto
anas
July 3, 2021, 5:15am
5
Sorry sir, i already try this and still can’t running.
Pranto
July 17, 2021, 5:24am
6
@anas Can you give some more details with step by step installation process, e.g, MOAB, DAGMC?
Pranto
July 17, 2021, 10:15am
7
@anas Take a look at this Colab notebook , save to your Google Drive or local hard disk, and later you can open it by choosing File -> Open Notebook
.
Hope this will help!