-
Notifications
You must be signed in to change notification settings - Fork 169
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
MassFlowSource_T and MassFlowSource_h only work if there is at least one port #4461
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM in principle, but we already have
assert(nPorts > 0, "At least one port needs to be present (nPorts > 0), otherwise the model is singular"); |
Isn't that redundant?
Well, I would say there's overlap - not that they are redundant.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
@casella Can this be backported to Maint 4.1.x? Also there is no milestone mentioned. |
@Esther-Devakirubai, this was not strictly necessary, but since we are still waiting for the regression testing, please do. |
MassFlowSource_T and MassFlowSource_h only work if there are at least one port
MassFlowSource_T and MassFlowSource_h only work if there are at least one port Co-authored-by: Esther-Devakirubai <esther.devakirubai@modelon.com>
Backported to maint/4.1.x by #4469 |
The two models Modelica.Fluid.Sources.MassFlowSource_T and Modelica.Fluid.Sources.MassFlowSource_h only work if there is at least one port - since they set a mass-flow and you cannot have a mass-flow without ports.
Due to the design of connectorSizing we should clearly not change the default value, but I instead propose to add a min-value.
The reason for this change is two-fold: