Python support

OpenCOR comes bundled with Python, providing OpenCOR with Python support. The following Python packages are included:

Some code illustrating the use of the OpenCOR Python module and wrappers can be found here.

Install a Python package

Additional Python packages can be installed either from the CLI (using the jupyterconsole[.bat] script) or through the GUI (using the Python Console window plugin):

!pip install package_name

Python module

A Python module, opencor, is available and can be used to handle simulations in OpenCOR:

Python wrappers

The following OpenCOR classes have Python wrappers that can be used to handle a simulation, some simulation data, some simulation results, a data store, and a data store variable: