Installation

Prerequisites

  • OpenFOAM v2312 or higher, with the environment sourced:

    source /path/to/OpenFOAM/etc/bashrc
    
  • Python 3.9 or higher

  • CMake 3.18 or higher

  • A C++17-capable compiler

Install from PyPI

pip install pybFoam

Install from source

git clone https://github.com/HenningScheufler/pybFoam
cd pybFoam
pip install .

Development install

pip install -e .[all]

To regenerate type stubs after a development install:

./scripts/generate_stubs.sh