The MOOSE framework is an open-source, parallel finite element method framework. Here we collect information for installation of MOOSE on typical systems of members of the UML Linux Club.
A course on ODE/PDEs, Engy-5310 Computational Continuum Transport Phenomena (Nuclear Energy) at UMass Lowell, Dept. of Chemical Engineering, Nuclear Energy Program, is in development where the notes and homework could be used during club meetings on this topic: MOOSE.
Gentoo users are well accustomed to building from source hence these notes are brief and sufficient.
- Build a system-wide
PETSc
library. mkdir ~/pick-a-place
cd ~/pick-a-place
git clone https://github.com/idaholab/moose
cd ~/pick-a-place/moose
git checkout master
Update moose
:
git fetch origin
git rebase origin/master
git pull
Make sure environment variables are set before compiling LibMesh
. Examples are left below:
export MOOSE_JOBS=8
export MOOSE_DIR=/home/moose-projects/moose
export PETSC_DIR=/usr/local/petsc_ompi
export MPI_HOME=/usr/local/ompi
export PATH=$MOOSE_DIR/python/peacock:$PATH
Build everything:
./scripts/update_and_rebuild_libmesh.sh
Testing
cd test
make -j 4
./run_tests -j 4
Rebuilding or updating moose
. This should be done from time to time but it will be time-consuming.
cd ~/path-to-moose/
git clean -xfd
git submodule deinit -f libmesh
git submodule update --init --recursive libmesh
./scripts/update_and_rebuild_libmesh.sh
- go back above and re-do the testing step
This options has not been sucessfull to anyone in our club who tried. The reason is...
Peacock
is not working onUbuntu/WSL
nor isParaview
.- The alternative for visualization of
MOOSE
files is to installParaview
in the Windows 10 side (see below).
Some Important Installation Commands in 'Order'for successfull installation and compilation of Moose on Windows 10 WSL using Ubuntu (after Ubuntu is installed)
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install x11-apps libglu1-mesa
sudo apt-get install build-essential
echo "export DISPLAY=localhost:0" >> ~/.bashrc
- Restart
curl -L -O https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -b -p ~/miniconda3
export PATH=$HOME/miniconda3/bin:$PATH
conda config --add channels conda-forge
conda config --add channels idaholab
export PATH=~/miniconda3/bin:$PATH
conda init bash
- Restart
conda create --name moose moose-libmesh moose-tools
conda activate moose
mkdir ~/projects
cd ~/projects
git clone https://github.com/idaholab/moose.git
cd moose
git checkout master
cd ~/projects/moose/test
make -j 4
- Go to the Paraview site
- Install
ParaView-5.8.0-Windows-Python3.7-msvc2015-64bit.exe
- Completely install and run
- Type
paraview
in myPC
search bar - Locate the
paraview
application and create a shortcut to desktop - In
Ubuntu 20.0.4
type:
explorer.exe .
- Go to the projects folder in the
MOOSE
installation - Go to results you'd like to see i.e
ex01_out
- Open with
paraview
application; recall you defined the application as a shortcut to your desktop - Go to desktop and open
ex01_out
with theparaview
application. - When it is up, go to the upper left corner, you should see gradient icons, and click the
chain
gradient icon - Next to this icon is a drop down tap called
vtxblockcolors
- Change this to the variable of interest.
We are still havig issues with the Mac install...
- go to https://mooseframework.inl.gov/getting_started/installation/conda.html
- install Miniconda3 for Macintosh Users
- proceed with install as listed
Installing Peacock for Mac
- go to https://mooseframework.inl.gov/application_usage/peacock.html
- follow steps listed under "Environment"
- in order to open your bash profile to add the path, type touch ~/.bash_profile; open ~/.bash_profile
- add the path as specified