Skip to main content

Multiphase Python Repository by HZDR

The multiphasepy package is a Python toolkit for building, running, and maintaining CFD simulation case collections for the software released by the OpenFOAM Foundation (but also others, like Ansys Fluent or Siemens Simcenter Star-CCM). It combines reusable library modules with practical command-line tools to cover the full simulation lifecycle: case templating, batch execution, monitoring, post-processing, validation support, repository comparison, and publication workflows.

At its core, multiphasepy helps teams move from individual case setups to scalable, structured projects containing a large collection of setups, e.g. a validation database. Cases can be provided as templates that are parameterized at runtime, metadata can be managed in a machine-readable way and cases can be conveniently batch-processed with the workflow management tool Snakemake both on workstations and Slurm-based HPC systems. Using a container-based software environment (e.g. Apptainer or Docker) the case collection becomes fully portable. An integrated Copier template allows the creation and maintenance of multiple independent case collections.

Beyond execution, the package supports quality assurance and communication of results: tools are included for automated checks, fuzzy-logic based evaluation, data conversion, visualization, and generation of artifacts suitable for reporting and dissemination. This makes multiphasepy a practical bridge between day-to-day CFD case work and long-term, reproducible research software operations in collaborative environments.

Command-Line Tools

The multiphasepy package provides a comprehensive suite of command-line tools for CFD workflow management, data processing, and quality assurance. All tools follow the naming convention mpy<function> and provide --help for detailed usage information.

Workflow Management

Data Processing

  • mpyconv : Convert data files between formats
  • mpypost : Mathematical post-processing operations
  • mpyvisualize : Visualize simulation result files

Quality Assurance

  • mpytest : Run CFD code functionality tests
  • mpyhooks : Run git hooks for code quality checks

Utilities

  • mpyidentify : Identify file types and associate tags
  • mpyrpdiff : Compare repositories using git diff
  • mpyshrun : Wrap shell commands with logging

Publishing

  • mpypublish : Publish software to Rodare repository

Installation

The multiphasepy package requires Python 3.12 or newer.

Install the latest release from PyPI:

pip install multiphasepy

For full environment setup and platform-specific notes, see the installation guide in the documentation.

How to cite us?

If you find that package useful, please cite as

Schlegel et al. (2026). Multiphase Python Repository by HZDR. Rodare.
<https://doi.org/10.14278/rodare.3093>.

Acknowledgements

OpenFOAM® is a registered trade mark of OpenCFD Limited, producer and distributor of the OpenFOAM® software via www.openfoam.com. The Multiphase Python Repository by HZDR is not compatible with the software released by OpenCFD Limited, but is developed for the software released by the OpenFOAM Foundation via www.openfoam.org.

Metadata

Release files for multiphasepy 5.13.1

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

Source distribution (sdist)

Source distribution for multiphasepy 5.13.1
File Size Uploaded Provenance Actions
multiphasepy-5.13.1.tar.gz 120.3 kB Without provenance Details for multiphasepy-5.13.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for multiphasepy 5.13.1
File Interpreter ABI Platform Actions
multiphasepy-5.13.1-py3-none-any.whl Python 3 none any Details for multiphasepy-5.13.1-py3-none-any.whl

Total release size: 287.5 kB

Release files / multiphasepy-5.13.1.tar.gz

Download URL multiphasepy-5.13.1.tar.gz
Size 120.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9ea70c0c2a06ee1a07e11493aacf27a273b47b2d9f29cb6f905de695cce524fa
BLAKE2b-256 checksum
How to use checksums
87a2bf8de80a34d62595fba486ec33b4831d0e8d0d9861c7a6621cd17e3da733
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.18.2 {"ci":true,"cpu":"x86_64","distro":{"id":"trixie","libc":{"lib":"glibc","version":"2.41"},"name":"Debian GNU/Linux","version":"13"},"implementation":{"name":"CPython","version":"3.12.16"},"installer":{"name":"hatch","version":"1.18.2"},"openssl_version":"OpenSSL 3.5.9 29 Sep 2026","python":"3.12.16","system":{"name":"Linux","release":"6.12.118-flatcar"}} HTTPX2/2.16.2

Release files / multiphasepy-5.13.1-py3-none-any.whl

Download URL multiphasepy-5.13.1-py3-none-any.whl
Size 167.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4a79e8b5daeae33bfa6668c6c6906527c4d7709f8c92bc21c24e9134efb89c1f
BLAKE2b-256 checksum
How to use checksums
c946e296c1d3a7bdf5413e92c4813377cb0e775667260f484b35c36aa558d934
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via Hatch/1.18.2 {"ci":true,"cpu":"x86_64","distro":{"id":"trixie","libc":{"lib":"glibc","version":"2.41"},"name":"Debian GNU/Linux","version":"13"},"implementation":{"name":"CPython","version":"3.12.16"},"installer":{"name":"hatch","version":"1.18.2"},"openssl_version":"OpenSSL 3.5.9 29 Sep 2026","python":"3.12.16","system":{"name":"Linux","release":"6.12.118-flatcar"}} HTTPX2/2.16.2

Security for multiphasepy 5.13.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

5.13.1 This release

2 release files No provenance

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