pandapipes icon indicating copy to clipboard operation
pandapipes copied to clipboard

type=t circ pumps give error

Open ggrrll opened this issue 3 years ago • 5 comments

Hi,

in a simple example like the one in https://github.com/e2nIEE/pandapipes/blob/develop/tutorials/circular_flow_in_a_district_heating_grid.ipynb

setting type=t gives error, and in particular:

  • create_circ_pump_const_pressure > IndexError: index 0 is out of bounds for axis 0 with size 0
  • create_circ_pump_const_mass_flow > ValueError: could not broadcast input array from shape (0) into shape (1)

is it normal?

ggrrll avatar Jul 13 '21 11:07 ggrrll

in particular for the former case, I saw that the error comes from the way the pressure is calculated here

https://github.com/e2nIEE/pandapipes/blob/b338a8ad30d6f519d50ffc41fc7a81b27cfa7574/pandapipes/component_models/circulation_pump_pressure_component.py#L39

in particular press is empty, as it's always looking only for p or pt type in here:

https://github.com/e2nIEE/pandapipes/blob/b338a8ad30d6f519d50ffc41fc7a81b27cfa7574/pandapipes/component_models/ext_grid_component.py#L53

ggrrll avatar Jul 13 '21 11:07 ggrrll

is there another way to fix the pressure in any point in the grid, apart from create_ext_grid ?

ggrrll avatar Jul 14 '21 09:07 ggrrll

Hi @ggrrll, sorry for the late reply. There is a component "pressure control" that creates a certain pressure at a "controlled junction" by adding a pressure drop/lift between its "from_junction" and "to_junction". The documentation is still missing but here is the create function. It has been developed for gas networks but it should also work with heat networks. However, please double-check the temperature results

jkisse avatar Oct 17 '22 10:10 jkisse

@jkisse thanks for your reply I stoped working on this project last year -- maybe someone else can find this useful

ggrrll avatar Oct 17 '22 10:10 ggrrll

Should this issue be considered as closed?

kbensafta avatar Feb 09 '23 12:02 kbensafta