modelica

ModelicaRes import fails in python

ModelicaRes import fails in python Question: I want to use ModelicaRes to open my Dymola results in python but the import fails. from modelicares.simres import SimRes Gives the following error: ————————————————————————— ImportError Traceback (most recent call last) Cell In [2], line 1 —-> 1 from modelicares.simres import SimRes File C:ProgramDataMiniforge3envsmainlibsite-packagesmodelicares__init__.py:54 40 __version__ = ‘0.12.2’ 43 …

Total answers: 1

OMPython File Specification to run OMCSessionZMQ()

OMPython File Specification to run OMCSessionZMQ() Question: I am trying to run OMPython and I am experiencing an error running the example shown at https://openmodelica.org. I can run the first line: from OMPython import OMCSessionZMQ But when I try to run the second line: omc = OMCSessionZMQ() I get the error: FileNotFoundError: [WinError 2] The …

Total answers: 1

Modelica for python/matlab/simulink/maple users?

Modelica for python/matlab/simulink/maple users? Question: I am trying to learn Modelica coming from a Python/MATLAB/Simulink/Maple background. Are there any resources for learning Modelica for people with experience in other languages/environments? When I learned Python from the context of a MATLAB background, I found a lot of help in NumPy for Matlab users. Are there any …

Total answers: 1