Skip to content

Instantly share code, notes, and snippets.

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

Install moose in Docker

Install moose and setup linux environment

#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

#Download golem development from https://github.com/BinWang0213/FracSim/tree/develop
#Extract to F:/moose/golem_develop

cd /home/golem_develop 
git checkout master
make clean all
make –j 10

#Check golem
./run_tests

Run moose

#Run example
cd /home/golem_develop/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