-
Notifications
You must be signed in to change notification settings - Fork 164
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
Fix usage of Modelica.SIunits.Height in Modelica.Fluid #2834
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.
Looks good.
Forgot to commit previously.
@casella OK for you? |
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.
Ok.
@casella @MartinOtter Friendly reminder to review. |
Changed Length into Position (more appropriate), and improved the simplified expression to use an approximation of the tangent to the pump curve around the initialization point
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.
We have that branch already (maint/3.2.3). If it is considered as a bug, I will cherry-pick it and open a new pull request for maint/3.2.3 (once it is merged here). |
@MartinOtter Since you were involved in the previous discussion of #2639, it would be very helpful, if you could review this pull request also. Thanks. |
I confirm that SI.Position is used consistently after 5ec9d29. @HansOlsson Can you please update your review. |
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.
At first I was a bit concerned that dp_grav_a used Modelica.SIunits.Pressure instead of Modelica.SIunits.PressureDifference; but PressureDifference is just an alias to Pressure so it seems ok.
Yes, I wanted to use PressureDifference at first, then I noticed that it is not used consistently at all in the MSL. Should probably go to a separate pull request. |
Done by #2876. |
This is an alternative proposal to #2639 taking all comments in account and keeping Modelica.SIunits untouched.