pandapipes
pandapipes copied to clipboard
type=t circ pumps give error
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?
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
is there another way to fix the pressure in any point in the grid, apart from create_ext_grid
?
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 thanks for your reply I stoped working on this project last year -- maybe someone else can find this useful
Should this issue be considered as closed?