Modeling closed hydraulic cycle in OpenModelica

前端 未结 2 1738
别那么骄傲
别那么骄傲 2021-01-14 07:55

I\'d like to model a closed hydraulic cycle as one can find in the Modelica Standard Library/Fluid/Examples/HeatingSystem. With the heating system as well as with my (minima

相关标签:
2条回答
  • 2021-01-14 08:22

    Are you sure your system is overdetermined? I'm; not sure how this can be since both your producer and consumer models are underdetermined.

    As a general rule, the number of equations you need in a component will be equal to the number of flow variables across all its connectors + the number of internal variables (parameters do not count) + the number of outputs.

    By this method, your producer model should have 2 equations (because it has 2 flow variable across all its connectors). Similarly, your consumer model should have 2 equations (Because it has two flow variables across all its connectors). So I don't see how you can generate too many equations.

    Your model is also tricky because you are modeling the flow of momentum through your system (indicated by the presence of velocity on your connector as a flow variable). But your potential variable is pressure. There is no tracking of mass in your problem (as there usually is).

    So, in summary, your component models definitely have an issue because they are "unbalanced" (according to the Modelica Specification) since they do not have the right number of equations. But even on a "physical" level, your formulation (pressure and velocity) is unusual in my experience and it seems to me that it could lead to problems as well once the equation balance issue is overcome.

    0 讨论(0)
  • 2021-01-14 08:26

    Maybe it helps to introduce a so called loop-breaker component. For a closed hydraulic cycle this could be an expansion vessel or storage tank with a variable level (such a component will also exist in reality).

    0 讨论(0)
提交回复
热议问题