Skip to main content

Pythonic scripting interface for Comsol Multiphysics

Comsol is a commercial software application that is widely used in science and industry for research and development. It excels at modeling almost any (multi-)physics problem by solving the governing set of partial differential equations via the finite-element method. It comes with a modern graphical user interface to set up simulation models and can be scripted from Matlab or its native Java API.

MPh brings the dearly missing power of Python to the world of Comsol. It leverages the Java bridge provided by JPype to access the Comsol API and wraps it in a layer of pythonic ease-of-use. The Python wrapper covers common scripting tasks, such as loading a model from a file, modifying parameters, importing data, to then run the simulation, evaluate the results, and export them.

Comsol models are marked by their .mph file extension, which stands for multi-physics. Hence the name of this library. It is open-source and in no way affiliated with Comsol Inc., the company that develops and sells the simulation software.

Find the full documentation on Read-the-Docs.

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

mph-1.3.2-py3-none-any.whl (65.8 kB view details)

Uploaded Python 3

File details

Details for the file mph-1.3.2-py3-none-any.whl.

File metadata

  • Download URL: mph-1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 65.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for mph-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 178181800d76c5b66731e72c9a220e8f431d5597bd6c61f56e922035bc6454e7
MD5 2fe25d556f5297ef011776e1e35f0b5f
BLAKE2b-256 bbd9c26afd1203aa82a6ae4f8eee6975959d74ad4f8c3da03671e6e6af49eedc

See more details on using hashes here.

Provenance

The following attestation bundles were made for mph-1.3.2-py3-none-any.whl:

Publisher: publish_release.yml on MPh-py/MPh

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page