Skip to main content

pyMOR Logo

PyPI PyPI Docs DOI GitLab Pipeline Conda Tests codecov pre-commit.ci status Affiliated with NumFOCUS

pyMOR - Model Order Reduction with Python

pyMOR is a software library for building model order reduction applications with the Python programming language. All algorithms in pyMOR are formulated in terms of abstract interfaces, allowing generic implementations to work with different backends, from NumPy/SciPy to external partial differential equation solver packages.

Features

  • Reduced basis methods for parametric linear and non-linear problems.
  • System-theoretic methods for linear time-invariant systems.
  • Neural network-based methods for parametric problems.
  • Proper orthogonal decomposition.
  • Dynamic mode decomposition.
  • Rational interpolation of data (Loewner, AAA).
  • Numerical linear algebra (Gram-Schmidt, time-stepping, ...).
  • Pure Python implementations of finite element and finite volume discretizations using the NumPy/SciPy scientific computing stack.

License

pyMOR is licensed under BSD-2-clause. See LICENSE.txt.

Citing

If you use pyMOR for academic work, please consider citing our publication:

R. Milk, S. Rave, F. Schindler
pyMOR - Generic Algorithms and Interfaces for Model Order Reduction
SIAM J. Sci. Comput., 38(5), pp. S194--S216, 2016

Installation via pip

pyMOR can easily be installed using Python package managers like pip. We recommend installation of pyMOR into a virtual environment to avoid dependency conflicts.

For an installation with minimal dependencies, run

pip install pymor

Since most included demo scripts require Qt bindings such as pyside6 to function, we recommend install pyMOR with the gui extra:

pip install 'pymor[gui]'

The following installs the latest release of pyMOR on your system with most optional dependencies:

pip install 'pymor[full]'

To obtain an environment with the exact same package versions used in our Linux continuous integration tests, you can use the requirements-ci-current.txt, file from the pyMOR repository

pip install -r requirements-ci-current.txt
pip install pymor

If you are using a stable release, you should download the file from the corresponding release branch of the repository.

Additional dependencies

The following optional packages are not included with pymor[full] because they need additional setup on your system:

  • mpi4py: support of MPI distributed models and parallelization of greedy algorithms (requires MPI development headers and a C compiler):

    pip install mpi4py
    

Installation via conda

pyMOR is packaged in conda-forge and can be installed by running

conda install -c conda-forge pymor

This will install pyMOR with its core dependencies into the current active conda environment. To replicate an environment with most optional dependencies, which is also used in our continuous integration tests, you can use the conda-linux-64.lock, conda-osx-64.lock, conda-win-64.lock lock files from the pyMOR repository:

conda create -n pymorenv --file ./conda-{linux,osx,win}-64.lock
conda activate pymorenv
conda install pymor

Documentation

Documentation is available online. We recommend starting with getting started, tutorials, and technical overview.

To build the documentation locally, run the following from inside the root directory of the pyMOR source tree:

make docs

This will generate HTML documentation in docs/_build/html.

External PDE Solvers

pyMOR has been designed with easy integration of external PDE solvers in mind.

We provide bindings for the following solver libraries:

  • FEniCS

    MPI-compatible wrapper classes for dolfin linear algebra data structures and nonlinear operators are shipped with pyMOR (pymor.bindings.fenics). For an example see pymordemos.thermalblock, pymordemos.thermalblock_simple. The bindings are tested using FEniCS version 2019.1.0.

  • FEniCSx

    Wrapper classes for dolfinx linear algebra data structures and nonlinear operators are shipped with pyMOR (pymor.bindings.fenicsx). For an example see pymordemos.thermalblock_simple. The bindings are tested using FEniCSx 0.10.

  • deal.II

    Python bindings and pyMOR wrapper classes can be found here.

  • NGSolve

    Wrapper classes for the NGSolve finite element library are shipped with pyMOR (pymor.bindings.ngsolve). For an example see pymordemos.thermalblock_simple. It is tested using NGSolve version v6.2.2606.

A simple example for direct integration of pyMOR with a custom solver can be found in pymordemos.minimal_cpp_demo.

An alternative approach is to import system matrices from file and use scipy.sparse-based solvers.

Environments for pyMOR Development and Tests

Please see the Developer Documentation.

Contact

Should you have any questions regarding pyMOR or wish to contribute, do not hesitate to send us an email at

main.developers@pymor.org

Download files

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

Source Distribution

pymor-2026.1.0.tar.gz (846.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymor-2026.1.0-py3-none-any.whl (646.4 kB view details)

Uploaded Python 3

File details

Details for the file pymor-2026.1.0.tar.gz.

File metadata

  • Download URL: pymor-2026.1.0.tar.gz
  • Upload date:
  • Size: 846.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.18.0 {"ci":null,"cpu":"x86_64","distro":{"id":"noble","libc":{"lib":"glibc","version":"2.39"},"name":"Ubuntu","version":"24.04"},"implementation":{"name":"CPython","version":"3.12.3"},"installer":{"name":"hatch","version":"1.18.0"},"openssl_version":"OpenSSL 3.0.13 30 Jan 2024","python":"3.12.3","system":{"name":"Linux","release":"7.0.0-30-generic"}} HTTPX2/2.12.0

File hashes

Hashes for pymor-2026.1.0.tar.gz
Algorithm Hash digest
SHA256 bd28df82424763543e12a80000a855b7203cc2ab67f71a217973496317abfdaa
MD5 2798c2429f932aaf852ed900bd67c4eb
BLAKE2b-256 567914af4cb406c8f2ffc7e8b4a355486d2e2bcac80cfe423441e1285910fafd

See more details on using hashes here.

File details

Details for the file pymor-2026.1.0-py3-none-any.whl.

File metadata

  • Download URL: pymor-2026.1.0-py3-none-any.whl
  • Upload date:
  • Size: 646.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.18.0 {"ci":null,"cpu":"x86_64","distro":{"id":"noble","libc":{"lib":"glibc","version":"2.39"},"name":"Ubuntu","version":"24.04"},"implementation":{"name":"CPython","version":"3.12.3"},"installer":{"name":"hatch","version":"1.18.0"},"openssl_version":"OpenSSL 3.0.13 30 Jan 2024","python":"3.12.3","system":{"name":"Linux","release":"7.0.0-30-generic"}} HTTPX2/2.12.0

File hashes

Hashes for pymor-2026.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3e66364f1729d3089beb8653c4629df5318c2b7542c6f7af6e01987f6896c946
MD5 b8987e584a560c78a0adbc6e9d5251a9
BLAKE2b-256 4661bbec9e4ebd88b84b070f4e5e76b50b05cf88a76efd7fdf79f37432c98247

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2026.1.0 This release

2 files

2025.2.2

2 files

2025.2.1

2 files

2025.2.0

2 files

2025.1.2

2 files

2025.1.1

2 files

2024.2.0

2 files

2024.1.2

2 files

2024.1.1

2 files

2024.1.0

2 files

2023.2.0

2 files

2023.1.0

2 files

2022.2.1

2 files

2022.2.0

2 files

2022.1.1

2 files

2022.1.0

2 files

2021.2.1

2 files

2021.2.0

2 files

2021.1.0

2 files

2020.2.2

9 files

2020.2.0

9 files

2020.1.2

10 files

2020.1.1

10 files

2019.2.0

3 files

0.5.2

4 files

0.5.1

4 files

0.4.2

1 file

0.4.1

1 file

0.4.0

1 file

0.3.2

1 file

0.3.1

1 file

0.3.0

1 file

0.2.2

1 file

0.2.1

1 file

0.2.0

1 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