Closed NicholasFry closed 3 years ago
Hi @NicholasFry,
you have missed to specify the fluid in the second heat pump cycle. That seems to be the reason for the error message. However, I think there should be a different error message in this case. Basically, the h_mix_pQ function is called to generate starting values for the solver while missing the fluid information. If you add
c_in_condenser_2.set_attr(fluid={'NH3': 1, 'water': 0})
at least that issue is fixed, but the solver does not find a solution. Might be due to bad specifications or due to bad starting values. As the network is quite large it is always difficult to search the error if you did not set up the network yourself, so I cannot immediately tell you what the issue is. I'd advise you to set up your model step by step. Use one heat pump only and the add component by component to the secondary cycle, i.e. insert the second condenser inside the district heating but only connect it to a source and a sink on the heat pump side. Then add the valve, the evaporator, ... :).
If you need any more help or support, just let me know :)
Best regards, have a nice week Francesco
P.S.: That looks like an interesting set up! Analyzing the influence of using different working fluids for the two heat pumps on the overall performance could be very interesting.
Thank you for identifying the next steps for me @fwitte. I am enjoying learning about the capabilities of TESPy. I appreciate the feedback.
Hi there. I am modifying the COP of a heat pump tutorial to create parallel heat pumps feeding a district heating network, using a waste heat source of the same rejection reservoir. It seems if I remove air from the tutorial, the network solver works fine. If I remove a compressor, an intercooler, and air as a fluid from the code, then I get a problem with the evaporator drum.
ValueError: The function h_mix_pQ can only be used for pure fluids.
I am not certain that I understand the conflict in this case. My fractions of NH3 and water are not mixed at any inlets. Hopefully this is the appropriate place to raise the question.