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
Refactor WaterIF97_base and WaterIF97_fixedregion #1018
Comments
Comment by fcasella on 25 Mar 2013 10:06 UTC
|
Comment by beutlich on 29 Oct 2015 20:26 UTC |
Comment by hubertus on 29 Oct 2015 21:15 UTC Francesco? |
Comment by fcasella on 29 Oct 2015 22:35 UTC |
Comment by hubertus on 2 Nov 2015 12:02 UTC |
Comment by hubertus on 7 Dec 2015 14:05 UTC |
Comment by fcasella on 19 Dec 2015 01:35 UTC In fact, I would then propose to exclude the Region = 0 case. Although strictly speaking this is a non-backwards compatible change, it does not affect any of the derived packages in the MSL, which of course set a well-defined region, corresponding to a positive value of the package constant Region. I think it is highly unlikely that anyone has actually used the Hubertus, if you give me the green light, I can commit the code to a branch for a quick inspection by you or someone from Modelon, and have it ready on trunk before the feature freeze on Dec 23. A further issue I raised in comment:1 is that I don't see the point of having an extra input Region for the If you agree, I would also remove this feature from the I stand by for your feedback in order to proceed. |
Comment by hubertus on 19 Dec 2015 03:59 UTC |
Comment by fcasella on 23 Dec 2015 18:42 UTC So, the refactoring requires to first define a I'll attend to this asap. As this is considered as a bugfix and not a new feature, there is time until Jan 12 to review it. |
Comment by fcasella on 4 Jan 2016 01:56 UTC
which simply bars using This is immediately apparent by looking at the diff between 0841762 and the previous revision, whereby a large chunk of code of the Two important fixes were also introduced. The first is that the original The second fix concerns the Some tests with ThermoPower in Dymola reveal that the new implementation of the The examples in Modelica.Fluid using the water medium seem to work fine. It would be good to do some more testing with other libraries, botht with the standard water package and with the fixed region ones. |
Comment by fcasella on 4 Jan 2016 01:57 UTC |
Modified by beutlich on 4 Jan 2016 13:24 UTC |
Changelog modified by beutlich on 4 Jan 2016 13:24 UTC |
Reported by fcasella on 12 Mar 2013 15:11 UTC
Modelica.Media.Water.WaterIF97_base and Modelica.Media.Water.WaterIF97_fixedregion have lots of code in common, so it's hard to spot the differences and maintain the code. They should probably be refactored, so that WaterIF97_fixedregion extends WaterIF97_base and just redeclares what is needed.
Migrated-From: https://trac.modelica.org/Modelica/ticket/1018
The text was updated successfully, but these errors were encountered: