☰
OF-v1706
- In Ubuntu 20.04 LTS (22.04 LTS isn’t supported yet), downgrade gcc and g++ to version 7
sudo apt-get install g++-7 gcc-7 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 7 sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 7 sudo update-alternatives --config gcc sudo update-alternatives --config g++
- Download the source .tgz files for Ubuntu (30/06/2017: OpenFOAM v1706) for both OpenFOAM and the ThirdParty
- Untar them
- Install the system requirements
sudo apt-get update 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 sudo apt-get install qt4-dev-tools libqt4-dev libqt4-opengl-dev freeglut3-dev libqtwebkit-dev sudo apt-get install libscotch-dev libcgal-dev
- Install OpenFOAM
cd $WM_PROJECT_DIR ./Allwmake
- Change working directory and clone the hyStrath Github repository
cd $WM_PROJECT_USER_DIR git clone https://github.com/hystrath/hyStrath.git --branch master --single-branch && cd hyStrath/
- Decide which module(s) you wish to install (NUMPROCS is the number of processors to be used)
./install.sh NUMPROCS 2>/dev/null