Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ RUN if [ "$include_neutronics" = "true" ] ; \

# Clone and install OpenMC with DAGMC
RUN if [ "$include_neutronics" = "true" ] ; \
then git clone --recurse-submodules https://github.com/openmc-dev/openmc.git /opt/openmc ; \
then git clone --single-branch --branch v0.12.1 --depth 1 --recurse-submodules https://github.com/openmc-dev/openmc.git /opt/openmc ; \
cd /opt/openmc ; \
mkdir build ; \
cd build ; \
Expand All @@ -186,6 +186,22 @@ RUN if [ "$include_neutronics" = "true" ] ; \
pip install openmc_data_downloader ; \
fi

RUN if [ "$include_neutronics" = "true" ] ; \
then wget https://f002.backblazeb2.com/file/cubit-downloads/Coreform-Cubit/master/Linux/Coreform-Cubit-master-60a5c1c2-Lin64.deb ; \
apt-get --yes install libx11-6 ; \
apt-get --yes install libgl1 ; \
apt-get --yes install libglu1-mesa ; \
apt-get --yes install libgl1-mesa-glx ; \
apt-get --yes install libxcb-icccm4 ; \
apt-get --yes install libxcb-image0 ; \
apt-get --yes install libxcb-keysyms1 ; \
apt-get --yes install libxcb-render-util0 ; \
apt-get --yes install libxkbcommon-x11-0 ; \
apt-get --yes install libxcb-randr0 ; \
apt-get --yes install libxcb-xinerama0 ; \
dpkg -i Coreform-Cubit-master-60a5c1c2-Lin64.deb ; \
fi

COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt

Expand Down
3 changes: 2 additions & 1 deletion paramak/neutronics_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ def trelis_command_to_create_dagmc_h5m(
os.system('rm dagmc_not_watertight.h5m')

if batch:
trelis_cmd = 'trelis -batch -nographics'
# trelis_cmd = 'trelis -batch -nographics'
trelis_cmd = 'coreform_cubit -batch -nographics'
else:
trelis_cmd = 'trelis'

Expand Down
Loading