-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “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? Sign in to your account
Missing default connection equations for unconnected flow/effort connectors in expandable connectors #12159
Comments
Keeping @albertoleva in the loop |
Possibly related to discussion #12160 |
We discussed this issue during the meeting, but afterwards I realised I was still confused about why the model shouldn't be unbalanced since all the flow variables are connected as inside connectors due to the connect equations in But it turns out that I'd missed one very crucial thing in the specification (9.2): flow variables added when augmenting expandable connectors should be added as connection sets both as inside and as outside. So we need to keep track of what's added during augmentation and add sets with such flow variables as outside too in addition to the usual inside ones. |
Yes, that is the crucial point.
Yep. If we follow my proposal in #12160, we could eventually avoid adding a lot of these variables and connection sets. Given the currently standing specification, however, we have to track them all, even though they will lead to a lot of alias equations and a lot of trivial |
- Generate default connect equations for unconnected outside flow variables that were added during augmentation of expandable connectors. Fixes OpenModelica#12159
- Generate default connect equations for unconnected outside flow variables that were added during augmentation of expandable connectors. Fixes #12159
@albertoleva tomorrow's nightly build should work fine with expandable connectors. |
Description
Consider this MWE package:
Checking System gives:
Inspection of the flattened model reveals that connector
m3.c
contains all the flow variables obtained by gathering the components of the expandable connectors:Unfortunately, only one equation is generated from the
connect(ground1.p, c.p1);
statement inModelB
leaving
m3.c.p2.i
andm3.c.p3.i
orphans of their matched equations.As I understand, what are missing here are the default equations for unconnected ports in
m3
:The text was updated successfully, but these errors were encountered: