Skip to content

Instantly share code, notes, and snippets.

@BinWang0213
Last active February 25, 2021 05:41
Show Gist options
  • Save BinWang0213/d5348a7c7eaf78f7cbd40403dc81d3bd to your computer and use it in GitHub Desktop.
Save BinWang0213/d5348a7c7eaf78f7cbd40403dc81d3bd to your computer and use it in GitHub Desktop.
Docker moose with golem

Install moose in Docker

Install moose and setup linux environment

#Download build moose (deprecated)
docker run -ti --name moose -v F:/moose/:/home herter4171/ubuntu-moose:e5cb79c9e9f137155d8e5b4a0d62f1d216c016a0

#develop version
docker run -ti --name moose_develop -v F:/moose/:/home herter4171/ubuntu-moose:a9839b6ed6bef96c7aa5de5637f6edc622cef3fb

#Build porous media flow module
cd /opt/moose/modules/porous_flow
make -j 10

#Build Naivers Stokes module
cd /opt/moose/modules/navier_stokes/
make -j 10

#Copy porous media flow case into home
cd /opt/moose/ 
cp -R ./tutorials/ /home 
cd /opt/moose/modules/
cp -R porous_flow/ /home/


#Download and build golem
docker start moose
docker attach moose
cd /home

git clone https://github.com/ajacquey/golem.git
git clone https://github.com/ajacquey/golem-examples.git

cd golem 
git checkout master
make clean all
make –j 10

#Check golem
./run_tests

Run moose

#Run example (deprecated)
cd /home/porous_flow/examples/flow_through_fractured_media
../../porous_flow-opt -i coarse_3D.i

#Run example
cd /home/golem/examples/Cavity
../../golem-opt -i Cavity_peaceman_gas.i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment