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 https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -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 https://mooseframework.org/conda/moose
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 https://github.com/idaholab/moose.git
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

System Engineering degree at UNAC, Computer Science Masters at PUCP, High Performance Masters at University of Edinburgh, Winner OPW GNOME 2011, GNOME Foundation member since 2012, Fedora Ambassador since 2012, winner of the Linux Foundation scholarship 2012, Linux Admin at GMD 2012, IT Specialist at IBM 2013. Academia experience in lecturing at PUCP, USIL and UNI Peru (2010-2018). HPC intern at ORNL 2018. HPC Software Specialist at UKAEA since 2020. Tech Certifications: RHCE, RHCSA, AIX 6.1, AIX 7 Administrator, and ITILv3. Leader of LinuXatUNI Community, Creator of the "Mujeres Imperfectas | I'm perfect woman" channel, Reviewer of the Technological Magazine of ESPOL-RTE, Online trainer at BackTrackAcademy, blogger, photographer, IT-Linux-HPC-science worldwide speaker, graphic designer, researcher, content creator, press communicator... 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:

WordPress.com Logo

You are commenting using your WordPress.com 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