Source

Create Function

For creating a single source:

For creating multiple sources at once:

Component Table Data

net.source

Parameter

Datatype

Value Range

Explanation

name

string

Name of the source

junction

integer

Index of connected junction

mdot_kg_per_s

float

\(\geq\) 0

The mass flow injected by the source [kg/s]

scaling

float

\(\geq\) 0

Scaling factor for the injected mass flow

in_service

boolean

True / False

Specifies if the source is in service.

type

string

Type variable to classify sources

Physical Model

A source component injects a specified mass flow into the system. The source is connected to a specified node.

Sources are typically used to model producing units in hydraulic systems. Please note that sources cannot be used to model heat sources for the pandapipes heat mode. In this case, to model a heat flow entering the system, the heat exchanger component can be used.

Result Table Data

net.res_source

Parameter

Datatype

Explanation

mdot_kg_per_s

float

Mass flow injection [kg/s]