You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I would choose alpha to be very small for some setups it would converge for some it would't.
I did some experimenting and it seems like the derivative of the characteristic pump curve needed for the newton algorithm is not calculated, ie. JAC_DERIV_DM for the pumps in the branch_pit are always 0.
I wrote one function in the std_type_class.py for class PumpStdType(RegressionStdType) to calculate the derivative from the regression polynomial and added the necessary adaption_after_derivatives_hydraulic() function for the class Pump(BranchWZeroLengthComponent) in pump_component.py and I got it to converge quickly and with $\alpha = 1$.
I dont have git installed at the moment so I cannot contribute directly but I wanted to know if it is true that the derivative for the characteristic curve does not get calculated but is actually needed for the algorithm. Thanks!
The text was updated successfully, but these errors were encountered:
thanks for raising this issue. I am not the expert on the pump model, but it seems to me that you are right with your assumptions. As far as I understand, the following happens: The derivative JAC_DERIV_DM is set to 0 for pumps (due to length 0 of the component), and the pressure difference between the two nodes only depends on the pressure lift PL. It is derived iteratively from the resulting mass flow defined by the node equations. However, two parallel pumps can split the mass flow at any rate, so convergence might be an issue here. @SimonRubenDrauz maybe you can comment on that.
Your solution sounds very logical, but it seems like you would not like to contribute it yourself. Would you be willing to share your adaptions here so we can use it for an improved pump model?
In a simple water grid setup with one external grid, one sink and two parallel pumps I had the problem that the pipeflow would not converge.
Minimal example:
If I would choose alpha to be very small for some setups it would converge for some it would't.
I did some experimenting and it seems like the derivative of the characteristic pump curve needed for the newton algorithm is not calculated, ie.$\alpha = 1$ .
JAC_DERIV_DM
for the pumps in thebranch_pit
are always 0.I wrote one function in the std_type_class.py for
class PumpStdType(RegressionStdType)
to calculate the derivative from the regression polynomial and added the necessaryadaption_after_derivatives_hydraulic()
function for theclass Pump(BranchWZeroLengthComponent)
in pump_component.py and I got it to converge quickly and withI dont have git installed at the moment so I cannot contribute directly but I wanted to know if it is true that the derivative for the characteristic curve does not get calculated but is actually needed for the algorithm. Thanks!
The text was updated successfully, but these errors were encountered: