-
Notifications
You must be signed in to change notification settings - Fork 167
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
Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls is problematic because of chattering #4312
Comments
We also see chattering around the same time in System Modeler. |
I'll have a closer look ASAP |
This is the commit, causing the chattering according to my tests in Dymola: |
I tried to debug it and preliminarily it seems that the linear part makes sense, but needed to be applied in additional cases. Specifically the code has:
And what happens here is that |
I tried to apply the above and run all the Fluid-tests (without looking at the results) (on maint/4.1.x since I needed MSL-binaries). In Dymola 2025x (updated) with |
It seems that @HansOlsson managed to fix the remaining issues with regfun3 in PR #4522. When that is merged on master we can check if there are any issues popping up with other models and if we have no evidence of that we can back-port it to 4.1.0. |
As already noted in #3758, some of these issues are popping up because we are using flow models that are meant to handle static head in the trivial cases where the pipe is exactly horizontal. As I understand, this makes the numerical behaviour of regfun3 tricky. As suggested by @sielemann in #3758, we should probably fix Modelica.Fluid.Pipes.BaseClasses.FlowModels.PartialGenericPipeFlow so that it completely skips the part that accounts for static head if max(abs(dheights)) < eps. Given the quite complex structure of the pipe model, this is not completely trivial, so I'd keep this as an improvement for MSL 4.2.0, see #4525. |
Reopen until back-ported to maint/4.1.x |
@Esther-Devakirubai please back-port #4522 to maint/v4.1.x. We are only closing this ticket for good after we check that there are no regressions on 4.1.0 on the LTX serves |
* Avoid chattering in Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls * Better way of avoiding ill-posed problem.
As reported in #4305, Modelica.Fluid.Examples.TraceSubstances.RoomCO2WithControls is problematic: Dymola 2024x fails with it and so does OpenModelica. Apparently there are some reasons to generate chattering.
This should be investigated before the 4.1.0 release.
The text was updated successfully, but these errors were encountered: