-
Is there a way to specify the height of components or connections, so that the simulation takes into account the hydrostatic pressure differences due to differences in elevation? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @panosz! In the current state of the package: Not out of the box! What you can do is to add user defined equations to your model, that offset the pressure over a component (you could do that also with valve as pseudo change in height). It depends a little bit on what you want to do exactly. If you need to incorporate the changes in height (and/or flow velocity) in components, it is more work. However, with the most recent changes introduced in v0.7 the framework should be extendable in that direction rather easily. If you'd like to commit some time to developing the required features yourself, you are welcome to do so, I will try to support you with that. I can give you a quick overview where to start, if you want to learn more about it. Basically, the steps are:
Best Francesco |
Beta Was this translation helpful? Give feedback.
-
@fwitte At the moment I am on the look of python libraries to support simple models for simulating district heating networks. Although I have invested substantial time in familiarizing myself with tespy, I am getting more and more convinced that this library is too complicated for my purposes. In a recent issue, the developers of oemof's DHNx, which is a package dedicated to district heating by the same organization as the one developing tespy, seem to suggest using pandapipes for such purposes. Moreover pandapipes supports heights out of the box, so it seems that this may be a better solution. I realize that this discussion digresses from my initial question, but I would like to know if you have any thoughts on this. |
Beta Was this translation helpful? Give feedback.
-
Hi, @fwitte! Thank you for your reply. I understand now that TESPy is an overkill for such simulations and my choosing it instead of pandapipes was probably misguided. However I did so, because Maybe you should add some warning in the documentation to prevent similar future misunderstandings. Best, |
Beta Was this translation helpful? Give feedback.
Hi @panosz!
In the current state of the package: Not out of the box! What you can do is to add user defined equations to your model, that offset the pressure over a component (you could do that also with valve as pseudo change in height). It depends a little bit on what you want to do exactly.
If you need to incorporate the changes in height (and/or flow velocity) in components, it is more work. However, with the most recent changes introduced in v0.7 the framework should be extendable in that direction rather easily. If you'd like to commit some time to developing the required features yourself, you are welcome to do so, I will try to support you with that. I can give you a quick overvie…