Skip to main content

Python bindings for the OPM-common module of the Open Porous Media project.

To compile with python support:

  • Add the cmake flags -DOPM_ENABLE_PYTHON=ON and -DOPM_INSTALL_PYTHON=ON
  • Optionally add prefix -DCMAKE_INSTALL_PREFIX=/opt/opm to install outside the standard distro directories
  • Optionally specify python binary -DPython3_EXECUTABLE=/home/user/miniconda3/envs/rkt/bin/python3 if you don't want to use the system python, e.g. use a python from pyenv or from a conda environment

Sample compilation on linux:

#! /bin/bash

flags="-DPython3_EXECUTABLE=/home/hakon/miniconda3/envs/rkt/bin/python3 -DOPM_ENABLE_PYTHON=ON -DOPM_INSTALL_PYTHON=ON -DCMAKE_INSTALL_PREFIX=/opt/opm"
for repo in opm-common opm-grid opm-models opm-simulators
do
    cd "$repo"
    mkdir -p build
    cd build
    cmake  $flags ..
    make -j8
    sudo make install
    cd ..
    cd ..
done

Then you should be able to use the module from a Python script. If you installed in a non-standard directory by specifying -DCMAKE_INSTALL_PREFIX you may need to set the PYTHONPATH environment variable before running your Python script, for example:

$ PYTHONPATH=/opt/opm/lib/python3.11/site-packages python3 spe1case1.py

and spe1case1.py could be:

import os
from opm.simulators import BlackOilSimulator
from opm.io.parser import Parser
from opm.io.ecl_state import EclipseState
from opm.io.schedule import Schedule
from opm.io.summary import SummaryConfig

os.chdir("SPE1CASE1")
deck  = Parser().parse('SPE1CASE1.DATA')
state = EclipseState(deck)
schedule = Schedule( deck, state )
summary_config = SummaryConfig(deck, state, schedule)

sim = BlackOilSimulator(deck, state, schedule, summary_config)
sim.step_init()
sim.step()
poro = sim.get_porosity()
poro = poro *.95
sim.set_porosity(poro)
sim.step()
sim.step_cleanup()

Metadata

Release files for opm-simulators 2026.10

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

Built distributions (wheels)

Table of built distributions (wheels) for opm-simulators 2026.10
File Actions
opm_simulators-2026.10-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for opm_simulators-2026.10-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
opm_simulators-2026.10-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for opm_simulators-2026.10-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
opm_simulators-2026.10-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for opm_simulators-2026.10-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
opm_simulators-2026.10-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for opm_simulators-2026.10-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
opm_simulators-2026.10-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for opm_simulators-2026.10-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
opm_simulators-2026.10-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for opm_simulators-2026.10-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
opm_simulators-2026.10-cp38-cp38-manylinux_2_28_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.28+ x86-64 Details for opm_simulators-2026.10-cp38-cp38-manylinux_2_28_x86_64.whl

Total release size: 364.8 MB

Release files / opm_simulators-2026.10-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL opm_simulators-2026.10-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 52.1 MB
Tags CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
012f17cded2b129aa8f06b8c3337aa218199bf81afa00168e7791b7cee9a93d2
BLAKE2b-256 checksum
How to use checksums
753c3bfd47fe6321c4be4cdbceaaac0719bcee35019225681acde969d7301fde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / opm_simulators-2026.10-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL opm_simulators-2026.10-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 52.1 MB
Tags CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
443c174f8a45659152caff30c4bae08f34e2bcf13fbf67c417587c8c6929a683
BLAKE2b-256 checksum
How to use checksums
8074af12de5454ab39e54a0bfb1cf1756e384668fe453fa1cace2e84343c9296
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / opm_simulators-2026.10-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL opm_simulators-2026.10-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 52.1 MB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
f3bef4c63b26b96339e4b09af706f48341cc35bf53236fcc9d2478684cade64c
BLAKE2b-256 checksum
How to use checksums
034f4ac159038c75dee3921d70d4cde1286aa9a9d2a9ffd162ea3ee2046f0ad2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / opm_simulators-2026.10-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL opm_simulators-2026.10-cp311-cp311-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 52.1 MB
Tags CPython 3.11 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
c58e3644fce5fe1d9bd87f845c3f5ee5040be992da70ac1fdabe99ac55eed3b4
BLAKE2b-256 checksum
How to use checksums
316e980108481e1c4ecd3738726a5834e00b894a6f577876114a4369568a16d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / opm_simulators-2026.10-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL opm_simulators-2026.10-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 52.1 MB
Tags CPython 3.10 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
e14ba2a3a7ba5e224d3816e2ba72e909acf0c6b1a51e46d4ffecf7457b09e18f
BLAKE2b-256 checksum
How to use checksums
ee4aeada008f8d220a71bd7eec672446bafbbbbc463182da221f4cd7a6d08efb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / opm_simulators-2026.10-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL opm_simulators-2026.10-cp39-cp39-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 52.1 MB
Tags CPython 3.9 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
73156fb1cab8ca121fc106c7882d6a92fe3e40f112eda1fbb82a0ea7c2e1d4df
BLAKE2b-256 checksum
How to use checksums
da31f391bb71b30a2f1b356a8cc5fe7129081e6c4c40bdb596c4b01956e9f1af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / opm_simulators-2026.10-cp38-cp38-manylinux_2_28_x86_64.whl

Download URL opm_simulators-2026.10-cp38-cp38-manylinux_2_28_x86_64.whl
Size 52.1 MB
Tags CPython 3.8 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
7bd2c1629bcd30f199f7dc59b81eb916c2c418336bacb3aca9ce76265fee29a2
BLAKE2b-256 checksum
How to use checksums
51787d24023916de67e8551e31ad548be2f124499392768741ad73db9304c0ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for opm-simulators 2026.10

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.

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