Skip to main content

Pythonic scripting interface for Comsol Multiphysics

Project description

Python scripting interface for Comsol Multiphysics®

Comsol is a commercial software application that is widely used in science and industry alike for research and development. It excels in modeling almost any (multi-)physics problems 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 via its native Java API.

This library brings the dearly missing power of Python to the world of Comsol — at least on Windows (for now). It leverages the universal Python-to-Java bridge provided by JPype to access the native API, and wraps it in a layer of pythonic ease-of-use. The Python wrapper only covers common scripting tasks, such as loading a model from a file, modifying some parameters, running the simulation, to then evaluate the results. Though the full functionality is available to those who dig down to the Java layer underneath.

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

Find the full documentation on Read-the-Docs.

version downloads license documentation

Project details


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

MPh-0.7.1-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file MPh-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: MPh-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 17.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.23.0

File hashes

Hashes for MPh-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 42af27ec9d9927737815f10c98bbc8ff6bfb89ce496fb7048b1cc2c11082e52e
MD5 f837317e6b4744983b81e95655f220e7
BLAKE2b-256 279830b2c088f63d6c5604a859f6fd881ae78091b3300a423c4341f134d1b9c3

See more details on using hashes here.

Supported by

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