pybFoam Documentation

pybFoam provides Python bindings for OpenFOAM via nanobind. It enables direct manipulation of OpenFOAM cases, fields, meshes, and solvers from Python, with zero-copy NumPy access to field data.

Prerequisite: Source OpenFOAM v2312+ (source /path/to/OpenFOAM/etc/bashrc) before building or running anything shown here.

Which doc should I read?

  • New here? Start with a tutorial — they walk through an end-to-end workflow.

  • Have a specific task? A how-to guide gives step-by-step recipes.

  • Looking up an API or flag? See the reference.

  • Want to understand the design? Read the explanation section.

Indices and tables