Live data from Hacker News

All about Modelica: An equation-based language for modeling physical systems

marcobonvini.com

1–10 of 47 posts

Re: All about Modelica: An equation-based language for modeling physical systems

#4
This is a great overview of Modelica. For those looking to get started - check out OpenModelica (https://openmodelica.org/) and if you are curious how to approach deploying and using Modelica in web services the article's author as a rather awesome open source project called LambdaSim see(https://github.com/mbonvini/LambdaSim)

Re: All about Modelica: An equation-based language for modeling physical systems

#7
Been working in Modelica for a couple of years. Modelica compilers generate C code since they're heavily used in the embedded and real-time space. Kinda amazing to see systems with hundreds of thousands of equations simulate faster than real time.

Re: All about Modelica: An equation-based language for modeling physical systems

#8
One thing about Modelica is quite important and might confuse newcomers: the language specification mostly only covers the model, not the equations. That is, when you evaluate your model under, e.g., Dymola and Openmodelica you will (most of the time) end up with equal (or rather similar) systems of equations. The meaning of these equations, i.e., the actual simulation can easily differ, though (except for the most trivial models).

The reason for this is that the equations are extremely powerful (you can express pretty much anything computable inside an equation) and their numerical solution is often driven by heuristics (e.g., finding initial values). This makes it extremely difficult to come up with a common standard for the solution of Midelica's hybrid DAEs. Hence you will find little written information about what exactly happens during a simulation that applies to more than one implementation.

Re: All about Modelica: An equation-based language for modeling physical systems

#9
post #3

Is there a graphical interface, like Simulink, for Modelica?

There are commercial ones like ones like Altair SolidThinking, Wolfram System Modeller, ESI's SimulationX and there are open source ones such as OMedit. Which meets your needs will be partly budget / workflow / toolbox support based. If your new to Modelica - then OpenModelica and OMEdit (OMEdit comes as part of the OpenModelica download) are great starting points. To get an idea of the available commercial and open source options see:

https://www.modelica.org/tools

and https://openmodelica.org/openmodelicaworld/tools

Post reply on HN