skip to navigation
skip to content

Not Logged In

OMPython 2.0

OpenModelica-Python API Interface

2012-03-19 []

- Python 2.7 is required. Download python from

- Add python to your PATH.

- Start command prompt/terminal and execute command "python install". This will add OMPython to the python 3rd party libraries.

- Now OMPython can be used as a library within any Python code that imports the "OMPython" module.

- Use to test the OpenModelica-Python API Interface with OpenModelica commands.

- Use OMPython.execute("any-OpenModelica-command") to retreive results.

For dictionary results:

- After the result is available, use OMPython.get (result_dict,'dotted.notationed.dict.names') to easily traverse through the nested dictionaries and retrieve specific results.

- After the result is available, use OMPython.set (result_dict,'dotted.notationed.dict.names.new_dict', new_dict_value) to easily create a new dictionary(Key with a value assigned to it inside the nested dictionaries.

File Type Py Version Uploaded on Size
OMPython-2.0.tar.gz (md5) Source 2014-06-05 13KB
  • Downloads (All Versions):
  • 19 downloads in the last day
  • 61 downloads in the last week
  • 212 downloads in the last month