-
Notifications
You must be signed in to change notification settings - Fork 63
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
Add dhnx pandapipes tutorial #530
base: develop
Are you sure you want to change the base?
Add dhnx pandapipes tutorial #530
Conversation
Hi @joroeder ,
I think we would still have to clarify how to integrate this tutorial within pandapipes. Some thoughts:
|
Hi @dlohmeier, thank you for your feedback!
The example is not very big, and if there are proper function to create the network, we of course should replace the for loops. Actually, until this example, I did not work with pandapipes, but a Masters student of mine.
I don't think so. However, the modeling detail of the thermo-hydraulic is simplified, actually not existent in the DHNx optimisation. In DHNx, a linear mixed-integer investment optimization is performed, that only knows about loads and costs for transport capacity. The DHS pipelines are considered to be forward and return in one with a thermal transport capacity (which requires some assumptions such as temperature spread. A mass flow based approach would also be possible.). So, actually, the model is very simple, the Sinks are nodes with outflow (which itself can be constrained), and the sources are nodes with one inflow. And the optimisation problem is concerned with finding the cheapest supply route. So, for the parametrization of the model the thermal and hydraulic physic needs to be pre-calculation. The actual dimensioning is based on a maximum pressure drop per meter, that determines the transport capacity of a pipelines trench. In the end, DHNx gives a first estimation about the routing and dimensions, that can then be further optimized with a detailed simulation with pandapipes. It might be also possible to apply this approach to gas networks ... Regarding the loops, it guess it is no problem to add the return pipelines and substations (that require some further assumption such as pressure drop at the substations and return temperature on the secondary side of the consumers heating system). My idea was that a calculation of the forward piping systems gives a first insight into the feasibility of the drafted DHS network to evaluate temperature loss and pressure drop. The pressure drop of the returning piping system is in many cases almost the same, right? So, together with the maximum pressure drop at the substations of the TAB, the overall pressure drop can be estimated. For a closed-loop network, you also need to add the heat exchangers of the boilers, heat pumps, with their pumps and so on (also alle Erzeugerkreise), with all the hydraulic and controls of the heat supply site, right? Is this all possible with pandapipes? This would be very nice to provide such an extensive example of a heat supply site, but I am wondering if this is an overshoot for this example.
Osmnx has the option of caching the data. However, then, the cached files are part of the repository. What do you mean by additional default files? Actually, my philosophy was to reduce the files to a minimum to keep the repository lean.
Yes, this is a problem. We could also add an try ... except statement or something for the imports of the tutorial. so that the checks pass even if the additional packages are not installed. Okay, maybe this is the same as excluding the tutorial from the checks :D ... or maybe add |
This PR adds a tutorial showing a workflow for combining the DHNx package https://github.com/oemof/DHNx and pandapipes.
In the first part of the tutorial the network layout and dimensioning for a new district heating network is set up with DHNx (based on a Mixed-Integer linear optimisation), and then, a thermo-hydraulic simulation is performed with pandapipes for checking the technical feasibility of the district heating network. This tutorial might be very helpful for pandapipes users if no data about district heating networks is available or if new district heating networks are investigated.
I planned to convert the script into a jupyter notebook as all the other tutorials after a first feedback. What do you think about the tutorial?
Some remarks:
invest_data
will become default values in future. So the only input data will be thePipe_data.csv
.