How do I simulate a simple (circular & continuous) district heating network? #356
Replies: 1 comment
-
From this sentence I conclude that the solver can only find a solution if both the pressure and the flow are fixed at one point in the network. Adding an external grid with a lower pressure somewhat replicates my desired behavior given that the flow is exactly at 0. Im wondering why this would work? PS: This converges to ambient temp if both heat exchangers are set to 0W. |
Beta Was this translation helpful? Give feedback.
-
Hello :)
Im currently trying to setup a simple pandapipes net.
Why?
I have the data of a real existing district heating network. I created a RL model that optimizes the heat production. I cant evaluate the model in the live system.
Im trying to simulate a small part of the real existing district heating network to generate optimal heat production data for verification and non-optimal data for training.
I then want to use the data to evaluate the RL model.
But I already fail on an minimal example.
Ive found the following example but it has fixed pressure and temperature: https://github.com/e2nIEE/pandapipes/blob/develop/tutorials/circular_flow_in_a_district_heating_grid.ipynb
See test setup: "const mass flow pump with fixed temp and pressure"
Current Setup
This is my current minimal example setup:
Test setups
regular pump
If i now add a "regular" pump between junction 6 & 7 and run the simulation I get the following error:
which is apparently a
FloatingPointError: invalid value encountered in double_scalars
if we setnp.seterr('raise')
const mass flow pump with fixed temp and pressure
Resulting in:
While this converges the water will flow into the pump with 57.1°C and flow out with fixed 60°C. This is not the behaviour i want.
const mass flow pump with non fixed pressure and/or temperature
Will all fail.
regular pump + ext grid
Adding an external source with fixed temperature and pressure combined with the regular pump approach converges to
This seemingly works. No water actually flows from the external grid into the network as shown by the flow values in blue.
Putting in and extracting an equal amount of energy converges to the ambient temp of 10°C.
Confirming convergence to ambient temp with:regular pump + ext grid + heat exchanger set to 0W
const mass flow pump with non fixed temp and non fixed pressure + ext grid
Does not work
Questions:
I also noted that:
Beta Was this translation helpful? Give feedback.
All reactions