ThermoPower
ThermoPower copied to clipboard
Conditional component used in an equation
Here, partialArc
is used in an equation:
https://github.com/casella/ThermoPower/blob/d028b9ee4ba18ff148726fffe50917de29102a0b/ThermoPower/PowerPlants.mo#L13459
It is declared here as a conditional component:
https://github.com/casella/ThermoPower/blob/d028b9ee4ba18ff148726fffe50917de29102a0b/ThermoPower/Water.mo#L6028
This is illegal Modelica:
A component declared with a condition-attribute can only be modified and/or used in connections.
Edit: I realize now that it is also part of the abandoned package mentioned here: https://github.com/casella/ThermoPower/issues/17#issuecomment-722467803