OpenFOAM Installation Tutorial
OpenFOAM Installation Tutorial
04LTS)
command 1:
sudo apt-get update
command 2:
sudo apt-get install build-essential flex bison cmake zlib1g-dev libboost-system-
dev libboost-thread-dev libopenmpi-dev openmpi-bin gnuplot libreadline-
dev libncurses-dev libxt-dev
command 3:
sudo apt-get install qt4-dev-tools libqt4-dev libqt4-opengl-dev freeglut3-
dev libqtwebkit-dev
6. Extract the files to the $HOME/OpenFOAM directory by running the following command in
your Downloads directory (where the above files are downloaded by default):
command 1:
mkdir $HOME/OpenFOAM
command 2:
tar -xzf OpenFOAM-v1906.tgz -C $HOME/OpenFOAM
command 3:
tar -xzf ThirdParty-v1906.tgz -C $HOME/OpenFOAM
7. In the home directory, go to files->view and check the Show Hidden Files option to view the
hidden files in the home/ubuntu directory:
8. In the home directory, open the file named .bashrc and copy the following command in it
(at the end of the file). Save the file and exit.
command:
source ~/OpenFOAM/OpenFOAM-v1906/etc/bashrc
command:
./Allwmake
command:
./makeParaView
During code compilation of ParaView, some errors are bound to occur so resolve these
errors by following these instructions:
(link: https://www.cfd-online.com/Forums/openfoam-installation/219297-qt5-openfoam-7-
v1906-ubuntu-18-04-a.html)
11.In the home directory, go to following folder /ubuntu/openFOAM/OpenFOAM-v-1906/ and
open the terminal in the said directory to run the following command:
command:
./Allwmake
Wait for the code compilation of OpenFOAM to complete. Once completed, you can test
the installation by running the cavity case in OpenFOAM