Live data from Hacker News

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

marcobonvini.com

11–20 of 47 posts

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

#13

does anyone know any industry usage of Modelica?

energy companies (powerplants, building systems etc.), aerospace, automotive, motorsports, robotics

Maybe also in physiology (BTW I would be happy if someone could point out similar or better resources)

https://www.physiolibrary.org/doc/Physiolibrary.html#Physiol...

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

#14

does anyone know any industry usage of Modelica?

Check the vendors user stories: https://www.wolfram.com/system-modeler/customer-stories/ Check the Modelica conferences (https://modelica.org/events/modelica2019/proceedings/html/Mo...) and you'll see a lot of automotive companies (Toyota, Volvo, Bosch, etc)

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

#15
a quick intro for programmers - Modelica is basically the equivalent of Haskell for engineers - the compiler does most of the work for you and produces highly performant code. You can compose a very complex system from individually modeled elements. The Modelica compiler will check constraints and basically come up with a system of equations. If it compiles, it is probably correct. The model wont compile if a particular variable is being modified in two places. Models have full introspection where you can observe any variable you choose.

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

#17
There's a project to create a language similar to Modelica as a DSL in Julia, Modia[1]. I'm not currently a user of either language, but saw a presentation at JuliaCon about it[2] and thought it looked interesting.

[1] https://github.com/ModiaSim/Modia.jl [2] https://youtu.be/hVg1eL1Qkws

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

#18
post #10

okay, its neat and all, but I missed seeing any output from the models, or examples how you use the models you built to analyze something? How do you interact with it, what sort visualizations you get etc etc??

You can plot variable outputs in 2D and 3D plots, use values to drive simulation based animations (2D and 3D) and via Functional Mockup interface standard (fmi-standard.org) you can interconnect external simulations and interactive visualizations (2D, 3D, VR etc). For examples of these in OpenModelica see the user guide here: https://www.openmodelica.org/doc/OpenModelicaUsersGuide/Open...

There is also a notebook UI that lets you do a lot of Ipython/Jupyter style dev with feedback plots and visualizations, in addition to code tools and visual authoring.

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

#19
post #16

Is Modelica used for economic modeling as well?

I don't know enough about economic modeling, but if the models can somehow be expressed as driven by a "potential" and a "flow" variable (like electric voltage and electric currents), then it would definitely make sense to try that out in Modelica.
Post reply on HN