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=get_default_value('source_dc', 'vm_pu'), index=None, name=None, in_service=get_default_value('source_dc', 'in_service'), 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

Table Structure

net.source_dc

Parameter

Datatype

Value Range

Explanation

nullable

required

name

name of the static generator

✓

type

type of source

✓

bus_dc

int

>=0

index of connected bus

✓

vm_pu

float

set-point for the bus voltage magnitude at the connection bus

✓

in_service

bool

specifies if the generator is in service.

✓

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 Table

net.res_source_dc

Parameter

Datatype

Explanation

nullable

required

p_dc_mw

float

resulting active power demand after scaling [MW]

✓

✓

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