Fleming release Dev release

From Source

  1. Download the source .tgz files for Ubuntu (22/12/2021: OpenFOAM v2112) for both OpenFOAM and the ThirdParty
     sudo apt-get install curl
     curl -L -O https://sourceforge.net/projects/openfoam/files/v2112/OpenFOAM-v2112.tgz
     curl -L -O https://sourceforge.net/projects/openfoam/files/v2112/ThirdParty-v2112.tgz
    

  2. Untar them
     tar -zxvf OpenFOAM-v2112.tgz
     tar -zxvf ThirdParty-v2112.tgz
    

  3. 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
    

  4. Install OpenFOAM
     echo -e "\n# OpenFOAM\nalias OF-v2112='source $HOME/OpenFOAM/OpenFOAM-v2112/etc/bashrc'" >> ~/.bashrc
     source ~/.bashrc
     OF-v2112
     cd $WM_PROJECT_DIR
     ./Allwmake
    

  5. Change working directory and clone the hyStrath Github repository
     cd $WM_PROJECT_USER_DIR
     git clone https://github.com/hystrath/hyStrath.git --branch OF-v2112 --single-branch && cd hyStrath/
    

  6. Decide which module(s) you wish to install
     ./install.sh 2>/dev/null
    


Docker


Singularity