My first MOOSE simulation

MOOSE is a tool that allows the use of many physics and maths libraries to run simulations of finite elements of any shape, including unstructured meshes.

My purpose is to run simulations in parallel. My laptop that already is using Fedora 32, has four cores to process calculations.

According to the official MOOSE Website, we can install MOOSE using Conda.

1. In case you already have installed Conda, and its configuration; please go to the step 3.

You might install conda on Linux, by executing the following command:

curl -L -O
bash -b -p ~/miniconda3

2. Then, please set the global environment in our system to use conda:

export PATH=$HOME/miniconda3/bin:$PATH

3. Let’s add the channel conda-forge that will allow us to create the moose environment:

conda config --add channels conda-forge
conda config --add channels
conda create --name moose moose-libmesh moose-tools

4. You need to activate the new moose env to use it. Do an update if it is possible:

conda activate moose
conda update --all

5. Clone the moose code and the examples provided in the new moose environment:

mkdir ~/projects
cd ~/projects
git clone
cd moose
git checkout master

6. You can run the project in parallel, in this case we are using only four cores:

cd ~/projects/moose/test
make -j 4
./run_tests -j 4

If everything is a success, a message that the passed tests done in parallel, is displayed:Now, were are ready to run our first MOOSE program. I followed this workshop

cd ~/projects/moose/tutorials/darcy_thermo_mech/step01_diffusion
make -j 4 # use number of processors for your system
cd problems
../darcy_thermo_mech-opt -i step1.i

Remember to copy the content of sept1.i, and execute the output with Peacock, as follows:

~/projects/moose/python/peacock/peacock -r step1_out.e

Now, we have our simulation in action 🙂Thanks to my friend Manuel Merino for his support during my new age as a scientist.

About Julita Inca

Ingeniero de Sistemas UNAC, Magíster en Ciencias de la Computación PUCP, Magíster en Computación de Alto Rendimiento de la Universidad de Edimburgo, OPW GNOME 2011, Miembro de la GNOME Foundation desde el 2012, Embajadora Fedora Perú desde el 2012, ganadora del scholarship of the Linux Foundation 2012, experiencia como Admin Linux en GMD y Especialista IT en IBM, con certificaciones RHCE, RHCSA, AIX 6.1, AIX 7 Administrator e ITILv3. Experiencia académica en universidades como PUCP, USIL y UNI. Leader of LinuXatUNI Community, HPC Software Specialist at UKAEA, and reviewer of the Technological Magazine of ESPOL-RTE, and volunteering Linux training for MINSA Peru... a simple mortal, just like you!
This entry was posted in τεχνολογια :: Technology and tagged , , , , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s