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

Convergence Exception in case of negative pressure? #337

Open
dlohmeier opened this issue Jan 5, 2022 · 1 comment
Open

Convergence Exception in case of negative pressure? #337

dlohmeier opened this issue Jan 5, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@dlohmeier
Copy link
Collaborator

In my PR #234 , I adapted the convergence behavior such that PipeFlowNotConverged exceptions are always raised after a hydraulic or heat transfer calculation, and all component result tables are initialized with NaNs in the very beginning. So, when such an exception is raised, the result tables are all filled with NaNs, hinting the user at an error in the calculation.

There is however still one exception in which the pipeflow results are obviously wrong, but it converges. In some cases, the pressure at some node(s) can become negative and the pipeflow converges to a physically incorrect solution. A warning is printed in the junction component during result extraction, if such a problem occurs. But shouldn't this still lead to a convergence exception?

This issue is also linked to #188 .

@dlohmeier
Copy link
Collaborator Author

Another thought on this: It seems to me that there might be systems in which negative pressure compared to the system pressure (which is currently usually ambient) is allowed. Therefore, I believe that the logged warning could be sufficient and it might be better to keep it up to the user if this behavior is allowed. Yet in order to give more control over what happens, especially in case of time series simulations, we might add an option that switches between the two states. Something like: allow_negative_pressure . If this is set to false, an exception will be raised.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant