You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modelica automatically detects loops and replaces the frame_a.R ~ frame_b.R resulting from connect(frame_a, frame_b) with the residual equation. Initially, we can require the user to do this manually by calling connect_loop instead of connect. By storing some metadata in the frame connector if it belongs to a loop opening, like this
functionconnect_loop(F1, F2)
F1.metadata[:loop_opening] =trueconnect(F1, F2)
end
we could detect the loop opening when we expand the connections and emit
residue(F1, F2) .~0
instead of frame_a.R ~ frame_b.R. @YingboMa do you have a suggestion on how to modify connection2set! to accomplish this? It's not apparent to me where the equality constraints between the potential variables are introduced.
The text was updated successfully, but these errors were encountered:
Modelica automatically detects loops and replaces the
frame_a.R ~ frame_b.R
resulting fromconnect(frame_a, frame_b)
with the residual equation. Initially, we can require the user to do this manually by callingconnect_loop
instead ofconnect
. By storing some metadata in the frame connector if it belongs to a loop opening, like thiswe could detect the loop opening when we expand the connections and emit
instead of
frame_a.R ~ frame_b.R
. @YingboMa do you have a suggestion on how to modifyconnection2set!
to accomplish this? It's not apparent to me where the equality constraints between the potential variables are introduced.The text was updated successfully, but these errors were encountered: