Skip to main content

Python Utilities for OpenFOAM

Project description

What it is

The purpose of this library is to support working with the OpenSource CFD-toolbox OpenFOAM and its forks

This Python library can be used to

  • analyze the logs produced by OpenFoam-solvers
  • execute OpenFoam-solvers and utilities and analyze their output simultaneously
  • manipulate the parameter files and the initial-conditions of a run in a non-destructive manner
  • plots the residuals of OpenFOAM solvers
  • lots of other stuff

Most of this functionality is made available to the user in the form of command-line utilities.

PyFoam does all this strictly "from the outside": by writing parameter files and reading the output of the solvers. Without compiled parts or being linked to OpenFOAM.

More information is found on the OpenFOAM Wiki. Introductory presentations on PyFoam can be found there


The easiest way to install PyFoam is the Python package-manager pip:

pip install PyFoam

which will install PyFoam


PyFoam is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. See the file COPYING in this directory, for a description of the GNU General Public License terms under which you can copy the files.


If not otherwise noted in a source-files the primary author is Bernhard Gschaider

The people who contributed to PyFoam (If I forgot someone: tell me):

  • Bernhard Gschaider
  • Martin Beaudoin
  • Fabian Pollesböck
  • Etienne Lorriaux
  • Bruno Santos
  • Marc Immer
  • Oliver Borm

Further reading

These documents give further information

  • ReleaseNotes: list of the changes between versions (newest versions are on top).
  • DeveloperNotes: document with information for people who want to contribute to PyFoam

For information on the usage see the presentations on the PyFOAM page on the OpenFOAM-Wiki

This document

The original source of this document is The (to which the README links) is automatically generated and should not be edited. The reason for this setup is that most Web-GUIs for VCS insist on Markdown as a markup language

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyFoam-2022.9.tar.gz (9.9 MB view hashes)

Uploaded source

Built Distribution

PyFoam-2022.9-py2.py3-none-any.whl (692.1 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page