OMPython is a Python library for OpenModelica, which provides a Python interface to OpenModelica. This thesis significantly improves OMPython by an enhanced, more powerful and easier to use API. It presents how a user can use the Python interface to simulate and access Modelica models using Python objects. The enhanced OMPython includes the list of functions that have been implemented such as getXXXNames(), getXXXValues(), setXXXValues(), getXXXOptions(), setXXXOptions(), and simulate(), etc. that allow users to interact with Modelica model properties(i.e., model variables) and the output of the OpenModelica compiler and simulator. A few Modelica models are used for demonstrations in order to make it easy for readers to understand. By the way, this thesis does not describe modeling Modelica models or compilation of such models.
Identifer | oai:union.ndltd.org:UPSALLA1/oai:DiVA.org:liu-127383 |
Date | January 2016 |
Creators | Bajracharya, Sudeep |
Publisher | Linköpings universitet, Institutionen för datavetenskap |
Source Sets | DiVA Archive at Upsalla University |
Language | English |
Detected Language | English |
Type | Student thesis, info:eu-repo/semantics/bachelorThesis, text |
Format | application/pdf |
Rights | info:eu-repo/semantics/openAccess |
Page generated in 0.0022 seconds