-
Notifications
You must be signed in to change notification settings - Fork 83
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
Problem with the non-linearity of the new Media #40
Comments
Made branch https://github.com/iea-annex60/modelica-annex60/tree/issue40_HydraulicTestBenchIDEAS |
I tested the model on the above branch on Linux. The translation failed because Dymola 2014 FD01 can for some reason not translate a CombiTable2D that was exported in a total model. The error message is
@damienpicard : can you please upload a model that is not a total model. |
The model can be translated after running
|
The old media had the following statistics
The new medium has
Next, I replaced in the new medium model the density (in BaseProperties) to use a constant value rather than
and the model simulates. In summary, the model has the following issues:
I suggest
|
Thanks Micheal for this feedback. Replacing Modelica.Math.Vectors.interpolate by Modelica.Blocks.Tables.CombiTable2D with smoothness=Modelica.Blocks.Types.Smoothness.ContinuousDerivative already solved the problem. By replacing the density and its derivatives by a constant, the CPU-time decreases with a factor 4.7. I would indeed be in favor of a parameter allowing constant density for water or a simplified medium such as Modelica.Media.Water.ConstantPropertyLiquidWater. |
@damienpicard : Merge models to https://github.com/iea-annex60/modelica-annex60/tree/issue45_benchmarks/Annex60/Experimental/Benchmarks and then close the ticket. |
Closed ticket as I merged #89 |
Ran into the same problem with Total Models on Windows, the fix is more or less identical. For some reason I had to create a symlink for the Also note I had to use |
Remove PipeDelay from single pipe names
I re-run the test where a simple hydraulic system (a pump, a boiler with on-off control, a heated pipe and so varying input) to compare IDEAS and IDEAS using annex 60 baseClasses (see issue #15 ).
After approximately 2*E+5 seconds, I get the error that Dymola cannot solve this non-linear problem. I don't have the problem if I run the previous Media implementation (ConstantPropertyLiquidWater, for example from commit SHA: SHAc7a3e2d106d4f85b451ee9d414ca842827078501)
To illustrate the problem, I add in Annex60/IDEAS_a60 two save total, one with the current Media implementation (giving the problem), one with the previous implementation (running smoothly). This can be found at: https://github.com/damienpicard/modelica-annex60/tree/issue40_HydraulicTestBenchIDEAS
The text was updated successfully, but these errors were encountered: