Pump

Create Function

create_pump(net, from_junction, to_junction, std_type, name=None, index=None, in_service=True, type='pump', **kwargs)

Adds one pump in table net[“pump”].

Parameters
  • net (pandapipesNet) – The net within this pump should be created

  • from_junction (int) – ID of the junction on one side which the pump will be connected with

  • to_junction (int) – ID of the junction on the other side which the pump will be connected with

  • std_type (string, default None) – There are currently three different std_types. This std_types are P1, P2, P3. Each of them describes a specific pump behaviour setting volume flow and pressure in context.

  • name (str, default None) – A name tag for this pump

  • index (int, default None) – Force a specified ID if it is available. If None, the index one higher than the highest already existing index is selected.

  • in_service (bool, default True) – True for in_service or False for out of service

  • type (str, default "pump") – Type variable to classify the pump

  • kwargs (dict) – Additional keyword arguments will be added as further columns to the net[“pump”] table

Returns

index - The unique ID of the created element

Return type

int

EXAMPLE:
>>> create_pump(net, 0, 1, std_type="P1")

Component Table Data

net.pump

Parameter

Datatype

Value Range

Explanation

name

string

Name of the pump

from_junction

integer

\(>\) 0

Index of junction at which the pump starts

to_junction

integer

\(>\) 0

Index of junction at which the pump ends

std_type

string

The selected standard type for the pump. Can be found in net.std_type.

in_serivce

boolean

True / False

True for in service or False for out of service

type

string

Type variable to classify the pump

Physical Model

The pump is used to lift the pressure of a fluid flowing therethrough. The pressure rise depends on pump specific technical product properties setting flowrate and pressure in correlation. Thus, by given flowrate the pressure lift can be calculated. There are three different standard types defined by default (P1, P2, P3). However, the user can easily extend the standard type list.

alternate Text

In pandapipes the pump is considered as branch element with zero length (pumps are considered ideal). Thus it behaves and is considered accordingly.

Result Table Data

net.res_pump

Parameter

Datatype

Explanation

deltap_bar

float

The pressure lift caused by the pump [bar]