Skip to content
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

Merged
merged 3 commits into from
Apr 4, 2019

Conversation

beutlich
Copy link
Member

This is an alternative proposal to #2639 taking all comments in account and keeping Modelica.SIunits untouched.

@beutlich beutlich added the L: Fluid Issue addresses Modelica.Fluid (excl. Dissipation) label Feb 18, 2019
@beutlich beutlich added this to the MSL4.0.0 milestone Feb 18, 2019
HansOlsson
HansOlsson previously approved these changes Feb 19, 2019
Copy link
Contributor

@HansOlsson HansOlsson left a 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.
@beutlich
Copy link
Member Author

beutlich commented Mar 2, 2019

@casella OK for you?

HansOlsson
HansOlsson previously approved these changes Mar 20, 2019
Copy link
Contributor

@HansOlsson HansOlsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok.

@beutlich
Copy link
Member Author

@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
Copy link
Contributor

@casella casella left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK for me. I added some more changes along the lines of what I wrote in #2370

@beutlich, would you mind creating a 3.2.3 maintenance branch and pushing this there also?

@beutlich
Copy link
Member Author

beutlich commented Mar 27, 2019

would you mind creating a 3.2.3 maintenance branch and pushing this there also?

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).

@beutlich
Copy link
Member Author

@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.

@beutlich beutlich added the bug Critical/severe issue label Mar 27, 2019
@beutlich
Copy link
Member Author

I confirm that SI.Position is used consistently after 5ec9d29.

@HansOlsson Can you please update your review.

Copy link
Contributor

@HansOlsson HansOlsson left a 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.

@beutlich
Copy link
Member Author

beutlich commented Mar 29, 2019

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.

@beutlich beutlich removed the request for review from MartinOtter April 4, 2019 15:58
@beutlich beutlich merged commit 68f9420 into modelica:master Apr 4, 2019
@beutlich beutlich deleted the fix-height branch April 4, 2019 15:59
@beutlich
Copy link
Member Author

beutlich commented Apr 4, 2019

would you mind creating a 3.2.3 maintenance branch and pushing this there also?

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).

Done by #2876.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Critical/severe issue L: Fluid Issue addresses Modelica.Fluid (excl. Dissipation)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants