Search code examples
hierarchymodelica

How to show the hierarchy of a Modelica library?


Assuming I have a Modelica library built by others, I wanna know the details and rewrite this library? how could I know the inheritance hierarchy of the components in this library?

The following picture is an example, but I am not sure how to generate this kind of hierarchy diagram.

enter image description here


Solution

  • I have experimented with drawing such diagrams, and with limited success I must admit. For non-trivial examples the graph gets pretty big, especially when you combine the inheritance and component views. Do you know if your image was made by a tool or improved manually?

    Here is Modelica.Mechanics.Rotational.Examples.CoupledClutches for example. The graph is made with GraphViz.

    enter image description here