Replies: 1 comment
-
Hi @dad616610, Note that the pressure of the "uncontrolled" junctions downstream of the pressure controller is determined by the hydraulics of the network, i.e. the pressure loss due to friction etc.. If there is an additional ext_grid there, trying to impose a certain pressure on such a junction, you'll likely end up with an overdetermined network (--> will typically raise "matrix is exactly singular"). I hope this helps :) |
Beta Was this translation helpful? Give feedback.
-
Hello!
I'm getting a singular matrix when using pressure control with the following initial conditions: mass flow at inlet (
source
) and pressure at outlet (ext_grid
). I tested this behavior with replacing the pressure control with pipe - no singular matrix, got solution. I also changed the initial conditions to pressure at inlet (ext_grid
) and mass flow at outlet (sink
) and ran with both pressure control and pipe - got solutions in both cases.Here is a table with the results:
Table legend:
False
= got singular matrix;True
- no singular matrix. got solutionHere is the code, simulating all the configurations above
Could I be doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions