Source DC

Note

Sources should always have a positive p_mw value, since all power values are given in the generator convention. If you want to model constant power consumption, it is recommended to use a load element instead of a source with negative active power value.

Create Function

pandapower.create.create_source_dc(net, bus_dc, vm_pu=1.0, index=None, name=None, in_service=True, type=None, **kwargs)

Creates a dc voltage source in a dc grid with an adjustable set point

Parameters:
  • net (pandapowerNet) – The pandapower network in which the element is created

  • bus_dc (int | integer) – index of the bus the shunt is connected to

  • vm_pu (float) – set-point for the bus voltage magnitude at the connection bus

  • name (str | None) – element name

  • index (int | integer | 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) – True for in_service or False for out of service

  • type (str | None) – A string describing the type.

Returns:

The ID of the created svc

Input Parameters

net.sgen

Parameter

Datatype

Value Range

Explanation

name

string

name of the static generator

type

string

type of source

bus*

integer

index of connected bus

p_mw*

float

\(\leq\) 0

active power of the static generator [MW]

scaling*

float

\(\geq\) 0

scaling factor for the active and reactive power

controllable**

bool

True / False

states if sgen is controllable or not, sgen will not be used as a flexibility if it is not controllable

in_service*

boolean

True / False

specifies if the generator is in service.

*necessary for executing a power flow calculation

Electric Model

DC sources are modelled as P-buses in the power flow calculation:

alternate Text

The P-Values are calculated from the parameter table values as:

\[P_{sgen} = p\_mw \cdot scaling\]

Note

Other values are provided as additional information for usage in controller or other applications based on pandapower. It is not considered in the power flow!

Result Parameters

net.res_source_dc

Parameter

Datatype

Explanation

p_mw

float

resulting active power demand after scaling [MW]

The power values in the net.res_source_dc table are equivalent to \(P_{sgen}\).