Installation

Requirements

Foamgen requires following programs and libraries:

  • CMake version 2.8.12 or above

  • Python version 3.5 or above

  • packing-generation version 1.0.1.28 or above recommended

  • Neper version 3.4.0 or above recommended

  • Voro++ version 0.4.6 or above recommended

  • binvox version 1.27 or above recommended

  • GSL version 2.3 or above recommended

You must ensure that these are installed prior to module installation.

On Ubuntu 18.04, all of these can be installed using install_dependencies.sh script:

sudo ./install_dependencies.sh

Moreover, fenics (or at least dolfin-convert) is necessary for mesh conversion.

Other operating systems and Linux distributions are not tested.

Package

Install using pip as:

pip install .

It compiles the package and installs the foamgen package and executable.