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_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 :param **net**: :type **net**: pandapowerNet :param **bus**: :type **bus**: int :param **vm_pu**: :type **vm_pu**: float

Parameters:
  • **name** (str, None)

  • **index** (int, None)

  • **in_service** (bool, True)

  • **type** (str)

  • net (pandapowerNet)

  • bus_dc (int | integer)

  • vm_pu (float)

  • index (int | integer | None)

  • name (str | None)

  • in_service (bool)

  • type (str | None)

Returns:

index (int) - The unique 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:

\begin{align*} P_{sgen} &= p\_mw \cdot scaling \\ \end{align*}

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}\).