modelica

Where to Find Implementations of Modelica Stream Connector


Are there any examples of how to implement a Stream Connector?

The Modelica Specification seems to support the idea that Stream Connectors, compared to Through and Across variables, are better suited for modelling convective transport phenomena. This sounds good, but I don't see any helpful examples of how they are implemented in real life e.g. none of the Modelica Standard Libraries use this connector. Help is greatly appreciated. Thanks!


Solution

  • The Modelica Standard Library Fluid use Stream connectors. A basic example is Fluid/Examples/Tanks/EmptyTanks for a start.

    If you look up for instance Fluid/Pipes you can see in the code that functions inStream() etc are used.

    A very basic example on usage of inStream() and actualStream() you have here on Stackoverflow How to construct a balanced connector for liquids in Modelica?