Running .mo Files in Modelica/Dymola via Python
Click the above to follow discussions on HVAC-related technologies. In the documentation for the Python interface of Modelica, the first example is DymolaExample.py. The syntax for running a .mo file is as follows: # Call a function in Dymola and check its return value result = dymola.simulateModel( “Modelica.Mechanics.Rotational.Examples.CoupledClutches”) Here, Modelica.Mechanics.Rotational.Examples.CoupledClutches is the fully qualified name … Read more