Prerequistes

  • OpenFOAM from The OpenFOAM Foundation
  • OpenFOAM-dev installation with specific commits for OpenFOAM-dev and ThirdParty-dev
  • installation instruction will use OpenFOAM environment variables
    • WM_PROJECT_DIR: directory where OpenFOAM core code is installed
    • WM_PROJECT_USER_DIR: OpenFOAM user directory where user's code is installed
  • read about installation of OpenFOAM-dev from Source Repository
  • for using the GPU-based accelerated computation of coalescence and breakup frequencies, an installation of the Nvidia CUDA Compiler (nvcc) is required

Installation of OpenFOAM-dev

Installation of OpenFOAM-dev from official GitHub repository

  • clone repository
      git clone https://github.com/OpenFOAM/OpenFOAM-dev.git
      git clone https://github.com/OpenFOAM/ThirdParty-dev.git
    
  • checkout required commit
      cd OpenFOAM-dev
      git reset --hard 28745eca4bfb86de99f419278445fc882838d921
      cd ..
      cd ThirdParty-dev
      git reset --hard c53f2dbf37177dec40a2056df9111608883da7c0
      cd ..
    
  • follow installation instructions for OpenFOAM Source Directory

Installation of OpenFOAM-dev and ThirdParty-dev provided with code publication

  • download tar for OpenFOAM-dev and ThirdParty-dev
  • unpack tar into installation directory for OpenFOAM
      tar -xzf OpenFOAM-dev.tar.gz
      tar -xzf ThirdParty-dev.tar.gz
    
  • follow installation instructions for OpenFOAM Source Directory

Installation of HZDR Multiphase Addon for OpenFOAM

  • download tar archive for HZDR Multiphase Addon for OpenFOAM
  • make sure your OpenFOAM environment is setup correctly, e.g. by running foamVersion
  • unpack into OpenFOAM user directory and compile the addon
      mkdir -p $WM_PROJECT_USER_DIR
      tar -xzf HZDR_Multiphase_Addon-<version>.tar.gz -C $WM_PROJECT_USER_DIR
      cd $WM_PROJECT_USER_DIR
      ./Allwmake -j