-
-
Notifications
You must be signed in to change notification settings - Fork 217
connect
can lead to wrong flow equations
#3008
New issue
Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “No Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? No Sign in to your account
Comments
@YingboMa could maybe diagnose this one, I couldn't eyeball why it acted like that. |
My first thought is that this may be related to the semantics of In particular, the
|
Yes, Avinash is correct. It's the intended behavior. See https://specification.modelica.org/master/connectors-and-connections.html#inside-and-outside-connectors |
Thanks for the link and the clarification! 👍 |
Describe the bug 🐞
connect
of flow equations seems to have different behavior depending on wether it is used within a system or between subsystems. Ref https://discourse.julialang.org/t/mtk-connection-of-flow-variable-forces-it-to-zero/118976The following code errors with
Expected behavior
structural_simplify
should be able to reduce the system. It is able to do so if bothconnectors
come from different subsystems:Environment (please complete the following information):
using Pkg; Pkg.status()
using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)
versioninfo()
The text was updated successfully, but these errors were encountered: