Skip to main content

Docs CI Codecov

pyOFTools

Python tools and utilities for OpenFOAM

Currently in the pre-alpha release state.

Description

pyOFTools is a collection of Python utilities for working with OpenFOAM simulations. It provides:

  • Region selection and geometry tools
  • Field manipulation functions
  • Post-processing utilities
  • Time series analysis
  • Dictionary handling

Installation

Prerequisites

  • Python 3.8 or higher
  • OpenFOAM of2012 or higher (for OpenFOAM integration features)
  • Required Python packages: numpy, pydantic

Install from PyPI (when available)

pip install pyOFTools

Install from source

git clone https://github.com/HenningScheufler/pyOFTools
cd pyOFTools
pip install -e .

Development installation

git clone https://github.com/HenningScheufler/pyOFTools
cd pyOFTools
pip install -e ".[dev]"

Usage

import pyOFTools

# Use region selection tools
from pyOFTools import Box, Sphere

# Create geometric regions
box = Box(min=(0, 0, 0), max=(1, 1, 1))
sphere = Sphere(center=(0.5, 0.5, 0.5), radius=0.3)

# Combine regions
region = box & sphere  # intersection

OpenFOAM Integration

The project also includes CMake build system for embedding Python into OpenFOAM as function objects. The CMake build is separate from the Python package installation.

Testing

Run the test suite:

pytest

Documentation

Documentation is work in progress and will be available at the project homepage.

License

GPL-3.0-or-later

Release files for pyOFTools 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyOFTools 0.3.0
File Size Uploaded
pyoftools-0.3.0.tar.gz 442.0 kB Details

Release files / pyoftools-0.3.0.tar.gz

Download URL pyoftools-0.3.0.tar.gz
Size 442.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4b815dd68e6f6da1ca2a43b68f2654c5ea6414a7a339a0f657ac236dabad0d55
BLAKE2b-256 checksum
How to use checksums
7fe0e32d67db8a25675637bc183b81888c6bd462ef9ad1886f46a2dac3ddef9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 18, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

1 release file

0.2.0

1 release file

0.1.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page