-
Notifications
You must be signed in to change notification settings - Fork 168
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
Completely specify initial conditions for DynamicPipeEnergyConservationCheck and DynamicPipeEnergyConservationCheck2 #4424
Comments
For the record, WSM fails correctness checking for |
…pes.DynamicPipeEnergyConservationCheck(2) till modelica/ModelicaStandardLibrary#4424 is resolved
EDIT: so there is actually no missing initial equation for that model. The reason why OMC fails is probably that it doesn't really like to switch off all the potential states with Regarding DynamicFreeInitial means that we have dynamic balances, but no intial equations. I can set it, e.g., to SteadyStateInitial, so that we get steady-state behaviour instead; note that the assert statment on the energy balance is carried out at the end of the transient, because it is only valid in static conditions. OpenModelica handles this without any problems. Unfortunately, Dymola aborts the code generation, I guess this is due to redundant initial conditions stemming from the state constraints due to the connection with fixed pressures at the outlet. @HansOlsson can you please check that? @maltelenz do you want to try what happens with WSL when you set system.energyDynamics = SteadyStateInitial? |
The two variables we had issues with: and all tested variables using @casella let me know if there is anything else you wanted. |
Maybe we can just add a small pressure loss to the test case to avoid index problems. I'll take care of that. |
… avoid index reduction with the fixed pressure boundary. Changed to explicit steady state initialization to avoid unspecified initial conditions Fixes modelica#4424
The models
do not have fully specified initial conditions. These should be added to make sure that the initialization problem is not tool-dependent. This is probably also the reason why the first of the two models currently fails in OpenModelica.
The text was updated successfully, but these errors were encountered: