Installation on Ubuntu

Installing OpenQBMM on Ubuntu can be done leveraging the packaged version of OpenFOAM for Ubuntu maintained by the OpenFOAM foundation. The steps to follow are the following:

  1. Open the bash terminal and add the OpenFOAM repository and the corresponding signatures with the commands:
    • sudo add-apt-repository ""
    • sudo sh -c "wget -O - | apt-key add -"
  2. Refresh the repository with the command: sudo apt-get update
  3. Install OpenFOAM-dev with: sudo apt-get install openfoam5
  4. Add the configuration file for OpenFOAM to bashrc with the command:
    • echo "source /opt/openfoam5/etc/bashrc" >> .bashrc
  5. Source the user’s bashrc file with:
    • source ~/.bashrc
  6. Verify the functionality of OpenFOAM by invoking the command:
    • icoFoam -help
  7. Create a directory called OpenQBMM (or OpenQBMM-dev for the development version)
  8. Open a terminal in that directory
  9. Use the command
    • git clone
  10. Optional: If the development version is desired, checkout the development branch:
    • git checkout -b development origin/development
  11. Build OpenQBMM by running the following command in the OpenQBMM directory:
    • ./Allwmake -j

This will generate the binaries of OpenQBMM. Functionality can be tested by running, for example, pbeFoam validation cases.