pyOFM
pyOFM is a Python wrapper for OpenFOAM meshes that provides a simple mesh reading class to parse OpenFOAM polyMesh directories and store mesh data in Python for user interaction.
Features
- Automatic Build System: Modern
pyproject.toml-based build system with automatic Cython extension compilation - Flexible Installation: Works with or without OpenFOAM environment (falls back to pure Python)
- OpenFOAM Integration: Direct reading of OpenFOAM polyMesh format
- Python 3.8+ Support: Compatible with Python 3.8 through 3.12
- MPI Support: Includes MPI capabilities via mpi4py
Requirements
- Python 3.8 or higher
- NumPy >= 1.16.4
- mpi4py >= 3.0.0
- OpenFOAM environment (optional, for Cython extensions)
- Cython >= 0.29.0 (for building from source)
Installation
Quick Installation (Recommended)
For most users, simply install via pip:
pip install -e .
The build system will automatically:
- Detect if OpenFOAM environment is available
- Build Cython extensions if OpenFOAM is present
- Fall back to pure Python package if OpenFOAM is not available
Building from Source Distribution
When installing from a source distribution (e.g., from PyPI):
pip install pyofm_orion
The package will automatically handle compilation during installation.
Build System
The package uses a modern build system with:
- pyproject.toml: Modern Python packaging configuration
- Automatic Extension Building: Cython extensions are built automatically during
pip install - Environment Detection: Automatically detects OpenFOAM availability
- Fallback Support: Works as pure Python package when OpenFOAM is unavailable
- Cross-Platform: Supports Linux environments with proper OpenFOAM setup
License
This project is licensed under the GNU General Public License v3.0. See LICENSE.md for details.
Metadata
Release files for pyofm-orion 1.2.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pyofm_orion-1.2.4.tar.gz | 13.8 kB | Without provenance | Details |
Release files / pyofm_orion-1.2.4.tar.gz
| Download URL | pyofm_orion-1.2.4.tar.gz |
|---|---|
| Size | 13.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2126289a9235495a43645d574a2ee5fdeeaf49a7e5930cd279453bf4499404c8
|
|
BLAKE2b-256 checksum How to use checksums |
5345aa13c693255446e9ba6e714cf8b225a9f5f2ac97e00da104587cc9bcfcb1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for pyofm-orion 1.2.4
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.